Sunday, 24 April 2016

Ubuntu 16.04 Server

Having got the remnants of a machine running, I decided to put Ubuntu 16.04 server onto it and then add the lxde desktop and finally set up vncserver on it.

Once the initial install was completed, I connected to the machine via ssh and installed the lxde desktop and vncserver with:

sudo apt-get install lubuntu-desktop tightvncserver openssh-server

I had some issues with permissions on some of the files and folders, so had to resolve that with

sudo chmod 0700 -R .config
sudo chmod 0700 -R .local
sudo chmod 0700 -R .vnc

Then it was time to run vncserver with:

vncserver -depth 16 -geometry 1024x768

At this point you are asked to enter a password

We're still not finished, that has created the basic setup for connection but the config file now has to be modified, so run:

vncserver -kill :1

And then nano ~/.vnc/xstartup

All you need in that file is this:

xsetroot -solid grey
vncconfig -iconic &
startlxde &

Save and exit and then run:

vncserver -depth 16 -geometry 1024x768

You should now be able to connect to your machine remotely using 

vncviewer machinename:1

No comments:

Post a comment