The website of Lei Chen

Sunshine and rain of a developer

Archive for the ‘screen’ Category

SSH+SCREEN in one command

Posted by hide1713 on May 2, 2009

I always have to login a ssh shell first and start screen manually. I found a trick to login and start screen in one command. That’s very useful.

ssh -t the_server_alias “screen -d -r”

In order to run this command, you need to configure ssh so that  you don’t need to type password to login. There are many tutorials out there to teach you how to do this. After you can login without password, you want to put the following line in your .bashrc

alias what_every_you_want=”ssh -t the_server_alias \”screen -d -r\”"

That’s it.

Posted in screen | Leave a Comment »

GNU screen scroll by PageUp and PageDown

Posted by hide1713 on November 14, 2008

Add this line in your .screenrc  Use shift+pageup/pagedown to scroll

termcapinfo xterm* ti@:te@

Posted in screen | Tagged: , | Leave a Comment »

screen tip: How to send Ctrl a to application

Posted by hide1713 on November 9, 2008

screen is a powerful window management tool under linux

All it’s command starts with ctrl+a ,so If you want to send ctrl+a to an application (like emacs), you can type

ctrl+a a

This tip is hard to find, so I post it.

Posted in screen | Tagged: , | 2 Comments »