Many families have old computers. It has been used to run the Windows system. It has been hard, and the installation of Linux systems can be used to do a lot, such as "Open System" 2003 No. 8 "
Give the NAT gateway to use Linux to make a NAT gateway for ADSL Internet access in Linux Home Network Upgrade. As a NAT gateway, it is too luxurious to which the display is equipped with a display, and we can use Windows to omit these configurations.
Remote login server settings
We use Red Hat Linux as an example. First install Linux, this time you can omit the mouse, keyboard, and monitor, turn your network, and ensure that Windows machine can ping. On Linux, use the setup command, after the configuration menu appears, select "System Services", then the service list menu will appear after entering! Make sure there is a Telnet or SSHD service in the menu (for security start, usually only SSHD can be selected ), If there is no "*" in the box, press the space bar to select it. Also note that FireWall Configuration wants to open these ports (Telnet port number 23, SSH port number 22), or for simple experiments, you can temporarily select NO FireWall, but in order to secure, it is necessary to establish a firewall, open 22 or 23 port, related settings Please refer to HOWTO. On Linux, use the command "UserAdd Myself" to create a user myself, and then use "passwd myself" to set this user's password, which can be allowed to be remotely accessed on the server. Then take those peripherals.
Access Linux via Telnet
Windows itself comes with a Telnet client, enter the command "Telnet" in "Start" | "Run". Suppose the Linux server IP address set above is 192.168.0.1, enter the command "Open 192.168.0.1", enter the username "Myself" and its password, and then imitate the front of the Linux machine.
It is to be explained that, by default, the use telnet mode is not allowed to log in with the root user, which is why the remote login server settings finally establishes user myselt, and the SSH method to be mentioned will not be limited.
Access Linux via SSH
Due to the unsafeness of Telnet, now the Linux release is integrated with SSH function, and Windows itself is no SSH Client, requiring a third-party software support. Here is recommended to use SecureCRT or SSH Secure Shell non-commercial. The former is a software, non-free software, non-free software, non-free software, Non-free software, URL, in all Windows clients, Non-free software. The latter comes with a graphical SFTP software, which is convenient to transfer files, personal uses free, URLs http://www.ssh.com.
To use SSH to transfer files, you also need to use SSH2 on Linux. The method is to use "more sshd_config" under / etc / ssh, see the protocal line in the sshd_config file, if there is no "#" before this line, and only the number "1" behind the protocal, then the SSH2 cannot be used; if not this SSH2 can be used. Figure 1 is a screenshot of SecureCrt, Figure 2 is a screenshot of the SSH Secure Shell, and these SSH CLITs generally support Telnet to log in. Enter the necessary information in the Connection dialog box, you can connect the Linux machine, as shown in Figures 3 and 4. There are many other excellent similar software, here is not one, and interested readers can continue to find. Figure 1 SecureCrt
Figure 2 SSH Secure Shell
Figure 3 SecureCRT Connection
Figure 4 SSH Secure Shell Connection
Use x-window
If you want to use X-Window, you must use X Server software. If you install Linux, you can use the Telnet or SSH, you can use X-Window, you don't need to do additional settings.
Here is a concept to clarify, X Server is software running on Windows, used to accept the input of the mouse keyboard, and running on Linux is X Client, responsible for making a response to X Server. Such software is more famous with Exceed and XManage, a pity that they are commercial software.
Exceed has a very long history, which is very convenient to use X-WINDOW in Telnet / Rlogin / RSH / mode, which is from http://www.hummingbird.com.
XManage features are also very powerful, and I also found a Chinese package (FOR 1.3.8 version free Chinese package), which can also display Chinese X-Window after installation. Readers who need need can send an email to Fisherjams@tom.com to ask me. As for XManage itself, it is easy to find with Google search, but pay attention to copyright issues.
Figure 5 is XMANGAE, Figure 6 is a connection of Linux using XMANGAE. After the connection is created, the X-Window can be started to run the command "StartX".
Figure 5 XManage
Figure 6 Connecting Linux with XManage
Access Linux via serial port
No matter which way you introduce, there is a premise that Linux machines have not been restarted. If Linux restarts, it will detect if the keyboard exists, and the machine will continue to confirm the keyboard interface (while the services have not yet run). If you want to bypass this limit, you need other connection methods, one way to direct the terminal to the serial port (COM1 or COM2). Make a DB9 serial line, both sides are the female (with jacks), connecting a 2, 3, 5 feet, and another 3, 2, 5 feet, of course, the most standard It is to use the Null Modem line.
The following settings can be made on Linux. Add the following line in file / etc / inittab (note, if you do not use the AGETTY program, use other programs such as Like getty_ps, apply the correct command syntax):
ID: Runlevels: Respawn: / sbin / agharge -l speted TTY TERM
Here, the ID is an identifier of the two letters, such as S1 or S2; Runlevels is the run level activated by the terminal; the speed is the serial port rate; TTY is the device name of the serial port; TERM is an environment variable. Examples are as follows:
S2: 12345: Respawn: / sbin / agharge -l 9600 TTYS1 VT100
The above command indicates that the serial port / dev / TTYS2 (COM2) rate is 9600 bps, and the terminal mode is VT100.
Finally, restart the machine. Open "Hyper Terminal" on Windows, select COM1 in "Connecting Use" drop-down menu, and fill in the information as shown in FIG. 7.
Figure 7 serial connection settings
The above introductions some of the techniques and methods for controlling Linux using Windows, which can do experiments in the home. Master them, have a lot of benefits to managing multiple UNIX / Linux servers in the future.