1. Installation
[[Email protected] ~] # Yum install tigervnc-server
[[Email protected] ~] # Yum install-y tigervnc *
2. Set the password
[[Email protected] ~] # Vncserver
You will require a password to access your tops.
Password:
Verify:
Xauth: creating new authority file/root/. Xauthority
New 'Demo: 1 (root) 'desktop is demo: 1
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/demo: 1.log
3. Edit the configuration file
[[Email protected] ~] # Vim ~ /. Vnc/xstartup
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/E5/wKioL1RcOZvT6gckAAHmTc6AE6A174.jpg "title =" 1.png" alt = "wKioL1RcOZvT6gckAAHmTc6AE6A174.jpg"/>
[[Email protected] ~] # Vim/etc/sysconfig/vncservers
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/E6/wKiom1RcOUTQYF_QAAFv6wCWuHY259.jpg "title =" 2.png" alt = "wKiom1RcOUTQYF_QAAFv6wCWuHY259.jpg"/>
4. Start
[[Email protected] ~] # Service vncserver restart
Disable VNC server: 1: root [OK]
Starting VNC server: 1: root xauth: (stdin): 1: bad display name "demo: 1" in "add" command
New 'Demo: 1 (root) 'desktop is demo: 1
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/demo: 1.log
[OK]
Connect to my server
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/E6/wKiom1RcO8Kw5p3-AACTFG-dF9k700.jpg "title =" 3.png" alt = "wKiom1RcO8Kw5p3-AACTFG-dF9k700.jpg"/>
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/E5/wKioL1RcPGaDp6Z5AAB5ZpqtlWI895.jpg "title =" 4.png" alt = "wKioL1RcPGaDp6Z5AAB5ZpqtlWI895.jpg"/>
650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/E5/wKioL1RcPHHxbdm0AAMmK3ix-4s350.jpg "title =" 5.png" alt = "wKioL1RcPHHxbdm0AAMmK3ix-4s350.jpg"/>
When installing and configuring VNC, I encountered the following problems:
When VNC is started, "a vnc server is already running as: 1" is reported. What is the problem?
A: it indicates that a user has started the vnc service. You can run ps aux | grep vnc to check whether a vnc process exists. If yes, it indicates that someone is in the process: 1. Enable the vnc service on the desktop, if no, it indicates that the last time the vnc service was enabled, it was not normally exited. You can delete/tmp /. x11-unix X1 and restart the VNC service.
When the VNC service is started on a Linux server normally, but the client cannot connect to the server. Why does the 10061 timeout error occur?
A: It should be about setting the firewall on the Linux server. Check the firewall setting rules.
Reference installing and using VNC http://7056824.blog.51cto.com/69854/132836 in Linux
This article is from the "8055082" blog. For more information, contact the author!
Install svn in CentOS release 6.4 (Final)