Let's imagine we have this situation - we have 2 PCs some distance apart (one is at home, the other in an office). The PC in the office had restarted and awaits login (via virtual console, no fancy login manager; it's running Arch btw :)). Its SSH daemon is running so the PC at home can reach it with no problems. The question is how the PC at home can (via SSH) access the virtual console #1 on the office PC, login (if needed) and then run startx
, so X will run as usual (as if it was ran locally). As you know running startx
directly from SSH terminal doesn't work.
1 Answer
You can change your virtual terminal and start X11 like this:
sudo chvt 1 # change to virtual terminal 1
sudo startx # start X11
Note that chvt
also allows you to run fim
(and probably fbi
) via an ssh
session:
ssh somewhere
sudo chvt 1
sudo fim -a -T1 image.png
vnc
andvncpassword
options?