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