VNC server is used to share graphical desktop which can be controlled from other computers . This guide is helpful to install VNC server on Ubuntu Desktop 14.04, Ubuntu server 14.04 and Ubuntu cloud 14.04 .
Basically ubuntu server and ubuntu cloud editions does not contains GUI, which needs to be installed before installing VNC server. Please note that server and cloud editions are carefully designed to utilize less hardware resources ( minimal environment ), installing GUI might leads to high hardware utilization.
krizna@leela:~$ sudo apt-get install --no-install-recommends ubuntu-desktop
Use –no-install-recommends key to keep GUI minimal. this will skip extra tools and apps and will install only basic desktop environment with few supported tools . Ubuntu desktop users can skip this command .
krizna@leela:~$ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
Step 2 » Now install vnc4server package.
krizna@leela:~$ sudo apt-get install vnc4server
krizna@leela:~$ sudo nano /usr/bin/vncserver
Find this line ( Line no:57 )
"# exec /etc/X11/xinit/xinitrc\n\n".
and add these lines like below
############################################
"# exec /etc/X11/xinit/xinitrc\n\n".
"gnome-panel &\n".
"gnome-settings-daemon &\n".
"metacity &\n".
"nautilus &\n".
krizna@leela:~$ vncserver
You will require a password to access your desktops.
Password:******
Verify:******
xauth: file /home/boby/.Xauthority does not exist
New 'leela:1 (krizna)' desktop is leela:1
Creating default startup script /home/krizna/.vnc/xstartup
Starting applications specified in /home/krizna/.vnc/xstartup
Log file is /home/krizna/.vnc/leela:1.log
Step 5 » Now you can view your remote desktop using IP address and port ( Eg : 192.168.1.10:1 ).
install vnc server on ubuntu 14.04
Basically ubuntu server and ubuntu cloud editions does not contains GUI, which needs to be installed before installing VNC server. Please note that server and cloud editions are carefully designed to utilize less hardware resources ( minimal environment ), installing GUI might leads to high hardware utilization.
Install gui on ubuntu server 14.04
Issue the below command to install GUI on server and cloud editions.krizna@leela:~$ sudo apt-get install --no-install-recommends ubuntu-desktop
Use –no-install-recommends key to keep GUI minimal. this will skip extra tools and apps and will install only basic desktop environment with few supported tools . Ubuntu desktop users can skip this command .
Install VNC server on ubuntu 14.04
Step 1 » Start installing below gnome packages which helps VNC to load properly . These packages are required for all editions including ubuntu desktop .krizna@leela:~$ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
Step 2 » Now install vnc4server package.
krizna@leela:~$ sudo apt-get install vnc4server
Step 3 » Open /usr/bin/vncserver file and edit as follows .
Before editing, make a backup copy.
krizna@leela:~$ sudo cp /usr/bin/vncserver /usr/bin/vncserver.bkpkrizna@leela:~$ sudo nano /usr/bin/vncserver
Find this line ( Line no:57 )
"# exec /etc/X11/xinit/xinitrc\n\n".
and add these lines like below
############################################
"# exec /etc/X11/xinit/xinitrc\n\n".
"gnome-panel &\n".
"gnome-settings-daemon &\n".
"metacity &\n".
"nautilus &\n".
"gnome-terminal &\n".
###################################################
krizna@leela:~$ vncserver
You will require a password to access your desktops.
Password:******
Verify:******
xauth: file /home/boby/.Xauthority does not exist
New 'leela:1 (krizna)' desktop is leela:1
Creating default startup script /home/krizna/.vnc/xstartup
Starting applications specified in /home/krizna/.vnc/xstartup
Log file is /home/krizna/.vnc/leela:1.log
Step 5 » Now you can view your remote desktop using IP address and port ( Eg : 192.168.1.10:1 ).
install vnc server on ubuntu 14.04
文章出处:www.krizna.com/ubuntu/install-vnc-server-ubuntu-14-04/ 要翻墙才能看