Home > General > VNCServer setup (Ubuntu desktop)

VNCServer setup (Ubuntu desktop)


Steps to Install VNCServer on any VM
==========================================


ubuntu@karun-sec-4:~$ apt-get update
ubuntu@karun-sec-4:~$ apt-get install -y gnome-core xfce4 xfce4-goodies vnc4server tightvncserver

# If the folder .vnc not found, go ahead and create it manually & also xstartup file
ubuntu@karun-sec-4:~$ vi ~/.vnc/xstartup

def
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
startxfce4 &

# If the folder .config not found, go ahead and create it manually
ubuntu@karun-sec-4:~$ sudo chown -R ubuntu:ubuntu ~/.config

#If gray screen
sudo chown ubuntu:ubuntu ~/.vnc/xstartup
chmod 755 ~/.vnc/xstartup
reboot

ubuntu@karun-sec-4:~$ vncserver -geometry 1920x1080 -depth 24 :1


# TightVNC client open and
<ip address>::5901

password: <password>

Now click on connect button

#Note: to kill VNCserver
ubuntu@karun-sec-4:~$ vncserver -kill :1

Advertisements
Categories: General
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: