Linux/Windows Remote Desktop, linuxwindows

Source: Internet
Author: User
Tags windows remote desktop rdesktop

Linux/Windows Remote Desktop, linuxwindows
LINUX remote connection configuration (linux vnc Server configuration ):1. Check whether vnc is installed on the local machine (vnc is installed on centOS5 by default)

rpm -q vnc vnc-server
If the result is:
package vnc is not installedvnc-server-4.1.2-14.e15_3.1

Congratulations! vnc has been installed on the machine. If not, you have to install it on your own. Here we will not talk about how to install it. It is very simple. Search for it in the centOS software library and click Install.

2. Add the Remote Desktop user to the configuration file.
vim /etc/sysconfig/vncservers

Use the vim editor to open the configuration file and add the following two lines of commands to the file:

VNCSERVERS = "1: root" -- specify remote user VNCSERVERARGS [1] = "-geometry 1024x768" -- specify Remote Desktop resolution
3. Set the password for the Remote Desktop user root you just set
vncpasswd
4. Enable the VNC Port
vim /etc/sysconfig/iptables

Use the vim editor to open the configuration file and add the following command 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 configuration file (it is very easy to modify the Remote Desktop without modifying this file, which is equivalent to a command line operation. To perform remote operations, make sure to modify the configuration file by referring to the following methods)
cd ~/.vnc/vim xstartup
Use the vim editor to open the configuration file and make the following changes:
# Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & -- comment it, add # stands for annotation # twm & -- annotate it with gnome-session & -- add it
After reading this code, you should understand what is going on. 7. Start the vnc service.
service vncserver start

 

8. open the vnc client through a remote connection. In the server box, enter ip: 1 (1 indicates the remote user code configured above. Multiple remote users can be configured in the configuration file ), then you can easily control centOS through a friendly Remote Desktop. 9. Automatically Start vnc upon startup
vim /etc/rc.d/rc.local

 

Use the vim editor to open the configuration file and make the following changes:
/Etc/init. d/vncserver start -- add a row

WINDOWS Remote connection:

Host ip + port

 

Http://www.cnblogs.com/zxlovenet/p/4042959.html

Remote Desktop tool in LINUX (Remote WINDOWS ):

In Linux, configure the software to access the Remote Desktop. here we need to install rdesktop and tsclient. rdesktop is a command line-based tool. tsclient is only a graphical interface and depends on rdesktop. Log on to gnome and open the terminal.
$yum install rdesktop$yum install tsclient

For example, Terminal Server Client

 


How to access windows through linux Remote Desktop

Use Rdesktop
Method: 1. Enable Remote Desktop Management in Windows
2. Install rdesktop in Linux (this yum will work, except for Debian systems)
3 command: rdesktop 192. 168. ** (IP address)-u administrator
4 rdesktop-u administator-p 123 (password) 74.121.190.15-g 800*600 (resolution)-r disk: debian =/opt/bak/( ing Virtual disk)-r sound: off)

Some parameters need to be changed as needed ------

Windows Remote Desktop Linux

1. Check whether the VNC Server is installed in the query system, such as rpm-qa | grep vncserver. If not, use the online installation mode yum install vncserver.
2. modify the configuration file: vi/etc/sysconfig/vncservers. Modify the following parameters. First, all these files are commented out. Just delete the previous #.
VNCSERVERS = "1: abc 2: root" (Format: desktop number: User Name, two users are set here, user 1 is abc, and user 2 is root)
VNCSERVERARGS [1] = "-geometry 800x600" (Set User 1 display resolution)
VNCSERVERARGS [2] = "-geometry 800x600" (Set User 2 display resolution)
Save and exit: wq
3. Start the VNC service: vncserver. The configuration file is generated in the HOME directory of the current user.
4. Set VNC password: vpcpasswd root (user name)
Enter the password after you press Enter. This is true for many software in linux. Set a separate password for the corresponding service. The advantage of this is that the Service password is separated from the system password.
5. Modify the Remote Desktop configuration file: vi ~ /. Vnc/xstartup
This is a mess. Check the last part and unregister the following two sentences:
# Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & # twm &
Add the following sentence
Gnome-session &
Save and exit: wq
6. Due to the configuration of the Remote Desktop file, restart the service: service vncserver restart
7. Download and install a VNC client. There are many such software. Open the software and enter 192.168.4.180: 5902. Then enter the password to connect to the client.

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.