From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,47934ed119e5417f X-Google-Attributes: gid1103af,public X-Google-Thread: f7ded,47934ed119e5417f X-Google-Attributes: gidf7ded,public X-Google-Thread: 100062,47934ed119e5417f X-Google-Attributes: gid100062,public X-Google-Thread: 10d4db,47934ed119e5417f X-Google-Attributes: gid10d4db,public From: kiesling@terracom.net Subject: Linux Frequently Asked Questions with Answers (Part 2 of 3) Date: 1998/08/31 Message-ID: <6sd1sv$p2i$1@news12.ispnews.com> X-Deja-AN: 386298088 Followup-To: poster X-Trace: news12.ispnews.com 904530655 25682 209.69.148.254 (31 Aug 1998 02:30:55 GMT) Organization: ISPNews http://ispnews.com NNTP-Posting-Date: 31 Aug 1998 02:30:55 GMT Newsgroups: comp.os.linux.announce,comp.os.linux.misc,news.answers,comp.answers Originator: kiesling@terracom.net Archive-Name: linux/faq/part2 Posting-Frequency: weekly For values people have seen with other, rarer, chips, see the BogoMips Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips. 7.18 What is the Linux Journal and where can I get it? Linux Journal is a monthly magazine (printed on paper) that is available on newsstands and via subscription worldwide. Email linux@ssc.com for details. Their URL is http://www.ssc.com/. 7.19 How many people use Linux? Linux is freely available, and no one is required to register their copies with any central authority, so it is difficult to know. Several businesses are now surviving solely on selling and supporting Linux, and very few Linux users use those businesses, relatively speaking. The Linux newsgroups are some of the most heavily read on the Net, so the number is likely in the hundreds of thousands, but firm numbers are hard to come by. However, one brave soul, Harald T. Alvestrand, Harald.T.Alvestrand@uninett.no, has decided to try, and asks that if you use Linux, you send a message to linux-counter@uninett.no with one of the following subjects: `I use Linux at home', `I use Linux at work', or `I use Linux at home and at work'. He will also accept `third-party' registrations--ask him for details. Alternatively, you can register using the WWW forms found at http://domen.uninett.no/~hta/linux/counter.html. He posts his counts to aun.uninett.no in /pub/misc/linux-counter or at the web page above. 7.20 How should I pronounce Linux? This is a matter of religious debate, of course! If you want to hear Linus himself say how he pronounces it, download english.au or swedish.au from ftp.funet.fi (in /pub/Linux/PEOPLE/Linus/SillySounds). If you have a soundcard or the PC-speaker audio driver you can hear them by typing cat english.au >/dev/audio The difference isn't in the pronunciation of Linux but in the language Linus uses to say hello. For the benefit of those of you who don't have the equipment or inclination: Linus pronounces Linux approximately as Leenus, where the ee is as in feet but rather shorter and the u is like a much shorter version of the French eu sound in peur (pronouncing it as the u in put is probably passable). 8. Frequently encountered error messages. 8.1 Unknown terminal type linux and similar. In an early 1.3.x kernel the default console terminal type has changed from console to linux. You must edit /etc/termcap to change the line reading: console|con80x25:\ to linux|console|con80x25:\ (there may be an additional dumb in there--if so it should be removed.) In order to get the editor to work you may need say TERM=console (for bash and ksh) or setenv TERM console (csh, tcsh) first. Some programs use /usr/lib/terminfo instead of /etc/termcap. For these programs you should upgrade your terminfo, which is part of ncurses. 8.2 lp1 on fire This is a joke/traditional error message indicating that some sort of error is being reported by your printer, but that the error status isn't a valid one. It may be that you have some kind of I/O or IRQ conflict - check your cards' settings. Some people report that they get this message when their printer is switched off. Hopefully it isn't really on fire ... In newer kernels, this message reads, "lp1 reported invalid error status (on fire, eh?)" 8.3 INET: Warning: old style ioctl... called! You are trying to use the old network configuration utilities. The new ones can be found on ftp.linux.org.uk in /pub/linux/Networking/PROGRAMS/NetTools (source only, I'm afraid). Note that they cannot be used just like the old-style programs. See the NET-2 HOWTO for instructions on how to set up networking correctly. 8.4 ld: unrecognized option '-m486' You have an old version of ld. Install a newer binutils package--this will contain an updated ld. Look on tsx-11.mit.edu in /pub/linux/packages/GCC for binutils-2.6.0.2.bin.tar.gz. 8.5 GCC says Internal compiler error. If the fault is repeatable (i.e., it always happens at the same place in the same file--even after rebooting and trying again, using a stable kernel) you have discovered a bug in GCC. See the GCC Info documentation (type Control-h i in Emacs, and select GCC from the menu) for details on how to report this--make sure you have the latest version, though. Note that this is probably not a Linux-specific problem; unless you were compiling a program many other Linux users also compile, you should not post your bug report to any of the comp.os.linux groups. If the problem is not repeatable you are very probably experiencing memory corruption--see make says Error 139. 8.6 make says Error 139 Your compiler driver (gcc) dumped core. You probably have a corrupted, buggy or old version of GCC--get the latest release. Alternatively you may be running out of swap space--see My machine runs very slowly when I run GCC / X / .... If this doesn't fix the problem you are probably having problems with memory or disk corruption. Check that the clock rate, wait states and refresh timing for your SIMMs and cache are correct (hardware manuals are sometimes wrong, too). If so you may have some dodgy SIMMs or a faulty motherboard or hard disk or controller. Linux, like any Unix, is a very good memory tester--much better than DOS-based memory test programs. Reportedly some clone x87 maths coprocessors can cause problems; try compiling a kernel with math emulation ( How do I upgrade/recompile my kernel?.) You may need to use the no387 kernel command line flag on the LILO prompt to force the kernel to use math emulation, or it may be able to work and still use the '387, with the math emulation compiled in but mainly unused. Much more information about this problem is available on the Web at http://www.bitwizard.nl/sig11/. 8.7 shell-init: permission denied when I log in. Your root directory and all the directories up to your home directory must be readable and executable by everybody. See the manual page for chmod or a book on Unix for how to fix the problem. 8.8 No utmp entry. You must exec ... when I log in. Your /var/run/utmp is screwed up. You should have > /var/run/utmp in your /etc/rc.local or /etc/rc.d/*. See ("I have screwed up my system and can't log in to fix it.") Note that utmp may also be found in /var/adm/utmp or /etc/utmp on some older systems. 8.9 Warning--bdflush not running. Modern kernels use a better strategy for writing cached disk blocks. In addition to the kernel changes, this involves replacing the old update program which used to write everything every 30 seconds with a more subtle daemon (actually a pair), known as bdflush. Get bdflush-n.n.tar.gz from the same place as the kernel source code (Q7.6 `How do I upgrade/recompile my kernel ?') and compile and install it; it should be started before the usual boot-time file system checks. It will work fine with older kernels as well, so there's no need to keep the old update around. 8.10 Warning: obsolete routing request made. This is nothing to worry about; it just means that the version of route you have is a little out of date compared to the kernel. You can make the message go away by getting a new version of route from the same place as the kernel source code (Q7.6 `How do I upgrade/recompile my kernel ?'). 8.11 EXT2-fs: warning: mounting unchecked file system. You need to run e2fsck (or fsck -t ext2 if you have the fsck front-end program) with the -a option to get it to clear the `dirty' flag, and then cleanly unmount the partition during each shutdown. The easiest way to do this is to get the latest fsck, umount and shutdown commands, available in Rik Faith's util-linux package (Q2.5 `Where can I get Linux material by FTP?'). You have to make sure that your /etc/rc* scripts use them correctly. NB: don't try to check a file system that's mounted read-write--this includes the root partition if you don't see VFS: mounted root ... read-only at boot time. You must arrange to mount the root file system read-only to start with, check it if necessary, and then remount it read-write. Read the documentation that comes with util-linux to find out how to do this. Note that you need to specify the -n option to mount to get it not to try to update /etc/mtab, since the root file system is still read-only and this will otherwise cause it to fail! 8.12 EXT2-fs warning: maximal count reached. This message is issued by the kernel when it mounts a file system that's marked as clean, but whose `number of mounts since check' counter has reached the predefined value. The solution is to get the latest version of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the time of writing) from the usual sites (Q2.5 `Where can I get Linux material by FTP ?'). The maximal number of mounts value can be examined and changed using the tune2fs program from this package. 8.13 EXT2-fs warning: checktime reached. Kernels from 1.0 onwards support checking a file system based on the elapsed time since the last check as well as by the number of mounts. Get the latest version of the ext2fs utilities (see Q9.13 `EXT2-fs warning: maximal count reached'). 8.14 df says Cannot read table of mounted file systems. There is probably something wrong with your /etc/mtab or /etc/fstab files. If you have a reasonably new version of mount, /etc/mtab should be emptied or deleted at boot time (in /etc/rc.local or /etc/rc.d/*), using something like rm -f /etc/mtab* Some versions of SLS have an entry for the root partition in /etc/mtab made in /etc/rc* by using rdev. This is incorrect--the newer versions of mount do this automatically. Other versions of SLS have a line in /etc/fstab that looks like: /dev/sdb1 /root ext2 defaults This is wrong. /root should read simply /. 8.15 fdisk says Partition X has different physical/logical ... If the partition number (X, above) is 1 this is the same problem as Q9.17 `fdisk: Partition 1 does not start on cylinder boundary'. If the partition begins or ends on a cylinder numbered greater than 1024, this is because the standard DOS disk geometry information format in the partition table can't cope with cylinder numbers with more than 10 bits. You should see "How can I get Linux to work with my disk?" 8.16 fdisk: Partition 1 does not start on cylinder boundary The version of fdisk that comes with many Linux systems creates partitions that fail its own validity checking. Unfortunately, if you've already installed your system, there's not much you can do about this, apart from copying the data off the partition, deleting and remaking it, and copying the data back. You can avoid the problem by getting the latest version of fdisk, from Rik Faith's util-linux package (available on all the usual FTP sites). Alternatively, if you are creating a new partition 1 that starts in the first cylinder, you can do the following to get a partition that fdisk likes. * Create partition 1 in the normal way. A `p' listing will produce the mismatch complaint. * Type `u' to set sector mode and do `p' again. Copy down the number from the "End" column. * Delete partition 1. * While still in sector mode, re-create partition 1. Set the first sector to match the number of sectors per track. This is the sector number in the first line of the `p' output. Set the last sector to the value you wrote down in the step above. * Type `u' to reset cylinder mode and continue with other partitions. Ignore the message about unallocated sectors--they refer to the sectors on the first track apart from the Master Boot Record, and they are not used if you start the first partition in track 2. 8.17 fdisk says partition n has an odd number of sectors. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses 1K blocks. If you have a partition with an odd number of sectors, the last sector is wasted. Ignore the message. 8.18 mtools says cannot initialize drive XYZ This means that mtools is having trouble accessing the drive. This can be due to several things. Often this is due to the permissions on floppy drive devices (/dev/fd0* and /dev/fd1*) being incorrect--the user running mtools must have the appropriate access. See the manual page for chmod for details. Most versions of mtools distributed with Linux systems (not the standard GNU version) use the contents of a file /etc/mtools to determine which devices and densities to use, in place of having this information compiled into the binary. Mistakes in this file often cause problems. There is often no documentation about this--distribution packagers, please note that this is evil. For the easiest way to access your DOS files (especially those on a hard disk partition) see How do I access files on my DOS partition or floppy? Note--you should never use mtools to access files on an msdosfs mounted partition or disk! 8.19 At the start of booting: Memory tight This means that you have an extra large kernel, which means that Linux has to do some special memory-management magic to be able to boot itself from the BIOS. It isn't related to the amount of physical memory in your machine. Ignore the message, or compile a kernel containing only the drivers and features you need . (See, "How do I upgrade/recompile my kernel?)" 8.20 My syslog says `end_request: I/O error, ...'. Peter Moulder, pjm@bofh.asn.au, noted that this should be a FAQ. This error message, and messages like it, almost always indicates a hardware error with a hard drive. Theodore T'so, tytso@mit.edu, noted that this commonly indicates of a hard drive defect. The only way to avoid further data loss is to completely shut own the system. You must also make sure that the whatever data is on the drive is backed up, and restore it to a non-defective hard drive. This error message may also indicate a bad connection to the drive, especially with homebrew systems. If you install an IDE drive yourself, ALWAYS use new cables. This probably isn't a bad idea with SCSI drives, too. This error also seemed to coincide with a grounding problem between the system board and the chassis on one machine. Be sure that all electrical connections are clean and tight before placing the blame on the hard drive itself. 8.21 You don't exist. Go away. This is not a viral infection :-). It comes from various programs such as write, talk, and wall, if your invoking uid doesn't correspond to a valid user (probably due to /etc/passwd being corrupted), or if the session (pseudoterminal, specifically) you're using isn't properly registered in the utmp file (probably because you invoked it in a funny way). 9. The X Window System. 9.1 Does Linux support X Windows? Yes. Linux uses XFree86 (the current version is 3.3.2, which is based on X11R6). You need to have a video card which is supported by XFree86. See the Linux XFree86 HOWTO for more details. Most Linux distributions nowadays come with an X installation. However, you can install or upgrade your own, from /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites. Read the XFree86 HOWTO for installation instructions. 9.2 Where can I get an XF86Config for my system? See the Linux XFree86 HOWTO. You'll need to put together your own XF86Config file, because it depends on the exact combination of video card and monitor you have. It's not that hard--read the instructions that came with XFree86, in /usr/X11R6/lib/X11/etc. The file you probably need to look at most is README.Config. You should not use the sample XF86Config.eg file which is included with newer versions of XFree86 verbatim, because the wrong video clock settings can damage your monitor. For a quick start, you may run the program xf86config. Note that ConfigXF86 is obsolete, and you shouldn't use it. Please don't post to comp.os.linux.x asking for an XF86Config, and please don't answer such requests. 9.3 xterm logins show up strangely in who, finger. The xterm that comes with XFree86 2.1 and earlier doesn't correctly understand the format that Linux uses for the /var/adm/utmp file, where the system records who is logged in. It therefore doesn't set all the information correctly. The Xterms in XFree86 3.1 and later versions fix this problem. 9.4 I can't get X Windows to work right. Read the XFree86 HOWTO--note the question and answer section. Try reading comp.windows.x.i386unix--specifically read the the FAQ for that group. Please don't post X Windows or XFree86 related questions to comp.os.linux.x unless they are Linux-specific. 10. Questions applicable to very out-of-date software. The questions in this section are only relevant to users of software that is at least three months old. Please let me know if you find the answer to a problem you had here, as unused questions in this section will eventually disappear. (See " Feedback is invited.") 10.1 fdisk says cannot use nnn sectors of this partition. Originally Linux only supported the Minix file system, which cannot use more than 64Mb per parition. This limitation is not present in the more advanced file systems that are now available, such as ext2fs (the 2nd version of the Extended File System, the `standard' Linux file system). If you intend to use ext2fs you can ignore the message. 10.2 GCC sometimes uses huge amounts of virtual memory and thrashes. Older versions of GCC had a bug that made them use lots of memory if you tried to compile a program which had a large static data table in it. You can either upgrade your version of GCC to at least version 2.5, or add more swap if necessary and just grin and bear it; it'll work in the end. 11. How to get further assistance. 11.1 You still haven't answered my question! Please read all of this answer before posting. I know it's a bit long, but you may be about to make a fool of yourself in front of 50,000 people and waste hundreds of hours of their time. Don't you think it's worth it to spend some of your time reading and following these instructions? If you think an answer is incomplete or inaccurate, please e-mail Robert Kiesling at kiesling@terracom.net. Read the appropriate Linux Documentation Project books--see " Where can I get the HOWTOs and other documentation?" If you're a Unix newbie, read the FAQ for comp.unix.questions, and those for any of the other comp.unix.* groups that may be relevant. Linux is a Unix clone, so almost everything you read there will apply to Linux. Those FAQs can, like all FAQs, be found on rtfm.mit.edu in /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send you these files, if you don't have FTP access). There are mirrors of rtfm's FAQ archives on various sites - check the Introduction to *.answers posting, posted, or look in news-answers/introduction in the directory above. Check the relevant HOWTO for the subject in question, if there is one, or an appropriate old-style sub-FAQ document. Check the FTP sites. Try experimenting--that's the best way to get to know Unix and Linux. Read the documentation. Check the manual pages (type "man man" if you don't know about manual pages. Try "man -k subject"--it often lists useful and relevant manpages. Check the Info documentation (type C-h i, i.e. Control H followed by I in Emacs)--NB: this isn't just for Emacs; for example the GCC documentation lives here as well. There will also often be a README file with a package that gives installation and/or usage instructions. Make sure that you don't have a corrupted or out-of-date copy of the program in question. If possible, download it again and re-install it--perhaps you made a mistake the first time. Read comp.os.linux.announce--this often contains very important information for all Linux users. General X-Windows questions belong in comp.windows.x.i386unix, not in comp.os.linux.x. But read the group first (including the FAQ), before you post! Only if you have done all of these things and are still stuck should you post to the appropriate comp.os.linux.* newsgroup. Make sure you read the next question, Q12.2 `What to put in a request for help', first. 11.2 What to put in a request for help. Please read carefully the following advice about how to write your posting or email. Taking heed of it will greatly increase the chances that an expert or fellow user reading it will have enough information and motivation to reply. This advice applies both to postings asking for advice and to personal email sent to experts and fellow users. Make sure you give full details of the problem, including: * What program, exactly, you are having problems with. Include the version number if known and say where you got it. Many standard commands tell you their version number if you give them a --version option. * Which Linux release you're using (Red Hat, Slackware, Debian, or whatever) and what version of that release. * The exact and complete text of any error messages printed. * Exactly what behaviour you were expecting, and exactly what behaviour you observed. A transcript of an example session is a good way of showing this. * The contents of any configuration files used by the program in question and any related programs. * What version of the kernel and of the shared libraries you are using. The kernel version can be found by typing uname -a, and the shared library version by typing ls -l /lib/libc.so.4. * Details of what hardware you're running on, if it seems appropriate. You are in little danger of making your posting too long unless you include large chunks of source code or uuencoded files, so err on the side of giving too much information. Use a clear, detailed Subject line. Don't put things like `doesn't work', `Linux', `help' or `question' in it--we already know that! Save the space for the name of the program, a fragment of the error message, summary of the unusual behaviour, etc. If you are reporting an `unable to handle kernel paging request' message, follow the instructions in the Linux kernel sources README for turning the numbers into something more meaningful. If you don't do this, no one who reads your post will be able to do it for you, as the mapping from numbers to function names varies from one kernel to another. Put a summary paragraph at the top of your posting. At the bottom of your posting, ask for responses by email and say you'll post a summary. Back this up by using Followup-To: poster. Then, do actually post a summary in a few days or a week or so. Don't just concatenate the replies you got--summarise. Putting the word SUMMARY in your summary's Subject line is also a good idea. Consider submitting the summary to comp.os.linux.announce. Make sure your posting doesn't have an inappropriate References header line. This marks your article as part of the thread of the article referred to, which will often cause it to be junked by readers, along with the rest of a boring thread. You might like to say in your posting that you've read this FAQ and the appropriate HOWTOs--this may make people less likely to skip your posting. Remember that you should not post email sent to you personally without the sender's permission. 11.3 I want to mail someone about my problem. Try to find the author or developer of whatever program or component is causing you difficulty. If you have a contact point for your Linux distribution, you should use it. Please put everything in your email that you would put in a posting asking for help. Finally, remember that despite the fact that most of the Linux community are very helpful and responsive to emailed questions, you'll be asking for help from an unpaid volunteer, so you have no right to expect an answer. 12. Administrative information and acknowledgements. 12.1 Feedback is invited. Please send me your comments on this FAQ. I accept submissions for the FAQ in any format; All contributions, comments, and corrections are gratefully received. Please send them to kiesling@terracom.net. If you wish to refer to a question(s) in the FAQ, it's most useful for me if you do so by the question heading, rather than the number, as the question numbers are generated automatically and I don't see them in the source file I edit. I prefer comments in English to patch files--I context diff is not my first language. 12.2 Formats in which this FAQ is available. This document is available as an ASCII text file, an HTML World Wide Web page, PostScript, and as a USENET news posting. All of these formats are generated from SGML source using SGML Tools and the LinuxDoc DTD. The HTML version of this FAQ is available as http://sunsite.unc.edu/LDP/ at other sites. The Usenet version is posted regularly to comp.os.linux.announce, comp.answers, and news.answers. The most recent text, HTML, source, and PostScript versions are available from the Linux archives at sunsite.unc.edu, and from http://www.terracom.net/~kiesling 12.3 Authorship and acknowledgements. This FAQ is compiled and maintained by Robert Kiesling kiesling@terracom.net, with assistance and comments from Linux activists all over the world. Special thanks are due to Matt Welsh, who moderated comp.os.linux.announce and comp.os.linux.answers, coordinated the HOWTOs and wrote substantial portions of many of them, Greg Hankins and Timothy Bynum, the former and current HOWTO maintainers, Lars Wirzenius and Mikko Rauhala, the former and current moderators of comp.os.linux.announce, Marc-Michel Corsini, who wrote the original Linux FAQ, and Ian Jackson, the previous FAQ maintainer. Thanks also to Roman Maurer for his many updates and additions, especially with European Web sites, translations, and general miscellany. Last but not least, thanks to Linus Torvalds and the other contributors to Linux for giving us something to talk about! 12.4 Disclaimer and Copyright. Note that this document is provided `as is'. The information in it is not warranted to be correct. Use it at your own risk. Linux Frequently Asked Questions with Answers is Copyright (c) 1997, 1998 by Robert Kiesling kiesling@terracom.net, under the copyright of the Linux Documentation Project. The full text of the LDP copyright is available via anonymous FTP from sunsite.unc.edu, in the directory /pub/Linux/docs/LDP, and is included below. Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the previous Linux FAQ maintainer. Linux Frequently Asked Questions with Answers may be reproduced and distributed in its entirety (including this authorship, copyright, and permission notice), provided that no charge is made for the document itself, without the author's consent. Portions may be reproduced for such purposes as reviews, advertising, and derivative works like translations, with the author's consent. Note that this restriction is not intended to prohibit charging for the service of printing or copying a document supplied by your customer. Exceptions to these rules may be granted. I would be happy to answer any questions about this copyright. Email me at kiesling@terracom.net. As the license below says, these restrictions are here to protect the contributors, not to restrict you as educators and learners. LINUX DOCUMENTATION PROJECT COPYING LICENSE Last modified 6 January 1997 The following copyright license applies to all works by the Linux Documentation Project. Please read the license carefully---it is somewhat like the GNU General Public License, but there are several conditions in it that differ from what you may be used to. If you have any questions, please email the LDP coordinator, mdw@sunsite.unc.edu. The Linux Documentation Project manuals may be reproduced and distributed in whole or in part, subject to the following conditions: All Linux Documentation Project manuals are copyrighted by their respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. * The copyright notice above and this permission notice must be preserved complete on all complete or partial copies. * Any translation or derivative work of Linux Installation and Getting Started must be approved by the author in writing before distribution. * If you distribute Linux Installation and Getting Started in part, instructions for obtaining the complete version of this manual must be included, and a means for obtaining a complete version provided. * Small portions may be reproduced as illustrations for reviews or quotes in other works without this permission notice if proper citation is given. * The GNU General Public License referenced below may be reproduced under the conditions given within it. Exceptions to these rules may be granted for academic purposes: Write to the author and ask. These restrictions are here to protect us as authors, not to restrict you as educators and learners. All source code in Linux Installation and Getting Started is placed under the GNU General Public License, available via anonymous FTP from the GNU archive site. PUBLISHING LDP MANUALS If you're a publishing company interested in distributing any of the LDP manuals, read on. By the license given in the previous section, anyone is allowed to publish and distribute verbatim copies of the Linux Documentation Project manuals. You don't need our explicit permission for this. However, if you would like to distribute a translation or derivative work based on any of the LDP manuals, you must obtain permission from the author, in writing, before doing so. All translations and derivative works of LDP manuals must be placed under the Linux Documentation License given in the previous section. That is, if you plan to release a translation of one of the manuals, it must be freely distributable by the above terms. You may, of course, sell the LDP manuals for profit. We encourage you to do so. Keep in mind, however, that because the LDP manuals are freely distributable, anyone may photocopy or distribute printed copies free of charge, if they wish to do so. We do not require to be paid royalties for any profit earned from selling LDP manuals. However, we would like to suggest that if you do sell LDP manuals for profit, that you either offer the author royalties, or donate a portion of your earnings to the author, the LDP as a whole, or to the Linux development community. You may also wish to send one or more free copies of the LDP manual that you are distributing to the author. Your show of support for the LDP and the Linux community will be very appreciated. We would like to be informed of any plans to publish or distribute LDP manuals, just so we know how they're becoming available. If you are publishing or planning to publish any LDP manuals, please send email to Matt Welsh (email mdw@sunsite.unc.edu). We encourage Linux software distributors to distribute the LDP manuals (such as the Installation and Getting Started Guide) with their software. The LDP manuals are intended to be used as the "official" Linux documentation, and we'd like to see mail-order distributors bundling the LDP manuals with the software. As the LDP manuals mature, hopefully they will fulfill this goal more adequately. Matt Welsh, mdw@sunsite.unc.edu 1. Introduction and General Information 1.1 What is Linux? Linux is the free Unix written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers from across the Internet. Linux aims towards POSIX compliance, and has all of the features you would expect of a modern, fully-fledged Unix: true multitasking, virtual memory, shared libraries, demand loading, shared, copy-on-write executables, proper memory management, and TCP/IP networking. Linux runs mainly on 386/486/586-based PCs, using the hardware facilities of the 386 processor family (TSS segments, et al.) to implement these features. Ports to other architectures are underway. (See "What ports to other processors are there?") See the Linux INFO-SHEET for more details. (See "Where can I get the HOWTOs and other documentation?") The Linux kernel is distributed under the GNU General Public License. (See, "Is Linux public domain? Copyrighted?") 1.2 Where do I start? There are a handful of different Linux distributions. For information about them, and how they are installed, see Matthew Welsh's Installation and Getting Started, or IGS for short. It's located at the Linux Documentation Project Home Page, http://sunsite.unc.edu/LDP. There is also an Installation HOWTO at the LDP Home Page. Most of the distributions are available via anonymous FTP from various Linux archive sites. See "Where can I get Linux material by FTP?" There are also a large number of other releases which are distributed less globally, which suit special local and national needs. 1.3 What software does Linux support? Linux supports GCC, Emacs, the X Window System, all the standard Unix utilities, TCP/IP (including SLIP and PPP), and all the hundreds of programs that people have compiled or ported for it. There is a DOS emulator (available at tsx-11.mit.edu/pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not all) DOS applications. Be sure to look at the README file to determine which version of dosemu you should get. Also, see the DOSEMU-HOWTO (slightly dated at this point--it doesn't cover the most recent version of the program), which is located at sunsite.unc.edu/pub/Linux/docs/HOWTO. Work has been progressing on an emulator for Microsoft Windows binaries. (See "Can I run Microsoft Windows programs under Linux?") iBCS2 (Intel Binary Compatibility Standard) emulator code for SVR4 ELF and SVR3.2 COFF binaries can be included in the kernel as a compile-time option. See the file tsx-11.mit.edu/pub/linux/BETA/ibcs2/README. For more information see the INFO-SHEET, which is one of the the HOWTOs (See "Where can I get the HOWTOs and other documentation?" See also "How do I port XXX to Linux?" Some companies have commercial software available, including Motif. They announce their availability in comp.os.linux.announce--try searching the archives. (See "Are the newsgroups archived anywhere?") 1.4 Does Linux run on my computer? What hardware is supported? You need a 386, 486 or 586, with at least 2Mb of RAM and a single floppy, to try Linux. To do anything useful, more RAM is needed. (" How much memory does Linux need?") VESA Local Bus and PCI are supported. MCA (IBM's proprietary bus) and ESDI hard drives are mostly supported. There is further information on the MCA bus and what cards Linux supports on the Micro Channel Linux Web page, http://glycerine.itsmm.uni.edu/mca. Linux runs on 386 family based laptops, with X on most of them. There is a relevant Web page at http://www.cs.utexas.edu/users/kharker/linux-laptop/. For details of exactly which PC's, video cards, disk controllers, etc. work see the INFO-SHEET and the Hardware-HOWTO. (See "Where can I get the HOWTOs and other documentation?") There is a port of Linux to the 8086, known as the Embeddable Linux Kernel Subset (ELKS). This is a 16-bit subset of the Linux kernel which will mainly be used for embedded systems. See http://www.linux.org.uk/Linux8086.html for more information. Linux will never run fully on an 8086 or '286, because it requires task-switching and memory management facilities not found on these processors. Linux supports multiprocessing with Intel MP architecture. See the file Documentation/smp.tex in the Linux kernel source code distribution. See the next question for a (probably incomplete) list of hardware platforms that Linux has been ported to. 1.5 What ports to other processors are there? There is a reasonably complete list of Linux ports at http://www.ctv.es/USERS/xose/linux/linux_ports.html, and at http://www.linuxhq.com/dist-index.html. A project has been underway for a while to port Linux to suitable 68000-series based systems such as Amigas and Ataris. The Linux/m68K FAQ is located at www.clark.net/pub/lawrencc/linux/faq/faq.html. The URL of the Linux/m68k home page is www.linux-m68k. There is a linux-680x0 mailing list. (See "What mailing lists are there?") There is (or was) a FTP site for the Linux-m68k project on ftp.phil.uni-sb.de/pub/atari/linux-68k, but this address may no longer be current. Debian GNU/Linux is being ported to Alpha, Sparc, PowerPC, and ARM. There are mailing lists for all of these platforms. See http://www.debian.org/MailingLists/subscribe. One of the Linux-PPC project pages has moved recently. Its location is http://www.linuxppc.org, and the archive site is ftp.linuxppc.org/linuxppc. There is a Linux-PPC support page at www.cs.nmt.edu/~linuxppc/. There you will find the kernel that is distributed with Linux. Apple now supports MkLinux development on Power Macs, based on OSF and the Mach microkernel. See http://www.mklinux.apple.com. A port to the 64-bit DEC Alpha/AXP is at http://www.azstarnet.com/~axplinux/. There is a mailing list at vger.rutgers.edu. (See "What mailing lists are there?") Ralf Baechle is working on a port to the MIPS, initially for the R4600 on Deskstation Tyne machines. The Linux-MIPS FTP sites are ftp.fnet.fr/linux-mips and ftp://ftp.linux.sgi.com/pub/mips-linux. Interested people may mail their questions and offers of assistance to linux@waldorf-gmbh.de. There is also a MIPS channel on the Linux Activists mailserver and a linux-mips mailing list. (See "What mailing lists are there?") There are currently two ports of Linux to the ARM family of processors. One of these is for the ARM3, fitted to the Acorn A5000, and it includes I/O drivers for the 82710/11 as appropriate. The other is to the ARM610 of the Acorn Risc PC. The Risc PC port is currently in its early to middle stages, owing to the need to rewrite much of the memory handling. The A5000 port is in restricted beta testing. A release is likely soon. For more up-to-date information, watch the newsgroup comp.sys.acorn.misc. There is a FAQ at http://www.arm.uk.linux.org The Linux SPARC project is a hotbed of activity. There is a FAQ available from Jim Mintha's Linux for SPARC Processors page, http://www.geog.ubc.ca/sparclinux.html. The SPARC/Linux archives are at vger.rutgers.edu/pub/linux/Sparc. There is also a port ("Hardhat") to SGI/Indy machines. The URL is http://www.linux.sgi.com. 1.6 How much hard disk space does Linux need? About 10Mb for a very minimal installation, suitable for trying it out and not much else. You can squeeze a more complete installation including X, into 80Mb. Installing almost all of Debian GNU/Linux takes around 500Mb, including kernel source code, some space for user files, and spool areas. 1.7 How much memory does Linux need? At least 4MB, and then you will need to use special installation procedures. Linux will run comfortably in 4MB of RAM, although X Windows Apps will run slowly because they need to swap out to disk. Some recent applications, like Netscape, require 64MB of physical memory. 1.8 How much memory can Linux use? A number of people have asked how to address more than 64 MB of memory, which is the default upper limit. Place the following in your lilo.conf file: append="mem=XXM" Where "XX" is the amount of memory, specified as megabytes, for example, '128M'. For further details see the lilo manual page. 1.9 Is Linux public domain? Copyrighted? The Linux kernel copyright belongs to Linus Torvalds. He has placed it under the GNU General Public License, which basically means that you may freely copy, change, and distribute it, but you may not impose any restrictions on further distribution, and you must make the source code available. This is not the same as Public Domain. See the Copyright FAQ, rtfm.mit.edu/pub/usenet/news.answers/law/copyright, for details. Full details are in the file COPYING in the Linux kernel sources (probably in /usr/src/linux on your system). The licenses of the utilities and programs which come with the installations vary. Much of the code is from the GNU Project at the Free Software Foundation, and is also under the GPL. Note that discussion about the merits or otherwise of the GPL should be posted to gnu.misc.discuss and not to the comp.os.linux groups. 2. Network sources and resources. 2.1 Where can I get the HOWTOs and other documentation? Look in the following places, and the sites that mirror them. * ftp.funet.fi : /pub/OS/Linux/doc/HOWTO * tsx-11.mit.edu : /pub/linux/docs/HOWTO * sunsite.unc.edu : /pub/Linux/docs/HOWTO For a complete list of Linux FTP sites, "Where can I get Linux material by FTP?" If you don't have access to FTP, try the FTP-by-mail servers at ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or ftp-mailer@informatik.tu-muenchen.de.. A complete list of HOWTO's and Mini-HOWTO's is available in the file HOWTO.INDEX in the docs/HOWTO directory at the FTP sites, or on the Web at http://sunsite.unc.edu/LDP/HOWTO/HOWTO-INDEX.html, but here is a (possibly incomplete) list: AX25-HOWTO Access-HOWTO Assembly-HOWTO Benchmarking-HOWTO BootPrompt-HOWTO Bootdisk-HOWTO CD-Writing-HOWTO CDROM-HOWTO Chinese-HOWTO Commercial-HOWTO Consultants-HOWTO Cyrillic-HOWTO DNS-HOWTO DOS-to-Linux-HOWTO DOSEMU-HOWTO Danish-HOWTO Distribution-HOWTO ELF-HOWTO Emacspeak-HOWTO Ethernet-HOWTO Finnish-HOWTO Firewall-HOWTO Ftape-HOWTO GCC-HOWTO German-HOWTO HAM-HOWTO HOWTO-INDEX Hardware-HOWTO Hebrew-HOWTO IPX-HOWTO ISP-Hookup-HOWTO Installation-HOWTO Intranet-Server-HOWTO Italian-HOWTO Java-CGI-HOWTO Kernel-HOWTO Keyboard-and-Console-HOWTO MGR-HOWTO MILO-HOWTO Mail-HOWTO NET-3-HOWTO NFS-HOWTO NIS-HOWTO News-HOWTO Optical-Disk-HOWTO PCI-HOWTO PCMCIA-HOWTO PPP-HOWTO Pilot-HOWTO Polish-HOWTO Printing-HOWTO Printing-Usage-HOWTO RPM-HOWTO Reading-List-HOWTO SCSI-HOWTO SCSI-Programming-HOWTO SMB-HOWTO Serial-HOWTO Serial-Programming-HOWTO Shadow-Password-HOWTO Slovenian-HOWTO Sound-HOWTO Sound-Playing-HOWTO Spanish-HOWTO TeTeX-HOWTO Thai-HOWTO Tips-HOWTO UMSDOS-HOWTO UPS-HOWTO UUCP-HOWTO User-Group-HOWTO VAR-HOWTO VMS-to-Linux-HOWTO XFree86-HOWTO XFree86-Video-Timings-HOWTO 3-Button-Mouse The following Mini-HOWTO's are available from http://sunsite.unc.edu/pub/Linux/HOWTO/mini: ADSM-Backup AI-Alife Advocacy Backup-With-MSDOS Battery-Powered Boca BogoMips Bridge Bridge+Firewall Clock Colour-ls Comeau-C++ DHCPd Dial-On-Demand Diald Dip+SLiRP+CSLIP Diskless Dynamic-IP-Hacks Ext2fs-Undeletion GTEK-BBS-550 HTML-Validation IO-Port-Programming IP-Alias IP-Masquerade IP-Subnetworking JE Jaz-Drive Kerneld Key-Setup LBX Large-Disk Linux+DOS+Win95 Linux+DOS+Win95+OS2 Linux+NT-Loader Linux+OS2+DOS Linux+Win95 Loadlin+Win95 Locales MIDI+SB Mail-Queue Mail2News Man-Page Multiple-Disks-Layout Multiple-Ethernet NFS-Root NFS-Root-Client Netscape+Proxy Offline-Mailing Online-Support PLIP PPP-over-minicom Pager Partition Print2Win Process-Accounting Proxy-ARP Public-Web-Browser Qmail+MH Quota RCS Remote-Boot Remote-X-Apps SLIP+proxyARP SLIP-PPP-Emulator Sendmail+UUCP Software-Building Software-RAID Soundblaster-16 Soundblaster-AWE64 StarOffice Swap-Space Term-Firewall Tiny-News Token-Ring Upgrade VPN Virtual-wu-ftpd Visual-Bell Win95+Win+Linux Windows-Modem-Sharing WordPerfect X-Big-Cursor XFree86-XInside Xterm-Title Xterminal ZIP-Drive ZIP-Install In addition, translations of the HOWTO's are available from sunsite.unc.edu/pub/Linux/docs/HOWTO/translations and mirrors worldwide. Translations in the following languages are available: Chinese (zh) French (fr) German (de) Hellenic (el) Indonesian (id) Italian (it) Japanese (jp) Korean (ko) Polish (pl) Spanish (es) Slovenian (sl) Polish (sv) Turkish (tr) The HOWTO's are also on the Web, at the Linux Documentation Project's home page, http://sunsite.unc./edu/LDP. More of these documents are always in preparation. Please get in touch with Greg Hankins, gregh@cc.gatech.edu, the HOWTO coordinator, if you are interested in writing one. The file sunsite.unc.edu/pub/Linux/HOWTO/HOWTO-INDEX contains guidelines for writing a HOWTO. The Guide Series produced by the Linux Documentation Project is available from http://sunsite.unc.edu/LDP. Please read them if you are new to Unix and Linux. Here is a list of those available so far: * The Linux Documentation Project Manifesto, by Matt Welsh. * Installation and Getting Started Guide, by Matt Welsh. * The Linux Kernel, by David Rusling. * The Network Administrator's Guide, by Olaf Kirch. * The Linux Programmer's Guide, by Sven Goldt, Sven van der Meer, Scott Burkett, and Matt Welsh. * The Linux System Administrator's Guide, Version 0.5, by Lars Wirzenius. * Text Processing with Linux, by Robert Kiesling. 2.2 Where should I look on the World Wide Web for Linux stuff? Two Web pages in particular provide good starting point for general Linux information: Linux International's Home Page, at http://www.li.org, and the Linux Online's Linux Home Page at http://www.linux.org/. Both of these pages provide links to other sites, information about general information, distributions, new software, documentation, and news. Greg Hankins, gregh@cc.gatech.edu, maintains the Linux Documentation Project Home Page, at http://sunsite.unc.edu/LDP. This page refers to all the FAQs and HOWTOs, both those which are available in HTML (WWW) format, and those which aren't. 2.3 What newsgroups are there for Linux? There are a number of international Usenet newsgroups devoted to Linux. comp.os.linux.announce is the moderated announcements group; you should read this if you intend to use Linux: it contains information about software updates, new ports, user group meetings, and commercial products. It is the ONLY newsgroup that may carry commercial postings. Submissions for that group should be emailed to linux-announce@news.ornl.gov. comp.os.linux.answers contains all the FAQs, HOWTOs and other important documentation. You should subscribe to this group also. Axel Boldt, axel@uni-paderborn.de, noted that comp.os.linux.announce is NOT archived on Dejanews or Altavista. The only archive for the news group seems to be www.iki.fi/mjr/linux/cola.html. Also worth reading are the other groups in the comp.os.linux.* hierarchy--you may find that many common problems are too recent to find in this FAQ but are answered in the newsgroups. These groups are comp.os.linux.setup comp.os.linux.hardware comp.os.linux.networking comp.os.linux.x comp.os.linux.development.apps comp.os.linux.development.system comp.os.linux.advocacy comp.os.linux.misc Remember that since Linux is POSIX compatible, most all of the material in comp.unix.* and comp.windows.x.* groups will be relevant. Apart from hardware considerations, and some obscure or very technical low-level issues, you'll find that these groups are a good place to start. Please read "You still haven't answered my question!" before posting. Crossposting between different comp.os.linux.* groups is rarely a good idea. There may well be Linux groups local to your institution or area--check there first. See also "I don't have Usenet access. Where do I get information?" Other regional and local newsgroups also exist--you may find the traffic more manageable there. The French Linux newsgroup is fr.comp.os.linux. The German one is de.comp.os.linux. In Australia, try aus.computers.linux. In Croatia there is the moderated group hr.comp.linux.m. In Italy, there is it.comp.linux. 2.4 Where can I find out about Linux and the Millennium (Y2K) bug? The Debian/GNU Linux people have a statement on their Web site at http://www.debian.org Essentially, Linux uses libraries that store dates as 32-bit integers, which count the seconds since 1970. This counter will not overflow until the year 2038, by which time the library programmers will (hopefully) have upgraded the system software to store dates as 64-bit integers. This, of course, does not mean that applications are not susceptible to the millennium bug, if they do not use the standard library routines. The Free Software Foundation has a webpage about Y2K issues in GNU software at http://www.fsf.org/software/year2000.html There is also a Usenet newsgroup, comp.software.year-2000, for general discussion of Y2K issues. 2.5 Where can I get Linux material by FTP? There are three main archive sites for Linux: * ftp.funet.fi (Finland) : /pub/OS/Linux * sunsite.unc.edu (US) : /pub/Linux * tsx-11.mit.edu (US) : /pub/linux The best place to get the Linux kernel is ftp.cs.helsinki.fi/pub/Linux_Kernel. Linus Torvalds uploads the most recent kernel versions to this site. Of the U.S. distributions, Debian GNU/Linux is available at ftp.debian.org/pub/debian. Red Hat Linux's home site is ftp.redhat.com, and Slackware's is ftp.cdrom.com. The contents of these sites is mirrored (copied, usually approximately daily) by a number of other sites. Please use one close to you--that will be faster for you and easier on the network. * ftp.sun.ac.za/pub/linux/sunsite/ (South Africa) * ftp.is.co.za/linux/sunsite/ (South Africa) * ftp.cs.cuhk.hk/pub/Linux/ (Hong Kong) * ftp.cs.cuhk.hk/pub/Linux/ (Hong Kong) * ftp.spin.ad.jp/pub/linux/sunsite.unc.edu/ (Japan) * ftp.nuri.net/pub/Linux/ (Korea) * ftp.jaring.my/pub/Linux/ (Malaysia) * ftp.nus.sg/pub/unix/Linux/ (Singapore) * ftp.nectec.or.th/pub/mirrors/linux/ (Thailand) * mirror.aarnet.edu.au/pub/linux/ (Australia) * sunsite.anu.edu.au/pub/linux/ (Australia) * ftp.monash.edu.au/pub/linux/ (Australia) * ftp.univie.ac.at/systems/linux/sunsite/ (Austria) * ftp.fi.muni.cz/pub/UNIX/linux/ (Czech Republic) * ftp://sunsite.fri.uni-lj.si/pub/linux/ (Slovenia) * ftp.funet.fi/pub/Linux/sunsite/ (Finland) * ftp.univ-angers.fr/pub/Linux/ (France) * ftp.iut-bm.univ-fcomte.fr (France) * ftp.ibp.fr/pub/linux/sunsite/ (France) * ftp.loria.fr/pub/linux/sunsite/ (France) * ftp.dfv.rwth-aachen.de/pub/linux/sunsite/ (Germany) * ftp.germany.eu.net/pub/os/Linux/Mirror.SunSITE/ (Germany) * ftp.tu-dresden.de/pub/Linux/sunsite/ (Germany) * ftp.uni-erlangen.de/pub/Linux/MIRROR.sunsite/ (Germany) * ftp.gwdg.de/pub/linux/mirrors/sunsite/ (Germany) * ftp.rz.uni-karlsruhe.de/pub/linux/mirror.sunsite/ (Germany) * ftp.ba-mannheim.de/pub/linux/mirror.sunsite/ (Germany) * ftp.uni-paderborn.de/pub/Mirrors/sunsite.unc.edu/ (Germany) * ftp.uni-rostock.de/Linux/sunsite/ (Germany) * tp.rus.uni-stuttgart.de/pub/unix/systems/linux/MIRROR.sunsite/ (Germany) * ftp.uni-tuebingen.de/pub/linux/Mirror.sunsite/ (Germany) * ftp.rz.uni-ulm.de/pub/mirrors/linux/sunsite/ (Germany) * ftp.kfki.hu/pub/linux/ (Hungary) * linux.italnet.it/pub/Linux/ (Italy) * ftp.unina.it/pub/linux/sunsite/ (Italy) * giotto.unipd.it/pub/unix/Linux/ (Italy) * cnuce-arch.cnr.it/pub/Linux/ (Italy) * ftp.flashnet.it/mirror2/sunsite.unc.edu/ (Italy) * ftp.nijenrode.nl/pub/linux/sunsite.unc-mirror/ (Netherlands) * ftp.LeidenUniv.nl/pub/linux/sunsite/ (Netherlands) * ftp.nvg.unit.no/pub/linux/sunsite/ (Norway) * ftp://sunsite.icm.edu.pl/pub/Linux/sunsite.unc.edu/ (Poland) * ftp.rediris.es/software/os/linux/sunsite/ (Spain) * sunsite.rediris.es/software/linux/ (Spain) * ftp.cs.us.es/pub/Linux/sunsite-mirror/ (Spain) * ftp.etse.urv.es/pub/mirror/linux/ (Spain) * ftp.etsimo.uniovi.es/pub/linux/ (Spain) * ftp.luna.gui.es/pub/linux.new/ (Spain) * ftp.switch.ch/mirror/linux/ (Switzerland) * ftp.metu.edu.tr/pub/linux/sunsite/ (Turkey) * unix.hensa.ac.uk/mirrors/sunsite/pub/Linux/ (UK) * ftp.maths.warwick.ac.uk/mirrors/linux/sunsite.unc-mirror/ (UK) * ftp.idiscover.co.uk/pub/Linux/sunsite.unc-mirror/ (UK) * sunsite.doc.ic.ac.uk/packages/linux/sunsite.unc-mirror/ (UK) * ftp.dungeon.com/pub/linux/sunsite-mirror/ (UK) * ftp.io.org/pub/mirrors/linux/sunsite/ (Canada) * ftp.cc.gatech.edu/pub/linux/ (US) * ftp.cdrom.com/pub/linux/sunsite/ (US) * ftp.siriuscc.com/pub/Linux/Sunsite/ (US) * ftp.engr.uark.edu/pub/linux/sunsite/ (US) * ftp.infomagic.com/pub/mirrors/linux/sunsite/ (US) * linux.if.usp.br/pub/mirror/sunsite.unc.edu/pub/Linux/ (Brazil) * farofa.ime.usp.br/pub/linux/ (Brazil) Not all of these mirror all of the other `source' sites, and some have material not available on the `source' sites. 2.6 I don't have FTP access. Where do I get Linux? The easiest thing is probably to find a friend with FTP access. If there is a Linux user's group near you, they may be able to help. If you have a reasonably good email connection you could try the FTP-by-mail servers at ftpmail@ftp.sunet.se, ftpmail@garbo.uwasa.fi or ftpmail@ftp.uni-stuttgart.de. Linux is also available via traditional mail on CD-ROM. The file sunsite.unc.edu/pub/Linux/docs/HOWTO/Installation-HOWTO, and the file sunsite.unc.edu/pub/Linux/docs/distributions/Distribution-HOWTO contain information on these distributions. 2.7 I don't have Usenet access. Where do I get information? A digest of comp.os.linux.announce is available by mailing the word "subscribe" (without the quotes) as the body of a message to linux-announce-REQUEST@news-digests.mit.edu. Subscribe to this list is a good idea, as it carries important information and documentation about Linux. Please remember to use the *-request addresses for your subscription and unsubscription messages; mail to the other address is posted to the newsgroup! 2.8 What mailing lists are there? The Linux developers now mainly use the Majordomo server at majordomo@vger.rutgers.edu. Send a message with the word "lists" (without the quotes) in the body to get a list of lists there. Add a line with the word, "help," to get the standard Majordomo help file which lists instructions for subscribing and unsubscribing to the lists. Most of the lists are used by the developers of Linux to talk about technical issues and future developments. These are not intended for new users' questions. There is a linux-newbie list where "no question is too stupid." Unfortunately, it seems that few of the experienced users read that channel. It does have very low volume. 2.9 Are the newsgroups archived anywhere? The Usenet Linux news groups are archived at http://www.dejanews.com, http://www.reference.com and http://altavista.digital.com sunsite.unc.edu//pub/Linux/docs/linux-announce.archive contains archives of comp.os.linux.announce. These are mirrored from src.doc.ic.ac.uk/usenet, which also archives comp.os.linux, comp.os.linux.development.apps, and comp.os.linux.development.system. There is an "easy to access" archive of comp.os.linux.announce on the World Wide Web at http://www.leo.org/archiv/linux/archiv/ann_index.html. It supports searching and browsing. 3. Compatibility with other operating systems. 3.1 Can Linux share my disk with DOS? OS/2? 386BSD? Win95? Yes. Linux uses the standard MS-DOS partitioning scheme, so it can share your disk with other operating systems. Note, however, that many of these other operating systems are rather picky. DOS's FDISK.EXE and FORMAT.EXE, for example, can overwrite data in a Linux partition, because they sometimes incorrectly use partition data from the partition's boot sector rather than the partition table. In order to prevent programs like these from doing this, it is a good idea to zero out--under Linux--the start of a partition you created, before you use MS-DOS--or whatever--to format it. Type: $ dd if=/dev/zero of=/dev/hdXY bs=512 count=1 where hdXY is the relevant partition; e.g., hda1 for the first partition of the first (IDE) disk. Linux can read and write the files on your DOS and OS/2 FAT partitions and floppies using either the DOS file system type built into the kernel or mtools. There is kernel support for the VFAT file system used by Windows 9x and Windows NT. For information about FAT32 partition support, see http://bmrc.berkeley.edu/people/chaffee/fat32.html. "What software does Linux support?" for details and status of the emulators for DOS, MS Windows, and System V programs. See, "Can Linux access Amiga file systems?" and, "Can Linux access Mac file systems?" "Can Linux access BSD, SysV, etc., UFS?" "Can Linux access SMB file systems?" There are said to be NTFS drivers under development, which should support compression as a standard feature. There is also supposedly a Win95 driver that allows read-only access to Linux file systems, although I don't know the URL. Call Microsoft technical support. 3.2 How do I access files on my DOS partition or floppy? Use the DOS file system; i.e., type, for example: $ mkdir /dos $ mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos If it's a floppy, don't forget to umount it before ejecting it! You can use the conv=text/binary/auto, umask=nnn, uid=nnn, and gid=nnn options to control the automatic line-ending conversion, permissions and ownerships of the files in the DOS file system as they appear under Linux. If you mount your DOS file system by putting it in your /etc/fstab, you can record the options (comma-separated) there, instead of defaults. Alternatively, you can use mtools, available in both binary and source form on the FTP sites--"Where can I get Linux material by FTP?". A kernel patch (known as the fd-patches) is available which allows floppies with nonstandard numbers of tracks and/or sectors to be used; this patch is included in the 1.1 alpha testing kernel series. 3.3 Does Linux support compressed ext2 file systems? As of recently, it does. Information about them is located at http://www.netspace.net.au/~reiter/e2compr/. There is also a Web site for the e2compr patches. The code is still experimental and consists of patches for the 2.0 and 2.1 kernels. For more information about the project, including the latest patches and the address of the mailing list, look up the URL at http://debs.fuller.edu/e2compr/ This is according to Roderich Schupp, who adds somewhat cryptically, "There is a program called Zlibc ..." Zlibc is actually a program that allows existing applications to read compressed (GNU gzip'ed) files as if they were not compressed. Look on sunsite.unc.edu in /pub/Linux/libs. The author is Alain.Knuff@imag.fr. There is also a compressing block device driver that can provide on the fly disk compression in the kernel. It is called, "DouBle" and is written by Jean-Marc Verbavatz. The source-only distribution is located on sunsite.unc.edu in the directory /pub/Linux/patches/diskdrives. This driver compresses inodes and directory information as well as files, so any corruption of the file system is likely to be serious. There is also a package called tcx (Transparently Compressed Executables) which allows you to keep infrequently compressed executables compressed and only uncompress them temporarily when in use. It is located on sunsite.unc.edu in the directory /pub/Linux/utils/compress/. 3.4 Can I use my Stacked/DBLSPC/etc. DOS drive? Until recently, not very easily. You can access DOS 6.X volumes from the DOS emulator ("What software does Linux support?"), but it's harder than accessing a normal DOS volume via the DOS kernel option, a module, or mtools. There is a recently added package, dmsdos, which reads and writes compressed file systems like DoubleSpace/DriveSpace in MS-DOS 6.x and Win95, as well as Stacker versions 3 and 4. It is available in the archives on ftp://sunsite.unc.edu/pub/Linux/system/Filesystem/dosfs. There is a module available for the Linux kernel which can do read-only access of the compressed volume. Look in sunsite.unc.edu/pub/Linux/system/filesystems/dosfs for this package. 3.5 Can I access OS/2 HPFS partitions from Linux? Yes, but Linux access to HPFS partitions is read-only. HPFS file system access is available as an option when compiling the kernel or as a module. See the Documentation/filesystems/hpfs.txt file in the kernel source distribution. "How do I upgrade/recompile my kernel?"). Then you can mount HPFS partition, using, for example: $ mkdir /hpfs $ mount -t hpfs /dev/hda5 /hpfs 3.6 Can Linux access Amiga file systems? The Linux kernel has support for the Amiga Fast File System (AFFS) version 1.3 and later, both as a compile-time option and as a module. The file Documentation/filesystems/affs.txt in the Linux kernel source distribution has more information. See "How do I upgrade/recompile my kernel?". Linux supports AFFS hard-drive partitions only, though: floppy access is not supported due to incompatibilities between Amiga floppy controllers, and PC and workstation controllers. The AFFS driver can also mount disk partitions used by the Un*x Amiga Emulator, by Bernd Schmidt. 3.7 Can Linux access BSD, SysV, etc. UFS? Recent kernels can mount (read only) the UFS file system used by System V; Coherent; Xenix; BSD and derivatives like SunOS, FreeBSD, NetBSD, and NeXTstep. UFS support is available as a kernel compile-time option and a module. See "How do I upgrade/recompile my kernel?". 3.8 Can Linux access SMB file systems? Linux supports read/write access of Windows for Workgroups and Windows NT SMB volumes. See the file Documentation/filesystems/smbfs.txt of the Linux kernel source distribution, and "How do I upgrade/recompile my kernel?" in this FAQ. There is also a suite of programs called Samba which provide support for WfW networked file systems (provided they're for TCP/IP). Information is available in the README file at sunsite.unc.edu/pub/Linux/system/network/samba. There is a SMB web site at samba.canberra.edu.au/pub/samba. 3.9 Can Linux access Mac file systems? There is a set of user-level programs that read and write the Macintosh Hierarchical File System (HFS). It is available at sunsite.unc.edu/pub/Linux/utils/disk-management. 3.10 Can I run Microsoft Windows programs under Linux? WINE, a MS Windows emulator for Linux, is still not ready for general distribution. If you want to contribute to its development, look for the status reports in the comp.emulators.ms-windows.wine newsgroup. A commercial, working product known as WABI is said to provide full MS Windows emulation under Linux. It was written by Sunsoft, Inc. The Linux version is available from Caldera. There is also a FAQ, compiled by P. David Gardner, at sunsite.unc.edu/pub/Linux/docs/faqs/Wine-FAQ/. In the meantime, if you need to run MS Windows programs, the best bet--seriously--is to reboot. LILO, the Linux bootloader, can boot one of several operating systems from a menu. See the LILO documentation for details. Also, LOADLIN (a DOS program to load a Linux, or other OS, kernel is a handy way to make Linux co-exist with DOS. LOADLIN is particularly handy when you want to install Linux on a 3rd or 4th drive on a system (or when you're adding a SCSI drive to a system with an existing IDE). In these cases, it is common for LILO's boot load to be unable to find or load the kernel on the "other" drive. So you just create a C:\LINUX directory (or whatever), put LOADLIN in it with a copy of your kernel, and use that. LOADLIN is a VCPI compliant program. Win '95 will want to, "shutdown into DOS mode," to run it (as it would with certain other DOS protected-mode programs). Earlier versions of LOADLIN sometimes required a package called REALBIOS.COM, which required a boot procedure on an (almost) blank floppy to map the REALBIOS interrupt vectors (prior to the loading of any software drivers). (Current versions don't seem to ship with it, and don't seem to need it). (Much thanks to Jim Dennis for this information.) 3.11 How can I boot Linux from OS/2's Boot Manager? 1. Create a partition using OS/2's FDISK.EXE (Not Linux's fdisk). 2. Format the partition under OS/2, either with FAT or HPFS. This is so that OS/2 knows about the partition being formatted. (This step is not necessary with OS/2 "warp" 3.0.) 3. Add the partition to the Boot Manager. 4. Boot Linux, and create a file system on the partition using mkfs -t ext2 or mke2fs. At this point you may, if you like, use Linux's fdisk to change the code of the new partition to type 83 (Linux Native)--this may help some automated installation scripts find the right partition to use. 5. Install Linux on the partition. 6. Install LILO on the Linux partition--NOT on the master boot record of the hard drive. This installs LILO as a second-stage boot loader on the Linux partition itself, to start up the kernel specified in the LILO config file. To do this, you should put boot = /dev/hda2 (where /dev/hda2 is the partition you want to boot from) in your /etc/lilo/config or /etc/lilo.config file. 7. Make sure that it is the Boot Manager partition that is marked active, so that you can use Boot Manager to choose what to boot. There is a set of HOWTO's on the subject of multi-boot systems on the LDP Home Page, http://sunssite.unc.edu/LDP/. 3.12 How can I share a swap partition between Linux and MS Windows? See the Mini-HOWTO on the subject by H. Peter Anvin, hpa@yggdrasil.com. It is available at sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/Swap-Space. 4. Linux's handling of file systems, disks, and drives 4.1 How can I get Linux to work with my disk? If your disk is an IDE or EIDE drive, you should read the file /usr/src/linux/drivers/block/README.ide (part of the Linux kernel source code). This README contains many helpful hints about IDE drives. Many modern IDE controllers do translation between `physical' cylinders/heads/sectors and `logical' ones. SCSI disks are accessed by linear block numbers. The BIOS invents some `logical' cylinder/head/sector fiction to support DOS. DOS will usually not be able to access partitions which extend beyond 1024 logical cylinders, and will make booting a Linux kernel from such partitions using LILO problematic at best. You can still use such partitions for Linux or other operating systems that access the controller directly. It's recommend that you create at least one Linux partition entirely under the 1024 logical cylinder limit, and boot from that. The other partitions will then be okay. Also there seems to be a bit of trouble with the newer Ultra-DMA drives. I haven't gottent the straight scoop on them--but they are becoming a very common problem and the SVLUG installfests. When you can get 8 to 12 Gig drives for $200 to $300 it's no wonder. (Much thanks to Jim Dennis for this information.) 4.2 How can I undelete files? In general, this is very hard to do on Unices because of their multitasking nature. Undelete functionality for the ext2fs file system is being worked on, but don't hold your breath. There are a number of packages available which instead provide new commands for deleting and copying which move deleted files into a `wastebasket' directory. The files can be recovered until cleaned out automatically by background processing. Alternatively, you can search the raw disk device which holds the file system in question. This is hard work, and you will need to be logged in as root to do this. 4.3 Is there a defragmenter for ext2fs etc.? Yes. There is defrag, a Linux file system defragmenter for ext2, minix and old-style ext file systems. It is available at sunsite.unc.edu/pub/Linux/system/filesystems/defrag-0.70.tar.gz. Users of the ext2 file system can probably do without defrag, because ext2 contains extra code to keep fragmentation reduced even in very full file systems. 4.4 How do I format and create a file system on a floppy? To format a 3.5-inch, high density floppy: $ fdformat /dev/fd0H1440 $ mkfs -t ext2 -m 0 /dev/fd0H1440 1440 For a 5.25 inch floppy, use fd0h1200 and 1200 as appropriate. For the `B' drive use fd1 instead of fd0. The -m 0 option tells mkfs.ext2 not to reserve any space on the disk for the superuser--usually the last 10% is reserved for root. The first command performs a low-level format. The second creates an empty file system. You can mount the floppy like a hard disk partition and simply cp and mv files, etc. Device naming conventions generally are the same as for other Unices. They can be found in Matt Welsh's Installation and Getting Started Guide. (See "Where can I get the HOWTOs and other documentation?") A more detailed and technical description is Linux Allocated Devices by H. Peter Anvin, hpa@zytor.com, which is included in LaTeX and ASCII form in the kernel source distribution (probably in /usr/src/kernel/Documentation), as devices.tex and devices.txt. 4.5 I get nasty messages about inodes, blocks, and the suchlike. You may have a corrupted file system, probably caused by not shutting Linux down properly before turning off the power or resetting. You need to use a recent shutdown program to do this--for example, the one included in the util-linux package, available on sunsite and tsx-11. If you're lucky, the program fsck (or e2fsck or xfsck as appropriate if you don't have the automatic fsck front-end) will be able to repair your file system. If you're unlucky, the file system is trashed, and you'll have to reinitialize it with mkfs (or mke2fs, mkxfs, etc.), and restore from a backup. NB: don't try to check a file system that's mounted read/write--this includes the root partition if you don't see VFS: mounted root ... read-only at boot time. 4.6 My swap area isn't working. When you boot (or enable swapping manually) you should see Adding Swap: NNNNk swap-space If you don't see any messages at all you are probably missing swapon -av (the command to enable swapping) in your /etc/rc.local or /etc/rc.d/* (the system startup scripts), or have forgotten to make the right entry in /etc/fstab: /dev/hda2 none swap sw for example. If you see Unable to find swap-space signature you have forgotten to run mkswap. See the manual page for details; it works much like mkfs. Running, 'free' in addition to showing free memory, should display: total used free Swap: 10188 2960 7228 Check the Installation HOWTO for detailed instructions of how to set up a swap area. 4.7 How do I remove LILO so my system boots DOS again? Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR (which is not documented). This will restore a standard MS-DOS Master Boot Record. If you have DR-DOS 6.0, go into FDISK in the normal way and then select the `Re-write Master Boot Record' option. If you don't have MS DOS or DR DOS, you need to have the boot sector that LILO saved when you first installed it. You did keep that file, didn't you ? It's probably called boot.0301 or some such. Type dd if=boot.0301 of=/dev/hda bs=445 count=1 (or sda if you're using a SCSI disk). This may also wipe out your partition table, so beware! If you're desperate, you could use dd if=/dev/zero of=/dev/hda bs=512 count=1 This will erase your partition table and boot sector completely: you can then reformat the disk using your favorite software. But this will render the contents of your disk inaccessible--you'll lose it all unless you're an expert. Note that the DOS MBR boots whichever (single!) partition is flagged as `active'. You may need to use fdisk to set and clear the active flags on partitions appropriately. 4.8 Why can't I use fdformat except as root? The system call to format a floppy can only be done as root, regardless of the permissions of /dev/fd0*. If you want any user to be able to format a floppy, try getting the fdformat2 program. This works around the problems by being setuid to root. 4.9 My ext2fs partitions are checked each time I reboot. See "EXT2-fs: warning: mounting unchecked file system.". 4.10 My root file system is read-only! Remount it. If /etc/fstab is correct, you can simply mount -n -o remount /. If /etc/fstab is wrong you must give the device name and posibly the type too: e.g. mount -n -o remount -t ext2 /dev/hda2 /. To understand how you got into this state, see "EXT2-fs: warning: mounting unchecked file system." 4.11 I have a huge /proc/kcore! Can I delete it? None of the files in /proc are really there--they're all "pretend" files made up by the kernel, to give you information about the system, and don't take up any hard disk space. /proc/kcore is like an "alias" for the memory in your computer; its size is the same as the amount of RAM you have, and if you ask to read it as a file the kernel does memory reads. 4.12 My AHA1542C doesn't work with Linux. The option to allow disks with more than 1024 cylinders is only required as a workaround for a DOS misfeature and should be turned `off' under Linux. For older Linux kernels you need to turn off most of the "advanced BIOS" options--all but the one about scanning the bus for bootable devices. 5. Porting, compiling and obtaining programs 5.1 How do I port XXX to Linux? In general, Unix programs need very little porting. Simply follow the installation instructions. If you don't know--and don't know how to find out--the answers to some of the questions asked during the installation procedure, you can guess, but this tends to produce buggy programs. In this case, you're probably better off asking someone else to do the port. If you have a BSD-ish program, you should try using -I/usr/include/bsd and -lbsd on the appropriate parts of the compilation lines. 5.2 What is ld.so and where do I get it? ld.so is the dynamic library loader. Each binary using shared libraries used to have about 3K of start-up code to find and load the shared libraries. Now that code has been put in a special shared library, /lib/ld.so, where all binaries can look for it, so that it wastes less disk space, and can be upgraded more easily. ld.so can be obtained from tsx-11.mit.edu/pub/linux/packages/GCC and mirror sites. The latest version at the time of writing is ld.so.1.9.5.tar.gz. /lib/ld-linux.so.1 is the same thing for ELF "( What's all this about ELF?)" and comes in the same package as the a.out loader. 5.3 Has anyone ported / compiled / written XXX for Linux? First, look in the Linux Software Map--it's at sunsite.unc.edu/pub/Linux/docs/linux-software-map, and on the other FTP sites. A search engine is available on the World Wide Web at http://www.boutell.com/lsm/. Check the FTP sites "Where can I get Linux material by FTP?" first--search the ls-lR or INDEX files for appropriate strings. Also look at the Linux Projects Map, ftp.ix.de/pub/ix/Linux/docs/Projects-Map.gz. There's a search engine for Linux FTP archives at http://lfw.linuxhq.com/ Also check out the Freshmeat Web site http://www.freshmeat.org, which is really cool. If you don't find anything, you could either download the sources to the program yourself and compile them. See "How do I port XXX to Linux?" If it's a large package which may require some porting, post a message to comp.os.linux.development.apps. If you compile a large-ish program, please upload it to one or more of the FTP sites, and post a message to comp.os.linux.announce (submit your posting to linux-announce@news.ornl.gov). If you're looking for an application program, the chances are that someone has already written a free verson. The comp.sources.wanted FAQ has instructions for finding the source code. 5.4 Can I use code or a compiler compiled for a 486 on my 386? Yes, unless it's the kernel. The -m486 option to GCC, which is used to compile binaries for x486 machines, merely changes certain optimizations. This makes for slightly larger binaries which run somewhat faster on a 486. They still work fine on a 386, though, with a small performance hit. However, from version 1.3.35 the kernel will use 486- or Pentium-specific instructions if configured for a 486 or Pentium, thus making it unusable on a 386. GCC can be configured for a 386 or 486; the only difference is that configuring it for a 386 makes -m386 the default and configuring for a 486 makes -m486 the default; in either case these can be overriden on a per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs. There is an Alpha version of GCC which knows how to do optimisation well for the 586, but it is quite unreliable, especially at high optimisation settings. The Pentium GCC can be found on tsx-11.mit.edu in /pub/linux/ALPHA/pentium-gcc. I'd recommend using the ordinary 486 GCC instead; word has it that using -m386 produces code that's better for the Pentium, or at least slightly smaller. 5.5 What does gcc -O6 do? Currently the same as -O2 (GCC 2.5) or -O3 (GCC 2.6, 2.7); any number greater than that currently does the same thing. The Makefiles of newer kernels use -O2, and you should probably do the same. 5.6 Where are linux/*.h and asm/*.h? These are in the directories /usr/include/linux and /usr/include/asm. However, they should be symbolic links to your kernel sources in /usr/src/linux, not actual directories. If you don't have the kernel sources, download them--see, "How do I upgrade/recompile my kernel?" Then, use rm to remove any garbage, and ln to create the links: rm -rf /usr/include/linux /usr/include/asm ln -sf /usr/src/linux/include/linux /usr/include/linux ln -sf /usr/src/linux/include/asm /usr/include/asm /usr/src/linux/include/asm is a symbolic link to an -- Robert Kiesling kiesling@terracom.net ..No writing gig too small...