Remote access method for Linux and Windows operating systems

  
                  

You want to remotely access Windows system under Linux system, and remotely access Linux system under Windows and UNIX. This article teaches you how to do it.

rdesktop is a remote desktop connection software for UNIX and Linux systems. It can be used under Linux by Terminal Services (Terminal Services) provided by Microsoft Windows NT, Windows 2000, and Remote Desktop (Windows). Remotely log in to the Windows window system and use it.

1. Rdesktop download and installation

On various versions of RedHat Linux system installation disk, generally the third CD has rdesktop executable RPM package, for example :

RedHat 9.0: rdesktop-1.2.0-1.i386.rpm
Fedora Core 2: rdesktop-1.3.1-3.i386.rpm

By using #rpm - q rdesktop Check if rdesktop is installed on your system and install the appropriate rpm package.

We can also download the source program of rdesktop and compile and install it on each operating platform. The following describes installing rdesktop-1.3.1 under RedHat 9.0. The downloaded ftp address is:

ftp : //tu 1 7 2 0 5 5 .tsinghua.edu.cn/pub/mirror/gentoo /distfiles /rdesktop-1.3.1.tar.gz

Compile and install 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]#< Br>

After the installation is successful, an executable rdesktop program is generated under /usr/local/bin.

Second, the use of rdesktop

1. Remote Windows system settings

Here is the remote desktop service connected to Windows XP Professional as an example. First enable Remote Desktop Services under Windows XP (note that XP's HomeEdition does not have Remote Desktop Services), right click on "My Computer", select "Properties", view the "Remote" option, and select "Allow users to connect to this computer remotely" Just fine.

2. Use of rdesktop under Linux
The use of rdesktop is very simple, you can get help using #rdesktop-h. The commonly used login commands are:

#rdesktop -g 1024x768 -d 24hostname

where "g 1024×768" sets the resolution to 1024×768, and “d 24” sets the true color 24 Bit, hostname is the host name or IP address of the Windows machine. After entering the Windows XP username and password, you can log in and operate the remote Windows system. If you want to access a remote Linux window system locally and need to run and display graphics programs, Linux provides extensive support for graphical user interface (GUI) remote access.

This machine is a Linux or UNIX system

Now imagine logging in to the remote host rhostname, running the gimp program, and outputting its display to the screen of the machine, then you need to execute the following Operation:

1. Start X server
# xhost +rhostname (Allow remote rhostname machine to use native X Server)

2.telnet (or ssh) login remote host
# telnet rhostname

3. Set the DISPLAY environment variable
to specify a display device, all graphics programs will be displayed to this device.

The format of DISPLAY is: hostname:displaynumber.screennumber.

The hostname is the native hostname or its IP address. Generally, d i s p l a y n u m b e r and screennumber are all 0.

# echo $SHELL
If you return /bin/ksh, you can use: # export DISPLAY= IP address of the machine: 0.0
If you return /bin/csh, then You can use: # setenv DISPLAY IP address of this machine: 0.0
If you return /bin/bash, you can use: # DISPLAY= IP address of the machine: 0.0

# export DISPLAY

4. Start gimp program
# gimp

This machine is a Windows system

Under Microsoft Windows, you need an XServer software so that you can log in to remote Linux. The results are displayed on the local computer. Common Windows XServer software is: X-win, Exceed, and cywin. Here's how to use Exceed to remotely log in to Linux.

1.Exceed Software
Hummingbird Exceed is an excellent X terminal emulation software running under Windows environment, which is a commercial software. After running Exceed, the Windows system has an Xserver that can log in to any Linux and UNIX host and display the graphical window to the local. At this point, the Windows system can still run other Windows applications. Really enjoy the convenience of multitasking operating system.

2.Exceed settings (Exceed8.0 as an example)
Start the setup program Network and Communication by "Start → Programs → Hummingbird ConnectivityV8.0 → Exceed → Xconfig" and select "Mode" in the Mode item. XDMCP Broadcast".

3. Launching the KDE graphical interface for remote Linux under Windows
(1) Start Hummingbird Exceed and then minimize the Exceed window;

(2) Open ssh under Windows and log in to the remote host rhostname;

(3) After successful login, enter:
# export DISPLAY==IP address of the machine: 0.0
# startkde

After that, the remote Linux KDE graphical interface will be displayed under the native Windows system, and the user can do anything with it.

Copyright © Windows knowledge All Rights Reserved