Install & Configure vnc4server


ok I thought this might be helpful a few out there. I had trouble my self and all the tutorials I found were basically for people who now linux and terminal. so I thought I would redo the tutorial and add all needed commands and steps...
You also need root credentials to be able to complete this tutorial.

After Install of Ubuntu

Next step is to install secure shell ssh.

open terminal and type the following, and agree at the prompts.

(1) #sudo apt-get install ssh

(2) #sudo apt-get install vnc4server


After it is installed you should be logged as normal user and not root.

(3) #vncserver :1 -geometry 1024x768 -depth 16
or
#vncserver :1 -geometry 1024x768 -depth 24

Once you type the above command u will prompt for password. This is the password, this is the password u will set for vnc to connect to the server. Once it is complete we can change the setting for the server. Before we do that we have to kill the server.

type the following command into terminal

(4) #vncserver -kill :1

Then

(5) gedit /home/userXX/.vnc/xstartup and paste all this code into it
(userXX = your user name)

Code:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

gnome-session &

[ -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 &

Now everything is done. All you have to do is to restart the system which is good for the setting to work properly. Once you have restarted, start the vnc server by typing the following into terminal & your done.

(6) #vncserver

and then for the next user follow on from step (3)
i.e (3) #vncserver :2 -geometry 1024x768 -depth 16

to (5) then restart again and start vnc server..

Also make sure to start vnc server in the same order as the ports originally assigned for each user, otherwise which ever user u start first will be on port :1 etc

0 comments:

Post a Comment

 
© 2009 windows 8 download free Software | Powered by Blogger | Built on the Blogger Template Valid X/HTML (Just Home Page) | Design: Choen | PageNav: Abu Farhan