VNC to my Ubuntu 17.10

Just trying to setup a vnc server for me to connect to my linux box as I can access to the testing linux box easier 🙂
here is the easy way and steps for vnc server on my ubuntu 17.10 testing box.

1. install

sudo apt install xfce4 xfce4-goodies tightvncserver

2. setup xstartup

a) make a copy of xstartup ==> mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
b) nano ~/.vnc/xstartup
add the following to xstartup
xrdb $HOME/.Xresources
startxfce4 &

3. +x

sudo chmod +x ~/.vnc/xstartup

4. run vncserver


5. connect vnc server from my vnc client

6. result