- [Email protected]:~# cat/etc/issue
- Ubuntu 12.04 LTS \ \l
Requirements: Now you need to remotely connect to the Ubuntu GUI because there is a program that needs to be configured using a graphical interface.
By default, Ubuntu server is no graphical interface, using Xmanager remote connection Ubuntu, after the connection is completed, would like to use the Xmanager features, to implement a graphical interface, but no matter how to play, the program is not bounce out, very tangled, It is possible to test with xclock. It can only be done separately.
Previously configured VNC, are in the redhat inside the configuration, Ubuntu did not get inside, this has studied a bit. The following is a detailed configuration process, using the graphics program for Xface
First, install the configuration VNC
1. First install VNC
- # Apt-get Install Vnc4server
2. Set the password for VNC
- [Email protected]:~/.vnc# vncpasswd
- Password:
Enter the password, and then confirm it again, OK.
3. Start VNC
- [Email protected]:~# 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
- [Email protected]:~# ps-ef | grep VNC
- Root 1768 1 0 06:10 pts/0 00:00:00 xvnc4:1-desktop node1:1 (Root)-auth/root/. Xauthority-geometry 1024x768-depth 16-rfbwait 30000-rfbaut
- H/root/.vnc/passwd-rfbport 5901-pn-fp/usr/x11r6/lib/x11/fonts/type1/,/usr/x11r6/lib/x11/fonts/speedo/,/usr/ x11r6/lib/x11/fonts/misc/,/usr/x11r6/lib/x11/fonts/75dpi/,/usr/x11r6/lib/x11/fonts/100dpi/,/usr/share/fonts/ x11/misc/,/usr/share/fonts/x11/type1/,/usr/share/fonts/x11/75dpi/,/usr/share/fonts/x11/100dpi/-co/etc/x11/rgb
Startup success
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
- # Apt-get 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 VNC configuration, load Xface desktop
- [Email protected]:~# pwd
- /root
- [Email protected]:~# CD. vnc/
- [Email protected]:~/.vnc# ls
- Node1:1.log node1:1.pid passwd Xstartup
- [Email protected]:~/.vnc# vim Xstartup
The original configuration to comment out, the new xface configuration can be, under the configuration file
- [Email protected]:~/.vnc# cat Xstartup
- #!/bin/sh
- # Uncomment the following-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 Grey
- Vncconfig-iconic &
- #x-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
- #x-window-manager &
- Sesion-manager & Xfdesktop & Xfce4-panel &
- Xfce4-menu-plugin &
- XFSETTINGSD &
- XFCONFD &
- XFWM4 &
Then restart VNC
- [Email protected]:~/.vnc# vncserver-kill:1
- Killing Xvnc4 process ID 1844
- [Email protected]:~/.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
And then connect with the client
See the Xface, so far, has been configured.
Ubuntu Server configuration Remote VNC service