0% found this document useful (0 votes)
78 views2 pages

Title: Install VNC4 Server On Ubuntu: GNU Public License

Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Title: Install VNC4 Server On Ubuntu: GNU Public License

Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

GNU Public License 2010

TITLE :

Install VNC4 Server on Ubuntu

OBJECTIVES :

To make connection on Ubuntu server using remote desktop application where the Ubuntu desktop
manager is Xfce. It’s permit more users to make connection into server simultaneously.

EXECUTION :

Let’s follow this step below to install VNC4 Server in our Ubuntu machine :

1. Install VNC4 Server

jalunet@underground#sudo apt-get install vnc4server

Choose Y (yes) when you faced on an option.

2. Running VNC4 Server

After installation has finished, just type this command below with your account (non-root).

jalunet@underground#vnc4server –geometry 1024x768

and you will see something like :

You will require a password to access your desktops.

Password:
Verify:
xauth: creating new authority file /home/jalunet/.Xauthority

New 'underground:1 (jalunet)' desktop is underground:1

Creating default startup script /home/jalunet/.vnc/xstartup


Starting applications specified in /home/jalunet/.vnc/xstartup
Log file is /home/jalunet/.vnc/underground:a.log

Type the password, it will be your VNC password. So, you must remember it! Now kill VNC
Server :

jalunet@underground#vnc4server –kill :1

1 is your display number, you can change it with 1,2,3,…,n for multi remote connection
purpose.

3. Setup VNC to start Xfce

jalunet@underground#nano ~/.vnc/xstartup

© http://www.oscentre.co.nr Page 1
GNU Public License 2010

You will see something like :

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Change the last couple of lines to :

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startxfce

Setup well DONE !

4. Setting connection on client

I prefer to use VNC4 Viewer as my application to connect with VNC4 Server in Ubuntu
machine. Just type the IP and port number (usually it run on port 5900 above, it depends your
configuration). This figure below illustrated how to use VNC viewer.

5. Stop VNC4 Server

jalunet@underground#vnc4server –kill :1

© http://www.oscentre.co.nr Page 2

You might also like