Remote Connection Redhat Linux 9 desktop under Windows 2008

Source: Internet
Author: User

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

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.