RedHat configuration and use VNC in VNC Linux

Source: Internet
Author: User

Http:// AE .html

Configure VNC

# Vi/etc/sysconfig/vncservers

Find the vncservers = "1: myusername" string, remove the comment, and change myusername to your logon username. Save and exit.

Find the vi. VNC/xstatup File

Leave unset session_manager

Exec/etc/X11/xinit/xinitrc (remove comments) delete all others

# Vi/etc/sysconfig/iptables

Add port 5901 to it, save and exit.

# Service iptables restart

# Service vncserver restart


========================================================== ====================================

To start the vncserver service immediately, run the following command:

# Service vncserver start

To automatically start the vncserver service during boot, run the following command:

# Chkconfig vncserver on

Note: No output is generated after this command is executed, and a command prompt is directly returned, as shown in the following figure: (the prompt is displayed under the root user)

# Chkconfig vncserver on

# Chkconfig -- list vncserver

Vncserver 0: off 1: off 2: On 3: On 4: On 5: on 6: Off

Tip: you must pay attention to the relationship between users and VNC during installation and operation. Each user can have their own vncserver.


========================================================== ======================================

The premise is that the RedHat system has only been interviewed here.

Linux uses VNC to access a remote Linux Desktop.

In local Linux, enter the vncviewer command.


Related Article

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: 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.