Posts Tagged ‘screen’

Shortcut resuming screen

Monday, October 27th, 2008

Whenever I SSH to my desktop machine the first thing I do— always— is resume my previous screen session. The following command runs ssh and resumes screen in one fell swoop:

ssh -t ulysses "screen -d -r"

I stick that in a script called homebase and bind a hotkey, [Windows]-h, to

gnome-terminal -e ~/scripts/homebase

in Openbox so I’m only ever one key away.

source

A nice .screenrc

Friday, October 3rd, 2008

Code:

screen -t rtorrent rtorrent
screen -t irssi irssi
screen -t centerim centerim
screen -t ncmpc ncmpc -c
screen -t bash4
screen -t bash5
screen -t bash6
screen -t bash7
screen -t bash8
screen -t bash9
altscreen on
term screen-256color
bind ',' prev
bind '.' next

#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
#hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'

Source

How to split screen your command line

Sunday, August 24th, 2008

Have you ever been using your command line and found that you would like to see the man page in front of you and also be able to craft your command without the wasted resources of a X-Server on your Linux server?

This may seem pretty elementary to some of you 1337 haxtorizors, but I think this tip is important to post in order to help Linux beginners accelerate their learning experience and ease of use.

(more…)

Using Screen for Session Management in your terminal

Tuesday, March 18th, 2008

Screen is a session management utility for the unix/linux terminal. It serves multiple functions. Say you’re on a linux box and not running X Windows but you have the need to run multiple applications at once, without a window manager like we’re accustomed to in a GUI environment this can be troublesome, enter Screen. Screen allows you to run multiple instances of your terminal and switch back and forth between those instances with a stroke of the keyboard.

But Screen also serves another function. Have you ever been working remotely via an SSH session while in the middle of a running an app or working on a file and all of a sudden the connection simply drops? Again, Screen is here to save the day.

(more…)