Skip to content

Instantly share code, notes, and snippets.

@gegeriyadi
Last active April 19, 2018 07:36
Show Gist options
  • Save gegeriyadi/bd7c629be92a3e033278dbba9aefa5d7 to your computer and use it in GitHub Desktop.
Save gegeriyadi/bd7c629be92a3e033278dbba9aefa5d7 to your computer and use it in GitHub Desktop.

Install VNC Server on vps ubuntu 14.04

Follow this instruction to install vncsrver step by step

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04

if copy paste can't work u can do this:

install autocutsel

sudo apt-get install autocutsel

add autocutsel -fork on ~/.vnc/xstartup

#!/bin/bash
xrdb $HOME/.Xresources  
autocutsel -fork  
startxfce4 &  

restart vncserver

Connect to VNC Dekstop

run this at local, u can connect to vnc dekstop via ssh

ssh -L 5901:127.0.0.1:5901 -N -f -l user ipaddress

and connect with vnc viewer (such as tigervnc or realvnc) with this input at vncserver setting

localhost:5901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment