Set the VNCServer service and break through the firewall (SELinux)
Source: Internet
Author: User
Set the VNCServer service and break through the firewall (SELinux)-Linux Enterprise Application-Linux server application information. The following is a detailed description. My system is Fedora Core 5
1. Enable system service settings
+ Shards +
| [Root @ cat xiaomao101] # serviceconf
| Launching a SCIM daemon with Socket FrontEnd...
| Loading simple Config module...
| Creating backend...
| Loading socket FrontEnd module...
| Starting SCIM as daemon...
| GTK Panel of SCIM 1.4.4
|
+ Shards +
The content of the vncservers file. The red part is the modified content.
+ Shards +
| # The VNCSERVERS variable is a list of display: user pairs.
| #
| # Uncomment the lines below to start a VNC server on display: 2
| # As my 'myusername' (adjust this to your own). You will also
| # Need to set a VNC password; run 'man vncpasswd' to see how
| # To do that.
| #
| # Do not run this service if your local area network is
| # Untrusted! For a secure way of using VNC, see
| # .
|
| # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
|
| # Use "-nohttpd" to prevent web-based VNC clients connecting.
|
| # Use "-localhost" to prevent remote VNC clients connecting tables t when
| # Doing so through a secure tunnel. See the "-via" option in
| # 'Man vncviewer 'manual page.
|
| VNCSERVERS = "2: xiaomao101"
| # VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-nohttpd-localhost"
+ Shards +
Note:
"2: xiaomao101" indicates logging on with xiaomao101 and the port is 5802
4. Firewall settings
Open the port 5802, (because I don't know whether it is UDP or TCP, I chose both UDP and TCP)
Note:
Port 5802 is used for vncview communication, and port 5902 is used for IE to access VNCServer through JAVA
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service