Remote intercommunication between Linux and Windows operating systems through rdesktop
Source: Internet
Author: User
Do you want to remotely access Windows in Linux and Linux in Windows or UNIX? This article provides a good way to easily implement remote access between Linux and Windows operating systems.
If you want to remotely access the Windows system in Linux and remotely access the Linux system in Windows or UNIX, this article will teach you how to do this.
Rdesktop is a Remote Desktop Connection Software for UNIX and Linux systems. it uses Microsoft Windows NT, Terminal Services provided by Windows 2000, and Remote Desktop service of Windows XP ), you can remotely log on to and use Windows in Linux.
1. download and install rdesktop
On the RedHat Linux system installation disks of various versions, generally the third disk carries the executable RPM software package of rdesktop. for example:
RedHat 9.0: rdesktop-1.2.0-1.i386.rpm
Fedora Core 2: rdesktop-1.3.1-3.i386.rpm
Use # rpm-q rdesktop to check whether rdesktop is installed in the system, and then install the appropriate rpm software package.
We can also download the rdesktop source program and compile and install it on various operating platforms. The following sections describe RedHat 9.0
The download ftp address is:
F t p: // t u 1 7 2 0 5 5 .tsinghua.edu.cn/pub/#/g e n t o
/D I s t f I l e s/rdesktop-1.3.1.tar.gz
Compilation and installation are as follows:
[Root @ host12cx] # tar xvzfrdesktop-1.3.1.tar.gz
[Root @ host12 cx] # cdrdesktop-1.3.1
[Root @ host12 cx] #./configure
[Root @ host12 cx] # make
[Root @ host12 cx] # makeinstall
[Root @ host12 cx] #
After the installation is successful, an executable rdesktop program is generated under/usr/local/bin.
II. Use of rdesktop
1. remote Windows settings
The following uses the remote desktop service connected to Windows XP Professional as an example. First, enable the remote desktop service in Windows XP (note: XP
HomeEdition
No remote desktop service), right-click "My Computer", select "properties", view "remote" options, and select "allow users to remotely connect to this computer.
2. use rdesktop in Linux
Rdesktop is easy to use. you can use it through # rdesktop-h. Common logon commands are as follows:
# Rdesktop-g 1024x768-d 24 hostname
"G 1024x768" sets the resolution to 1024x768, "d 24" sets the true color to 24 bits, and the hostname is Windows
Host name or IP address of the machine. After you enter Windows
After the XP user name and password, you can log on to and operate the remote Windows system. If you want to access remote Linux
Windows system and graphic programs need to be run and displayed. Linux provides extensive support for remote access to graphical user interfaces (GUIs.
The host is a Linux or UNIX system.
Assume that you log on to the remote host rhostname, run the gimp program, and output it to the local screen. then, you must perform the following operations in sequence:
1. start X server
# Xhost + rhostname (allow remote rhostname machines to use the local X Server)
2. telnet (or ssh) to log on to the remote host
# Telnet rhostname
3. set the DISPLAY environment variable
A display device is specified, and all graphics programs are displayed on this device.
The DISPLAY format is hostname: displaynumber. screennumber.
Hostname is the local host name or its I P address. General d I s p l a y n u m B e r
And screennumber are both 0.
# Echo $ SHELL
If/bin/ksh is returned, use: # export DISPLAY = local IP address: 0.0.
If/bin/csh is returned, you can use: # setenv DISPLAY local IP address: 0.0
If/bin/bash is returned, use: # DISPLAY = local IP address: 0.0.
# Export DISPLAY
4. start the gimp program
# Gimp
Windows OS
In Microsoft's W I n d o w s, an XServer is required
Software, so that you can log on to a remote Linux and display the result on the local computer. Common Windows XServer
Software: X-win, Exceed, and cywin. The following describes how to use Exceed to remotely log on to Linux.
1. Exceed software
Hummingbird Exceed
It is an excellent X terminal simulation software running in Windows and a commercial software. After running Exceed, the Windows system has an Xserver. you can log on to any Linux or UNIX host and display the graphical window locally, at this time, the Windows system can still run other Windows applications, and truly enjoy the convenience of multi-task operating systems.
2. Exceed settings (taking Exceed8.0 as an example)
Use "start → program → Hummingbird ConnectivityV8.0 → Exceed →
Xconfig "start the Network andCommunication item of the setup program, and select" XDMCP "in the Mode item
Broadcast ".
3. start the kde gui for remote Linux in Windows
(1) start Hummingbird Exceed, and then minimize the Exceed window;
(2) open ssh in Windows and log on to the remote host rhostname;
(3) after successful logon, enter:
# Export DISPLAY = the IP address of the local machine: 0.0
# Startkde
After that, the remote Linux KDE graphic interface will be displayed in the Windows system on the local machine. you can perform any operations on it.
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