just a logo :)

search:



imprint







Slim Desktop Install
Entry Nr. 1077, by user 1
On a fresh Debian 8 installation, this will install a slim desktop with a browser that will be available via vnc:

apt-get update && apt-get upgrade && apt-get install openbox tightvncserver chromium

To start the tightvncserver: tightvncserver -localhost (*)

Access the desktop:
1) ssh -L 5901:localhost:5901 -N -f -l USER HOST
2) vinagre 127.0.0.1:5901

You can simplify this by adding it as a function to your bashrc:

vnc_over_ssh() { ssh -L 5901:localhost:5901 -N -f $1; vinagre 127.0.0.1:1; pkill -f 'ssh -L 5901:localhost:5901'; while pgrep -f 'ssh -L 5901:localhost:5901'; do sleep 1; done; }


(*) The -localhost parameter is needed because tightvncserver has the problem that after a couple of failed logins, it completely blocks all connections. When you expose the vnc port to the internet that will inevitably happen and you cannot get hold of your X session anymore.

One other solution is to ssh into the box, run x11vnc to connect to the existing X session and then connect to x11vnc:

x11vnc -passwd somefunnypassword -display :1

Another solution is to simply kill the tightvncserver with "tightvncserver -kill :1"