Article Title: How to Use X-Win32 with Openssh or Rsh. 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.
What is Xwin32? The windows System on Unix is called x-window, And Xwin32 is the software used to simulate the x-window environment on MS-windows. Of course! The software used to simulate the X-window is not only a x-win32, but the hard disk space used by it is the smallest, after the unlock is about 6 MB, it is also the easiest to obtain. Relative, he is a set of copyrighted software, there is a limit of 2 hours each time, the same subnet can only run a x-win32 program.
Obtain:
You can use archiesearch to search for the xwin32.zip string and find a large number of FTP sites containing the software. The size is in the early 2 MB.
Installation:
Use winzip or related decompression software to unbind it. There is a setup file in it. Execute this setup to complete the installation. At the same time, the xwin32 option will be added to the 95/NT assembly, there will be X-util and X-win32.
Settings:
Xwin32 is started when you execute the x-win32 program, but you must also set xhost and select your window mode according to different situations.
The xhost setting indicates which computers are trustworthy for the xwin32 program, that is, to allow machines in the list to send data to xwin32 and then output data from xwin32 to the screen, if the machine that sends data is not in the list, it will be rejected by xwin32. Xhost settings in X-Win32 Utility => Optionsxhosts, enter the workstation IP address in workspace, click add to add this IP address to the xhosts list.
Window mode: If you want to use the complete window environment, You must select window mode as single Window mode, but the prerequisite is that you must have a fast enough network, and the remote host must have run xdm; otherwise, do not select single window mode. There is a minimum MS win size in the Window mode option, which should be used to regulate the size of the Window, but I use both to make the two values 0. Window mode is set in X-win32 Utility => Options => windowmode.
X-Win32 utility: xwin32 all settings are responsible for him, click on the gray area will show xwin32 version, DOS version, 95 version, available GDI and User resources. Display in Options allows you to view network-related data and IP address on your computer. The Edit sessions method is used to Edit connections. There are three preset Methods: sun unix XDMCP, rsh, rexec, and XDMCP, I do not recommend using rsh. In most cases, rsh is not available. You can edit the session or use the preset session. If you want to use rexec, You can edit the unix sessions, enter the IP address of the workstation in host name (domain name should be OK), and enter login in your account, command is the command executed after login. The default path does not exist on sunos, so you must change it to/usr/openwin/xterm, you can ignore other parameters.
For details about Linux and FreeBSD, refer to the path. If you remember correctly, it should be/usr/X11R6/bin/xterm. passwd can be input or not, if this parameter is not input, the user will ask you to input it again when executing this session.
If you use XDMCP, it will be relatively simple, and you can use broadcast. Both indirect and Old indirect may be difficult to use.
Usage:
The following describes two methods: Terminal mode and XDMCP.
Terminal mode:
There are two methods for Terminal mode
1. Use session rexec to create an xterm
Do not click single window mode, execute the x-win32 to select the set unix session, normal will appear an xterm window, set setenv DISPLAY your-ip: 0.0
(If your shell is bash, it seems to be playing
Set DISPLAY = your-ip: 0.0
Export DISPLAY)
Your-ip is the IP address of your machine. You can see it in the display option mentioned above, and then you can execute other x programs, and the screen will appear, run xv :).
2. telnet
Execute xwin32 and telnet to log on to the workstation. It is the same as 1 after setenv DISPLAY your-ip: 0.0.
XDMCP:
The Broadcast method will help you find the host running xdm on the same sub-network. If it is not the same sub-network, you have to use old indirect or indirect. However, it seems a bit problematic, and sometimes it cannot work, it may be a program problem!
Quick example:
The following are examples:
Remote Workstation IP address 140.134.11.1
Xterm path/usr/openwin/bin
IP address of the Local Computer 140.134.11.2
ID test on the workstation
In terminal Mode
X-win32 Utility => options => xhosts fill in 140.134.11.1
Edit a unix session
Select rexec
Set host name to 140.134.11.1.
Change command to/usr/openwin/bin/xterm.
Run xwin32 and then run the unix session. When an xetrm is displayed, run setenv DISPLAY 140.134.11.2: 0.0 and then run the x program you want to run.
Or
X-win32 Utility => options => xhosts fill in 140.134.11.1
Run x-win32
Telnet to 140.134.11.1
Setenv DISPLAY 140.134.11.2: 0.0
Then you can run the x program you want to run.
XDMCP:
X-win32 Utility => options => xhosts fill in 140.134.11.1
X-win32 Utility => options => window mode => click single window mode
Execute X-win32 => XDMCP
Select the host you want to log on.
Advanced:
If you have xcin & crxvt and you want to see Chinese in xwin32, you must have a Chinese font. Capture the Chinese style on the workstation, including fonts. alias and fonts. dir files, create a directory, and put it in xwin32 utility => fonts => modify fontpath (this is a bit like changing the font search path in XF86Config ), xwin32 does not accept Z-compressed files. Therefore, unlock Z and change fonts. alias and fonts. dir settings, or use the functions in fonts to create new fonts. alias or fonts. dir. You can run crxvt, but I suggest not to run xcin (preferably not), because xcin will interfere with the Chinese input on the original 95/NT and cause problems with the original input method,
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