First, install the configuration VNC
1. First install VNC
Install Vnc4server
2. Set the password for VNC
vncpasswd
Enter the password, and then confirm it again, OK.
3. Start VNC
Vncserver:1
New ' node1:1 (root) ' Desktop is node1:1
Starting applications specified In/root/.vnc/xstartup
Log file Is/root/.vnc/node1:1.log
Started successfully.
Second, the Client connection
The client installs Vncview and then connects
Input IP, input ip:no, that is, IP address plus session number, just opened the account is 1, here input
1.1.1.1:1
Then enter the password and you can connect
Because there is no desktop environment, so we need to install one, here using Xface
Third, installation Xface
Install xfce4
The process is relatively long, the size of 200MB or so. When the installation is complete, we can call Xface using VNC.
Change the VNC configuration to load the Xface desktop.
vi ~/.vnc/xstartup
The original configuration to comment out, the new xface configuration can be, under the configuration file:
[Email protected]:~$Cat~/.vnc/Xstartup #!/bin/SH# Uncomment the following and the lines fornormal desktop:# unset session_manager# exec/etc/x11/xinit/xinitrc[-x/etc/vnc/xstartup] && exec/etc/vnc/xstartup[-R $HOME/. Xresources] && Xrdb $HOME/. Xresourcesxsetroot-Solid Greyvncconfig-iconic &x-terminal-emulator-geometry 80x24+Ten+Ten-ls-title"$VNCDESKTOP Desktop"&#x-window-manager &sesion-manager & Xfdesktop & Xfce4-panel &Xfce4-menu-plugin &XFSETTINGSD&XFCONFD&XFWM4&
Then restart VNC.
[Email protected]:~$ vncserver-kill :13478[email protected]-server:~$ Vncserver:1'phpdragon-server:1 (phpdragon)' Desktop is Phpdragon-server:1 in/home/phpdragon/.vnc/file is/home/ Phpdragon/.vnc/phpdragon-server:1. Log
Then connect with the client,
Ps:
http://blog.csdn.net/bykjscn/article/details/8140566
Ubuntu 14.04 Configuring VNC service Configuration Xfce4 Desktop