Environment: root @ node1 :~ # Cat/etc/issueUbuntu12.04LTS \ n \ l requirement: Now you need to remotely connect to the Ubuntu GUI, because a program needs to be configured using the GUI. By default, javastuserver does not have a graphical interface. Xmanager is used to remotely connect to Ubuntu. After the connection is complete, you would like to use the built-in functions of Xmanager to bring up a graphical interface, this process
Environment:
Root @ node1 :~ # Cat/etc/issue
Ubuntu 12.04 LTS \ n \ l
Requirement: now we need to remotely connect to the GUI of Ubuntu, because a program needs to be configured using the GUI.
By default, the Ubuntu server does not have a graphical interface. You can use Xmanager to remotely connect to Ubuntu. After the connection is complete, you would like to use the built-in functions of Xmanager to bring up a graphic interface, however, no matter how you play it, the program won't be able to play out, and it's very tangled. You can use Xclock for testing. It can only be used separately.
In the past, VNC was configured in RedHat, but it was not done in Ubuntu. This is a bit of research. The following describes the configuration process in detail. The graphic program used is Xface.
1. install and configure VNC
1. First install VNC
# Apt-get install vnc4server
2. Set a password for VNC
- Root @ node1 :~ /. Vnc # vncpasswd
- Password:
Enter the password and confirm it again.
3. Start VNC
- Root @ node1 :~ # 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
-
- Root @ node1 :~ # Ps-ef | grep vnc
- Root 1768 1 0 00:00:00 pts/0 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/75 dpi /, /usr/X11R6/lib/X11/fonts/100 dpi/,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1 /, /usr/share/fonts/X11/75 dpi/,/usr/share/fonts/X11/100 dpi/-co/etc/X11/rgb
Started successfully