From ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!darwin.sura.net!europa.eng.gtefsd.com!uunet!mnemosyne.cs.du.edu!usenet Sun Aug 29 23:53:07 CDT 1993 Article: 569 of comp.os.linux.help Xref: ns1.nodak.edu comp.os.linux.announce:1045 comp.os.linux.help:569 comp.answers:1704 news.answers:11616 Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.answers,news.answers Path: ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!darwin.sura.net!europa.eng.gtefsd.com!uunet!mnemosyne.cs.du.edu!usenet From: ijackson@nyx.cs.du.edu (Ian Jackson) Subject: Linux Frequently Asked Questions with Answers Message-ID: Followup-To: poster Summary: Please read this before posting to comp.os.linux.help. Keywords: FAQ, new, Linux Sender: ijackson@nyx.cs.du.edu (Ian Jackson) Organization: Linux Unlimited Date: Mon, 23 Aug 1993 00:32:55 GMT Approved: Jonathan I. Kamens , Matt Welsh Expires: Mon, 27 Sep 1993 00:32:55 GMT Lines: 1187 Archive-Name: linux/faq Last-Modified: 23 Aug 1993 This is the list of Frequently Asked Questions about Linux, the free Unix for 386/486 (see Q1.1 `What is Linux ?' for more details). It should be read in conjunction with the HOWTO documents, which are available in nic.funet.fi (128.214.6.100) /pub/OS/Linux/docs/HOWTO tsx-11.mit.edu (18.172.1.2) /pub/linux/docs/HOWTO sunsite.unc.edu (152.2.22.81) /pub/Linux/docs/HOWTO and mirror sites thereof (see Q2.4 `Where can I get Linux material by FTP ?'). See Q2.1 `Where can I get the HOWTOs and other documentation ?' for a list of the HOWTOs and more information. The INFO-SHEET and META-FAQ, found in the same place, also list other sources of Linux information. The Linux Documentation Project documentation is available on sunsite.unc.edu in /pub/Linux/docs/LDP. These documents (more are in preparation) are invaluable to the newcomer or for use as a reference work. Please check out these documents and this FAQ, especially Q9.1 `You still haven't answered my question !', before posting your question to the newsgroup comp.os.linux.help. You can skip to a particular question by searching for `Question n.n'. See Q10.2 `Formats in which this FAQ is available' for details of where to get the PostScript and Emacs Info versions of this document. =============================================================================== Index Section 1. Introduction and General Information Q1.1 What is Linux ? Q1.2 What software does it support ? Q1.3 Does it run on my computer ? What hardware is supported ? Q1.4 How much hard disk space does Linux need ? Q1.5 Is Linux PD ? Copyrighted ? Q1.6 How should I pronounce Linux ? Section 2. Network sources and resources Q2.1 Where can I get the HOWTOs and other documentation ? Q2.2 What newsgroups are there for Linux ? Q2.3 How do I install Linux ? Q2.4 Where can I get Linux material by FTP ? Q2.5 I don't have FTP access. Where do I get Linux ? Q2.6 I don't have Usenet access. Where do I get information ? Q2.7 What's this mailing list thing at niksula.hut.fi ? Q2.8 Are the newsgroups archived anywhere ? Section 3. Compatibility with other operating systems Q3.1 Can Linux coexist with DOS ? OS/2 ? 386BSD ? Minix ? Q3.2 How do I access files on my DOS partition or floppy ? Q3.3 Can I use my Stacked/DBLSPC/etc. DOS drive ? Q3.4 Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ? Section 4. Linux's handling of filesystems, disks and drives Q4.1 I get nasty messages about inodes, blocks, and the suchlike Q4.2 My swap area isn't working. Q4.3 How can I have more than 16Mb of swap ? Q4.4 How do I remove LILO from my hard disk ? Q4.5 Why can't I use fdformat except as root ? Section 5. Porting, compiling and obtaining programs Q5.1 Has anyone ported / compiled / written XXX for Linux ? Q5.2 How do I port XXX to Linux ? Q5.3 Can I use a program or compiler compiled for a 486 on my 386 ? Q5.4 GCC sometimes uses huge amounts of virtual memory and thrashes Q5.5 What does gcc -O6 do ? Q5.6 Where are and ? Q5.7 I get errors when I try to compile the kernel. Section 6. Miscellaneous questions and problems Q6.1 Some programs won't let me log in. Q6.2 Some programs let me log in with no password. Q6.3 My machine runs very slowly when I run GCC / X / ... Q6.4 I can only log in as root. Q6.5 How do I stop producing core files ? Q6.6 My screen is all full of weird characters instead of letters. Q6.7 What is a .gz file ? And a .tgz ? And ... ? Q6.8 How do I install a terminal on one of my serial ports ? Q6.9 root can't root log in over the serial line. Q6.10 I have screwed up my system and can't log in to fix it. Q6.11 How do I upgrade my kernel ? Q6.12 Can I have more than 3 serial ports by sharing interrupts ? Q6.13 Emacs just dumps core. Q6.14 How do I turn NUM LOCK off at boot-time ? Q6.15 How do I make a bootable floppy ? Section 7. Frequently Encountered Error messages Q7.1 INET: Warning: old style ioctl(IP_SET_DEV) called! Q7.2 make says Error 139 Q7.3 mount says Cannott read table of mounted filesystems Q7.4 shell-init: permission denied when I log in. Q7.5 No utmp entry. You must exec ... when I log in. Q7.6 EXT2-fs: warning: mounting unchecked filesystem Q7.7 fdisk says cannot use nnn sectors of this partition Q7.8 fdisk says partition n has an odd number of sectors Section 8. X Windows Q8.1 Does Linux support X Windows ? Q8.2 Where can I get an XConfig for my video card and monitor ? Q8.3 I can't get my mouse to work with X Windows. Section 9. How to get further assistance Q9.1 You still haven't answered my question ! Section 10. Administrative information and acknowledgements Q10.1 Feedback is invited Q10.2 Formats in which this FAQ is available Q10.3 Authorship and acknowledgements =============================================================================== Section 1. Introduction and General Information Q1.1 What is Linux ? Q1.2 What software does it support ? Q1.3 Does it run on my computer ? What hardware is supported ? Q1.4 How much hard disk space does Linux need ? Q1.5 Is Linux PD ? Copyrighted ? Q1.6 How should I pronounce Linux ? ------------------------------------------------------------------------------- Question 1.1. What is Linux ? Linux is a Unix clone for 386/486-based PCs written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX compliance. It has all the features you would expect in a modern fully-fledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copy-on-write executables, proper memory management and TCP/IP networking. It uses the hardware features of the 386 processor family (TSS segments et al) to implement these features. Linux is still considered to be in beta testing; due to the rapid pace of development (a new kernel version every couple of weeks) new bugs are often introduced. Despite this, Linux is very stable if you don't always immediately use the latest alpha-release kernel software. See the Linux INFO-SHEET (Q2.1 `Where can I get the HOWTOs and other documentation ?') for more details. It is distributed under the GNU General Public License - see Q1.5 `Is Linux PD ? Copyrighted ?' for more details. ------------------------------------------------------------------------------- Question 1.2. What software does it support ? Linux has GCC, Emacs, X-Windows, TCP/IP, all the standard Unix utilities and all the hundreds of programs that people have compiled or ported for it. There is a DOS emulator and work is progressing on a facilities to allow SVR4 ELF, SVR3.2 COFF and Microsoft Windows binaries to be run under Linux and X Windows. For more information see the INFO-SHEET, which is one of the the HOWTOs --- see above, or Q2.1 `Where can I get the HOWTOs and other documentation ?'. See also Q5.2 `How do I port XXX to Linux ?'. ------------------------------------------------------------------------------- Question 1.3. Does it run on my computer ? What hardware is supported ? You need a 386 or 486, with at least 2Mb of RAM and a single floppy, to try it out. To do anything useful more RAM and a hard disk are required. Linux doesn't currently work on machines using MCA (IBM's proprietary bus), because of lack of available documentation. However support for MCA is being worked on. Linux will never run on a 286, because it uses task-switching and memory management facilities only found on 386/486 processors. Linux is reported to run on 386/486-based laptops, with X on most of them. For details of exactly which PC's, video cards, disk controllers, etc. work see the INFO-SHEET and the Hardware Compatibility List (Q2.1 `Where can I get the HOWTOs and other documentation ?'). ------------------------------------------------------------------------------- Question 1.4. How much hard disk space does Linux need ? 10Mb for a very minimal installation, suitable for trying it out and not much else. You can squeeze a more complete installation including X Windows into 80Mb. ------------------------------------------------------------------------------- Question 1.5. Is Linux PD ? Copyrighted ? The Linux kernel is copyrighted by Linus Torvalds. He has placed it under the GNU General Public Licence, which basically means that you may freely copy, change and distribute it, but that you may not impose any restrictions on further distribution. Full details are in the file COPYING in the Linux kernel sources (probably in /usr/src/linux on your system). The copyright 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 GPL should be posted to gnu.misc.discuss and not to the comp.os.linux groups. ------------------------------------------------------------------------------- Question 1.6. How should I pronounce Linux ? Linus says: `li' is pronounced with a short (ee) sound: compare prInt, mInImal etc. `nux' is also short, non-diphtong, like in pUt. It's partly due to Minix: Linux was just my working name for the thing, and as I wrote it to replace Minix on my system, the result is what it is... Linus' minix became Linux. I originally intended it to be called freax (although buggix was one contender after I got fed up with some of the more persistent bugs :) and I think the kernel makefiles up to version 0.11 had something to that effect (`Makefile for the freax kernel' in a comment). But arl called the linux directory at nic.funet.fi pub/OS/Linux, and the name stuck. Maybe just as well: freax doesn't sound too good either (freax is obviosly free + freak + the obligatory -x). (Rick Faith's note for English speakers: Linux --- `LIH-nuhks'.) =============================================================================== Section 2. Network sources and resources Q2.1 Where can I get the HOWTOs and other documentation ? Q2.2 What newsgroups are there for Linux ? Q2.3 How do I install Linux ? Q2.4 Where can I get Linux material by FTP ? Q2.5 I don't have FTP access. Where do I get Linux ? Q2.6 I don't have Usenet access. Where do I get information ? Q2.7 What's this mailing list thing at niksula.hut.fi ? Q2.8 Are the newsgroups archived anywhere ? ------------------------------------------------------------------------------- Question 2.1. Where can I get the HOWTOs and other documentation ? Look in the following places, and on sites that mirror them. nic.funet.fi (128.214.6.100) /pub/OS/Linux/docs/HOWTO tsx-11.mit.edu (18.172.1.2) /pub/linux/docs/HOWTO sunsite.unc.edu (152.2.22.81) /pub/Linux/docs/HOWTO For a complete list of Linux FTP sites see Q2.3 `How do I install Linux ?'. If you don't have access to FTP try using one of the FTP-by-mail servers, such as mail-server@rtfm.mit.edu or ftpmail@decwrl.dec.com. A complete list of HOWTO's is available in the file HOWTO.INDEX in the docs/HOWTO directory at the FTP sites, but here is an incomplete and somewhat provisional list: Installation HOWTO Mail HOWTO Linux INFO-SHEET UUCP HOWTO Linux META-FAQ Kernel HOWTO NET-2 HOWTO Printing HOWTO GCC/Library HOWTO SCSI HOWTO News HOWTO Serial HOWTO X Windows HOWTO Hardware Comaptibility List At the time of writing some of these documents are still in preparation; many of them are being updated from existing documents containing very similar information. You should check for one of those documents in nearby directories on the FTP sites as well as looking for one of the new-style HOWTOs. The HOWTO.INDEX also contains information on how to write a new HOWTO. The HOWTOs are managed by Matt Welsh, . The `books' produced by the Linux Documentation Project are available in /pub/Linux/docs/LDP on sunsite.unc.edu. Please read them if you are new to Unix and Linux. ------------------------------------------------------------------------------- Question 2.2. What newsgroups are there for Linux ? There are five Usenet newsgroups devoted to Linux. comp.os.linux.announce is the moderated announcements group; you should read this if you intend to use Linux. Submissions for that group should be emailed to linux-announce@tc.cornell.edu. comp.os.linux.help, comp.os.linux.development, comp.os.linux.admin and comp.os.linux.misc are also worth reading -- you will find that many common problems are too recent to find in this FAQ but are answered in the newsgroups. Since Linux is a Unix clone, many of the comp.unix.* and comp.windows.x.* groups will also contain relevant material. See also Q2.6 `I don't have Usenet access. Where do I get information ?'. ------------------------------------------------------------------------------- Question 2.3. How do I install Linux ? There are several pre-packaged releases of Linux available, including the MCC-Interim release, the TAMU release and the SLS release. Each contains the software you need to run linux, ready to install and use. The exact details of which software is included and how to install them vary from release to release. You should read the Installation HOWTO for more details on how to go about installing Linux. All of these releases are available via anonymous FTP from the Linux archive sites - see Q2.4 `Where can I get Linux material by FTP ?'. ------------------------------------------------------------------------------- Question 2.4. Where can I get Linux material by FTP ? There are three main archive sites for Linux: nic.funet.fi (128.214.6.100) /pub/OS/Linux tsx-11.mit.edu (18.172.1.2) /pub/linux sunsite.unc.edu (152.2.22.81) /pub/Linux The MCC-Interim release is available from: ftp.mcc.ac.uk (130.88.200.7) /pub/linux 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. src.doc.ic.ac.uk wuarchive.wustl.edu ftp.eecs.umich.edu ftp.informatik.tu-muenchen.de ftp.ibr.cs.tu-bs.de kuis.kyoto-u.ac.jp ftp.dfv.rwth-aachen.de cair.kaist.ac.kr ftp.informatik.rwth-aachen.de Not all of these mirror all of the other `source' sites. ------------------------------------------------------------------------------- Question 2.5. I don't have FTP access. Where do I get Linux ? The easiest thing is probably to find a friend with FTP access. If you have a reasonably good email connection you could try the FTP-by-mail servers at mail-server@rtfm.mit.edu or ftpmail@decwrl.dec.com, or, if you're in Europe, ftp-mailer@informatik.tu-muenchen.de. Linux is also available via traditional mail on diskette, CD-ROM and tape. The Installation HOWTO, and the file /pub/Linux/docs/distributions on sunsite.unc.edu, contains information on these distributions. You could also try Zane Healy 's list of Linux BBS's, which is posted regularly (1st and 15th of each month) to comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX echoes. ------------------------------------------------------------------------------- Question 2.6. I don't have Usenet access. Where do I get information ? You can get digests of the postings to comp.os.linux.announce by subscribing to the ANNOUNCE channel of the multi-channel list at niksula.hut.fi, see Q2.7 `What's this mailing list thing at niksula.hut.fi ?'. A digest of postings to comp.os.linux is available by subscribing to the bidirectional gateway at linux-activists-request@news-digests.mit.edu. Please remember to use the -request address for your subscription and unsubscription messages; mail to the other address is posted to the newsgroup ! ------------------------------------------------------------------------------- Question 2.7. What's this mailing list thing at niksula.hut.fi ? It's a multi-channel mailing list, mainly used by the developers of Linux to talk about technical issues and future developments. Most of the channels are not intended for new users to ask their questions on. However, the ANNOUNCE channel is a digest of postings to comp.os.linux.announce, for the benefit of those without Usenet access. There is also a NEWBIE channel where `no question is too stupid'; unfortunately it seems that few of the experienced users read that channel, probably because of all the `stupid' questions ! If you want to subscribe to one or more of the channels at the multi-channel list, send an empty mail message to linux-activists-request@niksula.hut.fi and you'll receive the instructions for operating the list subscription software. If you want to unsubscribe send a mail message like this From: you@domain.org To: linux-activists-request@niksula.hut.fi Subject: irrelevant X-Mn-Admin: leave CHANNEL to leave a channel called CHANNEL. Do *not* put an X-Mn-Key line in your message - that will cause it to be posted to the list. Note that you *must* remember to unsubscribe *before* you change your email address, as due to a design flaw in the list server it is virtually impossible to get yourself unsubscribed after such a change. ------------------------------------------------------------------------------- Question 2.8. Are the newsgroups archived anywhere ? Yes. nic.funet.fi and tsx-11.mit.edu contain archives of both comp.os.linux and comp.os.linux.announce, in their Linux areas. The comp.os.linux.announce archives are mirrored from /usenet on src.doc.ic.ac.uk (which also contains an archive of comp.os.linux). =============================================================================== Section 3. Compatibility with other operating systems Q3.1 Can Linux coexist with DOS ? OS/2 ? 386BSD ? Minix ? Q3.2 How do I access files on my DOS partition or floppy ? Q3.3 Can I use my Stacked/DBLSPC/etc. DOS drive ? Q3.4 Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ? ------------------------------------------------------------------------------- Question 3.1. Can Linux coexist with DOS ? OS/2 ? 386BSD ? Minix ? Yes. Linux uses the standard PC partitioning scheme, so it can share your disk with other operating systems. NB, though, if you use OS/2 you have to use OS/2's fdisk to create Linux partitions if you don't want OS/2's fdisk to mess them up later. Then you can use Linux's fdisk to change the type to Linux. See the Installation HOWTO for more details. Linux can access the files on your DOS and OS/2 FAT partitions and floppies using either the DOS filesystem type built into the kernel or mtools. There is a DOS emulator which can run DOS itself and some (but not all) DOS applications. Linux can also access Minix filesystems, so you can share data between Linux and Minix if you run both and exchange Minix floppies with people. Linux binaries are not compatible with Minix binaries. ------------------------------------------------------------------------------- Question 3.2. How do I access files on my DOS partition or floppy ? Use the DOS filesystem, ie type, for example: mkdir /dos mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos 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 filesystem as they appear under Linux. Alternatively you can use `mtools', available in both binary and source form on the FTP sites -- see Q2.3 `How do I install Linux ?'. ------------------------------------------------------------------------------- Question 3.3. Can I use my Stacked/DBLSPC/etc. DOS drive ? Not easily. You can access them from within the DOS emulator, but not as a normal filesystem under Linux or using mtools. ------------------------------------------------------------------------------- Question 3.4. Can I access OS/2 HPFS, BSD FFS, Mac, Amiga, etc filesystems ? There is no support for those yet. =============================================================================== Section 4. Linux's handling of filesystems, disks and drives Q4.1 I get nasty messages about inodes, blocks, and the suchlike Q4.2 My swap area isn't working. Q4.3 How can I have more than 16Mb of swap ? Q4.4 How do I remove LILO from my hard disk ? Q4.5 Why can't I use fdformat except as root ? ------------------------------------------------------------------------------- Question 4.1. I get nasty messages about inodes, blocks, and the suchlike You probably have a corrupted filesystem, probably caused by not shutting Linux down properly before turning off the power or resetting. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you don't have the fsutils package) will be able to repair your filesystem; if you're unlucky the filesystem is trashed and you'll have to reinitialise it with mkfs (or mke2fs, mkxfs etc.) it and restore from a backup. ------------------------------------------------------------------------------- Question 4.2. 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 or /etc/rc.local (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 manpage for details; it works much like mkfs. Check the Installation HOWTO for detailed instructions of how to set up a swap area. ------------------------------------------------------------------------------- Question 4.3. How can I have more than 16Mb of swap ? You have to set up more than one swap partition or swapfile. Linux only supports swap area sizes up to 16Mb, but you can set up and configure several swap areas and Linux will use them all. ------------------------------------------------------------------------------- Question 4.4. How do I remove LILO from my hard disk ? Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR. 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 DOS 5 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 (or sda if you're using a SCSI disk). This will also wipe out your partition table, so beware ! ------------------------------------------------------------------------------- Question 4.5. Why can't I use fdformat except as root ? The system call to format a floppy may 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 this by being setuid to root. =============================================================================== Section 5. Porting, compiling and obtaining programs Q5.1 Has anyone ported / compiled / written XXX for Linux ? Q5.2 How do I port XXX to Linux ? Q5.3 Can I use a program or compiler compiled for a 486 on my 386 ? Q5.4 GCC sometimes uses huge amounts of virtual memory and thrashes Q5.5 What does gcc -O6 do ? Q5.6 Where are and ? Q5.7 I get errors when I try to compile the kernel. ------------------------------------------------------------------------------- Question 5.1. Has anyone ported / compiled / written XXX for Linux ? Check the FTP sites (see Q2.1 `Where can I get the HOWTOs and other documentation ?') first --- search the find-ls or INDEX files for appropriate strings. If you don't find anything, you could either download the sources to the program yourself and compile them -- see Q5.2 `How do I port XXX to Linux ?' -- or, if it's a large package which may require some porting, post a message to the newsgroup. If you compile a largeish 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@tc.cornell.edu). If you're looking for an application-type program the chances are someone has already written a free verson. Try reading the FAQ in comp.sources.wanted for instructions on how to find sources. ------------------------------------------------------------------------------- Question 5.2. 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 or by 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. ------------------------------------------------------------------------------- Question 5.3. Can I use a program or compiler compiled for a 486 on my 386 ? Yes. The -m486 option to GCC, which is used to compile binaries for 486 machines, merely makes GCC change certain optimisations. This makes for slightly larger binaries which run a little faster on a 486. They still work fine on a 386, though. This applies to GCC, as well. 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. ------------------------------------------------------------------------------- Question 5.4. GCC sometimes uses huge amounts of virtual memory and thrashes GCC has a bug which makes it use lots of memory if you try to compile a program which has a large static data table in it. Add more swap if necessary and just grin and bear it; it'll work in the end. This bug will be fixed when GCC 2.5 comes out. ------------------------------------------------------------------------------- Question 5.5. What does gcc -O6 do ? The same as -O2; any number greater than 2 works just like 2. It's put there for luck, I think. ------------------------------------------------------------------------------- Question 5.6. Where are and ? 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 and not real directories. If you don't have the kernel sources download them --- see Q6.11 `How do I upgrade my kernel ?'. Then use ln to create the links: ln -sf /usr/src/linux/include/linux /usr/include/linux ln -sf /usr/src/linux/include/asm /usr/include/asm ------------------------------------------------------------------------------- Question 5.7. I get errors when I try to compile the kernel. Make sure that /usr/include/linux and /usr/include/asm aren't actual directories but instead symbolic links to /usr/src/linux/include/linux and /usr/src/linux/include/asm respectively. If necessary, delete them using rm and then use ln -s to make the links as in Q5.6 `Where are and ?'. =============================================================================== Section 6. Miscellaneous questions and problems Q6.1 Some programs won't let me log in. Q6.2 Some programs let me log in with no password. Q6.3 My machine runs very slowly when I run GCC / X / ... Q6.4 I can only log in as root. Q6.5 How do I stop producing core files ? Q6.6 My screen is all full of weird characters instead of letters. Q6.7 What is a .gz file ? And a .tgz ? And ... ? Q6.8 How do I install a terminal on one of my serial ports ? Q6.9 root can't root log in over the serial line. Q6.10 I have screwed up my system and can't log in to fix it. Q6.11 How do I upgrade my kernel ? Q6.12 Can I have more than 3 serial ports by sharing interrupts ? Q6.13 Emacs just dumps core. Q6.14 How do I turn NUM LOCK off at boot-time ? Q6.15 How do I make a bootable floppy ? ------------------------------------------------------------------------------- Question 6.1. Some programs won't let me log in. You are probably using non-shadow-password programs but are using shadow passwords. If so, you have to get or compile a shadow password version of the program(s) in question. ------------------------------------------------------------------------------- Question 6.2. Some programs let me log in with no password. You probably have the same problem as in Q6.1 `Some programs won't let me log in.', with an added wrinkle: If you are using shadow passords you should put an asterisk in the password field of /etc/passwd for each account, so that if a program doesn't know about the shadow passwords it won't think it's a passwordless account and let anyone in. ------------------------------------------------------------------------------- Question 6.3. My machine runs very slowly when I run GCC / X / ... You probably don't have any swap enabled. You need to enable swapping to allow Linux to page out bits of data programs aren't using at the moment to disk to make more room for other programs and data. If you don't Linux has to keep data in memory and throw away in-memory copies of programs (which are paged straight from the filesystem) and so less and less program is in memory and everything runs very slowly. See the Installation HOWTO for details of how to set up a swap area; see also Q4.2 `My swap area isn't working.'. Alternatively you may have too little real memory. If you have less RAM than all the programs you're running at once use Linux will use your hard disk instead and thrash horribly. The solution in this case is to not run so many things at once or to buy more memory. You can also reclaim some memory by compiling and using a kernel with less options configured. See Q6.11 `How do I upgrade my kernel ?'. ------------------------------------------------------------------------------- Question 6.4. I can only log in as root. You probably have some permission problems, or you have a file /etc/nologin. If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local. Otherwise check the permissions on your shell, and any filenames which appear in error messages, and also the directories containing these files all the way back up the tree to the root directory. ------------------------------------------------------------------------------- Question 6.5. How do I stop producing core files ? If you use bash put ulimit -c 0 in your .shrc or .bashrc; if you use tcsh put limit coredumpsize 0 in your .cshrc. For other shells check the shell's manpage. ------------------------------------------------------------------------------- Question 6.6. My screen is all full of weird characters instead of letters. You probably sent some binary data to your screen by mistake. Type echo ^V^O (that's E C H O space control-V control-O return) to fix it. ------------------------------------------------------------------------------- Question 6.7. What is a .gz file ? And a .tgz ? And ... ? .gz (and .z) files have been compressed using GNU gzip. You have to get a copy of gunzip (included in the gzip distribution and with most Linux installations) to unpack the file. .taz and .tz are tarfiles (made with Unix tar) compressed using standard Unix compress. .tgz (or .tpz) is a tarfile compressed with gzip. The file command can often tell you what a file is. ------------------------------------------------------------------------------- Question 6.8. How do I install a terminal on one of my serial ports ? See the Serial HOWTO. ------------------------------------------------------------------------------- Question 6.9. root can't root log in over the serial line. You need to make sure that /etc/securetty contains the device name of the serial port, probably /dev/ttySsomethingorother. ------------------------------------------------------------------------------- Question 6.10. I have screwed up my system and can't log in to fix it. Reboot from an emergency floppy, for example the SLS a1 disk. Get to a shell prompt and mount your hard disk with something like mount -t ext2 /dev/hda1 /mnt Then your filesystem is available under the directory /mnt and you can fix the problem. Remember to unmount your hard disk before rebooting (cd back down to / first or it will say it's busy). ------------------------------------------------------------------------------- Question 6.11. How do I upgrade my kernel ? See the README which comes with the kernel release, in nic.funet.fi:/pub/OS/Linux/PEOPLE/Linus and mirrors thereof. Try to get it from a closer site if possible; nic.funet.fi is a very busy site and therefore slow -- see Q2.3 `How do I install Linux ?'. Remember that to make the new kernel boot you must run LILO after copying the kernel into your root partition. ------------------------------------------------------------------------------- Question 6.12. Can I have more than 3 serial ports by sharing interrupts ? No. This is a limitation of the ISA bus architecture. See the Serial HOWTO for information about how to work around this problem. ------------------------------------------------------------------------------- Question 6.13. Emacs just dumps core. You probably have the old version of Emacs that comes with SLS. It doesn't work without the X libraries. The solution is to install X Windows or get a newer Emacs binary without any X Windows support. ------------------------------------------------------------------------------- Question 6.14. How do I turn NUM LOCK off at boot-time ? Run this C program #include #include void main(void) { char i=0; ioctl(0,KDGETLED,&i); i&=~LED_NUM; ioctl(0,KDSETLED,i); } on each virtual terminal at boot time (e.g. numoff /etc/mtab It should *not* have an entry for the root partition made by using rdev; the newer versions of mount do this automatically. Some versions of SLS have a line in /etc/fstab that looks like: /dev/sdb1 /root ext2 defaults This is wrong. /root should read simply /. ------------------------------------------------------------------------------- Question 7.4. 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 manpage for chmod or a book on Unix for how to fix the problem. ------------------------------------------------------------------------------- Question 7.5. No utmp entry. You must exec ... when I log in. Your /etc/utmp is screwed up. You should have > /etc/utmp in your /etc/rc or /etc/rc.local. See Q6.10 `I have screwed up my system and can't log in to fix it.' for how to be able to do this. ------------------------------------------------------------------------------- Question 7.6. EXT2-fs: warning: mounting unchecked filesystem You need to run e2fsck (or fsck -t ext2 if you have the fsutils package) 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 bootutils package, available on sunsite and tsx-11. ------------------------------------------------------------------------------- Question 7.7. fdisk says cannot use nnn sectors of this partition Originally Linux only supported the Minix filesystem, which cannot use more than 64Mb per parition. This limitation is not present in the more advanced filesystems now available, such as ext2fs (the 2nd version of the Extended Filesystem) and xiafs (Qi Xia's filesystem). If you intend to use ext2fs or xiafs you can ignore the message. ------------------------------------------------------------------------------- Question 7.8. 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. =============================================================================== Section 8. X Windows Q8.1 Does Linux support X Windows ? Q8.2 Where can I get an XConfig for my video card and monitor ? Q8.3 I can't get my mouse to work with X Windows. ------------------------------------------------------------------------------- Question 8.1. Does Linux support X Windows ? Yes. You need to have a video card which is supported by XFree86 (or XS3 for S3-based cards). Some of the Linux releases -- MCC, for example -- don't come with X Windows already included; however you can easily download and install it from /pub/Linux/X11/Xfree86-1.3 on sunsite.unc.edu and its mirror sites. There is a README file there with more information. Other releases -- TAMU and SLS, for example -- come with X Windows already included Once you have unpacked it onto your system (either as part of the installation of a release or after downloading it separately as above) some documentation can be found in /usr/X386/lib/X11/etc. You should also check the Frequently Asked Questions list for comp.windows.x.i386unix, which is available on rtfm.mit.edu in /pub/usenet/news.answers/Intel-Unix-X-Faq, and the more general FAQ on X in x-faq in the same directory. Please don't post X Windows related questions to comp.os.linux.help. ------------------------------------------------------------------------------- Question 8.2. Where can I get an XConfig for my video card and monitor ? It's not that hard to roll your own. Read the instructions that came with XFree86-1.3, in /usr/X386/lib/X11/etc. The files you probably need to look at are the README, and ModeDB.txt which contains sample XConfig extracts for various monitors and cards. If your monitor isn't listed try the VESA standard timings. Near the end of VideoModes.doc there is a section on moving and resizing the image, in case that's all that needs fixing; this file also gives complete details of how to calculate the timings from scratch. If none of this helps try reading comp.windows.x.i386unix -- specifically the FAQ for that group (see Q8.1 `Does Linux support X Windows ?'). Please don't post your X Windows related question to comp.os.linux.help. ------------------------------------------------------------------------------- Question 8.3. I can't get my mouse to work with X Windows. You probably have the wrong mouse type in the XConfig, or are using the wrong device in /dev. You can check that you have the right device in /dev by using cat. Type cat /dev/whatever (while X isn't running !) and you should see characters come out, either continuously or when you move the mouse. If none of the plausible devices work and you have a busmouse, make sure that your kernel was compiled with busmouse support enabled and that it detected the busmouse at boot-time (it prints a message when it does). Note that the protocol used (which is what you specify in the XConfig file) is not necessarily named after the manufacturer of the mouse. For example, many Logitech mice use Microsoft or Mouse Systems protocols. Also, there is not really any such thing as a 3-button Microsoft-compatible mouse. If you have a 3 button mouse which claims to be Microsoft compatible there will probably be a way to switch it into 3 button mode, which may well use the Mouse Systems protocol or an extension to the Microsoft protocol. Check your mouse manual and experiment. Please don't post X Windows related questions to comp.os.linux.help. =============================================================================== Section 9. How to get further assistance Q9.1 You still haven't answered my question ! ------------------------------------------------------------------------------- Question 9.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 50000 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 mail Ian Jackson at ijackson@nyx.cs.du.edu. 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. That FAQ can, like all FAQs, be found on rtfm.mit.edu in /pub/usenet/news.answers. Check the relevant HOWTO for the subject in question, if there is one. See Q2.1 `Where can I get the HOWTOs and other documentation ?'. Try experimenting --- that's the best way to get to know Unix and Linux. Read the documentation. Check the manpages (type man man if you don't know about manpages) and the Info documentation (type C-h i, ie 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 giving 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 reinstall it --- perhaps you made a mistake the first time. Read comp.os.linux.announce and the Interim FAQ. This FAQ is updated every 4 or 5 weeks, so in the meantime an update, the Interim FAQ, is published. X-Windows questions belong in comp.windows.x.i386unix, not in comp.os.linux.help. 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 comp.os.linux.help; alternatively you could send email to linux-support@sunsite.unc.edu. Please read carefully the following advice about how to write your posting. Taking heed of it will greatly increase the chances that an expert and/or fellow user reading your posting will have enough information and motivation to reply. 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 (MCC, SLS, whatever). * 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. * 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 knew 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 noone 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. If you use (t)rn make sure that when you post you use the lowercase f key. Some people have been posting using uppercase F and deleting the quoted text. This marks your article as part of the thread of the article you're following up, which will often cause it to be junked by the readers with the rest of a boring thread. =============================================================================== Section 10. Administrative information and acknowledgements Q10.1 Feedback is invited Q10.2 Formats in which this FAQ is available Q10.3 Authorship and acknowledgements ------------------------------------------------------------------------------- Question 10.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 , with assistance and comments from (amongst others) Matt Welsh, . It was loosely based on the original Linux FAQ by Marc-Michel Corsini. Thanks are due to Matt Welsh, who coordinates the HOWTOs and has written substantial portions of many of them, and to Marc-Michel Corsini. Thanks also to the contributors to the previous Linux FAQ, and to those who answered questions on the newsgroup, all of whom are too numerous to mention. Last but not least, thanks to Linus Torvalds and the other contributors to Linux for giving me something to write about ! -- Ian Jackson (urgent email: iwj10@phx.cam.ac.uk) 35 Molewood Close, Cambridge, CB4 3SR, England; phone: +44 223 327029 PGP2 public key on request; fingerprint = 5906F687 BD03ACAD 0D8E602E FCF37657