Note: This description only applies to Ubuntu 12.04 unity desktop. For other versions, see.
Install vnc:
Sudo apt-get install vnc4server
Run the server:
Run vncserver directly after installation. For more parameters, see man vncserver. For the first operation, you must set a password to generate the configuration file in ~ /. The vnc directory has unlimited root permissions.
On another computer, you can connect to the desktop through remote vnc:
Example: vncviewer 1.2.3.4: 1 connect to the Remote Desktop
Configuration problems:
Default Configuration File ~ /. Vnc/xstartup is as follows:
#! /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 gray
Vncconfig-iconic &
X-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
X-window-manager &
Possible problems with using the default configuration:
1. Use the default configuration. After you log on to the vnc desktop, you can only see the desktop background and a terminal. There is nothing else, for example.
2. A Counld not acquire name on session bus Error occurs during login, as shown in.
Next, let's take a look at the highlights of page 2nd:
VNC installation Configuration
Install and configure VNC in CentOS 6.3
In Linux, the dependency installation VNC is not detected.
CentOS6 VNC service installation and configuration
VNC remote control installation and Setup
Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop