There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer blue screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive hardware internet internet explorer itunes laptop linux malware monitor network networking outlook outlook 2003 outlook express partition password printer problem problems ram router slow sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Ubuntu Fiesty Fawn


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
17-Jul-2007, 09:02 AM #1
Ubuntu Fiesty Fawn
Well after receiving my CD from Linux free of charge (gotta love 'em) I made the switch from Windows to Linux Ubuntu, now everything has gone fine up until this part.
Installing my ATI Radeon 9250, I have done what ATI have told me to do on their site "https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/linux_8.28.8-inst.html" but when it says it will bring up the grpahical installer this is what it bring up to me

nexus@Nexus:~$ sh ./ati-driver-installer-8.28.8.run
Creating directory fglrx-install
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.28.8..................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... .........................
-e ==================================================
-e ATI Technologies Linux Driver Installer/Packager
-e ==================================================
./ati-installer.sh: 165: Syntax error: Bad substitution
Removing temporary directory: fglrx-install


Has anyone got any idea?
lotuseclat79's Avatar
Distinguished Member with 10,572 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
17-Jul-2007, 11:24 AM #2
Hi reaper616,

What is line 165 of the file ati-installer.sh (include 10 lines before and after)?

Don't know how to get those lines? Try the following from a command line:

$ head -175 ati-installer.sh | tail -20

-- Tom
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
17-Jul-2007, 03:27 PM #3
Well the only file I downloaded for the install is a file called "ati-driver-installer-8.28.8.run"

Thank for your reply
lotuseclat79's Avatar
Distinguished Member with 10,572 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
17-Jul-2007, 04:04 PM #4
Hi reaper616,

The file you downloaded, ati-driver-installer-8.28.8.run, is probably a self-extracting installer, and may have deposited the file ati-installer.sh that it refered to in your first post.

Do the command: ls -lt
in the directory you ran the command to see if it deposited the ati-installer.sh file.

To check the number of lines in a file issue the command: wc -l <filename>
where, for example, the <filename> is substituted with ati-installer.sh

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction between a mere artisan or specialist and a real seeker after truth. - Einstein wrote in 1944.

Some say knowledge is power, I say knowledge without action is powerless. - lotuseclat79

Don't confuse action with movement. - Hemingway to Gardner

Imagination is more important than knowledge. - Einstein
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
18-Jul-2007, 10:14 AM #5
Ok I did the "ls -lt" command you told me to run in the same directory as where I ran it last time and it didn't come up with anything.

I ran it again (the installer) and then did your command and copied everything it displayed incase I did anything wrong:
nexus@Venom:~/Desktop/ATI$ sh ./ati-driver-installer-8.28.8.run
Creating directory fglrx-install
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.28.8..................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... ........................................................................... .........................
-e ==================================================
-e ATI Technologies Linux Driver Installer/Packager
-e ==================================================
./ati-installer.sh: 165: Syntax error: Bad substitution
Removing temporary directory: fglrx-install
nexus@Venom:~/Desktop/ATI$ ls -lt
total 52784
-rw-r--r-- 1 nexus nexus 53989404 2007-07-17 20:36 ati-driver-installer-8.28.8.run
nexus@Venom:~/Desktop/ATI$

Sorry if it's me being stupid

EDIT- Just reading through it again it does say "Removing temporary directory: fglrx-install" so could that mean that the file you want to look at (ati-installer.sh) has been deleted?

Last edited by reaper616 : 18-Jul-2007 10:20 AM.
lotuseclat79's Avatar
Distinguished Member with 10,572 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
18-Jul-2007, 12:32 PM #6
Hi reaper616,

First, you are not being stupid, and yes to you're edited question. No doubt about it, the file was deleted as indicated by the line:
Removing temporary directory: fglrx-install
which is obviously the directory in which ati-installer.sh resides upon extraction.

Since you are attempting to install a driver, you need to be in the root account to do so. Issue the following command to execute it as root:

$ sudo sh ,/ati-driver-installer-8.28.8.run

and see if that works.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction between a mere artisan or specialist and a real seeker after truth. - Einstein wrote in 1944.

Some say knowledge is power, I say knowledge without action is powerless. - lotuseclat79

Don't confuse action with movement. - Hemingway to Gardner

Imagination is more important than knowledge. - Einstein
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
18-Jul-2007, 12:40 PM #7
"nexus@Venom:~/Desktop/ATI$ sudo sh ,/ati-driver-installer-8.28.8.run
Password:
sh: Can't open ,/ati-driver-installer-8.28.8.run"

That was what came up after putting in your command.

EDIT: Tried i again but used "sudo -i" this time and ran the installer using "./ati-driver-installer-8.28.8.run" and it came up with Access Denied. I was under the impression "sudo -i" logged the user in as root.

Last edited by reaper616 : 18-Jul-2007 01:37 PM.
ejrives's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jul 2007
Experience: Advanced
19-Jul-2007, 02:54 AM #8
Quote:
Originally Posted by reaper616
"nexus@Venom:~/Desktop/ATI$ sudo sh ,/ati-driver-installer-8.28.8.run
Password:
sh: Can't open ,/ati-driver-installer-8.28.8.run"

That was what came up after putting in your command.

EDIT: Tried i again but used "sudo -i" this time and ran the installer using "./ati-driver-installer-8.28.8.run" and it came up with Access Denied. I was under the impression "sudo -i" logged the user in as root.

Does the install doc want you to install it as root? If so "sudo su -" will get you to root. Then navigate the directory and run "./ati-driver-installer-8.28.8.run" that should work.
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
19-Jul-2007, 04:28 AM #9
nexus@nexus:/home/nexus/Desktop# sudo su -
Password:
root@nexus:~# cd /home/nexus/Desktop/
root@nexus:/home/nexus/Desktop# dir
ati-driver-installer-8.28.8.run SteamInstall.msi ut2004-lnxpatch3369.tar.bz2
root@nexus:/home/nexus/Desktop#
root@nexus:/home/nexus/Desktop# ./ati-driver-installer-8.28.8.run
-su: ./ati-driver-installer-8.28.8.run: Permission denied
root@nexus:/home/nexus/Desktop#

That is exaclty what I did.
ejrives's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jul 2007
Experience: Advanced
19-Jul-2007, 01:42 PM #10
Ok...next step is to make sure that file is executable , which I overlooked in a previous post.

nexus@Venom:~/Desktop/ATI$ ls -lt
total 52784
-rw-r--r-- 1 nexus nexus 53989404 2007-07-17 20:36 ati-driver-installer-8.28.8.run
nexus@Venom:~/Desktop/ATI$


that file only has read and write permissions for the owner not executable.

PLease type this in "chmod 744 ati-driver-installer-8.28.8.run" from the directpry that it's in.

Make sure that you sudo su - first then chmod after that try the ./ati-driver-installer-8.28.8.run

Good Luck!
its_me_gb's Avatar
Junior Member with 17 posts.
 
Join Date: Oct 2005
Experience: Intermediate
20-Jul-2007, 12:01 PM #11
i found when installing the ati drivers if i did:

chmod +x ati-driver-install....
sudo ./ati-driver-install...

it seemed to work for me, well most of the time
lilomaster's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Jul 2007
Experience: Advanced
21-Jul-2007, 06:41 PM #12
Actually, I'm having the same problem. I Installed the x86_64 diver in my ATI Radeon Xpress 1150 ubuntu feisty based laptop without problems. Now I'm trying to install the ATI RAdeon 9200 driver in my mother's Ati Radeon 9200 Ubuntu feisty i386 based computer.

Well, the archive provided by ATI certainly is a self extracting file. In this particular case, if you want the bash file not to erase the extracted files after executing, you have to use the --keep modifier.

./ati-driver-installer-8.28.8.run --keep

The code extract is the following:

#!/bin/sh
#
#Purpose: this script is called after .run archive is extracted, "--argument" is passed to this script
# it handles "install," "listpkg," and "buildpkg <package name>"
#Parameters:
# Input:
# $1 - driver version
# $2 - operation to perform (--install, --listpkg, --buildpkg)
# $3 - <package name> if the operation is --buildpkg
# Return:
# status - 1 if error occurs, 0 if not
# External variables:
# X_VERSION and _ARCH are set by check.sh

DetectLIBC()
{
status=1
if [ `uname -s` != Linux ]; then
echo "glibc-2.1"
return $status
fi

# tail is now passed "-n 1" instead of "-1" because "-1" is obsolete
if [ -f `echo /lib/libc.so.6* | tail -n 1` ]; then
if fgrep GLIBC_2.1 /lib/libc.so.6* 2>&1 >/dev/null; then
echo "glibc-2.1"
status=0
else
echo "glibc-2.0"
status=0
fi
elif [ -f /lib/libc.so.5 ]; then
echo "libc5"
status=0
else
echo "unknown"
fi
return $status
}

printHelp()
{
echo "This script supports the following arguments:"
echo "--help : print help messages"
echo "--listpkg : print out a list of generatable packages"
echo "--buildpkg package : if generatable, the package will be created"
echo "--install : install the driver"
}

# Script execution starts here

echo -e "=================================================="
echo -e "\033[31m ATI Technologies Linux Driver Installer/Packager \033[0m"
echo -e "=================================================="

# Create installer symlinks

# Custom package directory
ATI_ETC=/etc/ati
if [ -z ${ATI_CUSTOM_PKG_DIR} ]; then
ATI_CUSTOM_PKG_DIR=${ATI_ETC}/custom-package
fi
if [ -d ${ATI_CUSTOM_PKG_DIR} ]; then
if [ -x "${ATI_CUSTOM_PKG_DIR}/ati-packager.sh" ]; then
ln -s ${ATI_CUSTOM_PKG_DIR} packages/custom-package
else
echo "Warning: ${ATI_CUSTOM_PKG_DIR}/ati-packager.sh is missing or not a script."
fi
fi

# Link xorg7 to use xorg690 files
if [ -d "x690" -a ! -L "x700" ]; then
ln -s x690 x700
fi
if [ -d "x690_64a" -a ! -L "x700_64a" ]; then
ln -s x690_64a x700_64a
fi

DRV_RELEASE=$1
ACTION=$2

# Detect LIBC
libc=`DetectLIBC`

# Process input command
status=0
case "${ACTION}" in
--install)
# The uninstall script "fglrx-uninstall.sh" will be saved to {SETUP_INSTALLPATH}/usr/share/fglrx
# by copy_uninstall_file.sh during the install process

