
If you have the binary distribution, skip to 3.

1. What you need to build and install the program

 - You will need a make that can handle text transforming functions,
   e.g the GNU `make' utility.
 - You will also need svgalib 1.2.8 or later to compile the source. To run
   the binary there is no need for a bleeding edge version of svgalib. You can
   get svgalib by ftp from sunsite.unc.edu in the directory
   /pub/Linux/libs/graphics. As usual, you can just as easily get it from one
   of numerous mirrors. Actually you can use older versions of svgalib by
   uncommenting a small fix in the beginning of `./src/thrust.h' that defines
   the scancode of the letter p.
 - Root permissions so that svgalib can open the graphics display.

2. Building the program

 - In the directory that this file is in, type `make'. This will build the
   program `thrust'.
 - Be sure to use svgalib 1.2.8 or later as this version of svgalib defines
   more scancodes than previous versions.
 - At the top of the file `src/thrust.h' the speed of the game can be
   changed. You can fiddle with this setting if you are not satisfied
   with the feel of the steering.

3. Installing the program

 - Type `su' and enter root's password.
 - Then as root, type `make install'. This will copy the program `thrust'
   to `/usr/local/games' and it will also set the setuid flag as is required
   by all svgalib programs.
 - Also type `make install-man' and a man page `thrust.6' will be installed in
   `/usr/local/man/man6/'

Security concerns

 - All programs that use svgalib must be started as root. Either root starts
   the program, or the program is suid root so that everybody can run it as
   if they were root. A normal svgalib application give up its root priviliges
   right after the graphics have been initilized. Root priviliges are normally
   given up within the call to vga_init().
   However, `thrust' needs root priviliges after this in order to write a
   highscore file in `/var/games/thrust.highscore'. If you have security
   concerns that are stronger than your need for a highscore file, then take
   a look at the comment in the beginning of the main() function at the bottom
   of the file `src/thrust.c'.
