From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,94b51bba398c27eb,start X-Google-Attributes: gid1103af,public X-Google-Thread: 10d4db,94b51bba398c27eb,start X-Google-Attributes: gid10d4db,public X-Google-Thread: f7ded,94b51bba398c27eb,start X-Google-Attributes: gidf7ded,public X-Google-Thread: 100062,94b51bba398c27eb,start X-Google-Attributes: gid100062,public From: kiesling@terracom.net Subject: Linux Frequently Asked Questions with Answers (Part 1 of 6) Date: 1998/09/27 Message-ID: X-Deja-AN: 395400659 Followup-To: poster X-Trace: news3.ispnews.com 906928329 209.69.148.254 (Sun, 27 Sep 1998 16:32:09 EDT) Organization: ISPNews http://ispnews.com NNTP-Posting-Date: Sun, 27 Sep 1998 16:32:09 EDT Newsgroups: comp.os.linux.announce,comp.os.linux.misc,news.answers,comp.answers Originator: kiesling@terracom.net Archive-Name: linux/faq/part1 Posting-Frequency: weekly Linux Frequently Asked Questions with Answers September 27, 1998 This is the list of Frequently Asked Questions for Linux, the free Unix for just about every computer hardware platform on the planet. Originally written for 386/486/586 Intel/ISA bus machines, versions exist for Alpha, MIPS, ARM, 680x0, and PPC processors, and many others. (See the question, "What is Linux?" below.) This document should be read in conjunction with the Linux Documentation Project's HOWTO series. ("Where can I get Linux material by FTP?" and, "Where can I get the HOWTO's and other documentation?") The INFO-SHEET and META-FAQ, which are found in the same place, also list sources of Linux information. Please look at these documents, and, "You still haven't answered my question!" before posting to a Usenet news group. You can also get Postscript, HTML, SGML, and plain ASCII versions of this document. ("Formats in which this FAQ is available.") 1. Introduction and General Information * 1.1 What is Linux? * 1.2 Where do I start? * 1.3 What software does Linux support? * 1.4 Does Linux run on my computer? What hardware is supported? * 1.5 What ports to other processors are there? * 1.6 How much hard disk space does Linux need? * 1.7 How much memory does Linux need? * 1.8 How much memory can Linux use? * 1.9 Is Linux public domain? Copyrighted? 2. Network sources and resources. * 2.1 Where can I get the HOWTO's and other documentation? * 2.2 Where should I look on the World Wide Web for Linux stuff? * 2.3 What newsgroups are there for Linux? * 2.4 Where can I find out about Linux and the Millennium (Y2K) bug? * 2.5 Where can I get Linux material by FTP? * 2.6 I don't have FTP access. Where do I get Linux? * 2.7 I don't have Usenet access. Where do I get information? * 2.8 What mailing lists are there? * 2.9 Are the newsgroups archived anywhere? 3. Compatibility with other operating systems. * 3.1 Can Linux share my disk with DOS? OS/2? 386BSD? Win95? * 3.2 How do I access files on my DOS partition or floppy? * 3.3 Does Linux support compressed ext2 file systems? * 3.4 Can I use my Stacked/DBLSPC/etc. DOS drive? * 3.5 Can I access OS/2 HPFS partitions from Linux? * 3.6 Can Linux access Amiga file systems? * 3.7 Can Linux access BSD, SysV, etc. UFS? * 3.8 Can Linux access SMB file systems? * 3.9 Can Linux access Macintosh file systems? * 3.10 Can I run Microsoft Windows programs under Linux? * 3.11 How can I boot Linux from OS/2's Boot Manager? * 3.12 How can I share a swap partition between Linux and MS Windows? 4. Linux's handling of file systems, disks, and drives * 4.1 How can I get Linux to work with my disk? * 4.2 How can I undelete files? * 4.3 Is there a defragmenter for ext2fs etc.? * 4.4 How do I format and create a file system on a floppy? * 4.5 I get nasty messages about inodes, blocks, and the like. * 4.6 My swap area isn't working. * 4.7 How do I remove LILO so my system boots DOS again? * 4.8 Why can't I use fdformat except as root? * 4.9 My ext2fs partitions are checked each time I reboot. * 4.10 My root file system is read-only! * 4.11 I have a huge /proc/kcore! Can I delete it? * 4.12 My AHA1542C doesn't work with Linux. 5. Porting, compiling and obtaining programs * 5.1 How do I port XXX to Linux? * 5.2 What is ld.so and where do I get it? * 5.3 Has anyone ported / compiled / written XXX for Linux? * 5.4 Can I use code or a compiler compiled for a 486 on my 386? * 5.5 What does gcc -O6 do? * 5.6 Where are linux/*.h and asm/*.h? * 5.7 I get errors when I try to compile the kernel. * 5.8 How do I make a shared library? * 5.9 My executables are (very) large. * 5.10 Does Linux support threads or lightweight processes? * 5.11 Where can I get `lint' for Linux? * 5.12 Where can I find kermit for Linux? 6. Solutions to common miscellaneous problems. * 6.1 free dumps core. * 6.2 My clock is very wrong. * 6.3 Setuid scripts don't seem to work. * 6.4 Free memory as reported by free keeps shrinking. * 6.5 When I add more memory, the system slows to a crawl. * 6.6 Some programs (e.g. xdm) won't let me log in. * 6.7 Some programs let me log in with no password. * 6.8 My machine runs very slowly when I run GCC / X / ... * 6.9 I can only log in as root. * 6.10 My screen is all full of weird characters instead of letters. * 6.11 I have screwed up my system and can't log in to fix it. * 6.12 I've discovered a huge security hole in rm! * 6.13 lpr(1) and/or lpd(8) don't work. * 6.14 Timestamps on files on MS-DOS partitions are set incorrectly. * 6.15 How do I get LILO to boot the vmlinux file? 7. How do I do this or find out that ... ? * 7.1 How can I get scrollback in text mode? * 7.2 How do I switch virtual consoles? How do I enable them? * 7.3 How do I set the time zone? * 7.4 What version of Linux and what machine name am I using? * 7.5 How can I enable or disable core dumps? * 7.6 How do I upgrade/recompile my kernel? * 7.7 Can I have more than 3 serial ports by sharing interrupts? * 7.8 How do I make a bootable floppy? * 7.9 How do I remap my keyboard to UK, French, etc.? * 7.10 How do I get NUM LOCK to default to on? * 7.11 How do I set (or reset) my initial terminal colors? * 7.12 How can I have more than 128Mb of swap? * 7.13 Miscellaneous information and questions answered. * 7.14 How do I program XYZ under Linux? * 7.15 What's all this about ELF? * 7.16 What is a .gz file ? And a .tgz ? And ... ? * 7.17 What does VFS stand for? * 7.18 What is a BogoMip? * 7.19 What is the Linux Journal and where can I get it? * 7.20 What online/free periodicals exist for Linux? * 7.21 How many people use Linux? * 7.22 How should I pronounce Linux? 8. Frequently encountered error messages. * 8.1 Modprobe can't locate module, "XXX," and similar messages. * 8.2 Unknown terminal type linux and similar. * 8.3 lp1 on fire * 8.4 INET: Warning: old style ioctl... called! * 8.5 ld: unrecognized option '-m486' * 8.6 GCC says Internal compiler error. * 8.7 make says Error 139 * 8.8 shell-init: permission denied when I log in. * 8.9 No utmp entry. You must exec ... when I log in. * 8.10 Warning--bdflush not running. * 8.11 Warning: obsolete routing request made. * 8.12 EXT2-fs: warning: mounting unchecked file system. * 8.13 EXT2-fs warning: maximal count reached. * 8.14 EXT2-fs warning: checktime reached. * 8.15 df says Cannot read table of mounted file systems. * 8.16 fdisk says Partition X has different physical/logical ... * 8.17 fdisk: Partition 1 does not start on cylinder boundary. * 8.18 fdisk says partition n has an odd number of sectors. * 8.19 mtools says cannot initialize drive XYZ * 8.20 At the start of booting: Memory tight * 8.21 My syslog says `end_request: I/O error, ...'. * 8.22 You don't exist. Go away. 9. The X Window System. * 9.1 Does Linux support X Windows? * 9.2 Where can I get an XF86Config for my system? * 9.3 xterm logins show up strangely in who, finger. * 9.4 I can't get X Windows to work right. 10. Questions applicable to very out-of-date software. * 10.1 fdisk says cannot use nnn sectors of this partition. * 10.2 GCC sometimes uses huge amounts of virtual memory and thrashes. 11. How to get further assistance. * 11.1 You still haven't answered my question! * 11.2 What to put in a request for help. * 11.3 I want to mail someone about my problem. 12. Administrative information and acknowledgments. * 12.1 Feedback is invited. * 12.2 Formats in which this FAQ is available. * 12.3 Authorship and acknowledgments. * 12.4 Disclaimer and Copyright. 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 PC's, using the hardware facilities of the 80386 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. ("Where can I get the HOWTO's and other documentation?") The Linux kernel is distributed under the GNU General Public License. ("Is Linux public domain? Copyrighted?") 1.2 Where do I start? There are a handful of major 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 on the LDP Home Page. Most of the distributions are available via anonymous FTP from various Linux archive sites. ("Where can I get Linux material by FTP?") There are also a large number of other releases which are distributed less globally that 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 of the hundreds of programs that people have compiled or ported to it. There is a DOS emulator, called DOSEMU. The latest stable release is 0.98.1. The FTP archives are at ftp://ftp.dosemu.org/dosemu. The Web site is htmlurl url="http://www.dosemu.org" name="http://www.dosemu.org">. The emulator can run DOS itself and some (but not all) DOS applications. Be sure to look at the README file to determine which version you should get. Also, see the DOSEMU-HOWTO (slightly dated at this point--it doesn't cover the most recent version of the program), at sunsite.unc.edu/pub/Linux/docs/HOWTO. Work has been progressing on an emulator for Microsoft Windows binaries. ("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. There is information at tsx-11.mit.edu/pub/linux/BETA/ibcs2/README. For more information see the INFO-SHEET, which is one of the HOWTO's ("Where can I get the HOWTO's and other documentation?" and, "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. ("Are the newsgroups archived anywhere?") 1.4 Does Linux run on my computer? What hardware is supported? Giving Linux a try requires a machine with an Intel '386, '486, or '586 processor with at least 2Mb of RAM and a single floppy drive. To do anything useful, more RAM and disk space 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 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 HOWTO's 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 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 like 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. ("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 platforms. There are mailing lists for all of them. 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. ("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 mail server and a linux-mips mailing list. ("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, read 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 Linux, 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 until the disk swap space is installed. 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 the news group gnu.misc.discuss, and not to the comp.os.linux hierarchy. 2. Network sources and resources. 2.1 Where can I get the HOWTO's 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, see, "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, and 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 -- Robert Kiesling kiesling@ix.netcom.com