# Detect and diplay version of X and architecture (X_VERSION and _ARCH are set by check.sh)
. ./check.sh

if [ -z "${X_VERSION}" ]
then
status=1
else
case "${_ARCH}" in
i?86 | x86_64)
if [ ${_ARCH} = "x86_64" ]; then
ArchDir=x86_64
XLibDir=lib64
else
ArchDir=x86
XLibDir=lib
fi

# Verify the directory for the detected X is included with the installer
if [ -d ${X_VERSION} -o -L ${X_VERSION} ]; then
# Merge files from the common, arch and X specific directories
TmpDrvFilesDir=install
rm -rf ${TmpDrvFilesDir}
mkdir ${TmpDrvFilesDir}
cp -R common/* ${TmpDrvFilesDir}
cp -R arch/${ArchDir}/* ${TmpDrvFilesDir}
cp -R ${X_VERSION}/* ${TmpDrvFilesDir}

#xorg 7 introduces new paths
if [ ${x_maj} -eq 7 ]; then
#new xorg directory
mkdir -p ${TmpDrvFilesDir}/usr/${XLibDir}/xorg/modules/
mv ${TmpDrvFilesDir}/usr/X11R6/${XLibDir}/modules/drivers ${TmpDrvFilesDir}/usr/${XLibDir}/xorg/modules/
mv ${TmpDrvFilesDir}/usr/X11R6/${XLibDir}/modules/linux ${TmpDrvFilesDir}/usr/${XLibDir}/xorg/modules/

#arch dependent
# - all ati related libs to go in subdir to prevent conflict
mkdir -p ${TmpDrvFilesDir}/usr/${XLibDir}/fglrx
mv ${TmpDrvFilesDir}/usr/X11R6/${XLibDir}/*.* ${TmpDrvFilesDir}/usr/${XLibDir}/fglrx/
# - general dri directory
mv ${TmpDrvFilesDir}/usr/X11R6/${XLibDir}/modules/dri ${TmpDrvFilesDir}/usr/${XLibDir}/

# - 64-bit includes 32-bit libs, assume /usr/lib32 /usr/lib64
if [ "${ArchDir}" = "x86_64" ]; then
if [ -d "/usr/lib32" ]; then
LibDir32=lib32
else
LibDir32=lib
fi
mkdir -p ${TmpDrvFilesDir}/usr/${LibDir32}/fglrx
mv ${TmpDrvFilesDir}/usr/X11R6/lib/modules/dri ${TmpDrvFilesDir}/usr/${LibDir32}/
mv ${TmpDrvFilesDir}/usr/X11R6/lib/*.* ${TmpDrvFilesDir}/usr/${LibDir32}/fglrx/
fi

#remove empty modules dir
rm -rf ${TmpDrvFilesDir}/usr/X11R6/lib*/modules

