VNC configuration in RedHatLinuxAS5

Source: Internet
Author: User
Setting VNC in RedHat is troublesome. I have found many articles on this topic on the Internet and have some inspiration. RedHatLinuxAS5 has already installed vnc when installing the system, so you only need to start it. Enter the vncserver service on the terminal to start the instance. The first time you start the instance, you will be prompted to enter the password. The following information will pop up when you start the instance: creatingdefastartupscript/root/. vnc/xstartupStartingap

Setting VNC in RedHat is troublesome. I have found many articles on this topic on the Internet and have some inspiration.

RedHat Linux AS 5 has already installed vnc when installing the system, so you only need to start it.

Enter

Vncserver

Start the service. The first time you start the service, you are prompted to enter the password. The following information will appear when you start the service.

Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/localhost. localdomain: 1.log

1 because it is used during Client Login

Now log on to Windows with a vnc Browser

Click "OK" to go to the page and you will find that only the command line input interface is displayed. I want to modify the configuration of the/root/. vnc/xstartup file in the graphic interface.

Many folders under root are hidden. Click "View-" Show Hidden Files "to check the. vnc folder. Open it in a text document and

Unset SESSION_MANAGER
Exec/etc/X11/xinit/xinitrc

Remove the comments. The files after the covering are as follows:

#! /Bin/sh

# Uncomment the following two lines for normal desktop:
Unset SESSION_MANAGER
Exec/etc/X11/xinit/xinitrc

[-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup
[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources
Xsetroot-solid gray
Vncconfig-iconic &
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
Gnome-session & // the change from & tmw to the current one

Save and restart the VNC service

Vncserver-kill: 1

Start with the vncserver command

Use vnc to connect to Linux in Windows to view the Linux Desktop.

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