summaryrefslogtreecommitdiff
path: root/debian/README.Debian
blob: 71ce07d7a7055ce6b69899b8bf600725386b2549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Screen Information
------------------
See the copyright file for information about where to get screen, licensing,
and other assorted information.


Debian Modifications
--------------------
  * added Debian package maintenance files
  * Use /var/run/screen as socket directory
  * Make it set-gid "utmp" instead of setuid root


Debian Screen Q&A
-----------------

Q: shift+page up in xterm/gnome-terminal/konsole used to let me scroll back a
   bit, but now it doesn't. How can I make it work with scrollback?

A: It doesn't scrollback consistently because screen (the program) displays in
   xterm's alternate screen buffer.

   To have screen use xterm's normal screen buffer (which includes scrollback),
   you can add the following to your .screenrc:

   termcapinfo xterm|xterms|xs|rxvt ti@:te@


Q: Screen sets my xterm titlebar. I don't like this, how do I make it stop?

A: The titlebar setting is set in the /etc/screenrc by telling screen that some
   of the GUI terminals have a hardstatus line and that it can be set by
   sending the xterm escape sequences that set the title/icon.

   # Set the hardstatus prop on gui terms to set the titlebar/icon title
   termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007

   You can override this on a system wide basis by commenting out this line in
   the /etc/screenrc or you can override it in your personal screenrc by adding
   the following line:

   hardstatus alwaysmessage


Q: Why do I get #!$@#$@!% trailing spaces when I cut and paste from mutt
   running within screen?
Q: Why does the statusbar in my irc client extend to the end of the screen
   in xterm but not in screen?

A: This has to do with handling of the bce terminal attribute, or lack
   thereof by default in screen. You can enable bce on a per-user basis by
   adding the following to your .screenrc:

   defbce on
   term screen-bce

   NOTE: if you do this your TERM will be screen-bce. When you login to
         other machines they may not have a screen-bce terminal type, so you
         will see errors. To fix this you must put the terminfo for screen-bce
         on that remote machine. The screen terminfo is found in
         /usr/share/doc/screen/terminfo/screeninfo.src and you can compile it
         on the remote machine using tic(1).


Q: Screen doesn't notice when I resize the term - what's wrong?

A: Firstly look for the same question in FAQ.gz. If the problem persists:
   There have been reports of sshd instances blocking SIGWINCH (presumably
   restarted from aptitude and thus inheriting its signal mask) which therefore
   also prohibit remote screen sessions from ever seeing the signal. Have a
   look at the old bugreport <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392302>
   for means to determine whether you are affected. (You might have to restart
   sshd with a crontab entry or similar magic if ssh is your only way to access
   the box.)


Q: Multiuser mode is not working - how can I enable it?

A: Screen has to be setuid root to accomplish this. (Note the security implications
   this has! Also bear in mind that setuid programs remove some variables from their
   environment for exactly this reason - see ld.so(1).) If you still want to enable
   the feature, you may do so with the following commands:

] dpkg-statoverride --add root utmp 4755 /usr/bin/screen
] chmod 0755 /var/run/screen

   dpkg-statoverride will make sure that the modified permissions remain in effect
   even if a new version of the screen package is installed. /var/run/screen will
   be automatically recreated with the proper permissions if the directory lives
   on volatile storage (doesn't persist between subsequent reboots).