#no more X11R6 directory, move rest to general areas
cp -R ${TmpDrvFilesDir}/usr/X11R6/* ${TmpDrvFilesDir}/usr
rm -rf ${TmpDrvFilesDir}/usr/X11R6/

if [ ${x_min} -eq 0 ]; then
#xorg 7 looks for the below modules in ...usr/X11R6/lib/modules/dri but modules are in /usr/lib/dri
mkdir -p ${TmpDrvFilesDir}/usr/X11R6/lib/modules/dri
ln -s /usr/lib/dri/fglrx_dri.so ${TmpDrvFilesDir}/usr/X11R6/lib/modules/dri/fglrx_dri.so
ln -s /usr/lib/dri/atiogl_a_dri.so ${TmpDrvFilesDir}/usr/X11R6/lib/modules/dri/atiogl_a_dri.so
fi
fi

# Generate xml scripts for Loki Setup
./lokixml.sh ${X_VERSION} ${DRV_RELEASE} ${TmpDrvFilesDir}

# Try to find the Firefox browser and set it for use if found
# We need this because Loki has troubles starting a browser on 64-bit RHEL4
for dir in ${PATH//\:/ }; do (THIS IS THE LINE 165)
for browser in firefox; do
if [ -x ${dir}/${browser} ]; then
loki_browser=${dir}/${browser}
break 2
fi
done
done

loki_installer_ncurses=0
# Run the installer
if [ ${libc} != "unknown" -a "${DISPLAY}" != "" ]
then
if [ "${loki_browser}" ]; then
LOKI_BROWSER=${loki_browser}

Well, this is my contribution.

Greetings.
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
24-Jul-2007, 11:08 AM #13
@lotuseclat79 - Here is the lines you request earlier I believe I have left ten lines of the code before and after line 65 as you asked.

n -s /usr/lib/dri/atiogl_a_dri.so ${TmpDrvFilesDir}/usr/X11R6/lib/modules/dri/atiogl_a_dri.so
fi
fi

# Generate xml scripts for Loki Setup
./lokixml.sh ${X_VERSION} ${DRV_RELEASE} ${TmpDrvFilesDir}

# Try to find the Firefox browser and set it for use if found
# We need this because Loki has troubles starting a browser on 64-bit RHEL4
for dir in ${PATH//\:/ }; do
for browser in firefox; do
if [ -x ${dir}/${browser} ]; then
loki_browser=${dir}/${browser}
break 2
fi
done
done

loki_installer_ncurses=0
# Run the installer
if [ ${libc} != "unknown" -a "${DISPLAY}" != "" ]
then

Last edited by reaper616 : 24-Jul-2007 05:39 PM.
reaper616's Avatar
Senior Member with 336 posts.
 
Join Date: Jul 2006
Location: Lincoln, United Kingdom
Experience: Self taught/teaching
25-Jul-2007, 05:33 PM #14
Sorry *BUMP*
RootbeaR's Avatar
Computer Specs
Distinguished Member with 2,096 posts.
 
Join Date: Dec 2006
Location: Ontario, Canada
Experience: Getting it
29-Jul-2007, 10:14 AM #15
Quote:
Originally Posted by reaper616
Sorry *BUMP*
Just in case this may help.
http://www.tldp.org/HOWTO/Hardware-HOWTO/
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:05 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.