Networking For Dummies

Linux, the free operating system based on Unix, is becoming more and more popular as an alternative to expensive server operating systems, such as Windows Server 2003 and NetWare. In fact, by some estimates, more computers are now running the Linux operating system than they're running the Macintosh operating system. You can use Linux as a Web server for the Internet or for an intranet, and you can use it as a firewall or a file-and-print server on your local area network.

Linux was created in 1991 by Linus Torvalds, who was at the time an undergraduate student at the University of Helsinki in Finland. Linus thought it'd be fun to create his own operating system based on Unix for his brand-new PC. In the nearly ten years since Linux was first conceived, Linux has become a full-featured operating system that is fast and reliable.

This chapter shows the basics of setting up a Linux server on your network and using it as a file server, as a Web server for the Internet or an intranet, as an e-mail server, and as a router and firewall to help connect your network to the Internet.

Tip 

Linux is a complicated operating system. Understanding how to use it can be a daunting task, especially if your only prior computer experience is with Windows. Wiley Publishing, Inc., has For Dummies books that make Linux less painful. Check out Linux For Dummies, 8th Edition, by Dee-Ann LeBlanc and Linux For Dummies Quick Reference, 3rd Edition, by Phil Hughes and Viktorie Navratilova.

Comparing Linux with Windows

If your only computer experience is with Windows, you're in for a steep learning curve when you first get into Linux. There are many fundamental differences between the Linux operating system and Windows. Here are some of the more important differences:

I can't see my C drive!

Well, no, but that's normal. Linux and Windows have completely different ways of referring to your computer's disk drives and partitions. The differences can take some getting used to for experienced Windows users.

Windows uses a separate letter for each drive and partition on your system. For example, if you have a single drive formatted into three partitions, Windows identifies the partitions as drives C, D, and E. Each of these drives has its own root directory, which can in turn contain additional directories used to organize your files. As far as Windows is concerned, drives C, D, and E are completely separate drives, even though the drives are actually just partitions on a single drive.

Linux doesn't use drive letters. Instead, Linux combines all the drives and partitions into a single directory hierarchy. In Linux, one of the partitions is designated as the root partition. The root is roughly analogous to the C drive on a Windows system. Then, the other partitions can be mounted on the root partition and treated as if they were directories on the root partition. For example, you might designate the first partition as the root partition and then mount the second partition as /user and the third partition as /var. Then any files stored in the /user directory would actually be stored in the second partition, and files stored in the /var directory would be stored in the third partition.

The directory where a drive mounts is the drive's mount point.

Notice that Linux uses regular forward-slash characters (/) to separate directory names rather than the backward-slash characters (\) used by Windows. Typing backslashes instead of regular slashes is one of the most common mistakes made by new Linux users.

While we're on the subject, Linux uses a different convention for naming files, too. In Windows, filenames end in a three-letter extension that's separated from the rest of the filename by a period. The extension is used to indicate the file type. For example, files that end in .exe are program files, but files that end in .doc are word-processing documents.

Linux doesn't use filename extensions, but periods are often used in Linux filenames to separate different parts of the name-and the last part often indicates the file type. For example, ldap.conf and pine.conf are both configuration files.

Категории