Bring back --with-sys-screenrc configure flag.
[screen-lua.git] / src / INSTALL
blobe75b5892cbbafc017173bc6f446d64913d110980
1 Installation of screen3.6                                         jw 9.04.95
4 0.) This instruction is quite lengthy
5 -------------------------------------
6 .. and there are still important items near the end. Start here:
7 Unpack. Screen comes as a compressed tar archive. You need gzip to 
8 uncompress.  And... well, you probably already managed that step, 
9 when you are reading this.
11 For general documentation on the coding and usage standards this
12 distributions follows, see the GNU standards document on
13 prep.ai.mit.edu:pub/gnu/standards.*, especially the `Makefile
14 Conventions', `Configuration', and `User Interfaces' sections.
16 0.) autogen.sh
17 --------------
18 First, run ./autogen.sh. This will create configure file that you can use.
20 1.) configure & config.status
21 -----------------------------
22 Run configure. This should create a reasonable Makefile and a config.h file
23 suited for your machine. Rename config.status to reflect the architecture 
24 (hostname) where it was built. To reconfigure quickly for that architecture
25 just run that config.status file.
26 If this process fails, try to find out what configure did do and what it
27 should have checked. Mail me.
28 Actually the initial Makefile that comes with the distribution just runs
29 configure -- thus you can start by typing 'make' right after unpacking.
30 You will be prompted to run 'make' again, which will really make screen.
32 2.) Makefile & config.h
33 -----------------------
34 Look through the Makefile & user configuration section in config.h and check
35 pathnames. Change them to suit your installation requirements. Usually 
36 sysadmins discuss the location of SOCKDIR, whether it should be in /tmp or 
37 not. At least it must be on a filesystem that supports sockets/fifos.
38 SOCKDIR must not point into an AFS (Andrew File System) mounted directory. 
39 If you are uncertain about your NFS implementation, use a UFS directory for 
40 SOCKDIR. Personally, I favour a users home directory and recommend the the 
41 /tmp/ area. 
42 The path for ETCSCREENRC may also need to be adapted.
44 3.) how to actually compile 
45 ---------------------------
46 Run 'make'. Screen should compile without too many warnings :)
47 The creation of term.h, comm.h, tty.c or osdef.h may fail on some machines
48 for some odd reason. (E.g. the sed under SCO-unix is known to be 
49 case-insensitive and breaks term.h.) If so, please mail a short description 
50 of the problem to screen-devel@gnu.org and use the files ending in .dist 
51 as a replacement (or in case of osdef.h retry with an empty file).
52 You can then try 'make install' (if you dare).
54 4.) where to install
55 --------------------
56 You may well run screen from your private binary directory and with a 
57 private socket directory like $HOME/.screen. But to have a full featured
58 screen and (from a users point of view) more secure pty's you should
59 consult a system administrator and discuss installing screen setuid-root
60 in some globally accessible directory like /usr/local/bin.
62 Consider this, when deciding whether you install screen setuid-root:
63 - On some machines root privileges are required to open pty's. 
64 - Pty's should be owned by the user, so that she can do chmod to prevent
65   intruder attacks. The PTYs used by screen will remain world read-writable
66   if screen is not installed setuid-root.
67 - Some commands only work properly when the pty is owned by the user.
68   These include mesg and biff.
69 - The ^At feature may need to lseek and read the kernel file to retrieve 
70   the load average. 
71 - On most machines utmp slots can only be created/manipulated with root
72   privileges. Users will appear to be logged on the primary terminal
73   instead of the screen windows, if screen is not installed setuid-root.
74 - Multi-user screen sessions are only allowed when screen has a root-s-bit.
75 - If screen sockets of multiple users are kept in one directory (e.g. 
76   /tmp/screens), this directory must be world writable when screen is not
77   installed setuid-root. Any user can remove or abuse any socket then.
78   
80 5.) doc/screen.1 & doc/screen.texinfo
81 -------------------------------------
82 The man page doc/screen.1 should go to /usr/local/man/man1, or some similar
83 directory. It should format nicely with nroff -man. If it does not, then
84 try removing extra dots with: sed -e 's/^\.\././' < screen.1 | nroff -man 
85 The info page doc/screen.texinfo contains basically the same information as
86 the man-page, we may have missed one or another thing in one of the files.
87 If so, mail me.
89 6.) etc/screenrc & etc/etcscreenrc
90 ----------------------------------
91 The files screenrc and etc/etcscreenrc are instructive samples that
92 demonstrate what can/should be done from your private .screenrc and from
93 $ETCSCREENRC -- do not just copy them. Read them.  Look through the 
94 etcscreenrc file for system wide defaults that you like to set. e.g. 
95 autodetach off, startup_message off, vbell on, ...
96 Since version 3.2.15 the screenrc file syntax changed slightly. All rc files
97 from previous versions should be run through the 'newsyntax' script that comes 
98 with this package.
99 If and only if you want to install screen as a console multiplexer, look
100 at the *.sample files and what 'make cscreen' suggests.
102 7.) terminfo/screeninfo.src & terminfo/screencap
103 ------------------------------------------------
104 Every now and then we update the termcap/terminfo entries for screen. 
105 E.g. keycodes were added in 3.6.0 -- thus you check that your termcap/terminfo
106 database is up to date. See the README in the terminfo subdirectory.
108 8.) have fun
109 ------------
110 To get an idea what the basic screen commands are, read the file README.
111 Request snail mail address for liquid and solid donations. :-)
113 Juergen & Michael. (screen@uni-erlangen.de)