Thread View: comp.os.linux.misc
5 messages
5 total messages
Started by root
Thu, 08 Jan 1998 00:00
Hack to play Quake 2 with no CD
Author: root
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
40 lines
1802 bytes
1802 bytes
#!/bin/sh #q2nocd - #Hack to get around the cd requirements in Quake2. #Quake simply looks for a mounted iso9660 filesystem #with a file called quake.exe in it's root. Yes, quite pathetic. #Made against Quake2-linux v3.10 You mileage may vary with newer #ones. (if the zoid man applies himself better) # #This script requires you to have mkisofs installed. (v1.11+??) #Redhat, Debian, et al should have a package for it. #If not ftp.debian.org debian/stable/source/otherosfs/ #has source # #It also requires you to have kernel loop back support compiled in #If you are such a dumb monkey you can't recompile your kernel #you should be able to dump the resulting file to a floppy #and mount that.... IE #cat q2nocd.iso>/dev/fd0 #mount -t iso9660 /dev/fd0 /mnt # #Happy fraggin' -- Powersurge (Oh yeah! Ba-Ba-Booey Ba-Ba-Booey Ba-Ba-Booey) #Hack according to your needs #Where to do all this TMP="/tmp" QPATH="." mkdir $TMP/q2nocd echo>$TMP/q2nocd/quake2.exe mkisofs -o $TMP/q2nocd.iso $TMP/q2nocd mount -t iso9660 -o loop $TMP/q2nocd.iso $TMP/q2nocd $QPATH/quake2 umount $TMP/q2nocd rm -R $TMP/q2nocd rm $TMP/q2nocd.iso
Re: Hack to play Quake 2 with no CD
Author: root
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
10 lines
794 bytes
794 bytes
> > $QPATH/quake2 > Something like this would be more useful: QOPT="+set vid_ref softx" $QPATH/quake2 $QOPT $@
Re: Hack to play Quake 2 with no CD
Author: Daniel Hartwig
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
24 lines
1066 bytes
1066 bytes
hahahahaha you are a real funny guy you know that hahahahaha root wrote in message <691fma$ltl$1@ha2.rdc1.nj.home.com>... <some real shi7 instructions to CD patch Quake2-linux> hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha chow hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha hahahahaha
Re: Hack to play Quake 2 with no CD
Author: Raymond Morsman
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
11 lines
880 bytes
880 bytes
On Thu, 8 Jan 1998 17:45:52 +0800, "Daniel Hartwig" <dhartwig@wanet.com.au> wrote: >hahahahaha >you are a real funny guy you know that >hahahahaha > No, why? Or are you one of those pathetic arses who hasn't got a life of his own?
Re: Hack to play Quake 2 with no CD
Author: Douglas Winslow
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
43 lines
2212 bytes
2212 bytes
root wrote: > > #!/bin/sh > #q2nocd - > #Hack to get around the cd requirements in Quake2. > #Quake simply looks for a mounted iso9660 filesystem > #with a file called quake.exe in it's root. Yes, quite pathetic. Wouldn't it be easier just to make the filesystem image once and leave it standing by for mounting instead of having a shell script remake the image every time you run Quake 2? Kind of like what I did 3 days ago.. --> http://www.min.net/~douglas/quake2cd.html Plus, since the echo redirection happily follows symbolic links, you've just given any non-root user on the system the means to overwrite any file on your machine. lamer@xyzzy$ ls -l /etc/passwd -rw-r--r-- 1 root root 48173 Jan 6 00:39 /etc/passwd lamer@xyzzy$ cd /tmp lamer@xyzzy$ mkdir q2nocd lamer@xyzzy$ cd q2nocd lamer@xyzzy$ ln -s /etc/passwd quake2.exe [Meanwhile, in root-land...] bash# ./q2nocd.sh [Game bombs out, no CD mounted] lamer@xyzzy$ ls -l /etc/passwd -rw-r--r-- 1 root root 1 Jan 9 13:54 /etc/passwd If someone made the symbolic link to /dev/hda, you'd end up overwriting the first byte of your bootstrap. Maybe 'touch $TMP/q2nocd/quake2.exe' would work better. Either that or change $TMP's path to something more sensible. -- ###:::###:::###:::###:::# Douglas Winslow - douglas@min.net ##:::###:::###:::###:::## http://www.min.net/~douglas/ #:::###:::###:::###:::### Linux: First to patch Pentium 0F C7!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads