|
My First Linux Server, Part 2
Building a File ServerA file server is a specialized PC that holds large numbers of files that many people on a network can access. It "serves up" files to everyone instead of each person having files on his or her own PC. The good news is that you don't have to be a network guru to set up a basic file server. If you followed the Easy Linux Install steps in Part 1, you are ready to set up a Linux PC as a file server. While there are many ways to set up a network and a server, this article concentrates on the simplest approaches with the highest chance of quick success. Your Linux platform must connect to the network with a NIC, or Ethernet adapter.
Step 1: Open WindowsThe Linux file server process starts on the Windows side. Work on only one Windows PC at first. Once you get one Windows PC talking to your Linux file server, you can add more PCs, but for now, let's keep things simple and start with one Windows PC. Note that networking goes easier if the user ID and password on the Windows side are the same those used on the Linux side. Open the Windows Control Panel and click on User Accounts to set up a user account with ID and password identical to a Linux user. Unfortunately, we have to get a little technical here in order to find the Internet Protocol (IP) address for the Windows PC on the network and some other required information. Click on the Start button on the bottom left of the screen, then All Programs, Accessories and Command Prompt. Type in this command: C:\> ipconfig /all. This let's you see a list of network information. Write down the details it provides for:
You don't need to know what all this means as long as you jot down this information. You will need it later in the process.
Step 2: Open LinuxTo keep things simple, we refer only to SuSE Linux 9.0 because of its easy-to-use YaST (Yet another Setup Tool) Control Center graphical utilities. Red Hat Linux users can follow the same general process and go to the references listed at the end of this article. Start by opening up the SuSE YaST Control Center (YaST = Yet another Setup Tool) graphic utility. Do the following:
Tests 1, 2, and 3: Can You See Me Now?After completing the Samba Server setup, you should be able to see the Linux PC on the Windows network. On your Windows PC desktop, open the Network Places icon and see if the Linux PC is listed anywhere in the workgroup. (Network Places is usually on the desktop. If not, open the Control Panel and go into Network and Internet Connections, and you'll find it somewhere on the left). The Linux PC should now be listed. Click on the Linux PC to open it. At this point you should get a Login box asking for your Linux logon user ID and password. Inside the Linux PC, you should see the shared directory. If you don't see all this, you may need to dig a bit deeper to find out what is happening. Refer to the tips at the end of this article if things get complicated at this point. But let's assume that all went as planned. On the Linux machine, write a small test file into the Linux shared directory. Then go back to the Windows PC and see if the new file is listed in the directory share. Try to copy a small file from a Windows directory into the Linux directory share. Go to the Linux PC and see if the test file arrived.
Success is SweetIf you can write and read files, your file-sharing server is alive and well and properly installed on the network. Congratulations and add another notch to your Linux belt. Next you need to add the rest of your Windows clients — one by one:
Once you have mastered these steps, make sure you learn as much as you can about strengthening network security. Samba and SuSE Linux can provide higher-security methods that you should probably adopt, but that goes well beyond that scope of this article. If you have trouble accessing the Linux PC over the network, these tips may help:
ReferencesSamba help is available at O'Reilly Books and at the official Samba organization. Red Hat 9.0 Linux users can refer to the following books: Red Hat Linux Networking and System Administration by T. Collings and K. Wall and Red Hat Linux 9 Unleashed by B. Ball and H. Duff--both available at Amazon.com.
|