A small problem in installing VNC in RHEL 4

Source: Internet
Author: User

You must be familiar with the Remote Desktop connecting to linux using windows, and there are many online tutorials.

Here I will not talk about it again. I will mainly talk about a small problem I encountered when installing VNC in RHEL AS4:
RHEL AS4 is also installed with vnc-server by default.
[Root @ localhost ~] # Rpm-qa | grep vnc
Vnc-server-4.0-8.1
 
However ~ The/. vnc/xstartup file does not exist.
I had to copy the xstartup code on the Internet and create a new one.
Restart the vnc service
[Root @ localhost ~] # Service vncserver restart
Disable the VNC Server: [OK]
Start the VNC Server: [OK]
Open a vnc
[Root @ localhost ~] # Vncserver
New 'localhost: 1 (root) 'desktop is localhost: 1
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/localhost: 1.log
[Root @ localhost ~] #
I found that a black screen was displayed after I practiced using the client, and I checked the xstartup configuration file carefully. I found that it was correct. I tried it several times, but it still didn't work.
Later I noticed that a vnc log will be written to the localhost: 1. log file, so I looked at the log with a try and found it unexpectedly.

In the past, the xstartup file was executed, and the xstartup permission was checked:
[Root @ localhost. vnc] # ls-al | grep xstartup
-Rw-r -- 1 root 354 August 14 16:33 xstartupions
No wonder, [root @ localhost. vnc] # chmod u + x xstartup
 
Try again. It was successful!
 
This article is from the "Age-free" blog

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.