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 +

2. Start the VNC service and set it to boot
3. Modify the VNCServer configuration file,
+ Shards +
| [Root @ cat xiaomao101] # cd/etc/sysconfig/
| [Root @ cat sysconfig] # ls
| Amd diskdump kdump network-scripts syslog
| Apmd dund kdump. rpmnew ntpd sysstat
| Apm-scripts firstboot kernel pand sysstat. ioconf
| Arpwatch grub keyboard pgsql system-config-securitylevel
| Auditd hidd kudzu pm system-config-users
| Authconfig hsqldb lm_sensors prelink tux
| Autofs httpd modules rhn vncservers
| Bluetooth hwconf named samba vncservers_backup
| Cbq i18n named. rpmnew saslauthd wpa_supplicant
| Clock init netdump selinux xinetd
| Console iptables netdump_id_dsa sendmail
| Crond iptables-config netdump_id_dsa.pub smartmontools
| Daemons irda network spamassassin
| Desktop irqbalance networking squid
| [Root @ cat sysconfig] # vi vncservers
+ 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

5. JAVA Plug-in for MS must be installed on IE.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.