This guide will walk you through installing a VNC desktop on Ubuntu 14.04 with the free VNC software, TightVNC.<\/p>\n
We need to install the following components for a proper desktop with VNC.<\/p>\n
Run the following command to install them.<\/p>\n
sudo apt-get install xorg lxde-core tightvncserver\r\n<\/code><\/pre>\nStep 2: Setup VNC<\/h3>\n
We have to set up a VNC password for our VNC connection. This password is limited to 8 characters in length. Longer passwords will be truncated.<\/p>\n
tightvncserver :1\r\n<\/code><\/pre>\nNext, we need to config the xstartup because VNC doesn’t know how to launch LXDE.<\/p>\n
nano ~\/.vnc\/xstartup\r\n<\/code><\/pre>\nIn this file…<\/p>\n
\n- Remove the\u00a0
#<\/code>\u00a0before\u00a0#x-window-manager &<\/code><\/li>\n- Add the line\u00a0
lxterminal &<\/code><\/li>\n- Add the line\u00a0
\/usr\/bin\/lxsession -s LXDE &<\/code><\/li>\n<\/ul>\nYour config should now resemble the following:<\/p>\n
#!\/bin\/sh\r\n\r\nxrdb $HOME\/.Xresources\r\nxsetroot -solid grey\r\n#x-terminal-emulator -geometry 80x24+10+10 -ls -title \"$VNCDESKTOP Desktop\" &\r\nx-window-manager &\r\nlxterminal &\r\n\/usr\/bin\/lxsession -s LXDE &\r\n# Fix to make GNOME work\r\nexport XKL_XMODMAP_DISABLE=1\r\n\/etc\/X11\/Xsession\r\n<\/code><\/pre>\nSave the file with\u00a0Ctrl + O<\/strong>, then exit nano with\u00a0Ctrl + X<\/strong>.<\/p>\nStep 3: Restart VNC<\/h3>\n
To restart VNC we have to shut it down with:<\/p>\n
tightvncserver -kill :1\r\n<\/code><\/pre>\n… and start it again:<\/p>\n
vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565\r\n<\/code><\/pre>\nStep 4: Connect to the VNC server<\/h3>\n
Start your favorite VNC Client and connect to your server’s IP with the ending\u00a0:1<\/code>. For example:\u00a0123.123.123.123:1<\/code>.<\/p>\nEnjoy your new VNC server!<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,247],"manual_kb_tag":[459],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2919"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2919"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2919\/revisions"}],"predecessor-version":[{"id":2921,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2919\/revisions\/2921"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2919"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2919"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}