As you probably already know, Linux is an alternative operating system for your PC. Linux is Free Software, or Open Source, meaning that it is legal to distribute copies, even modify the source code which is published and publicly available. Linux gives you the power of UNIX on a PC budget, and is a very popular platform for running Web and e-mail servers on the Internet. Linux also makes a very powerful desktop operating system for use in homes or offices. This article is meant to pique your interest in Linux and help you get started taking Linux for a test drive. But... Why? Why would you want to use Linux, and what can you use it for? Some people choose Linux because it costs less than commercial alternatives, some because they feel access to their operating system's source code is a moral issue or a technical requirement. Many hobbyists use Linux because it allows them to tinker with things that other operating systems lock away beyond normal access. I use Linux as my normal operating system every day. I browse the Web and send e-mail as normal. I have my entire CD collection ripped and encoded into Ogg Vorbis files on my hard drive, all done with Linux tools. (Ogg Vorbis is an open source competitor to MP3 format and gives better sound at low bit rates, meaning I can squeeze twice as much music onto my 20 GB laptop drive.) I also run a complete Web server development environment on my Linux laptop, including Apache Web server with Perl and PHP modules, an SQL Database (your choice of several, I use MySQL), the GNU Image Manipulation Program (the Gimp) for editing pictures Photoshop-style, and more free HTML editors available than Windows and Mac combined. If there is anything you can't do with Linux, I have not found it yet. The Linux Problem For historical reasons Linux is made to be a multiuser system, where users deal only with their day-to-day work, and a system administrator deals with installing, updating, and maintaining the system. The problem is, if you want to explore Linux on your own, you have to gain enough system administrator knowledge to get Linux installed and working properly before you can start using it. This chicken and egg problem is the reason that Linux has a reputation for being hard to install, and has been the focus of much work by the commercial Linux vendors. The good news is that this is much less of a problem than it once was. Linux installation and setup procedures have been largely automated by the major vendors, so that a competent PC user should be able to install Linux in an afternoon. If you have installed Windows, you will find installing Linux about the same level of difficulty. Which Linux? Because Linux is open-source it can be, and in fact is distributed by many different companies. Each company tweaks the software to fit their own idea of what is best, which gives us as the end users a great deal of choice.
Which Linux to get is largely a religious decision. Any of the major distributions will make a usable desktop or server. For Linux beginners, I recommend Mandrake Linux. I believe Mandrake does the best job of simplifying the installation (see Figures 1 and 2) and essential administration tasks for new users, yet it remains powerful enough for advanced users. I use it on a daily basis.
Installation Tips
Man pages are often very detailed and might tell you far more than you wanted to know. If you just want a quick idea of what a command does, use the whatis command. For example, whatis grep returns: grep, egrep, fgrep (1) - print lines matching a pattern This shows you that grep, and its related commands egrep and fgrep, have man pages in section 1, and are used to "print lines matching a pattern." If you were searching for a command to copy files, you would know this isn't it and you could move on. Or you could consult the man page for details on using these commands. Related to the whatis command is apropos, which searches the whatis database for keywords. If you know what you want to do but don't know the command, apropos will give you list of related commands. For example, if you want to copy files, try apropos copy and get: bcopy (3) - copy byte strings copy (l) - copy data to/from a class from/to a UNIX file. copysign (3)- copy sign of a number cp (1) - copy files cpio (1) - copy files to and from archives dd (1) - convert a file while copying it dvicopy (1)- produce modified copy of DVI file fcopy (n)- Copy data from one channel to another. Your list will probably be much longer than this, but by reading through it you will find the command you want is cp for copying files. If the apropos and whatis commands don't work on your system, it may mean that the whatis database has not been created, or is corrupt. You can rebuild it by running /usr/sbin/makewhatis as root (administrator account). Note that the apropos command will accept only one parameter. You cannot search for multiple keywords. If you try, only the first will be used. The whatis command will accept multiple search words, but searches for them individually rather than as a group (in other words, combining them with OR rather than AND). info Many of the utilities included with Linux, especially those created by the GNU Project http://gnu.org, have documentation in the form of info pages. Info pages look similar to man pages, but there is a lot more to them. Like the man pages, info documents are intended to act as your online "manual", your guide to the GNU/Linux system. But info documents are integrated with each other in a hypertext database that can be read like a book (it even has a table of contents) and accessed from your terminal. Where both man pages and info pages exist, the info documentation is probably more accurate. To get info on the grep command, type: info grep The info viewer looks and behaves much like GNU Emacs, a much-respected and much-maligned text editor. Most of the emacs key combinations will work in the info viewer. If you aren't familiar with emacs, you should probably get familiar with it, as its control keys and syntax are inescapably emulated by hundreds of Linux programs. Navigating info documentation isn't terribly complicated, nor is it completely intuitive. Thankfully, there is a self teaching tutorial included with the package. At any time you can type a question mark (?) or Control-h to access a list of available commands, in case you need help with the navigation keys. Typing "h" by itself takes you to the info tutorial, the first few pages of which should tell you all you need to know for simple operation. The keys to remember are <SPACE> to page forward, <DELETE> to page backward, and <ENTER> to activate a hyperlink. (Links are normally preceded by an asterisk). "L" takes you to the Last node (page) visited, like the Back button in your Web browser. /usr/doc/* (or /usr/share/doc/*) Many programs are just too complex to store all their help information in a man page. The /usr/doc directory is where these programs will store their information. Sometimes there will just be a text file, sometimes a program will have an entire subdirectory devoted to it. Also in this folder you may find copies of the Linux How-Tos to help you with common tasks. Take these with a grain of salt. The information in the How-Tos is usually very technical and oriented more toward system administrators than novice users. Check for a folder named HTML here. If you find it, open up your Web browser of choice and use it to view the documentation. You will feel much more comfortable, I'm sure. I did. The Linux Documentation Project The Linux Documentation Project http://tldp.org is your best and most complete source for Linux information. I think hardly a day goes by that I don't visit them for something. Make sure to check their mirror sites for one close to you, to save bandwidth on their server. Conclusion Hopefully this article has given you enough information to serve as a survival guide as you begin to explore Linux. We have not even scratched the surface of the things Linux can do once you become comfortable working with it. That's the fun part of using Linux, and I hope that now you can discover a lot more on your own!
About the Author |