Click to See Complete Forum and Search --> : .sh file extension


adamdm420
10-20-2002, 06:53 PM
I'm a linux user of 2 days. I'm starting to like it moer than windows except for a few things I'm having trouble with... My sound does'nt work, the scroll on my mouse, and the most important thing is the .sh file extension I got when I downloaded a Quake 3 Arena demo. I have no idea what to do with it. Someone please PM me or repley to the forum. Much thanks.

swangods
10-20-2002, 07:04 PM
Originally posted by adamdm420
I'm a linux user of 2 days. I'm starting to like it moer than windows except for a few things I'm having trouble with... My sound does'nt work, the scroll on my mouse, and the most important thing is the .sh file extension I got when I downloaded a Quake 3 Arena demo. I have no idea what to do with it. Someone please PM me or repley to the forum. Much thanks.

Linux is unlike windows in that it doesn't require .exe or .com or .bat or other such to execute a program or script. The .sh is an indicator that it's a script of some sort to run. To run it, it must first be made executable by setting its execute permission (may already be done for you, especially if it's a .sh), and then type the full name of the file, prepended with ./ So, if you had install.sh, to verify it is executable type

chmod +x install.sh

chmod is used to set permissions on a file. There are plenty of resources to look up permissions to see if it is already executable.
Once you have verified that this is executable:

./install.sh

That is equivalent to being in a DOS directory and typing a command in that directory. If for example the .sh file is in a separate directory, ie /home/adam/q3, it's just as easy:

/home/adam/q3/install.sh

As the ./ indicates "use the current directory.

Alternately, you can use a file manager (by default Nautilus in GNOME or Konqueror in KDE) to just click-and-run.

What kind of sound card are you using?

Anyone know if I can use the phrase click-and-run or if Lindows will come down on me for copyright infringement?

adamdm420
10-20-2002, 07:18 PM
Thank you very much. You more than a genuis. Sound works and everything. Ttyl. gonna play some quake. :D