INSTALL.Quake2 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. INSTALL for Linux Quake2
  2. ------------------------
  3. Quake2 for Linux supports the following video subsystems:
  4. - SVGALib Console Graphics (ref_soft.so)
  5. - Requires SVGALib 1.2.0 or later
  6. - X11 Window Graphics (ref_softx.so)
  7. - X11R5 or later, XShm shared memory extension supported
  8. - 3DFX fxMesa with Mesa 3-D or 3DFX Miniport (ref_gl.so)
  9. - Mesa 3-D 2.6 or later, specifically compiled for 3DFX support
  10. Mesa 3-D 2.6 compiled with 3DFX support is provided with this archive.
  11. - Generic glX (X11) based OpenGL (ref_glx.so)
  12. - Requires a glX based hardware accelerated OpenGL implementation.
  13. Mesa 3-D 2.6 supports this on 3DFX hardware.
  14. Also included is a specific 3DFX mini-OpenGL implementation for running Quake2
  15. on 3DFX hardware.
  16. Installation
  17. ------------
  18. Mount the Quake2 CD as one would usually mount a CDROM, this can be
  19. accomplished by using the command:
  20. mount /dev/cdrom /mnt
  21. As root. Once the CD is mounted, run the setup script on the CD as root.
  22. $ su
  23. Password:
  24. # mount /dev/cdrom /mnt
  25. # /bin/sh /mnt/setup
  26. The script will ask some questions about what options you want to install
  27. and automatically install the software into /usr/local/games/quake2.
  28. Make sure you have the appropirate hardware, drivers and libraries installed
  29. for the renderer you are going to play on.
  30. Quake2 for Linux supports the following renderers:
  31. - ref_soft
  32. Software rendering under SVGALib (console only). SVGALib 1.2.10 or later
  33. is required. Note that SVGALib 1.2.11 supports the ability to run a
  34. SVGALib application under X11 as it will automatically allocate a new
  35. console. The default mode is 320x240 (ModeX) since that is the lowest
  36. resolution supported by Quake2. If SVGALib supports your video card, higher
  37. resolution modes such as 640x480 and 800x600 are also supported.
  38. Please note that you may need to configure your mouse for SVGALib in
  39. /etc/vga/libvga.config (or /etc/libvga.config).
  40. - ref_softx
  41. Software rendering under X11. This uses the MITSHM Extension and should
  42. work will virtually all Linux X Servers. **NOTE: Do not resize the window
  43. under X11. You must use the Video menu to change resolution/window size.
  44. By default, the mouse will not be 'tied' to the Quake2 window. To cause
  45. Quake2 to grab the mouse, select 'Windowed Mouse' from the video menu,
  46. or type '_windowed_mouse 0' at the console. Do the reverse to release it.
  47. You can bind keys to grab and release the mouse in the console, like so:
  48. bind i "_windowed_mouse 1"
  49. bind o "_windowed_mouse 0"
  50. Then "i" will grab the mouse and "o" will release it.
  51. - ref_gl
  52. This render can be run with two different OpenGL drivers: Mesa 3-D
  53. ontop of Linux GLIDE, or 3DFX's mini-OpenGL Quake driver.
  54. For Mesa 3-D, the necessary libMesaGL.so.2.6 is included with this archive.
  55. You must copy it to /usr/lib or /usr/local/lib and run ldconfig (as root)
  56. in order to use it. You can do this as follows:
  57. tar cf - lib*GL* | (cd /usr/lib; tar xf -)
  58. You should use tar to keep the symlinks intact. Once you copy them over
  59. run ldconfig.
  60. You must also download and install the Linux GLIDE drivers at
  61. http://www.3dfx.com/software/download_glidel.html
  62. And install them as instructed.
  63. RPMs for GLIDE are available at :
  64. http://glide.xxedgexx.com/3DfxRPMS.html
  65. With version 3.20, the GL library is entirely runtime loaded. This means
  66. you can specify what shared object to load for GL display.
  67. To use Mesa 3-D GL (console), run quake with:
  68. ./quake2 +set vid_ref gl +set gl_driver libMesaGL.so.2
  69. To use the 3DFX OpenGL Miniport, run the included quake2.3dfxgl:
  70. ./quake2 +set vid_ref gl +set gl_driver lib3dfxgl.so
  71. The gl_driver cvar indicates the name of the library to load for GL
  72. functions. It can be in any directory listed in /etc/ld.so.conf
  73. or in /etc/quake2.conf
  74. **NOTE: There is a problem on libc5 systems where a vid_restart (causing
  75. a reload of the video system) will crash. There doesn't seem to be a
  76. solution to this yet. It looks to be some sort of ld.so dynamic loading
  77. interaction with SVGALib and ref_gl.so. A work around is to start in
  78. software mode (./quake2 +set vid_ref soft), then use the menu to set your
  79. mode and a vid_restart will work when going from software to GL. Exit
  80. out then and save your video mode settings.
  81. This problem does not occur on libc6 (glibc) based systems; vid_restart
  82. works fine on there.
  83. - ref_glx
  84. ref_glx should run on many different hardward OpenGL implementations under
  85. Linux and X11. This binary is an X11 application and must be run under
  86. X11. It will work with Mesa 3-D as a standard glX based OpenGL
  87. applications. If the Mesa 3-D library is compiled with 3DFX support,
  88. you can have Mesa 3-D support 3DFX hardware under X11 by setting the
  89. enviroment variable "MESA_GLX_FX" to "fullscreen" for fullscreen mode
  90. and "window" for windowed mode, eg. "export MESA_GLX_FX=fullscreen" for sh
  91. or "setenv MESA_GLX_FX fullscreen" for csh.
  92. As with ref_gl, the "gl_driver" cvar indicates the shared library to load
  93. for OpenGL functions (the glX functions must provided in that library
  94. as well).
  95. Permissions
  96. -----------
  97. Quake2 requires root permissions to use the software (SVGALib) and GL (MesaGL
  98. w/3dfx) renders. In order to make this secure, some special considerations
  99. must be made.
  100. Quake2 should get setuid root:
  101. chown root quake2
  102. chmod 4711 quake2
  103. And the ref_soft.so and ref_gl.so files must owned by root.
  104. The file /etc/quake2.conf must be installed. This file contains a single
  105. line with the path of where the ref shared libraries can be found.
  106. A sample one is included that lists /usr/games/quake2 as the default
  107. path. The libraries are only loaded out of the directory listed in
  108. /etc/quake2.conf for security considerations.
  109. Special permissions are not required for the softx renderer, but quake2 may
  110. still need to be setuid root to open the sound device (quake2 will give up
  111. setuid root permissions before loading softx).
  112. NOTE: If you use a setuid quake2 binary and run it as a normal user, it
  113. will NOT be able to switch renderers on the fly because root permissions
  114. are given up after the renderer is loaded. You can switch renderers on the
  115. fly if you run quake2 as root (su or log in as root).
  116. NOTE: When the quake2 binary is run in dedicated server mode
  117. (+set dedicated 1), no special permissions are required and
  118. /etc/quake2.conf is not read since no renderer is loaded.
  119. ----
  120. The first time you run Quake2, it will use ref_soft or ref_softx based
  121. on whether a DISPLAY environment variable exists.
  122. To force the loading of a specific renderer at load time, use the following
  123. command lines:
  124. ./quake2 +set vid_ref soft
  125. ./quake2 +set vid_ref softx
  126. ./quake2 +set vid_ref gl
  127. ./quake2 +set vid_ref glx
  128. Linux Specific Cvars
  129. --------------------
  130. To set this, use +set on the command line, i.e.:
  131. ./quake2 +set cd_dev /dev/hdc +set sndmono 1
  132. nocdaudio (defaults to 0)
  133. Do not enable cd audio if not zero
  134. sndbits (defaults to 16)
  135. Set sound bit sample size.
  136. sndspeed (defaults to 0)
  137. Set sound speed. Usual values are 8000, 11025, 22051 and 44100.
  138. If set to zero, causes the sound driver to attempt speeds in the following
  139. order: 11025, 22051, 44100, 8000.
  140. sndchannels (defaults to 2)
  141. Indicates stereo or mono sound. Defaults to 2 (stereo). Use 1 for mono.
  142. nostdout (defaults to 0)
  143. Whether to output console msgs to standard out. Non-zero is cease output.
  144. Dedicated server
  145. ----------------
  146. To run Linux Quake2 as a dedicated server, just run it as follows:
  147. ./quake2 +set dedicated 1
  148. You can also set dmflags, timelimit, etc. in a config file, like so:
  149. set timelimit 20
  150. set fraglimit 25
  151. set dmflags 532
  152. map fact3
  153. Then exec that config file on load, like so:
  154. ./quake2 +set dedicated 1 +exec server.cfg
  155. If you use a config file, you must put a 'map' command in it or the
  156. server won't load a map.
  157. To run a dedicated server in the background, use this;
  158. nohup ./quake2 +set dedicated 1 +exec server.cfg &
  159. A better way is to run Quake2 on a tty via screen. screen can be found
  160. at ftp://prep.ai.mit.edu/pub/gnu/screen-3.7.4.tar.gz, but it comes with
  161. most modern Linux installations now.
  162. -----------------------------------------------------------------------------
  163. Linux Quake2 is an unsupported product. Usage of this product is bound by
  164. the legal notice found on the distribution Quake2 CDROM.
  165. /// Zoid
  166. zoid@idsoftware.com