Quantcast
Channel: Cloud-Boxes » Tools
Viewing all articles
Browse latest Browse all 6

How to install VNC-server in Ubuntu (server)

$
0
0

VNC -Server for Ubuntu (server)

94 In this tutorial we are going to install vnc-server in ubuntu 12.04 LTS.   Step 1: (Open terminal) Open a Terminal or SSH window and login with your root account. If you don’t know the password of your root account, log in to your own account and place sudo for every command used in this tutorial.   Step 2: (install VNC4server)

apt-get update

apt-get install vnc4server

Package not found? Do this:

nano /etc/apt/sources.list

Then change that file so it looks like this:

###### Ubuntu Main Repos 
deb http://nl.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse 
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
###### Ubuntu Update Repos 
deb http://nl.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse 
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse 
deb-src http://nl.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse

Step 3: (Start a VNC server and set a password, then kill the VNC server)

vncserver -geometry 1280x1024 :1
#Set password:
#Verify password:

vncserver -kill :1

Step 4: (Install GUI for the VNC server)

apt-get install gnome-core

cd
nano .vnc/xstartup

Then modify the file so it looks like this:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
gnome-session --session=gnome-classic &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 1280x1024+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &

Step 5: (Start VNC server)

vncserver -geometry 1280x1024 :1

You can use an other screen resolution by changing “1280×1024″ to something else. You can also run multiple VNC Servers, just change “:1″ to :2, :3, :4, etc.   Step 6: (Test your VNC Server) Open a VNC Viewer(download) and fill in the IP of the VNC Server. Then click “Connect”. Fill in the password you chose and click “OK”.   Now you succesfully set up a VNC Server 😀


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images