All the following only works for computers running Linux. If you run windows, install Linux.
(this all should be tested)
terminal access
You can access any Linux computer at the office like this:
- First, make sure you have an ssh server running: In Ubuntu, install the openssh-server packages. (Execute: sudo apt-get install openssh-server)
- First log in to molgate.ugent.be on port 45917. From there, you go to molmod29 with ssh. And then you can ssh to your pc. In short:
ssh -f -N -L 12345:molmod29.ugent.be:22 -p 45917 username@molgate.ugent.be
ssh -f -N -L 2222:molmodXX.ugent.be:22 -p 12345 username@localhost
ssh -p 2222 username@localhost
This will ssh you into your machine (molmodXX).
The config file should be something like,
Host molgate
HostName molgate.ugent.be
Port 45917
User <username>
LocalForward 12345 molmod29.ugent.be:22
LocalCommand ssh -f -N -L 2222:molmodXX.ugent.be:22 -p 12345 %r@localhost
Host mymachine
HostName localhost
Port 2222
User <username>
(untested)
Graphical remote desktop
If you want graphical access to your computer, you can use VNC. First, install x11vnc on your computer:
sudo apt-get install x11vnc
Next, you have to make sure it is running:
x11vnc -localhost -ncache 10
To make it start everytime you login to X, make a file at $HOME/.config/autostart/x11vnc.desktop with following content:
[Desktop Entry]
Type=Application
Exec=/usr/bin/x11vnc -localhost -ncache 10
Hidden=false
X-GNOME-Autostart-enabled=true
Name=x11vnc autostart
Comment=X11VNC autostart
After this, set up the needed port forward on your remote pc:
ssh -L 5900:localhost:5900 -p 2222 username@localhost
Now you can use any vnc client and connect to localhost on port 5900. For example use vinagre:
vinagre localhost:5900
Add the f option to go fullscreen.
