fredag 2 september 2016

Installing a lightweight JWM (3MB of memory)+VNC desktop environment on your Ubuntu/Debian VPS

Installing a lightweight JWM (3MB of memory)+VNC desktop environment on your Ubuntu/Debian VPS 


Make sure Debian is the latest and greatest


apt-get update
apt-get upgrade
apt-get dist-upgrade

Install X, JWM, VPN programs

 
apt-get install xorg xrdp jwm tightvncserver 
  
 

Start VNC to create config file

 
tightvncserver :1 

Then stop VNC 

 tightvncserver -kill :1



Edit config file to start session with JWM: 

apt-get install nano
nano ~/.vnc/xstartup  

Add this at the bottom of the file:


[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
jwm &
 

Restart VNC 

tightvncserver :1


You then connect using the VNC viewer of your choice on your local computer. I use the "VNC Free Edition Viewer for Windows Stand-Alone Viewer" at: http://www.realvnc.com Configure the viewer to access your VPS at: xxx.xxx.xxx.xxx:5901.