Article title: Linux remote GUI access application (figure ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Introduction: Do you want to remotely access the Windows system in Linux and remotely access the Linux system in Windows or UNIX? This article describes 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 8.0: rdesktop-1.1.0-2.i386.rpm
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 describes how to install the rdesktop-1.3.1 under RedHat 9.0. the downloaded 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 that XP HomeEdition does not have a remote desktop service). right-click "My Computer" and select "properties" to view the "remote" option, 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
The resolution of "g 1024 × 768" is set to 1024 × 768, "d 24" is set to 24 bits, and the hostname is the host name or IP address of the Windows machine. After entering the user name and password of Windows XP, you can log on to and operate remote Windows system, 1.
If you want to access the remote Linux window system on the local machine and need to run and display graphics programs, Linux provides extensive support for remote access to the graphic user interface (GUI.
1. the local machine 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. Generally, d I s p l a y n u m B e r and screennumber are all 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
II. Windows OS
In Microsoft's W I n d o w s, an XServer software is required to log on to a remote Linux system and display the result on a local computer. Common XServer software for Windows include X-win, Exceed, and cywin. The following describes how to use Exceed to remotely log on to Linux.
1. Exceed software
Hummingbird Exceed 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)
Start the Network andCommunication item of the setup program through "start → program → Hummingbird ConnectivityV8.0 → Exceed → Xconfig", and select "XDMCP Broadcast" and 2 in the Mode item.
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.