alternativen zu screen

since two days ago i discovered byobu:

task spooler is a Unix batch system where the tasks spooled run one after the other

advantages over screen (after they switched from screen-backend to the tmux-backend):

* screen makes the scrollbars in konsole useless (also true for tmux), thus one can only scroll back the buffer using ctrl+a | pgup. byobu behaves more like a normal shell which makes it usable as gui shells like gnome-terminal or konsole do have scrollbars which can be used  
* sessions are automatically resumed when typing 'byobu' after login
* nice default footer with: 
 * how many virtual shells are opened
 * uptime
 * amounts of cores
 * load+memory information
 * system date + time  

screen befehle

screen, siehe

  • Neue Console mit:
CTRL+a c
  • Umschalten
CTRL+a leertaste
  • screen detachen
CTRL+a d
  • screen resume
screen -r [pid|pty|titel]
  • screen syncen
1. screen auf system starten
2. mit ssh extern einloggen
3. screen -x
4. (xconsole auf vt100 einstellen)
Nun sieht der user A was B auch sieht
  • screen teilen
CTRL+a S
  dann noch
CTRL+a TAB
  größe mit 
CTRL+a +
CTRL+a -
CTRL+a Q         hebt teilung auf!! dann
CTRL+a F         hebt fensterteilung auf
  • copy'n'paste
CTRL+a [              copy mode starten
CTRL+a leertaste      1x copy mode starten::selektieren
CTRL+a leertaste      12 copy mode beenden::auswahl+copy
CTRL+a ]              pasten

config .screenrc in /root/

hardstatus alwayslastline "%{=b WR} %H %{= wk} %=[%l]%=%{-} %LD, %LM %d, %Y - %c:%s "
caption always "%?%F%{= BY} %:%{= wK} %?%-Lw %{!r} %n%f %t %{-} %+Lw%=%? [%h]%?"
bind = resize =
bind + resize +3
bind - resize -3
#bind _ resize max
defscrollback 10000
startup_message off
termcapinfo xterm* ti@:te@

custom screenrc for executing several commands

this setup is great when doing development where several programs need to be started at the same time

hardstatus alwayslastline "%{=b WR} %H %{= wk} %=[%l]%=%{-} %LD, %LM %d, %Y - %c:%s "
caption always "%?%F%{= BY} %:%{= wK} %?%-Lw %{!r} %n%f %t %{-} %+Lw%=%? [%h]%?"
bind = resize =
bind + resize +3
bind - resize -3
#bind _ resize max
defscrollback 10000

screen -t window0 0 top
select window0
split
focus down

screen -t window1 1 top
select window1
split
focus down

related work - xpra

Xpra is 'screen for X': it allows you to run X programs, usually on a remote host, direct their display to your local machine, and then to disconnect from these programs and reconnect from the same or another machine, without losing any state. It gives you remote access to individual applications.

 http://xpra.org/
Powered by MediaWiki