#Fix the vi direction/delete key not working issue sudo apt-get remove vim-common sudo apt-get install vim
#Install net tools to test network sudo apt install net-tools netstat -tulpn
Launch VNC server and set access password
vncserver :1
#Telnet to test VNC server it's running telnet localhost 5901
Connecting to VNC From your Desktop
Download and install the RealVNC Viewer on your laptop. Create a connection and specify your ubuntu address with the port 5901 and connect it, remember to input the password you just set.
Connecting to VNC From your Desktop
You may see the blank Gnome desktop after you connect to your VNC server.
Press enter or click to view image in full size
Fix the VNC grey screen issue
You should modify the xstartup script to fix this issue.
vi .vnc/xstartup
xstartup content
#!/bin/sh
# Uncomment the following two lines for normal desktop: #unset SESSION_MANAGER #exec /etc/X11/xinit/xinitrc