1: install tigervnc-server service
Yum install tigervnc-server
2: edit/etc/sysconfig/vncservers
VNCSERVERS = "1: Hvnc" (indicates the first VNC service and the user is Hvnc)
# VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-localhost"
3: Create an Hvnc user
Useradd Hvnc
4: Enter the Hvnc user and initialize the vnc password and service.
Su-Hvnc
[[Email protected] ~] $ Vncserver
You will require a password to access your tops.
Password:
Verify:
Xauth: (stdin): 1: bad display name "oradb1: 1" in "add" command
At this time, the following error may be reported:
[Dix] cocould not init font path element/usr/share/X11/fonts/misc, removing from list!
[Dix] cocould not init font path element/usr/share/X11/fonts/100 dpi, removing from list!
[Dix] cocould not init font path element/usr/share/X11/fonts/Type1, removing from list!
[Dix] cocould not init font path element/usr/share/fonts/default/Type1, removing from list!
[Dix] cocould not init font path element built-ins, removing from list!
(EE)
Fatal server error:
(EE) cocould not open default font 'fixed' (EE)
However, we can still see that the vnc service has started one:
[[Email protected] ~] $ Vncserver-list
TigerVNC server sessions:
X display # PROCESS ID
: 1 50440
[[Email protected] ~] $
Disable the vnc service first.
Vncserver-kill: 1
Then install a package:
Yum install libXfont
After the installation is complete, start vnc again. The successful startup process is as follows:
[[Email protected] ~] $ Vncserver
Xauth: (stdin): 1: bad display name "oradb1: 1" in "add" command
New 'oradb1: 1 (Hvnc) 'desktop is oradb1: 1
Creating default startup script/home/Hvnc/. vnc/xstartup
Starting applications specified in/home/Hvnc/. vnc/xstartup
Log file is/home/Hvnc/. vnc/oradb1: 1.log
Check the port startup status. Port 5901 has been started.
[[Email protected] ~] $ Netstat-na | grep 5901
Tcp 0 0 0.0.0.0: 5901 0.0.0.0: * LISTEN
[[Email protected] ~] $
5: log on to the VNC client and add the IP address to the port number.
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/DD/wKioL1RbMrLxANERAACz-7ePA5A868.jpg "title =" vnc.png "alt =" wKioL1RbMrLxANERAACz-7ePA5A868.jpg "/>
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/DE/wKiom1RbMrDCOQ6EAACb0rccduc991.jpg "title =" vnc2.png "alt =" wKiom1RbMrDCOQ6EAACb0rccduc991.jpg "/>
The password must be initialized in step 3 above.
6: enter the operating system Remote Desktop
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/DE/wKiom1RbMyGw9ck5AALFbcPqSbo909.jpg "title =" vnc3.png "alt =" wKiom1RbMyGw9ck5AALFbcPqSbo909.jpg "/>
This article is from the "7702190" blog, please be sure to keep this source http://7712190.blog.51cto.com/7702190/1573761
Redhat 6 tigervnc-server installation configuration