Use Turbo Linux to create a LAN server

Source: Internet
Author: User

There are many problems in the use of Turbo Linux, especially the problems related to server configuration still need to be solved. First, let's take a look at the network configuration related solutions on TCP/IP. As a network server, the Turbo Linux system has many advantages, but it has many disadvantages. In particular, complicated configurations have discouraged many users.

This article takes TurboLinux 4.0 as an example to introduce some experience in configuring Linux servers on the LAN, hoping to help readers and serve as an example.

I. TCP/IP network configuration

TurboLinux provides better support for NICs. Most NICs can be automatically detected during installation. If you are not lucky and Linux cannot find your Nic, you can enter X Windows and run the linuxconf command as root. This is a graphical Configuration tool. Most Linux settings can be simply done with a few clicks. First, find the Basic Host Setting item. In this item, set the NIC type, I/O port, and IRQ. Generally, ne can be used for ISA cards not listed, PCI can use ne or ne2k-pci, and then set the IP address and subnet mask, As long as and other machines in the LAN in the same subnet can be. If you want to connect to an external network, you need to set up a gateway. For more information, see the TurboLinux help file.

2. Samba Server Configuration

Samba is a file and printing server. Its most important feature is that it can share files with Win98/NT and provide printing services for it. In short, we can see the Linux server in the network neighbor of Win98 and access the files in it.

Samba configurations are stored in/etc/smb. conf. Most of them use its default settings. I will not talk about them any more, but there are several unmodifiable ones:

The smb. conf file is similar to the Windows ini file. It starts with a [] segment, and each line is an equal sign expression. Comments are headers. Each [] indicates a shared directory global and printer. Except for [global], some general configurations are used. One of the most important configurations for Win98 machines is guestaccount, password-free user name. If you log on with this user name in Win98, you do not need the password to access the public = yes directory, but cannot access the public = no directory.

[Global] guest account = guest Workgroup should be changed to the name set in Win98 network configuration, otherwise the workgroup = Samba Server cannot be found in the network neighbor


[Homes] Because Win98 is case-insensitive, but Linux is case-sensitive, you need to add the following two lines: preserve case = yes short preserve case = yes

[Myshare] If you want to set a directory that only has read and write permissions for several users, you only need to add the following lines to separate the two usernames with spaces. valid users = user1 user2 user3 has configured smb. run turboservice after the conf file, and set the samba service to start automatically at startup. After Linux is turned on, it can be found in Win98's network neighbors.

If we use Win98 to share Linux resources, how can we use Linux to share files in Win98? In fact, it is simpler to use the smbmount command. For example, to share the Upload File directory in the ntserver of another host, the username is student and the password is 1234. Just run the following command:

Smbmount '\ ntserver1_file'-U student-P 1234/mnt/empty file

In the future, the/mnt/upload file becomes the Upload File directory in ntserver. If you do not have the username and password-P and-U parameters, you can save them.

Iii. Apache server configuration

Do you also want to publish the homepage on the lan? Select Apache.

Installing the Http Server with Apache is the easiest thing to do. You only need to use the turboservice command to start the Web Server service. Its default homepage is/home/httpd/index.html. Replace it with its own homepage, and enter the IP address of the Linux host in the browser to see how it works.

It is too monotonous to use only IP addresses. If you want to use a Cool domain name such as www.cpcw.com, let's take a look at the following introduction. Assume that the IP address in the LAN of the Linux host is 192.1.1.1. Open the/etc/hosts file, find the line corresponding to 192.1.1.1, and change the host alias to www.cpcw.com. Then, set another Win98 machine in the LAN to be connected through the LAN, and fill in the IP address of the Linux host in the LAN proxy server settings column. Finally, open IE and enter www.cpcw.com to enjoy the fruits of your work!

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.