Linux – Taking over an existing TTY session remotely
Posted by white_b on 23 Oct 2007 at 06:41 pm | Tagged as: Linux
Some of us have run across situations where we want to be able to keep user-mode programs running in a Linux TTY session, but still want to be able to manage them remotely through SSH or other means.
One solution is the ‘linuxvnc’ utility, which can grab a TTY session and display it for use in a VNC window. I will be covering this utility, as tested on Ubuntu 7.04 Feisty (although it should work for virtually any distro).
For starters, let’s grab linuxvnc from the repositories with apt:
sudo apt-get install linuxvnc
Once that is done, fire it up: (root access is required to grab TTYs)
sudo linuxvnc X
Where ‘X’ is the TTY # you want to grab. linuxvnc should indicate that it’s listening on port 5900.
You can now connect with any VNC client, such as RealVNC, KRDC, or whatever. One thing I’ve noted is that KRDC has trouble with linuxvnc sessions if it attempts to use ‘Tight’ VNC encoding. I would recommend using zlib instead.
Of course if you’re using VNC over the Internet, I strongly recommend tunneling it through SSH. That, however, is a tip for another day.
Man, this is a very good solution, thank you very much
my sister is super addicted to Bejeweled 2. she plays it from afternoon to midnight. i find it quite an interesting game.”;.
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
last year i was so addicted with the Bejewelled game and i played all night;,`
last year i was so addicted with the Bejewelled game and i played all night~“
found your site on del.icio.us today and really liked it.. i bookmarked it and will be back to check it out some more later