Linux - Games This forum is for all discussion relating to gaming in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-21-2004, 10:21 AM
|
#1
|
Member
Registered: Feb 2004
Distribution: Red Hat Linux 9
Posts: 61
Rep:
|
.sh? (first post)
hi all, this is my first post here, i am brandnew to linux, i have the redhat linux bible and a fresh install, im currently reading threw it when ever I can. I wanted to download the quake 3 demo at this path...
"ftp.idsoftware.com/idstuff/quake3/linux"
My book says download "linuxq3ademo-1.11-6.x86.gz.sh" so i did and it has no instuctions of how to install it. I know no one in my area who knows anything about linux, so here I am.
(i also tried the "linuxq3apoint-1.32b-3.x86.run" but it gave me some defult.ctf error )
thanks
also, do you know anything about transgaming.com? is it worth suscribing? can i get some info about how it works?
Last edited by RichardSimmons; 02-21-2004 at 10:53 AM.
|
|
|
02-21-2004, 11:03 AM
|
#2
|
Member
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558
Rep:
|
Unlike in Windows, there are permissions set for every file in Linux. Files need to be set 'executable' in order to run. File extension suffixes like '.sh' or '.run' or '.exe' do not provide this functionality, unlike in Windows. This is a security feature.
For the Quake 3 demo file, you need to set the permissions to execute. Do: chmod +x linuxq3ademo-1.11-6.x86.gz.sh. Then run it by doing: ./linuxq3ademo-1.11-6.x86.gz.sh (hint: just type ./linuxq3 then press the [TAB] key for autocompletion).
I've assumed that you've downloaded to your /home directory. One problem that I encountered when I tried Enemy Territory, is that I mount my /home to a different partition than my /. I couldn't run ET despite setting the permissions correctly. Then I figured out that my /etc/fstab (that's the filesystem table) wouldn't allow files to execute on the /home partition (this is also a security feature). To change this, edit /etc/fstab as root and look for the line with /home; then delete the option "noexec" from that line.
For more on permissions, read the Linux Cookbook, linked in my .sig
|
|
|
02-21-2004, 07:37 PM
|
#3
|
Member
Registered: Feb 2004
Distribution: Red Hat Linux 9
Posts: 61
Original Poster
Rep:
|
that worked great thanks! , quick question, do you use ./filenamehere to run programs with the .gz extention? is there always the dot and the slash?
|
|
|
02-21-2004, 09:24 PM
|
#4
|
Member
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558
Rep:
|
The ./ prefix refers to the current directory. When you execute a program, your OS first looks for the program in your PATH. The PATH in most distros include /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, and /usr/local/sbin. So, when you use the 'ls' command, your OS looks in /bin, and executes /bin/ls.
If your program is not in one of your PATH directories, you need to explicitly state the path when you execute the program. For example, in some distros, lilo is put in the /etc directory; to run lilo then, you need to type '/etc/lilo'.
However, if you've already changed into the /etc directory (cd /etc), then you can type './lilo' which will run lilo from the current directory (ie. /etc).
So, for your Quake 3 program, if it is your /home/user directory, you can run it by typing '/home/user/linuxq3*'; or cd /home/user then type './linuxq3*'
Again, there are no such things as "file extensions" in Linux/Unix. The .gz is simply part of the file name. You can rename your linuxq3ademo-1.11-6.x86.gz.sh file to something shorter, like quake3demo (ie. mv linuxq3ademo-1.11-6.x86.gz.sh quake3demo) and it will still run as before.
|
|
|
02-21-2004, 09:28 PM
|
#5
|
Member
Registered: Feb 2004
Distribution: Red Hat Linux 9
Posts: 61
Original Poster
Rep:
|
cool thanks
|
|
|
All times are GMT -5. The time now is 11:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|