![]() |
[Contact Us] |
Linux Learnings |
||
|
Amazon UK
|
by R.M. Schneider This page collects and published Linux Learnings ... things about Linux that we've learned and are sharing with others. The focus of these articles will be on use of Linux, from Red Hat, at home for computing enthusiasts. What is LinuxWhen I first wrote this, I felt the need to explain what Linux is. I really don't think that is as necessary anymore. You probably already know, but we'll say it anyway: Linux is a free Unix-like operating system. The "kernel" (the heart of the operating system) was developed and is still maintained by Linus Torvalds--then a student in Finland, and now a famous person living and working in Silicon Valley USA. Surrounding the "kernel" are applications and a complete system environment. The latter is provided primarily by the GNU project fun by the Free Software Foundation, led by Richard M. Stallman. Another major component of Linux software is the X Consortium which developed X Window (not Window s !) System and the XFree86 project that ported that system to Intel CPU's and associated peripheral hardware. Personal comment. Mr. Stallman is known by his initials "RMS". The author of this webpage is also known by his initials "rms". I always close my email and on-line postings with my initials "rms". There has been a few occasions when people in the Linux community has taken exception to me trying to impersonate Mr. Stallman. This is not true. Given my age, I've been--have been using--the moniker "rms" far longer than Mr. Stallman and I intend to keep using it. Home NetworkThis section explains what you might want to do with a Linux in a home network. The prerequisites are:
At some point, we'll write an article here about how to connect all this together and make it run. But that article has already been done before by many other people. In fact, in the coming months and year or so you are likely to see many more articles on this subject in newspapers, magazines, and on television because this home networking market is expected by many (us included) to start exploding. Meantime, start at Technocopia web site at http://www.technocopia.com/homenetwork.html where there will certainly be information and guidance, and links to other web sites. Also see Moshe Bar's article published on Jerry Pournelle's web site. SambaSamba is software product, open-source and free to use, which is an implementation of the "Server Message Block" (SMB) protocol. It was first developed 1991 by Andrew Tridgell in Australia. SMB is used in the networking of Microsoft Windows and NT; hence, by running Samba on a Linux machine enables machines running these Microsoft products to share files and other services. Samba will give you opportunity to:
See O'Reilly's book "Using Samba", available for free download at http://www.oreilly.com/catalog/samba/chapter/book/indexpdf.html. Gateway to InternetYou can configure your Linux box to act as a gateway, with firewall using IPTABLES, to the internet. This means that in a home network, this single box can have a dial-up PPP connection to your Internet Service Provider (ISP), and all machines on your home network can use that single location. At 56k modem speeds, surely more than one home user will be able to use access the Internet simultaneously.
This is useful for people living in the UK where it is normal that you pay for your phone call to the ISP by the second. Two more people on the Internet at the same time is definitely 1/2 the cost or less of those two people doing it separately on their own dial-up connection.
Whenever any machine on the home network wants to reach an internet site, it will connect to the gateway. The gateway will determine if it's connected to the internet or not. If yes, then the page will be served. If no, then the gateway will dial-up the designed ISP, and then serve the page. You can also configure the Linux gateway to act as a caching DNS server. This is also documented fully in the HOWTO file included in your Linux distribution, so it's not a priority to re-document that here. We just want to let you know of the possibility. A caching DNS server will let your Linux box translate DNS Names into IP addresses. This is normally done by a DNS server at your ISP, but by doing it on your own machine and use the cache of server names/addresses, you reduce the load on the dial-up line and speed up internet access response time. Wireless AccessTo avoid having to string LAN wires through the house, or to enable wireless access to the network from your laptop, you use a Wireless network. With components now easily available, it's pretty simple to accomplish. See Configuring the Linksys BEFW11S3 Wireless Access Point Router with 4-Port Switch to see how we did it with a device from Linksys. See See Configuring a Linksys WPC11 with RedHat 8.0. for how we made the wireless PCI card work in a Linux laptop. Home Internet SecurityAt minimum, do the following before you connect your machine to the Internet:
From: Linux Journal News Notes, 5 June 2002 Using LinuxThis section will talk about using Linux for useful things. Clearly, what seem useful to one person may be considered frivolous to others; but, we'll write about these ideas anyway. File ServingWith Samba running on your home network, you can setup individual "home" folders for all users. This folder would exist in the Linux server, and be the single place where the user's important, personal files are kept. Access can be setup to control access to these files. You can also put files which are used for System BackupsThe Linux server should probably be kept running at all times. This not only is better for the hardware--computers prefer to be kept running instead of starting-up/shutting-down all the time since there is less wear and tear on the electrical and mechanical components--but it also provides the opportunity for automatically running backups at scheduled times. The Linux command "cron" is a daemon which sits in the background awaiting to launch scheduled jobs . The schedule is entered in the so-called "crontab". You can schedule backup jobs in "crontab" to backup (copy, tar to compressed files, or whatever you want) files from the Linux machine onto another hard disk, another networked machine, onto a Zip drive, onto a writable CD, onto a tape ... whatever. We typically run a full backup of all machines to another machine on the network, and then every month or so take a backup to a CD of the important data files. With this approach, backups are taken automatically and continuously without you have to remember. The backups are secure since they are copied onto another machine. The probability of loosing two hard disks on two or more machines simultaneously is almost nil. If you wish even more security, copy the backup files onto Zip drives, CD-ROM, or tape. For high security, you can use the gpg program to encrypt the backup files. See the recent article on this at O'Reilly. Printer SharingWith Samba running on your home network, you can connect printers to the Linux server, and all other users on the home network can print to the shared printer. This reduces the number of printers you have to buy. Current Server and Desktop ApplicationsThe following lists the important server and desktop applications that we use
routinely. I publish this list to meet requests to provide "pointers" to Linux
"newbies". Web Browser. The candidates have been Netscape, KDE's Konqueror, and Mozilla. The choice is Mozilla, but Konqueror is also used often because it transparently will access web, local file systems, etc. Mozilla is the choice simply because the pages are easier to read due to fonts they use. Additionally Mozilla offers integrated email, news, and HTML editor. Email and News. We have tried and used KMail, Mozilla's email client, Netscape's email client, Pine (character based), Sypheed, and maybe a few others. Mozilla 01.3 is the current choice due to integration with the browser and viewing of email in HTML format (which is unfortunately becoming more ubiquitous). KMail is also used. Mozilla and KMail are pointing to the same local mail directory. Writing and Word Processing. Here the jury is still out. Word for Windows 2.0 is still our favourite writing tool, but that went away a long time ago. Win Win4Lin, we are using Microsoft Word 97 successfully on top of Windows 98 on top of Linux. At the same time AbiWord 1.0 looks terrific (reminds us of Word for Windows 2.0) and Open Office 1.0 has made significant improvements over its Star Office predecessor. Graphics. The Gimp. See more on The GIMP at http://www.gimp.org/. Palm Synchronisation. We use a Palm Vx as a PIM (personal information manager), and do not rely on any desktop applications. This simplifies managing personal information and eliminates synchronisation complexity. See Palm and Linux. Workstation and Server Admininstration. Webmin (available from http://www.webmin.com/webmin is a web-based interface for system adminstration. Using a browser, you can setup user accounts, Apache, DSN, Samba file sharing, Cron jobs, etc. Webmin is highly recommended. You still have to have basic understanding of Linux, but with that basic understanding all your administration tasks become simpler. Web Site Publishing. Sitecopy is setup to automatically synchronize the pre-production copy of the web site with the production-copy at the ISP. See http://www.lyra.org/sitecopy . Tips and TricksScreen Shots. PrntScrn and Alt-PrntScrn does not work as it does in Microsoft Windows. Use the programs: xwd, The Gimp, ImageMagick (import), KSnapshot, Slapshot!, or Screen-Shooter Printing man Files. Produce quality printouts of man files, 4 pages per sheet of paper using "typeset-quality" fonts with the the man, mpage, and lpr commands:
Command Line to Send a File Attachment. The mail command does not send attachments. However, you can use the mutt mail program
Other tips: Acrobat 5 with Red Hat 8.0Acrobat 5 (available for Linux from www.adobe.com) doesn't work with Red Hat 8.0 "out of the box". Set LANG=C before running Acrobat. I am not sure what this does. The result is this is to set the LANG environment variable to en_GB.UTF-8 on my computer. It works. I'm sure it has something to do with fonts, character sets and all that ... something which I have never taken the time to learn and undersatnd. See the first CD of the Red Hat distribution for the file RELEASE-NOTES. Installing LinuxInstalling Linux is normally a one-time event. Despite this, when you read about Linux distribution comparisons in the press, all you tend to see is critiques about that distribution's installation features. Today's major Linux distributions install as fast, or faster, than Microsoft with greater flexibility. That flexibility comes at the cost that the user needs to know just a little bit more about the details of their computer than they do with Microsoft Windows. Read the instructions that come with your distribution. A few suggestions follow:
Failure to Install on Toshiba 1135 LaptopThis article talks about experiences with failure to make Red Hat 9 work on a Toshiba 1135. References and LinksBooksBooks are probably the best source for learning, in our opinion. Typically (but not always!), authors spend a lot of time figuring out what to explain and how to explain it. Writing is hard work. Readers can benefit directly from that hard work by reading the book.
Web SitesThere are so many web sites out there. And so many of them provide information about Linux and related topics. The following is only the ones that we know about and use at some remember-able frequency.
R.M. Schneider
|