How do I use Windows remote control Linux desktop?
1. See if the machine has VNC installed (Redhat Linux 9 has VNC installed by default)
Rpm-q VNC Vnc-server
If you see the result as:
Package VNC isn't installed
vnc-server-4.1.2-14.e15_3.1
Congratulations, the machine has been installed VNC, if not, you have to install, here do not say how to install, very simple, in the CentOS Software Library search, click Install
2. Add the Remote Desktop user to the configuration file
Vi/etc/sysconfig/vncservers
Use the VI Editor to open the configuration file and add the following two lines of command to the file
Vncservers= "1:root"--Specify remote user
vncserverargs[1]= "-geometry 1024x768"--Specify the Remote Desktop resolution
3. Set the password for the Remote Desktop user root you just set up
vncpasswd
4. Turn on the VNC port
Vi/etc/sysconfig/iptables
Using the VI Editor, open the configuration file and add the following line to the file
-A rh-firewall-l-input-p tcp-m tcp--dport 5900:5903-j ACCEPT
5. Restart the firewall
Service Iptables Restart
6. Modify the Remote Desktop display profile (do not modify this file the Remote Desktop you see is simple, equivalent to command-line operations, for remote operations like local operations, be sure to refer to the following ways to modify)
CD ~/.vnc/
VI Xstartup
Use the VI Editor to open the configuration file and make the following modifications
#xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &--annotate it, add # for comment
#twm &--Annotate it
Gnome-session &--add it
Look at this code, you should know what's going on.
7. Start the VNC service
/sbin/service vncserver Start
8. Remote Connection
Open the VNC client, enter ip:1 in the Server box (1 for the remote user ID configured above, configure multiple remote users in the configuration file), and you can easily control CentOS with a friendly remote desktop.
For example: Enter Ip:1 (192.168.1.102:1) in the Server box
9. Boot automatically starts VNC
Vi/etc/rc.d/rc.local
Use the VI Editor to open the configuration file and make the following modifications
/etc/init.d/vncserver Start--New row
How to use the VI editor:
The VI editor is divided into several modes
Command mode: Cursor can be moved, can copy, can delete word or line
Insert mode: Text input in this mode (press the I key from command mode to enter this mode, press ESC to exit this mode)
Bottom line mode: Save file, Exit VI Editor (input: number, followed by W fname--specify file name Save wq--Save exit Q!--do not save exit)
Remote Connection Redhat Linux 9 desktop under Windows 2008