Install and configure VNC in RedHatEnterpriseLinux5 (RHEL5)

Source: Internet
Author: User
VNC installation and configuration under RedHatEnterpriseLinux5 (RHEL5)-Linux Enterprise Application-Linux server application information. For more information, see the following. If the machine does not have a graphical interface installed, install it online first! The password is as follows: (prerequisite: access to the Internet)

[Root @ sb1 ~] # Yum groupinstall "GNOME Desktop Environment"

# Step 1: Prepare a VNC package (there are two such packages in the operating system installation disk)

Prepare two packages:
Vnc-4.1.2-9.el5.i386.rpm
Vnc-server-4.1.2-9.el5.i386.rpm

# Step 2: Install the VNC package
Enter the root user, cd to the storage path of the two packages, and perform the following operations:
# Rpm-ivh vnc-4.1.2-9.el5.i386.rpm
# Rpm-ivh vnc-server-4.1.2-9.el5.i386.rpm

# Step 3: Configuration File
# Vi/etc/sysconfig/vncservers -- Add the following lines to save and exit. Prerequisites: There are three users: root, oracle, and rrosen.
VNCSERVERS = "1: root 2: oracle 3: rrosen"
VNCSERVERARGS [1] = "-geometry 1024x768-depth 16"
VNCSERVERARGS [2] = "-geometry 1024x768-depth 16"
VNCSERVERARGS [3] = "-geometry 1024x768-depth 16"

Run: vncserver (root User)
Edit user VNC password ------ (use vncpasswd if you need to change the password)

# Vi. vnc/xstartup:
Activation: unset SESSION_MANAGER
Exec/etc/X11/xinit/xinitrc
Comment out the remaining lines.
The same applies to oracle and other users.

1. log on to the server as a user who needs to restart VNC.
2. Enter the command: vncserver-kill: Z
3. Run vncserver: Z
Z is the temporary Port Number of the user's VNC service. (You can use the command # ps-ef | grep Xvnc to view the port number)

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, for example:
(Root User prompt)
# 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.

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.