I'm updating the official binary to be built on a Redhat 8.0 system. This should give the binary some legs if we take a while to get the next release out.
89 lines
3.2 KiB
Plaintext
89 lines
3.2 KiB
Plaintext
NetHack 3.4.1 Linux Elf
|
|
|
|
This README provides the instructions for using the official Linux binary,
|
|
system platform requirements, as well as steps used to create that binary.
|
|
The same steps can be used from the source distribution to create a similar
|
|
binary.
|
|
|
|
The official Linux binary has support for tty and X11 windowing systems, but
|
|
not Qt. This means you will need to have X11 libraries installed on your
|
|
system to run this binary, even in its tty flavor.
|
|
|
|
|
|
The Linux binary package assumes that you have a user and a group named
|
|
"games" on your system. If you do not, you can simplify installation by
|
|
creating them first.
|
|
|
|
gunzip and untar the package, preserving permissions, from / to put the
|
|
NetHack files in /usr/games/nethack and /usr/games/lib/nethackdir.
|
|
|
|
(If you have old record and logfile entries from a previous NetHack version,
|
|
you might want to save copies before they get overwritten by the new empty
|
|
files; old saved games and bones files from 3.4.0 will work with 3.4.1).
|
|
|
|
In addition to data files for running the game, you will find other useful
|
|
things in /usr/games/lib/nethackdir (such as a copy of this README :-).
|
|
|
|
The general documentation Guidebook.txt and the processed man pages
|
|
nethack.txt and recover.txt should provide an introduction to the game.
|
|
|
|
The sample config file called dot.nethackrc can be used by copying
|
|
it to your home directory as .nethackrc and modifying it to your liking.
|
|
|
|
If you are running X11 copy the nh10.pcf and ibm.pcf font files from
|
|
/usr/games/lib/nethackdir to a X11 fonts directory (such as
|
|
/usr/X11/lib/X11/fonts/misc) and run "mkfontdir", then restart X
|
|
windows to load them. Also consider putting NetHack.ad in
|
|
/usr/X11/lib/X11/app-defaults or its contents in your .Xdefaults or
|
|
.Xresources.
|
|
|
|
|
|
The official Linux binary is set up to run setgid games, which allows
|
|
multiple users on your system to play the game and prevents cheating by
|
|
unprivileged users. The usual default for NetHack is setuid games, but
|
|
this causes problems with accessing .nethackrc on distributions with
|
|
restrictive default security on home directories and users who don't know
|
|
the tradeoffs of various permission settings.
|
|
|
|
|
|
If you have problems, send us some email.
|
|
|
|
nethack-bugs@nethack.org
|
|
|
|
|
|
|
|
Steps used to build this binary release
|
|
|
|
System: gcc-3.2, XFree86-libs-4.2.0, ncurses-5.2, glibc-2.2.93
|
|
|
|
0. Makefile.top: GAMEGRP = games
|
|
GAMEPERM = 02755
|
|
FILEPERM = 0664
|
|
EXEPERM = 0755
|
|
DIRPERM = 0775
|
|
VARDATND = x11tiles pet_mark.xbm rip.xpm
|
|
|
|
1. Makefile.src: define LINUX and linux options throughout
|
|
WINSRC = $(WINTTYSRC) $(WINX11SRC)
|
|
WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
|
|
WINTTYLIB = /usr/lib/libncurses.a
|
|
Include Xpm libs in WINX11LIB
|
|
WINLIB = $(WINTTYLIB) $(WINX11LIB)
|
|
|
|
2. Makefile.utl: define LINUX and linux options throughout
|
|
Use bison/flex instead of yacc/lex
|
|
|
|
3. config.h: define X11 window support, XPM support.
|
|
define COMPRESS as /bin/gzip as that is where it
|
|
seems to reside on newer Linux's.
|
|
define COMPRESS_EXTENSION as ".gz"
|
|
define DLB
|
|
|
|
4. unixconf.h: define LINUX
|
|
define TIMED_DELAY
|
|
|
|
5. make all; su; make install
|
|
|
|
6. Convert nh10.bdf and ibm.bdf to proper font files and place in
|
|
font path.
|