home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1996 December / PCO1296.ISO / filesbbs / content / linuxfaq.txt < prev    next >
Encoding:
Text File  |  1996-10-17  |  101.6 KB  |  2,324 lines

  1.  
  2. From: ijackson@nyx.cs.du.edu (Ian Jackson)
  3. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.os.linux.admin,comp.os.linux.misc,comp.os.linux.development,comp.answers,news.answers
  4. Subject: Linux Frequently Asked Questions with Answers (FAQ: 1/2)
  5. Date: Wed, 21 Dec 1994 20:54:16 GMT
  6. Organization: Linux Unlimited
  7. Approved: *.answers moderation team <news-answers-request@mit.edu>,
  8.           Matt Welsh <linux-announce-request@tc.cornell.edu>
  9. Expires: Wed, 25 Jan 1995 20:54:16 GMT
  10. Message-ID: <ijackson-linux-faq2-11-1994@nyx.cs.du.edu>
  11. NNTP-Posting-Host: bootes.cus.cam.ac.uk
  12. Summary: Please read the whole FAQ before posting to comp.os.linux.help.
  13. Keywords: FAQ, Linux, part1
  14. Originator: iwj10@bootes.cus.cam.ac.uk
  15. Xref: Germany.EU.net comp.os.linux.announce:3327 comp.os.linux.help:79834 comp.os.linux.admin:23158 comp.os.linux.misc:35957 comp.os.linux.development:24186 comp.answers:9061 news.answers:33580
  16.  
  17. Archive-Name: linux/faq/part1
  18. Last-Modified: 21 Dec 1994
  19.  
  20. -----BEGIN PGP SIGNED MESSAGE-----
  21.  
  22. This is the list of Frequently Asked Questions about Linux, the free Unix
  23. for 386/486/586 [see Q1.1 `What is Linux ?' for more details].  It should
  24. be read in conjunction with the HOWTO documents, which are available in
  25.  
  26. * ftp.funet.fi (128.214.6.100) : /pub/OS/Linux/doc/HOWTO
  27. * tsx-11.mit.edu (18.172.1.2) : /pub/linux/docs/HOWTO
  28. * sunsite.unc.edu (152.2.22.81) : /pub/Linux/docs/HOWTO
  29.  
  30. and mirror sites thereof -- see Q2.5 `Where can I get Linux material by
  31. FTP ?'.  See Q2.1 `Where can I get the HOWTOs and other documentation ?'
  32. for a list of the HOWTOs and more information.  The INFO-SHEET and
  33. META-FAQ, found in the same place, also list other sources of Linux
  34. information.
  35.  
  36. The Linux Documentation Project documentation is available on
  37. sunsite.unc.edu in /pub/Linux/docs/LDP.  These documents (more are in
  38. preparation) are invaluable to the newcomer or for use as a reference
  39. work.
  40.  
  41. Please check out these documents and this FAQ, especially Q12.1 `You still
  42. haven't answered my question !', before posting your question to the
  43. newsgroup comp.os.linux.help.
  44.  
  45. See Q13.2 `Formats in which this FAQ is available' for details of where to
  46. get the PostScript, Emacs Info, HTML (WWW) and plain ASCII versions of
  47. this document.
  48.  
  49. You can skip to a particular question by searching for `Question n.n'.
  50.  
  51. Note that this posting has been split into two parts because of its size.
  52.  
  53. A new version of this document appears approximately monthly.  If this
  54. copy is more than a month old it may be out of date.
  55.  
  56. ===============================================================================
  57.  
  58. Index
  59.  
  60.  Section 1.  Introduction and General Information
  61.  Q1.1        What is Linux ?
  62.  Q1.2        What software does it support ?
  63.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  64.  Q1.4        What ports to other processors are there ?
  65.  Q1.5        How much hard disk space does Linux need ?
  66.  Q1.6        Is Linux PD ?  Copyrighted ?
  67.  
  68.  Section 2.  Network sources and resources
  69.  Q2.1        Where can I get the HOWTOs and other documentation ?
  70.  Q2.2        Where should I look on the World Wide Web for Linux stuff ?
  71.  Q2.3        What newsgroups are there for Linux ?
  72.  Q2.4        How do I install Linux ?
  73.  Q2.5        Where can I get Linux material by FTP ?
  74.  Q2.6        I don't have FTP access.  Where do I get Linux ?
  75.  Q2.7        I don't have Usenet access.  Where do I get information ?
  76.  Q2.8        What's this mailing list thing at niksula.hut.fi ?
  77.  Q2.9        Are the newsgroups archived anywhere ?
  78.  
  79.  Section 3.  Compatibility with other operating systems
  80.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  81.  Q3.2        How do I access files on my DOS partition or floppy ?
  82.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  83.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  84.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  85.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  86.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  87.  Q3.8        How can I share a swap partition between Linux and MS Windows ?
  88.  
  89.  Section 4.  Linux's handling of filesystems, disks and drives
  90.  Q4.1        How can I undelete files ?
  91.  Q4.2        Is there a defragmenter for ext2fs etc. ?
  92.  Q4.3        How do I format and create a filesystem on a floppy ?
  93.  Q4.4        I get nasty messages about inodes, blocks, and the suchlike
  94.  Q4.5        My swap area isn't working.
  95.  Q4.6        How do I remove LILO so my system boots DOS again ?
  96.  Q4.7        Why can't I use fdformat except as root ?
  97.  Q4.8        Is there something like Stacker or Doublespace for Linux ?
  98.  Q4.9        My ext2fs partitions are checked each time I reboot.
  99.  Q4.10       My root filesystem is read-only !
  100.  Q4.11       I have a huge /proc/kcore !  Can I delete it ?
  101.  Q4.12       My AHA1542C doesn't work with Linux.
  102.  
  103.  Section 5.  Porting, compiling and obtaining programs
  104.  Q5.1        What is ld.so and where do I get it ?
  105.  Q5.2        Has anyone ported / compiled / written XXX for Linux ?
  106.  Q5.3        How do I port XXX to Linux ?
  107.  Q5.4        Can I use code or a compiler compiled for a 486 on my 386 ?
  108.  Q5.5        What does gcc -O6 do ?
  109.  Q5.6        Where are <linux/*.h> and <asm/*.h> ?
  110.  Q5.7        I get errors when I try to compile the kernel.
  111.  Q5.8        How do I make a shared library ?
  112.  Q5.9        How do I make my executables smaller ?
  113.  Q5.10       Does Linux support threads or lightweight processes ?
  114.  
  115.  Section 6.  Solutions to common miscellaneous problems
  116.  Q6.1        Setuid scripts don't seem to work.
  117.  Q6.2        Free memory as reported by free keeps shrinking.
  118.  Q6.3        When I add more memory it slows to a crawl.
  119.  Q6.4        Some programs (e.g. xdm) won't let me log in.
  120.  Q6.5        Some programs let me log in with no password.
  121.  Q6.6        My machine runs very slowly when I run GCC / X / ...
  122.  Q6.7        I can only log in as root.
  123.  Q6.8        My screen is all full of weird characters instead of letters.
  124.  Q6.9        I have screwed up my system and can't log in to fix it.
  125.  Q6.10       Emacs just dumps core.
  126.  Q6.11       I've discovered a huge security hole in rm !
  127.  Q6.12       lpr and/or lpd aren't working.
  128.  
  129.  Section 7.  How do I do this or find out that ... ?
  130.  Q7.1        How can I get scrollback in text mode ?
  131.  Q7.2        How do I switch virtual consoles ?  How do I enable them ?
  132.  Q7.3        How do I set the timezone ?
  133.  Q7.4        What version of Linux and what machine name am I using ?
  134.  Q7.5        How can I enable or disable core dumps ?
  135.  Q7.6        How do I upgrade/recompile my kernel ?
  136.  Q7.7        Can I have more than 3 serial ports by sharing interrupts ?
  137.  Q7.8        How do I make a bootable floppy ?
  138.  Q7.9        How do I remap my keyboard to UK, French, etc. ?
  139.  Q7.10       How do I get NUM LOCK to default to on ?
  140.  Q7.11       How can I have more than 128Mb of swap ?
  141.  
  142.  Section 8.  Miscellaneous information and questions answered
  143.  Q8.1        What is a .gz file ? And a .tgz ? And ... ?
  144.  Q8.2        What does VFS stand for ?
  145.  Q8.3        What is a BogoMip ?
  146.  Q8.4        What is the Linux Journal and where can I get it ?
  147.  Q8.5        How many people use Linux ?
  148.  Q8.6        How should I pronounce Linux ?
  149.  
  150.  Section 9.  Frequently encountered error messages
  151.  Q9.1        During linking I get Undefined symbol _mcount
  152.  Q9.2        lp1 on fire
  153.  Q9.3        INET: Warning: old style ioctl(IP_SET_DEV) called!
  154.  Q9.4        ld: unrecognized option '-m486'
  155.  Q9.5        GCC says Internal compiler error
  156.  Q9.6        make says Error 139
  157.  Q9.7        shell-init: permission denied when I log in.
  158.  Q9.8        No utmp entry.  You must exec ... when I log in.
  159.  Q9.9        Warning - bdflush not running
  160.  Q9.10       Warning: obsolete routing request made.
  161.  Q9.11       EXT2-fs: warning: mounting unchecked filesystem
  162.  Q9.12       EXT2-fs warning: maximal count reached
  163.  Q9.13       EXT2-fs warning: checktime reached
  164.  Q9.14       df says Cannot read table of mounted filesystems
  165.  Q9.15       fdisk says Partition X has different physical/logical ...
  166.  Q9.16       fdisk: Partition 1 does not start on cylinder boundary
  167.  Q9.17       fdisk says cannot use nnn sectors of this partition
  168.  Q9.18       fdisk says partition n has an odd number of sectors
  169.  Q9.19       mtools says cannot initialise drive XYZ
  170.  
  171.  Section 10. The X Window System
  172.  Q10.1       Does Linux support X Windows ?
  173.  Q10.2       Where can I get an XF86Config for my system ?
  174.  Q10.3       xterm logins show up strangely in who, finger
  175.  Q10.4       I can't get X Windows to work right.
  176.  
  177.  Section 11. Questions applicable to very out-of-date software
  178.  Q11.1       GCC sometimes uses huge amounts of virtual memory and thrashes
  179.  Q11.2       My keyboard goes all funny after I switch VC's.
  180.  
  181.  Section 12. How to get further assistance
  182.  Q12.1       You still haven't answered my question !
  183.  Q12.2       What to put in a posting to comp.os.linux.help
  184.  Q12.3       I want to mail someone about my problem.
  185.  
  186.  Section 13. Administrative information and acknowledgements
  187.  Q13.1       Feedback is invited
  188.  Q13.2       Formats in which this FAQ is available
  189.  Q13.3       Authorship and acknowledgements
  190.  Q13.4       Disclaimer and Copyright
  191.  
  192. ===============================================================================
  193.  
  194. Section 1.  Introduction and General Information
  195.  
  196.  Q1.1        What is Linux ?
  197.  Q1.2        What software does it support ?
  198.  Q1.3        Does it run on my computer ?  What hardware is supported ?
  199.  Q1.4        What ports to other processors are there ?
  200.  Q1.5        How much hard disk space does Linux need ?
  201.  Q1.6        Is Linux PD ?  Copyrighted ?
  202.  
  203. - -----------------------------------------------------------------------------
  204.  
  205. Question 1.1.  What is Linux ?
  206.  
  207. Linux is a Unix clone written from scratch by Linus Torvalds with
  208. assistance from a loosely-knit team of hackers across the Net.  It aims
  209. towards POSIX compliance.
  210.  
  211. It has all the features you would expect in a modern fully-fledged Unix,
  212. including true multitasking, virtual memory, shared libraries, demand
  213. loading, shared copy-on-write executables, proper memory management and
  214. TCP/IP networking.
  215.  
  216. It runs mainly on 386/486/586-based PCs, using the hardware facilities of
  217. the 386 processor family (TSS segments et al) to implement these features.
  218. Ports to other architectures are underway [Q1.4 `What ports to other
  219. processors are there ?'].
  220.  
  221. See the Linux INFO-SHEET [Q2.1 `Where can I get the HOWTOs and other
  222. documentation ?'] for more details.
  223.  
  224. The Linux kernel is distributed under the GNU General Public License - see
  225. Q1.6 `Is Linux PD ?  Copyrighted ?' for more details.
  226.  
  227. - -----------------------------------------------------------------------------
  228.  
  229. Question 1.2.  What software does it support ?
  230.  
  231. Linux has GCC, Emacs, X-Windows, all the standard Unix utilities, TCP/IP
  232. (including SLIP and PPP) and all the hundreds of programs that people have
  233. compiled or ported for it.
  234.  
  235. There is a DOS emulator [Q3.1 `Can Linux coexist with DOS ?  OS/2 ?
  236. 386BSD ?  Minix ?'].  Work is progressing on an iBCS2 (Intel Binary
  237. Compatibility Standard) emulator for SVR4 ELF and SVR3.2 COFF binaries
  238. (see the iBCS2 emulator source tree README file for details) and an
  239. emulator for Microsoft Windows binaries [Q3.6 `Can I run Microsoft Windows
  240. programs under Linux ?'].
  241.  
  242. For more information see the INFO-SHEET, which is one of the the HOWTOs
  243. [Q2.1 `Where can I get the HOWTOs and other documentation ?'].  See also
  244. Q5.3 `How do I port XXX to Linux ?'.
  245.  
  246. Some companies have commercial software available, including Motif.  They
  247. announce their availability in comp.os.linux.announce --- try searching
  248. the archives [Q2.9 `Are the newsgroups archived anywhere ?'].
  249.  
  250. - -----------------------------------------------------------------------------
  251.  
  252. Question 1.3.  Does it run on my computer ?  What hardware is supported ?
  253.  
  254. You need a 386, 486 or 586, with at least 2Mb of RAM and a single floppy,
  255. to try it out.  To do anything useful more RAM and a hard disk are
  256. required.
  257.  
  258. VESA local bus and PCI are both supported.  A driver for the NCR SCSI chip
  259. in many PCI machines is included in current alpha test release kernels.
  260.  
  261. There are problems with machines using MCA (IBM's proprietary bus), mainly
  262. to do with the hard disk controller.  There is a developers' release for
  263. PS/2 ESDI drives on invaders.dcrl.nd.edu in /pub/misc/linux.  Certain
  264. kinds of SCSI controllers also work, I understand.  Work is in progress to
  265. create a suitable version of the Slackware distribution.  I'm afraid I
  266. don't have any further details; you could try asking Arindam Banerji
  267. <axb@defender.dcrl.nd.edu>.
  268.  
  269. Linux is reported to run on 386 family based laptops, with X on most of
  270. them.
  271.  
  272. For details of exactly which PC's, video cards, disk controllers, etc.
  273. work see the INFO-SHEET and the Hardware HOWTO [Q2.1 `Where can I get the
  274. HOWTOs and other documentation ?'].
  275.  
  276. Linux will never run on a 286, because it uses task-switching and memory
  277. management facilities only found on 386 family processors.
  278.  
  279. - -----------------------------------------------------------------------------
  280.  
  281. Question 1.4.  What ports to other processors are there ?
  282.  
  283. A project has been underway for around two years to port Linux to suitable
  284. 68000-series based systems such as Amigas and Ataris.  This has now
  285. reached beta test quality, but still lacks an X server.  There is a 680X0
  286. channel on the Linux Activists mailserver [Q2.8 `What's this mailing list
  287. thing at niksula.hut.fi ?'], and a Linux/68K FAQ on the World Wide Web and
  288. on tsx-11.mit.edu in /pub/linux/680x0/FAQ.
  289.  
  290. Work has just been started on a port to the PowerPC.  Currently this will
  291. be based on the PowerMAC architecture (on a political note, you might like
  292. to know that the FSF disapprove of Apple - see /usr/lib/emacs/19.*/APPLE
  293. on your system).  Again, don't post asking about it unless you have
  294. experience to offer, and don't hold your breath.
  295.  
  296. Jim Paradis <paradis@sousa.amt.ako.dec.com> or <jrp@world.std.com> is
  297. working on a port to the 64-bit DEC AXP (the Alpha).  This can currently
  298. boot from a floppy disk or disk image loaded into a ramdisk at boot time.
  299. Disk drivers are not yet available.  Please email him of you have access
  300. to an ISA or EISA-based Alpha AXP and wish to contribute to the project,
  301. or have access to another class of Alpha and are willing to write drivers.
  302.  
  303. Ralf Baechle is working on a port to the MIPS, initially for the R4600 on
  304. Deskstation Tyne machines.  The Linux/MIPS FAQ is available on the WWW and
  305. in the MIPS port area on ftp.waldorf-gmbh.de in /pub/linux/mips.  There is
  306. also a MIPS channel on the Linux Activists mailserver.  Interested people
  307. may mail their questions and offers of assistance to
  308. <linux@waldorf-gmbh.de>.
  309.  
  310. None of these ports will be capable of running Linux/386 binaries.
  311.  
  312. - -----------------------------------------------------------------------------
  313.  
  314. Question 1.5.  How much hard disk space does Linux need ?
  315.  
  316. 10Mb for a very minimal installation, suitable for trying it out and not
  317. much else.
  318.  
  319. You can squeeze a more complete installation including X Windows into
  320. 80Mb.  Installating the whole of Slackware 1.2 takes around 200Mb,
  321. including some space for user files and spool areas.
  322.  
  323. - -----------------------------------------------------------------------------
  324.  
  325. Question 1.6.  Is Linux PD ?  Copyrighted ?
  326.  
  327. The Linux kernel copyright belongs to Linus Torvalds.  He has placed it
  328. under the GNU General Public Licence, which basically means that you may
  329. freely copy, change and distribute it, but that you may not impose any
  330. restrictions on further distribution, and that you must make the source
  331. code available.
  332.  
  333. Full details are in the file COPYING in the Linux kernel sources (probably
  334. in /usr/src/linux on your system).
  335.  
  336. The licences of the utilities and programs which come with the
  337. installations vary; much of the code is from the GNU Project at the Free
  338. Software Foundation, and is also under the GPL.
  339.  
  340. Note that discussion about the merits or otherwise of the GPL should be
  341. posted to gnu.misc.discuss and not to the comp.os.linux groups.
  342.  
  343. ===============================================================================
  344.  
  345. Section 2.  Network sources and resources
  346.  
  347.  Q2.1        Where can I get the HOWTOs and other documentation ?
  348.  Q2.2        Where should I look on the World Wide Web for Linux stuff ?
  349.  Q2.3        What newsgroups are there for Linux ?
  350.  Q2.4        How do I install Linux ?
  351.  Q2.5        Where can I get Linux material by FTP ?
  352.  Q2.6        I don't have FTP access.  Where do I get Linux ?
  353.  Q2.7        I don't have Usenet access.  Where do I get information ?
  354.  Q2.8        What's this mailing list thing at niksula.hut.fi ?
  355.  Q2.9        Are the newsgroups archived anywhere ?
  356.  
  357. - -----------------------------------------------------------------------------
  358.  
  359. Question 2.1.  Where can I get the HOWTOs and other documentation ?
  360.  
  361. Look in the following places, and on sites that mirror them.
  362.  
  363. * ftp.funet.fi (128.214.6.100) : /pub/OS/Linux/doc/HOWTO
  364. * tsx-11.mit.edu (18.172.1.2) : /pub/linux/docs/HOWTO
  365. * sunsite.unc.edu (152.2.22.81) : /pub/Linux/docs/HOWTO
  366.  
  367. For a complete list of Linux FTP sites see Q2.5 `Where can I get Linux
  368. material by FTP ?'.
  369.  
  370. If you don't have access to FTP try using the FTP-by-mail servers at
  371. ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  372. ftp-mailer@informatik.tu-muenchen.de.
  373.  
  374. A complete list of HOWTO's is available in the file HOWTO.INDEX in the
  375. docs/HOWTO directory at the FTP sites, but here is a (possibly incomplete)
  376. list:
  377.  
  378.      Linux INFO-SHEET                        Linux META-FAQ
  379.      BUPS HOWTO (regarding the Back UPS).    Busmouse HOWTO
  380.      CDROM HOWTO                             Distribution HOWTO
  381.      DOSEMU HOWTO                            Ethernet HOWTO
  382.      Ftape HOWTO                             Hardware HOWTO
  383.      Installation HOWTO                      Japanese Extensions HOWTO
  384.      Keystroke HOWTO                         Mail HOWTO
  385.      MGR HOWTO                               NET-2 HOWTO
  386.      News HOWTO                              Printing HOWTO
  387.      SCSI HOWTO                              Sound HOWTO
  388.      Term HOWTO                              Tips HOWTO
  389.      UUCP HOWTO                              XFree86 HOWTO
  390. More of these documents are always in preparation.  You should check in
  391. nearby directories on the FTP sites if you can't find the answer in one of
  392. the HOWTOs.  There are also a few mini-HOWTOs on sunsite.unc.edu in the
  393. /pub/Linux/docs/HOWTO/mini directory.
  394.  
  395. The HOWTO.INDEX also contains information on how to write a new HOWTO.
  396.  
  397. The HOWTOs are coordinated by Matt Welsh, <mdw@sunsite.unc.edu>.
  398.  
  399. The `books' produced by the Linux Documentation Project are available in
  400. /pub/Linux/docs/LDP on sunsite.unc.edu.  Please read them if you are new
  401. to Unix and Linux.  Here is a list of those released so far:
  402.  
  403. * The Linux Documentation Project manifesto
  404. * Installation and Getting Started Guide
  405. * The Kernel Hacker's Guide
  406. * Network Administration Guide
  407. * Linux System Administrator's Guide
  408.  
  409. - -----------------------------------------------------------------------------
  410.  
  411. Question 2.2.  Where should I look on the World Wide Web for Linux stuff ?
  412.  
  413. Matt Welsh maintains the Linux Documentation Project Home Page, at
  414. http://sunsite.unc.edu/mdw/linux.html.
  415.  
  416. This page refers to all the FAQs and HOWTOs, both those which are
  417. available in HTML (WWW) format, like this FAQ, and those which aren't.
  418.  
  419. - -----------------------------------------------------------------------------
  420.  
  421. Question 2.3.  What newsgroups are there for Linux ?
  422.  
  423. There are five international Usenet newsgroups devoted to Linux.
  424.  
  425. comp.os.linux.announce is the moderated announcements group; you should
  426. read this if you intend to use Linux.  Submissions for that group should
  427. be emailed to linux-announce@tc.cornell.edu.
  428.  
  429. comp.os.linux.help, comp.os.linux.development, comp.os.linux.admin and
  430. comp.os.linux.misc are also worth reading -- you may find that many common
  431. problems are too recent to find in this FAQ but are answered in the
  432. newsgroups.
  433.  
  434. Remember that since Linux is a Unix clone, most all of the material in
  435. comp.unix.* and comp.windows.x.* groups will be relevant.  Apart from
  436. hardware considerations, and some obscure or very technical low-level
  437. issues, you'll find that these groups are the right place to start.
  438.  
  439. Please read Q12.1 `You still haven't answered my question !' before
  440. posting, and make sure you post to the right newsgroup.  Crossposting is
  441. rarely a good idea.
  442.  
  443. See also Q2.7 `I don't have Usenet access.  Where do I get information ?'.
  444.  
  445. Other regional and local newsgroups also exist - you may find the traffic
  446. more manageable there.  The French Linux newsgroup is fr.comp.os.linux;
  447. The German one is de.comp.os.linux.  In Australia, try
  448. aus.computers.linux.
  449.  
  450. There may well be Linux groups local to your institution or area - check
  451. there first.
  452.  
  453. - -----------------------------------------------------------------------------
  454.  
  455. Question 2.4.  How do I install Linux ?
  456.  
  457. There are several pre-packaged releases of Linux available, including the
  458. MCC-Interim release, the TAMU release and the Slackware release.  Each
  459. contains the software you need to run Linux, ready to install and use.
  460. The exact details of which software is included and how to install them
  461. vary from release to release.
  462.  
  463. You should read the Installation HOWTO for more details on how to go about
  464. installing Slackware.  If you prefer a small, clean distribution to one
  465. with everything but the kitchen sink you might like to try the MCC-Interim
  466. release.
  467.  
  468. All of those releases are available via anonymous FTP from the Linux
  469. archive sites [Q2.5 `Where can I get Linux material by FTP ?'].  There are
  470. also a large number of other releases which are distributed less globally,
  471. which suit special local and national requirements (for example, better
  472. internationalisation support).
  473.  
  474. - -----------------------------------------------------------------------------
  475.  
  476. Question 2.5.  Where can I get Linux material by FTP ?
  477.  
  478. There are three main archive sites for Linux:
  479.  
  480. * ftp.funet.fi (Finland, 128.214.6.100) : /pub/OS/Linux
  481. * sunsite.unc.edu (US, 152.2.22.81) : /pub/Linux
  482. * tsx-11.mit.edu (US, 18.172.1.2) : /pub/linux
  483.  
  484. The MCC-Interim release is available from ftp.mcc.ac.uk (US, 130.88.200.7)
  485. in /pub/linux; the TAMU release is available from net.tamu.edu (US,
  486. 128.194.177.1) in /pub/linux.
  487.  
  488. The contents of these sites is mirrored (copied, usually approximately
  489. daily) by a number of other sites.  Please use one close to you -- that
  490. will be faster for you and easier on the network.
  491.  
  492. * src.doc.ic.ac.uk : /packages/Linux (UK)
  493. * sunacm.swan.ac.uk : /pub/Linux (UK)
  494. * ftp.ibp.fr : /pub/linux (France)
  495. * wuarchive.wustl.edu : /systems/linux (US)
  496. * mrcnext.cso.uiuc.edu : /pub/linux (US)
  497. * ftp.informatik.tu-muenchen.de : /pub/comp/os/linux (Germany)
  498. * ftp.ibr.cs.tu-bs.de : /pub/os/linux (Germany)
  499. * ftp.dfv.rwth-aachen.de : /pub/linux (Germany)
  500. * ftp.informatik.rwth-aachen.de : /pub/Linux (Germany)
  501. * bond.edu.au : /pub/OS/Linux (Australia)
  502. * monu1.cc.monash.edu.au : /pub/linux (Australia)
  503. * ftp.sun.ac.za : /pub/linux (South Africa)
  504.  
  505. Not all of these mirror all of the other `source' sites, and some have
  506. material not available on the `source' sites.
  507.  
  508. - -----------------------------------------------------------------------------
  509.  
  510. Question 2.6.  I don't have FTP access.  Where do I get Linux ?
  511.  
  512. The easiest thing is probably to find a friend with FTP access.  If there
  513. is a Linux users group near you they may be able to help.
  514.  
  515. If you have a reasonably good email connection you could try the
  516. FTP-by-mail servers at ftpmail@decwrl.dec.com, ftpmail@doc.ic.ac.uk or
  517. ftp-mailer@informatik.tu-muenchen.de.
  518.  
  519. Linux is also available via traditional mail on diskette, CD-ROM and tape.
  520. The Installation HOWTO, and the file /pub/Linux/docs/distributions on
  521. sunsite.unc.edu, contain information on these distributions.
  522.  
  523. You could also try Zane Healy <healyzh@holonet.net>'s list of Linux BBS's,
  524. which is posted regularly (1st and 15th of each month) to
  525. comp.os.linux.announce and occasionally to the Fidonet and RIME UNIX
  526. echoes.
  527.  
  528. - -----------------------------------------------------------------------------
  529.  
  530. Question 2.7.  I don't have Usenet access.  Where do I get information ?
  531.  
  532. Digests of postings to the comp.os.linux.* groups are available by
  533. subscribing to the bidirectional gateway at
  534. linux-*-request@news-digests.mit.edu, where * is one of announce,
  535. development, help, misc or admin.
  536.  
  537. You are strongly advised to subscribe to at least
  538. linux-announce-request@news-digests.mit.edu, as this carries important
  539. information and documentation about Linux.
  540.  
  541. Please remember to use the -request addresses for your subscription and
  542. unsubscription messages; mail to the other address is posted to the
  543. newsgroup !
  544.  
  545. - -----------------------------------------------------------------------------
  546.  
  547. Question 2.8.  What's this mailing list thing at niksula.hut.fi ?
  548.  
  549. It's a multi-channel mailing list, mainly used by the developers of Linux
  550. to talk about technical issues and future developments.  Most of the
  551. channels are not intended for new users to ask their questions on.
  552.  
  553. The ANNOUNCE channel is a digest of postings to comp.os.linux.announce,
  554. for the benefit of those without Usenet access.  However since
  555. niksula.hut.fi is slow and overloaded I'd recommend subscribing to the MIT
  556. digestifier instead [Q2.7 `I don't have Usenet access.  Where do I get
  557. information ?'].
  558.  
  559. There is also a NEWBIE channel where `no question is too stupid';
  560. unfortunately it seems that few of the experienced users read that
  561. channel, probably because of all the `stupid' questions !
  562.  
  563. If you want to subscribe to one or more of the channels at the
  564. multi-channel list, send an empty mail message to
  565. linux-activists-request@niksula.hut.fi and you'll receive the instructions
  566. for operating the list subscription software.
  567.  
  568. If you want to unsubscribe send a mail message like this
  569.   From: you@domain.org
  570.   To: linux-activists-request@niksula.hut.fi
  571.   Subject: irrelevant
  572.  
  573.   X-Mn-Admin: leave CHANNEL
  574. to leave a channel called CHANNEL.  Do *not* put an X-Mn-Key line in your
  575. message - that will cause it to be posted to the list.
  576.  
  577. Note that you *must* remember to unsubscribe *before* you change your
  578. email address, as due to a design flaw in the list server it is virtually
  579. impossible to get yourself unsubscribed after such a change.
  580.  
  581. - -----------------------------------------------------------------------------
  582.  
  583. Question 2.9.  Are the newsgroups archived anywhere ?
  584.  
  585. Yes.  ftp.funet.fi and tsx-11.mit.edu contain archives of both
  586. comp.os.linux.announce and the old group comp.os.linux, in their Linux
  587. areas.  The comp.os.linux.announce archives are mirrored from /usenet on
  588. src.doc.ic.ac.uk (which also contains another archive of comp.os.linux).
  589.  
  590. There is an `easy to access' archive of comp.os.linux.announce on the
  591. World Wide Web at http://www.leo.org/archiv/linux/archiv/ann_index.html.
  592. It supports searching and browsing.
  593.  
  594. ===============================================================================
  595.  
  596. Section 3.  Compatibility with other operating systems
  597.  
  598.  Q3.1        Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  599.  Q3.2        How do I access files on my DOS partition or floppy ?
  600.  Q3.3        Can I use my Stacked/DBLSPC/etc. DOS drive ?
  601.  Q3.4        Can I access OS/2 HPFS partitions from Linux ?
  602.  Q3.5        Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  603.  Q3.6        Can I run Microsoft Windows programs under Linux ?
  604.  Q3.7        How can I boot Linux from OS/2's Boot Manager ?
  605.  Q3.8        How can I share a swap partition between Linux and MS Windows ?
  606.  
  607. - -----------------------------------------------------------------------------
  608.  
  609. Question 3.1.  Can Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?
  610.  
  611. Yes.  Linux uses the standard PC partitioning scheme, so it can share your
  612. disk with other operating systems.
  613.  
  614. Linux can read and write the files on your DOS and OS/2 FAT partitions and
  615. floppies using either the DOS filesystem type built into the kernel or
  616. mtools.  There is a DOS emulator (look on tsx-11.mit.edu in
  617. /pub/linux/ALPHA/dosemu) which can run DOS itself and some (but not all)
  618. DOS applications.
  619.  
  620. Linux can also access Minix and System V UFS filesystems, and can read
  621. (but not yet write) OS/2 HPFS and Amiga filesystems.
  622.  
  623. - -----------------------------------------------------------------------------
  624.  
  625. Question 3.2.  How do I access files on my DOS partition or floppy ?
  626.  
  627. Use the DOS filesystem, i.e. type, for example:
  628.         mkdir /dos
  629.         mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  630. If it's a floppy, don't forget to umount it before ejecting it !
  631.  
  632. You can use the conv=text/binary/auto, umask=nnn, uid=nnn and gid=nnn
  633. options to control the automatic line-ending conversion, permissions and
  634. ownerships of the files in the DOS filesystem as they appear under Linux.
  635. If you mount your DOS filesystem by putting it in your /etc/fstab you can
  636. record the options (comma-separated) there, instead of defaults.
  637.  
  638. Alternatively you can use `mtools', available in both binary and source
  639. form on the FTP sites -- see Q2.5 `Where can I get Linux material by FTP
  640. ?'.
  641.  
  642. A kernel patch (known as the fd-patches) is available which allows
  643. floppies with nonstandard numbers of tracks and/or sectors to be used;
  644. this patch is included in the 1.1 alpha testing kernel series.
  645.  
  646. - -----------------------------------------------------------------------------
  647.  
  648. Question 3.3.  Can I use my Stacked/DBLSPC/etc. DOS drive ?
  649.  
  650. Not easily.  You can access them from within the DOS emulator [Q3.1 `Can
  651. Linux coexist with DOS ?  OS/2 ?  386BSD ?  Minix ?'], but not as a normal
  652. filesystem under Linux or using mtools.
  653.  
  654. - -----------------------------------------------------------------------------
  655.  
  656. Question 3.4.  Can I access OS/2 HPFS partitions from Linux ?
  657.  
  658. Yes, but it's only read-only at the moment.  To use it you must compile a
  659. kernel with support for it enabled [Q7.6 `How do I upgrade/recompile my
  660. kernel ?'].  Then you can mount it using the mount command, for example:
  661.         mkdir /hpfs
  662.         mount -t hpfs /dev/hda5 /hpfs
  663.  
  664. - -----------------------------------------------------------------------------
  665.  
  666. Question 3.5.  Can I access BSD FFS, SysV UFS, Mac, Amiga, etc filesystems ?
  667.  
  668. I'm told that there is a primitive, alpha test read-only Amiga filesystem
  669. on sunsite.unc.edu in /pub/Linux/patches/amigaffs.tar.Z.  More information
  670. is in affs-readme in the tarfile.
  671.  
  672. The 1.1.x alpha test kernel series contains support for the UFS filesystem
  673. used by System V and Coherent.
  674.  
  675. There is a set of user-level programs that provides read-only access to
  676. the Macintosh hierarchical filing system (HFS). It is available on
  677. sunsite.unc.edu in /pub/Linux/utils/disk-management/xhfs0_3.tgz.
  678.  
  679. There is no support for the rest of those yet; I have not heard of any
  680. recent work on providing some.
  681.  
  682. - -----------------------------------------------------------------------------
  683.  
  684. Question 3.6.  Can I run Microsoft Windows programs under Linux ?
  685.  
  686. Not yet.  There is a project, known as WINE, to build an MS Windows
  687. emulator for Linux, but it is not ready for users yet.  Don't ask about it
  688. unless you think you can contribute; look out for the status reports in
  689. comp.emulators.ms-windows.wine.
  690.  
  691. In the meantime if you need to run MS Windows programs your best bet is
  692. probably to reboot when you want to switch environments.  LILO (the Linux
  693. bootloader) has the facility for a boot menu --- see its documentation for
  694. more details.
  695.  
  696. - -----------------------------------------------------------------------------
  697.  
  698. Question 3.7.  How can I boot Linux from OS/2's Boot Manager ?
  699.  
  700. 1. Create a partition using OS/2's FDISK (Not Linux's fdisk).
  701.  
  702. 2. Format the partition under OS/2, either with FAT or HPFS.  This is so
  703. that OS/2 knows about the partition being formatted.
  704.  
  705. 3. Add the partition to the Boot Manager.
  706.  
  707. 4. Boot Linux, and create a filesystem on the partition using mkfs -t ext2
  708. or mke2fs.  At this point you may, if you like, use Linux's fdisk to
  709. change the partition type code of the new partition to type 83 (Linux
  710. Native) -- this may help some automated installation scripts find the
  711. right partition to use.
  712.  
  713. 5. Install Linux on the partition.
  714.  
  715. 6. Install LILO on the Linux partition -- NOT on the master boot record of
  716. the hard drive.  This installs LILO as a second-stage boot loader on the
  717. Linux partition itself, to start up the kernel specified in the LILO
  718. config file.  To do this you should put
  719.    boot = /dev/hda2
  720. (where /dev/hda2 is the *partition* you want to boot off) in your
  721. /etc/lilo/config or /etc/lilo.config file.
  722.  
  723. 7. Make sure that it is the Boot Manager partition that is marked active,
  724. so that you can use Boot Manager to choose what to boot.
  725.  
  726. - -----------------------------------------------------------------------------
  727.  
  728. Question 3.8.  How can I share a swap partition between Linux and MS Windows ?
  729.  
  730. See the Mini-HOWTO on the subject by H. Peter Anvin, <hpa@eecs.nwu.edu>.
  731. It is available on sunsite.unc.edu in /pub/Linux/docs.
  732.  
  733. ===============================================================================
  734.  
  735. Section 4.  Linux's handling of filesystems, disks and drives
  736.  
  737.  Q4.1        How can I undelete files ?
  738.  Q4.2        Is there a defragmenter for ext2fs etc. ?
  739.  Q4.3        How do I format and create a filesystem on a floppy ?
  740.  Q4.4        I get nasty messages about inodes, blocks, and the suchlike
  741.  Q4.5        My swap area isn't working.
  742.  Q4.6        How do I remove LILO so my system boots DOS again ?
  743.  Q4.7        Why can't I use fdformat except as root ?
  744.  Q4.8        Is there something like Stacker or Doublespace for Linux ?
  745.  Q4.9        My ext2fs partitions are checked each time I reboot.
  746.  Q4.10       My root filesystem is read-only !
  747.  Q4.11       I have a huge /proc/kcore !  Can I delete it ?
  748.  Q4.12       My AHA1542C doesn't work with Linux.
  749.  
  750. - -----------------------------------------------------------------------------
  751.  
  752. Question 4.1.  How can I undelete files ?
  753.  
  754. In general, this is very hard to do on Unices because of their
  755. multitasking nature.  Undelete functionality for the ext2fs is being
  756. worked on, but don't hold your breath.
  757.  
  758. There are a number of packages available that work by providing new
  759. commands for deletion and sometimes copying that move deleted files into a
  760. `wastebasket' directory instead; they can then be recovered until cleaned
  761. out automatically by background processing.
  762.  
  763. Alternatively you can search the raw disk device which holds the
  764. filesystem in question.  This is hard work, and you will need to be root
  765. to do this.
  766.  
  767. - -----------------------------------------------------------------------------
  768.  
  769. Question 4.2.  Is there a defragmenter for ext2fs etc. ?
  770.  
  771. Yes.  There is a Linux filesystem defragmenter for minix, old-style, ext2,
  772. and xia filesystems available on sunsite.unc.edu in
  773. system/Filesystems/defrag-0.6.tar.gz.
  774.  
  775. Users of the ext2 filesystem can probably do without defrag since ext2
  776. contains extra code to keep fragmentation reduced even in very full
  777. filesystems.
  778.  
  779. - -----------------------------------------------------------------------------
  780.  
  781. Question 4.3.  How do I format and create a filesystem on a floppy ?
  782.  
  783. For a 3.5 inch high density floppy:
  784.    fdformat /dev/fd0H1440
  785.    mkfs -t ext2 -m 0 /dev/fd0H1440 1440
  786. For a 5.25 inch floppy use fd0h1200 and 1200 as appropriate.  For the `B'
  787. drive use fd1 instead of fd0.  Full details of which floppy devices do
  788. what can be found in the Linux Device List [Q2.1 `Where can I get the
  789. HOWTOs and other documentation ?'].  If you don't have the fsutils package
  790. you'll have to run mke2fs instead of mkfs -t ext2.  The -m 0 option tells
  791. mkfs.ext2 not to reserve any space on the disk for the superuser ---
  792. usually the last 10% is reserved for root.
  793.  
  794. The first command low-level formats the floppy; the second creates an
  795. empty filesystem on it.  After doing this you can mount the floppy like a
  796. hard disk partition and simply cp and mv files, etc.
  797.  
  798. - -----------------------------------------------------------------------------
  799.  
  800. Question 4.4.  I get nasty messages about inodes, blocks, and the suchlike
  801.  
  802. You probably have a corrupted filesystem, probably caused by not shutting
  803. Linux down properly before turning off the power or resetting.  You need
  804. to use a recent shutdown program to do this --- for example, the one
  805. included in the util-linux package, available on sunsite and tsx-11.
  806.  
  807. If you're lucky the program fsck (or e2fsck or xfsck as appropriate if you
  808. don't have the fsutils package) will be able to repair your filesystem; if
  809. you're unlucky the filesystem is trashed and you'll have to reinitialise
  810. it with mkfs (or mke2fs, mkxfs etc.) it and restore from a backup.
  811.  
  812. NB don't try to check a filesystem that's mounted read-write - this
  813. includes the root partition if you don't see
  814.    VFS: mounted root ... read-only
  815. at boot time.
  816.  
  817. - -----------------------------------------------------------------------------
  818.  
  819. Question 4.5.  My swap area isn't working.
  820.  
  821. When you boot (or enable swapping manually) you should see
  822.         Adding Swap: NNNNk swap-space
  823.  
  824. If you don't see any messages at all you are probably missing swapon -av
  825. (the command to enable swapping) in your /etc/rc or /etc/rc.local (the
  826. system startup scripts), or have forgotten to make the right entry in
  827. /etc/fstab:
  828.         /dev/hda2       none       swap       sw
  829. for example.
  830.  
  831. If you see
  832.         Unable to find swap-space signature
  833. you have forgotten to run mkswap.  See the manpage for details; it works
  834. much like mkfs.
  835.  
  836. Check the Installation HOWTO for detailed instructions of how to set up a
  837. swap area.
  838.  
  839. - -----------------------------------------------------------------------------
  840.  
  841. Question 4.6.  How do I remove LILO so my system boots DOS again ?
  842.  
  843. Using DOS (MS-DOS 5.0 or later, or OS/2), type FDISK /MBR.  This will
  844. restore a standard MS-DOS Master Boot Record.  If you have DR-DOS 6.0, go
  845. into FDISK in the normal way and then select the `Re-write Master Boot
  846. Record' option.
  847.  
  848. If you don't have DOS 5 or DR-DOS you need to have the boot sector that
  849. LILO saved when you first installed it.  You did keep that file, didn't
  850. you ?  It's probably called boot.0301 or some such.  Type
  851.    dd if=boot.0301 of=/dev/hda bs=445 count=1
  852. (or sda if you're using a SCSI disk).  This may also wipe out your
  853. partition table, so beware !  If you're desperate, you could use
  854.    dd if=/dev/zero of=/dev/hda bs=512 count=1
  855. which will erase your partition table and boot sector completely: you can
  856. then reformat the disk using your favourite software; however this will
  857. render the contents of your disk inaccessible --- you'll lose it all
  858. unless you're an expert.
  859.  
  860. Note that the DOS MBR boots whichever (single!) partition is flagged as
  861. `active'; you may need to use fdisk to set and clear the active flags on
  862. partitions appropriately.
  863.  
  864. - -----------------------------------------------------------------------------
  865.  
  866. Question 4.7.  Why can't I use fdformat except as root ?
  867.  
  868. The system call to format a floppy may only be done as root, regardless of
  869. the permissions of /dev/fd0*.  If you want any user to be able to format a
  870. floppy try getting the fdformat2 program; this works around the problems
  871. by being setuid to root.
  872.  
  873. - -----------------------------------------------------------------------------
  874.  
  875. Question 4.8.  Is there something like Stacker or Doublespace for Linux ?
  876.  
  877. Currently none of the Linux filesystems can do compression in the
  878. filesystem.
  879.  
  880. There is a transparently uncompressing C library, which is a drop-in
  881. replacement for the standard C library.  It allows programs to read
  882. compressed (ie, GNU zipped) files as if they were not compressed.  You
  883. install it, and then you can compress files using gzip and have programs
  884. still find them.  Look on sunsite.unc.edu in /pub/Linux/libs.  The author
  885. is Alain Knaff <Alain.Knaff@imag.fr>.
  886.  
  887. There is a compressing block device driver that can provide
  888. filesystem-independant on the fly disk compression in the kernel.  It is
  889. called `DouBle'.  There is a source only distribution on sunsite.unc.edu
  890. in /pub/Linux/utils/compress; the auther is Jean-Marc Verbavatz
  891. <jmv@receptor.mgh.harvard.edu>.  Note that since this compresses inodes
  892. (administrative information) and directories as well as file contents any
  893. corruption is quite likely to be serious.
  894.  
  895. There is also a package available called tcx (Transparently Compressed
  896. Executables) which allows you to keep infrequently used executables
  897. compressed and only uncompress them temporarily while you use them.
  898. You'll find it on the Linux FTP sites [Q2.5 `Where can I get Linux
  899. material by FTP ?']; it was also announced in comp.os.linux.announce.
  900. Note - this is not the same as gzexe, which is an inferior implementation
  901. of the same concept.
  902.  
  903. - -----------------------------------------------------------------------------
  904.  
  905. Question 4.9.  My ext2fs partitions are checked each time I reboot.
  906.  
  907. See Q9.11 `EXT2-fs: warning: mounting unchecked filesystem'.
  908.  
  909. - -----------------------------------------------------------------------------
  910.  
  911. Question 4.10.  My root filesystem is read-only !
  912.  
  913. Remount it.  If /etc/fstab is correct you can simply mount -n -o remount
  914. /. If /etc/fstab is wrong you must give the device name and posibly the
  915. type too: e.g. mount -n -o remount -t ext2 /dev/hda2 /.  To understand why
  916. you got into this state see Q9.11 `EXT2-fs: warning: mounting unchecked
  917. filesystem'.
  918.  
  919. - -----------------------------------------------------------------------------
  920.  
  921. Question 4.11.  I have a huge /proc/kcore !  Can I delete it ?
  922.  
  923. None of the files in /proc are really there - they're all "pretend" files
  924. made up by the kernel, to give you information about the system, and don't
  925. take up any hard disk space.
  926.  
  927. /proc/kcore is like an "alias" for the memory in your computer; its size
  928. is the same as the amount of RAM you have, and if you ask to read it as a
  929. file the kernel does memory reads.
  930.  
  931. - -----------------------------------------------------------------------------
  932.  
  933. Question 4.12.  My AHA1542C doesn't work with Linux.
  934.  
  935. The option to allow disks with more than 1024 cylinders is only required
  936. as a workaround for a DOS misfeature and should be turned *off* under
  937. Linux.  For older Linux kernels you need to turn off most of the "advanced
  938. BIOS" options - all but the one about scanning the bus for bootable
  939. devices.
  940.  
  941. ===============================================================================
  942.  
  943. Section 5.  Porting, compiling and obtaining programs
  944.  
  945.  Q5.1        What is ld.so and where do I get it ?
  946.  Q5.2        Has anyone ported / compiled / written XXX for Linux ?
  947.  Q5.3        How do I port XXX to Linux ?
  948.  Q5.4        Can I use code or a compiler compiled for a 486 on my 386 ?
  949.  Q5.5        What does gcc -O6 do ?
  950.  Q5.6        Where are <linux/*.h> and <asm/*.h> ?
  951.  Q5.7        I get errors when I try to compile the kernel.
  952.  Q5.8        How do I make a shared library ?
  953.  Q5.9        How do I make my executables smaller ?
  954.  Q5.10       Does Linux support threads or lightweight processes ?
  955.  
  956. - -----------------------------------------------------------------------------
  957.  
  958. Question 5.1.  What is ld.so and where do I get it ?
  959.  
  960. ld.so is the new dynamic library loader.  Each binary using shared
  961. libraries used to have about 3K of start-up code to find and load the
  962. shared libraries.  Now that code has been put in a special shared library,
  963. /lib/ld.so, where all binaries can look for it, so that it wastes less
  964. disk space, and can be upgraded more easily.
  965.  
  966. It can be obtained from tsx-11.mit.edu in /pub/linux/packages/GCC and
  967. mirror sites thereof.  The latest version at the time of writing is
  968. ld.so.1.4.4.tar.gz.
  969.  
  970. - -----------------------------------------------------------------------------
  971.  
  972. Question 5.2.  Has anyone ported / compiled / written XXX for Linux ?
  973.  
  974. First, look in the Linux Software Map (LSM) --- it's in the docs directory
  975. on sunsite.unc.edu, and on the other FTP sties.
  976.  
  977. Check the FTP sites (see Q2.5 `Where can I get Linux material by FTP ?')
  978. first --- search the find-ls or INDEX files for appropriate strings.
  979. Check the Linux Projects Map (LPM), on ftp.ix.de in
  980. /pub/Linux/docs/Projects-Map.gz.
  981.  
  982. If you don't find anything, you could either download the sources to the
  983. program yourself and compile them -- see Q5.3 `How do I port XXX to Linux
  984. ?' -- or, if it's a large package which may require some porting, post a
  985. message to the newsgroup.
  986.  
  987. If you compile a largeish program please upload it to one or more of the
  988. FTP sites and post a message to comp.os.linux.announce (submit your
  989. posting to <linux-announce@tc.cornell.edu>).
  990.  
  991. If you're looking for an application-type program the chances are someone
  992. has already written a free verson.  Try reading the FAQ in
  993. comp.sources.wanted for instructions on how to find sources.
  994.  
  995. You should also check the Projects-FAQ, available in
  996. /pub/Linux/docs/faqs/Projects-FAQ on sunsite.unc.edu.
  997.  
  998. - -----------------------------------------------------------------------------
  999.  
  1000. Question 5.3.  How do I port XXX to Linux ?
  1001.  
  1002. In general Unix programs need very little porting.  Simply follow the
  1003. installation instructions.  If you don't know and don't know how to find
  1004. out the answers to some of the questions asked during or by the
  1005. installation procedure you can guess, but this tends to produce buggy
  1006. programs.  In this case you're probably better off asking someone else to
  1007. do the port.
  1008.  
  1009. If you have a BSD-ish program you should try using -I/usr/include/bsd and
  1010. - -lbsd on the appropriate parts of the compilation lines.
  1011.  
  1012. - -----------------------------------------------------------------------------
  1013.  
  1014. Question 5.4.  Can I use code or a compiler compiled for a 486 on my 386 ?
  1015.  
  1016. Yes.
  1017.  
  1018. The -m486 option to GCC, which is used to compile binaries for 486
  1019. machines, merely changes certain optimisations.  This makes for slightly
  1020. larger binaries which run somewhat faster on a 486.  They still work fine
  1021. on a 386, though, with little performance hit.
  1022.  
  1023. GCC can be configured for a 386 or 486; the only difference is that
  1024. configuring it for a 386 makes -m386 the default and configuring for a 486
  1025. makes -m486 the default; in either case these can be overriden on a
  1026. per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  1027.  
  1028. GCC does not currently know how to do optimisation well for the 586,
  1029. because Intel won't release the necessary information except under
  1030. nondisclosure.  Don't buy a Pentium or wait for people to reverse-engineer
  1031. the required optimisations.
  1032.  
  1033. - -----------------------------------------------------------------------------
  1034.  
  1035. Question 5.5.  What does gcc -O6 do ?
  1036.  
  1037. Currently the same as -O2; any number greater than 2 currently works just
  1038. like 2.  The Makefiles of newer kernels use -O2, and so should you.
  1039.  
  1040. GCC 2.6 adds optimisation level -O3.  However, GCC 2.6.0 and several of
  1041. the following versions are known to have some problems with Linux, though
  1042. these will hopefully be solved soon.  In any case you should not use -O3
  1043. on a program until you're sure it doesn't create any problems.
  1044.  
  1045. - -----------------------------------------------------------------------------
  1046.  
  1047. Question 5.6.  Where are <linux/*.h> and <asm/*.h> ?
  1048.  
  1049. These are in the directories /usr/include/linux and /usr/include/asm.
  1050.  
  1051. However they should be symbolic links to your kernel sources in
  1052. /usr/src/linux and not real directories.
  1053.  
  1054. If you don't have the kernel sources download them --- see Q7.6 `How do I
  1055. upgrade/recompile my kernel ?'.
  1056.  
  1057. Then use rm to remove any garbage, and ln to create the links:
  1058.    rm -rf /usr/include/linux /usr/include/asm
  1059.    ln -sf /usr/src/linux/include/linux /usr/include/linux
  1060.    ln -sf /usr/src/linux/include/asm /usr/include/asm
  1061.  
  1062. - -----------------------------------------------------------------------------
  1063.  
  1064. Question 5.7.  I get errors when I try to compile the kernel.
  1065.  
  1066. Make sure that /usr/include/linux and /usr/include/asm aren't actual
  1067. directories but instead symbolic links to /usr/src/linux/include/linux and
  1068. /usr/src/linux/include/asm respectively.
  1069.  
  1070. If necessary, delete them using rm and then use ln -s to make the links as
  1071. in Q5.6 `Where are <linux/*.h> and <asm/*.h> ?'.
  1072.  
  1073. Remember that when you apply a patch to the kernel you must use the -p0 or
  1074. - -p1 option: otherwise the patch may be misapplied.  See the manpage for
  1075. patch for details.
  1076.  
  1077. If you're using a kernel more recent than 1.1.44 you should find that
  1078. there are new directories /usr/src/linux/include/asm-i386.  The directory
  1079. asm there should be removed, as should the directory asm.  The symlinks
  1080. Makefile target will make these be symbolic links to asm-i36 and
  1081. arch/i386/boot respectively.  The easiest way to make sure all this gets
  1082. done is not to try to patch 1.1.44 to make 1.1.45, but to download
  1083. linux-1.1.45.tar.gz instead.
  1084.  
  1085. ld: unrecognised option `-qmagic' means you should get a newer linker,
  1086. from tsx-11.mit.edu in /pub/linux/packages/GCC.
  1087.  
  1088. - -----------------------------------------------------------------------------
  1089.  
  1090. Question 5.8.  How do I make a shared library ?
  1091.  
  1092. Get tools-n.nn.tar.gz from tsx-11.mit.edu, in /pub/linux/packages/GCC/src.
  1093. It comes with documentation that will tell you what to do.
  1094.  
  1095. - -----------------------------------------------------------------------------
  1096.  
  1097. Question 5.9.  How do I make my executables smaller ?
  1098.  
  1099. The most common cause of large executables is the -g compiler flag.  This
  1100. produces (as well as debugging information in the output file) a program
  1101. which is statically linked, i.e. one which includes a copy of the C
  1102. library instead of using a dynamically linked copy.
  1103.  
  1104. Other things that are worth investigating are -O and -O2 which enable
  1105. optimisation (check the GCC documentation) and -s which strips the symbol
  1106. information from the resulting binary (making debugging totally
  1107. impossible).
  1108.  
  1109. You may wish to use -N on very small executables (less than 8K with the
  1110. - -N), but you shouldn't do this unless you understand its performance
  1111. implications, and definitely never with daemons.
  1112.  
  1113. Using QMAGIC binaries also can reduce the size of binaries, especially
  1114. small ones.  Don't worry about this unless you know what QMAGIC is; Linux
  1115. is moving to QMAGIC as a default.
  1116.  
  1117. - -----------------------------------------------------------------------------
  1118.  
  1119. Question 5.10.  Does Linux support threads or lightweight processes ?
  1120.  
  1121. As well as the Unix multiprocessing model involving heavyweight processes,
  1122. which is of course part of the standard Linux kernel, there are several
  1123. implementations of lightweight processes or threads, most of which are
  1124. generic packages for any Unix:
  1125.  
  1126. * In sipb.mit.edu:/pub/pthread or ftp.ibp.fr:/pub/unix/threads/pthreads.
  1127.   Documentation isn't in the package, but is available on the World Wide
  1128.   Web at http://www.mit.edu:8001/people/proven/home_page.html.
  1129. * In ftp.cs.washington.edu:/pub/qt-001.tar.Z is QuickThreads.  More
  1130.   information can be found in the technical report, available on the same
  1131.   site as /tr/1993/05/UW-CSE-93-05-06.PS.Z.
  1132. * In gummo.doc.ic.ac.uk:/rex is lwp, a very minimal implementation.
  1133. * In ftp.cs.fsu.edu:/pub/PART, an Ada implementation.  This is useful
  1134.   mainly because it has a lot of PostScript papers that you'll find useful
  1135.   in learning more about threads.  This is not directly useable under
  1136.   Linux.
  1137.  
  1138. Please contact the authors of the packages in question for details.
  1139.  
  1140. ===============================================================================
  1141.  
  1142. The remainder of the FAQ is in the next part ...
  1143.  
  1144.  
  1145. -----BEGIN PGP SIGNATURE-----
  1146. Version: 2.6
  1147.  
  1148. iQCVAgUBLviWxcMWjroj9a3bAQEQ9AP8DDbvqkxCnl1NtHiVx7X28ik7RxrHyqyn
  1149. QUh8LOD0OMFFYYg467renkRVMH5hYPFOCaZoFgS9gPIkmhp26ONk1BMYHatplItt
  1150. Hk+9MkoE4qcDYBi5vKVwgp+5mnbSvC6AYu+tcGAg2e3DBXxp2rcIEmr+m+MU5njc
  1151. OEQF9ClkHBE=
  1152. =lDrR
  1153. -----END PGP SIGNATURE-----
  1154.  
  1155.  
  1156. -----BEGIN PGP SIGNED MESSAGE-----
  1157.  
  1158. (Continued from part 1, where you'll find the introduction and
  1159.  table of contents.)
  1160. ===============================================================================
  1161.  
  1162. Section 6.  Solutions to common miscellaneous problems
  1163.  
  1164.  Q6.1        Setuid scripts don't seem to work.
  1165.  Q6.2        Free memory as reported by free keeps shrinking.
  1166.  Q6.3        When I add more memory it slows to a crawl.
  1167.  Q6.4        Some programs (e.g. xdm) won't let me log in.
  1168.  Q6.5        Some programs let me log in with no password.
  1169.  Q6.6        My machine runs very slowly when I run GCC / X / ...
  1170.  Q6.7        I can only log in as root.
  1171.  Q6.8        My screen is all full of weird characters instead of letters.
  1172.  Q6.9        I have screwed up my system and can't log in to fix it.
  1173.  Q6.10       Emacs just dumps core.
  1174.  Q6.11       I've discovered a huge security hole in rm !
  1175.  Q6.12       lpr and/or lpd aren't working.
  1176.  
  1177. - -----------------------------------------------------------------------------
  1178.  
  1179. Question 6.1.  Setuid scripts don't seem to work.
  1180.  
  1181. That's right.  This feature has been deliberately disabled in the Linux
  1182. kernel because setuid scripts are almost always a security hole.  If you
  1183. want to know why read the FAQ for comp.unix.questions.
  1184.  
  1185. - -----------------------------------------------------------------------------
  1186.  
  1187. Question 6.2.  Free memory as reported by free keeps shrinking.
  1188.  
  1189. The `free' figure printed by free doesn't include memory used as a disk
  1190. buffer cache - shown in the `buffers' column.  If you want to know how
  1191. much memory is really free add the `buffers' amount to `free'.
  1192.  
  1193. The disk buffer cache tends to grow soon after starting Linux up, as you
  1194. load more programs and use more files and the contents get cached.  It
  1195. will stabilise after a while.
  1196.  
  1197. - -----------------------------------------------------------------------------
  1198.  
  1199. Question 6.3.  When I add more memory it slows to a crawl.
  1200.  
  1201. This is quite a common symptom of a failure to cache the additional
  1202. memory.  The exact problem depends on your motherboard.
  1203.  
  1204. Sometimes you have to enable caching of certain regions in your BIOS
  1205. setup.  Look in the CMOS setup and see if there is an option to cache the
  1206. new memory area which is currently switched off.  This is apparently most
  1207. common on a 486.
  1208.  
  1209. Sometimes the RAMs have to be in certain sockets to be cached.
  1210.  
  1211. Sometimes you have to set jumpers to enable the caching.
  1212.  
  1213. Some motherboards don't cache all the RAM if you have more RAM per amount
  1214. of cache than they expect.  Usually a full 256K cache will solve this
  1215. problem.
  1216.  
  1217. If in doubt, check your motherboard manual.  If you still can't fix it
  1218. because the documentation is inadequate you might like to post a message
  1219. giving *all* the details - make, model number, date code, etc. so that
  1220. other Linux users can avoid it.
  1221.  
  1222. - -----------------------------------------------------------------------------
  1223.  
  1224. Question 6.4.  Some programs (e.g. xdm) won't let me log in.
  1225.  
  1226. You are probably using non-shadow-password programs but are using shadow
  1227. passwords.
  1228.  
  1229. If so, you have to get or compile a shadow password version of the
  1230. program(s) in question.  The shadow password suite can be found in
  1231. (amongst other places):
  1232.    tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow-*
  1233. This is the source code; you will probably find the binaries in
  1234. ..../linux/binaries/usr.bin.
  1235.  
  1236. - -----------------------------------------------------------------------------
  1237.  
  1238. Question 6.5.  Some programs let me log in with no password.
  1239.  
  1240. You probably have the same problem as in Q6.4 `Some programs (e.g. xdm)
  1241. won't let me log in.', with an added wrinkle:
  1242.  
  1243. If you are using shadow passords you should put an asterisk in the
  1244. password field of /etc/passwd for each account, so that if a program
  1245. doesn't know about the shadow passwords it won't think it's a passwordless
  1246. account and let anyone in.
  1247.  
  1248. - -----------------------------------------------------------------------------
  1249.  
  1250. Question 6.6.  My machine runs very slowly when I run GCC / X / ...
  1251.  
  1252. You may not have any swap enabled.  You need to enable swapping to allow
  1253. Linux to page out bits of data programs aren't using at the moment to disk
  1254. to make more room for other programs and data.  If you don't Linux has to
  1255. keep data in memory and throw away in-memory copies of programs (which are
  1256. paged straight from the filesystem) and so less and less program is in
  1257. memory and everything runs very slowly.
  1258.  
  1259. See the Installation HOWTO and the Installation and Getting Started Guide
  1260. [Q2.1 `Where can I get the HOWTOs and other documentation ?'] for details
  1261. of how to set up a swap partition or swapfile; see also Q4.5 `My swap area
  1262. isn't working.'.
  1263.  
  1264. Alternatively you may have too little real memory.  If you have less RAM
  1265. than all the programs you're running at once use Linux will use your hard
  1266. disk instead and thrash horribly.  The solution in this case is to not run
  1267. so many things at once or to buy more memory.  You can also reclaim some
  1268. memory by compiling and using a kernel with less options configured.  See
  1269. Q7.6 `How do I upgrade/recompile my kernel ?'.
  1270.  
  1271. You can tell how much memory and/or swap you're using by using the free
  1272. command, or by typing
  1273.     cat /proc/meminfo
  1274.  
  1275. If your kernel is configured with a ramdisk this is probably wasted space
  1276. and will cause things to go slowly.  Use LILO or rdev to tell the kernel
  1277. not to allocate a ramdisk (see the LILO documentation or type man rdev).
  1278.  
  1279. - -----------------------------------------------------------------------------
  1280.  
  1281. Question 6.7.  I can only log in as root.
  1282.  
  1283. You probably have some permission problems, or you have a file
  1284. /etc/nologin.
  1285.  
  1286. If the latter put rm -f /etc/nologin in your /etc/rc or /etc/rc.local.
  1287.  
  1288. Otherwise check the permissions on your shell, and any filenames which
  1289. appear in error messages, and also the directories containing these files
  1290. all the way back up the tree to the root directory.
  1291.  
  1292. - -----------------------------------------------------------------------------
  1293.  
  1294. Question 6.8.  My screen is all full of weird characters instead of letters.
  1295.  
  1296. You probably sent some binary data to your screen by mistake.  Type echo
  1297. ^V^[c (that's e c h o space control-V escape c return) to fix it.  Many
  1298. Linux distributions have a command reset that does this.
  1299.  
  1300. - -----------------------------------------------------------------------------
  1301.  
  1302. Question 6.9.  I have screwed up my system and can't log in to fix it.
  1303.  
  1304. Reboot from an emergency floppy or floppy pair, for example the Slackware
  1305. boot- and root-disk pair (in the install subdirectory of the Slackware
  1306. mirrors) or the MCC installation boot floppy.  There are also two diy
  1307. rescue disk creation packages on sunsite.unc.edu in
  1308. /pub/Linux/system/Recovery.  These are better as they'll have your own
  1309. kernel on them, so that you don't run the risk of missing devices,
  1310. filesystems, etc.
  1311.  
  1312. Get to a shell prompt and mount your hard disk with something like
  1313.    mount -t ext2 /dev/hda1 /mnt
  1314.  
  1315. Then your filesystem is available under the directory /mnt and you can fix
  1316. the problem.  Remember to unmount your hard disk before rebooting (cd back
  1317. down to / first or it will say it's busy).
  1318.  
  1319. - -----------------------------------------------------------------------------
  1320.  
  1321. Question 6.10.  Emacs just dumps core.
  1322.  
  1323. You probably have the X version of Emacs that comes with SLS.  It doesn't
  1324. work without the X libraries.  The solution is to install X Windows or get
  1325. a newer Emacs binary without any X Windows support.
  1326.  
  1327. - -----------------------------------------------------------------------------
  1328.  
  1329. Question 6.11.  I've discovered a huge security hole in rm !
  1330.  
  1331. No you haven't.  You are obviously new to Unix and need to read a good
  1332. book on it to find out how things work.  Clue: ability to delete files
  1333. under Unix depends on permission to write the directory they are in.
  1334.  
  1335. - -----------------------------------------------------------------------------
  1336.  
  1337. Question 6.12.  lpr and/or lpd aren't working.
  1338.  
  1339. Check the Printing HOWTO [Q2.1 `Where can I get the HOWTOs and other
  1340. documentation ?'].
  1341.  
  1342. ===============================================================================
  1343.  
  1344. Section 7.  How do I do this or find out that ... ?
  1345.  
  1346.  Q7.1        How can I get scrollback in text mode ?
  1347.  Q7.2        How do I switch virtual consoles ?  How do I enable them ?
  1348.  Q7.3        How do I set the timezone ?
  1349.  Q7.4        What version of Linux and what machine name am I using ?
  1350.  Q7.5        How can I enable or disable core dumps ?
  1351.  Q7.6        How do I upgrade/recompile my kernel ?
  1352.  Q7.7        Can I have more than 3 serial ports by sharing interrupts ?
  1353.  Q7.8        How do I make a bootable floppy ?
  1354.  Q7.9        How do I remap my keyboard to UK, French, etc. ?
  1355.  Q7.10       How do I get NUM LOCK to default to on ?
  1356.  Q7.11       How can I have more than 128Mb of swap ?
  1357.  
  1358. - -----------------------------------------------------------------------------
  1359.  
  1360. Question 7.1.  How can I get scrollback in text mode ?
  1361.  
  1362. With the default US keymap you can use Shift with the PageUp and PageDown
  1363. keys (NB these must be the grey ones, not the ones on the numeric keypad
  1364. !).  With other keymaps check the maps in /usr/lib/keytables; you can
  1365. remap the scroll up and down keys to be whatever you like --- for example,
  1366. in order to remap them to keys that exist on an 84-key AT keyboard.
  1367.  
  1368. You can't increase the amount of scrollback, because of the way it is
  1369. implemented using the video memory to store the scrollback text, though
  1370. you may be able to get more scrollback in each virtual console by reducing
  1371. the total number of VC's --- see <linux/tty.h>.
  1372.  
  1373. - -----------------------------------------------------------------------------
  1374.  
  1375. Question 7.2.  How do I switch virtual consoles ?  How do I enable them ?
  1376.  
  1377. In text mode, press (Left) Alt-F1 to Alt-F12 to select the consoles tty1
  1378. to tty12.  To switch out of X windows you must press Ctrl-Alt-F1 etc;
  1379. Alt-F5 or whatever will switch back.
  1380.  
  1381. Your kernel probably doesn't have all 12 compiled in; the default is 8.
  1382. This is controlled by NR_CONSOLES in linux/include/linux/tty.h.
  1383.  
  1384. If you want to use a VC for ordinary login you need to list it in
  1385. /etc/inittab, which controls which terminals and virtual consoles have
  1386. login prompts.  NB: X needs at least one free VC in order to start.
  1387.  
  1388. - -----------------------------------------------------------------------------
  1389.  
  1390. Question 7.3.  How do I set the timezone ?
  1391.  
  1392. Change directory to /usr/lib/zoneinfo; get the timezone package if you
  1393. don't have this directory.  The source can be found on sunsite.unc.edu in
  1394. /pub/Linux/system/Admin/timesrc-1.2.tar.gz.
  1395.  
  1396. Then make a symbolic link named localtime pointing to one of the files in
  1397. this directory (or a subdirectory), and one called posixrules pointing to
  1398. localtime.  For example:
  1399.    ln -sf US/Mountain localtime
  1400.    ln -sf localtime posixrules
  1401. This change will take effect immediately - try date.
  1402.  
  1403. Don't try to use the TZ variable - leave it unset.
  1404.  
  1405. You should also make sure that your Linux kernel clock is set to the
  1406. correct GMT time - type date -u and check that the correct universal time
  1407. is displayed.
  1408.  
  1409. - -----------------------------------------------------------------------------
  1410.  
  1411. Question 7.4.  What version of Linux and what machine name am I using ?
  1412.  
  1413. Type:
  1414.    uname -a
  1415.  
  1416. - -----------------------------------------------------------------------------
  1417.  
  1418. Question 7.5.  How can I enable or disable core dumps ?
  1419.  
  1420. Since 0.99pl14 Linux has had corefiles turned off by default for all
  1421. processes.
  1422.  
  1423. You can turn them on or off by using the ulimit command in bash, or the
  1424. limit command in tcsh.  See the manpage for the shell for more details.
  1425.  
  1426. That command affects all programs run from that shell (directly or
  1427. indirectly), not the whole system.
  1428.  
  1429. If you wish to enable or disable coredumping for all processes by default
  1430. you can change the default setting in <linux/sched.h> - see the definition
  1431. of INIT_TASK.
  1432.  
  1433. - -----------------------------------------------------------------------------
  1434.  
  1435. Question 7.6.  How do I upgrade/recompile my kernel ?
  1436.  
  1437. See the README which comes with the kernel release on ftp.funet.fi, in
  1438. /pub/OS/Linux/PEOPLE/Linus and mirrors thereof.  Try to get it from a
  1439. closer site if possible; ftp.funet.fi is a very busy site and therefore
  1440. slow -- see Q2.5 `Where can I get Linux material by FTP ?'.  You may
  1441. already have a version of the kernel source code installed on your system,
  1442. but if you got it as part of a standard distribution it is likely to be
  1443. somewhat out of date (this is not a problem if you only want a
  1444. custom-configured kernel, but it probably is if you need to upgrade.)
  1445.  
  1446. Remember that to make the new kernel boot you must run LILO after copying
  1447. the kernel into your root partition -- the Makefile in recent kernels has
  1448. a special zlilo target for this; try make zlilo.
  1449.  
  1450. Russel Nelson posts summaries of what changes in recent kernel patches to
  1451. comp.os.linux.development, and these are archived on ftp.emlist.com in
  1452. /pub/kchanges.
  1453.  
  1454. - -----------------------------------------------------------------------------
  1455.  
  1456. Question 7.7.  Can I have more than 3 serial ports by sharing interrupts ?
  1457.  
  1458. Not without some trickery.  This is a limitation of the ISA bus
  1459. architecture.
  1460.  
  1461. See the Serial HOWTO for information about how to work around this
  1462. problem.
  1463.  
  1464. - -----------------------------------------------------------------------------
  1465.  
  1466. Question 7.8.  How do I make a bootable floppy ?
  1467.  
  1468. Make a filesystem on it with bin, etc and lib directories -- everything
  1469. you need.  Install a kernel on it and arrange to have LILO boot it from
  1470. the floppy (see the LILO documentation, in lilo.u.*.ps).
  1471.  
  1472. If you build the kernel (or tell LILO to tell the kernel) to have a
  1473. ramdisk the same size as the floppy the ramdisk will be loaded at
  1474. boot-time and mounted as root in place of the floppy.
  1475.  
  1476. - -----------------------------------------------------------------------------
  1477.  
  1478. Question 7.9.  How do I remap my keyboard to UK, French, etc. ?
  1479.  
  1480. For recent kernels, get kbd*.tar.gz from the same place as you got the
  1481. kernel source.  Make sure you get the appropriate version; you have to use
  1482. the right keyboard-mapping package to go with your kernel version.  The
  1483. latest at the time of writing is kbd-0.85.tar.gz, which works with kernel
  1484. versions from 1.0.
  1485.  
  1486. For older kernels you have to edit the top-level kernel Makefile, in
  1487. /usr/src/linux.
  1488.  
  1489. You may find more helpful information in the Keystroke FAQ, on
  1490. ftp.funet.fi in /pub/OS/Linux/doc/kbd.FAQ.
  1491.  
  1492. - -----------------------------------------------------------------------------
  1493.  
  1494. Question 7.10.  How do I get NUM LOCK to default to on ?
  1495.  
  1496. Use the setleds program, for example (in /etc/rc.local):
  1497.    for t in 1 2 3 4 5 6 7 8
  1498.    do
  1499.         setleds +num < /dev/tty$t > /dev/null
  1500.    done
  1501.  
  1502. setleds is part of the kbd-0.8x package (see Q7.9 `How do I remap my
  1503. keyboard to UK, French, etc. ?').
  1504.  
  1505. Alternatively, patch your kernel.  You need to arrange for KBD_DEFLEDS to
  1506. be defined to (1 << VC_NUMLOCK) when compiling drivers/char/keyboard.c.
  1507.  
  1508. - -----------------------------------------------------------------------------
  1509.  
  1510. Question 7.11.  How can I have more than 128Mb of swap ?
  1511.  
  1512. Use several swap partitions or swapfiles - Linux supports up to 16 swap
  1513. areas, each of up to 128Mb.
  1514.  
  1515. Very old kernels only supported swap area sizes up to 16Mb.
  1516.  
  1517. ===============================================================================
  1518.  
  1519. Section 8.  Miscellaneous information and questions answered
  1520.  
  1521.  Q8.1        What is a .gz file ? And a .tgz ? And ... ?
  1522.  Q8.2        What does VFS stand for ?
  1523.  Q8.3        What is a BogoMip ?
  1524.  Q8.4        What is the Linux Journal and where can I get it ?
  1525.  Q8.5        How many people use Linux ?
  1526.  Q8.6        How should I pronounce Linux ?
  1527.  
  1528. - -----------------------------------------------------------------------------
  1529.  
  1530. Question 8.1.  What is a .gz file ? And a .tgz ? And ... ?
  1531.  
  1532. ..gz (and .z) files have been compressed using GNU gzip.  You need to use
  1533. gunzip (which is as a symlink to the gzip command which comes with most
  1534. Linux installations) to unpack the file.
  1535.  
  1536. ..taz and .tz are tarfiles (made with Unix tar) compressed using standard
  1537. Unix compress.
  1538.  
  1539. ..tgz (or .tpz) is a tarfile compressed with gzip.
  1540.  
  1541. ..lsm is a Linux Software Map entry, in the form of a short text file.
  1542. Details about the LSM and the LSM itself are available in the docs
  1543. subdirectory on sunsite.unc.edu.
  1544.  
  1545. The file command can often tell you what a file is.
  1546.  
  1547. If you find that gzip complains when you try to uncompress a gzipped file
  1548. you probably downloaded it in ASCII mode by mistake.  You must download
  1549. most things in binary mode - remember to type binary as a command in FTP
  1550. before using get to get the file.
  1551.  
  1552. - -----------------------------------------------------------------------------
  1553.  
  1554. Question 8.2.  What does VFS stand for ?
  1555.  
  1556. Virtual File System.  It's the abstraction layer between the user and real
  1557. filesystems like ext2, minix and msdos.  Amongst other things, its job is
  1558. to flush the read buffer when it detects a disk change on the floppy disk
  1559. drive:
  1560.    VFS: Disk change detected on device 2/0
  1561.  
  1562. - -----------------------------------------------------------------------------
  1563.  
  1564. Question 8.3.  What is a BogoMip ?
  1565.  
  1566. `BogoMips' is a contraction of `Bogus MIPS'.  MIPS stands for (depending
  1567. who you listen to) Millions of Instructions per Second, or Meaningless
  1568. Indication of Processor Speed.
  1569.  
  1570. The number printed at boot-time is the result of a kernel timing
  1571. calibration, used for very short delay loops by some device drivers.
  1572.  
  1573. As a very rough guide the BogoMips will be approximately:
  1574.      386SX              clock * 0.14
  1575.      386DX              clock * 0.18
  1576.      486Cyrix/IBM       clock * 0.33
  1577.      486SX/DX/DX2       clock * 0.50
  1578.      586                clock * 0.39
  1579.  
  1580. If the number you're seeing is wildly lower than this you may have the
  1581. Turbo button or CPU speed set incorrectly, or have some kind of caching
  1582. problem [as described in Q6.3 `When I add more memory it slows to a
  1583. crawl.'.]
  1584.  
  1585. For values people have seen with other, rarer, chips, see the BogoMips
  1586. Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips.
  1587.  
  1588. - -----------------------------------------------------------------------------
  1589.  
  1590. Question 8.4.  What is the Linux Journal and where can I get it ?
  1591.  
  1592. Linux Journal is a monthly magazine (printed on paper) that is available
  1593. on newsstands and via subscription worldwide. Email <linux@ssc.com> for
  1594. details.
  1595.  
  1596. - -----------------------------------------------------------------------------
  1597.  
  1598. Question 8.5.  How many people use Linux ?
  1599.  
  1600. Linux is freely available, and no one is required to register their copies
  1601. with any central authority, so it is difficult to know.  Several
  1602. businesses are now surviving solely on selling and supporting Linux, and
  1603. very few Linux users use those businesses, relatively speaking.  The Linux
  1604. newsgroups are some of the most heavily read on the Net, so the number is
  1605. likely in the hundreds of thousands, but firm numbers are hard to come by.
  1606.  
  1607. However, one brave soul, Harald T. Alvestrand
  1608. <Harald.T.Alvestrand@uninett.no>, has decided to try, and asks that if you
  1609. use Linux, you send a message to <linux-counter@uninett.no> with one of
  1610. the following subjects: `I use Linux at home', `I use Linux at work', or
  1611. `I use Linux at home and at work'.  He will also accept `third-party'
  1612. registrations - ask him for details.
  1613.  
  1614. He posts his counts to comp.os.linux.misc each month; alternatively look
  1615. on aun.uninett.no in /pub/misc/linux-counter.
  1616.  
  1617. - -----------------------------------------------------------------------------
  1618.  
  1619. Question 8.6.  How should I pronounce Linux ?
  1620.  
  1621. This is a matter of religious debate, of course !
  1622.  
  1623. If you want to hear the Linus himself say how he pronounces it download
  1624. english.au or swedish.au from ftp.funet.fi (in
  1625. /pub/OS/Linux/PEOPLE/Linus/SillySounds).  If you have a soundcard or the
  1626. PC-speaker audio driver you can hear them by typing
  1627.    cat english.au >/dev/audio
  1628. The difference isn't in the pronunciation of Linux but in the language
  1629. Linus uses to say hello.  The English version was parodied very well by
  1630. Jin Choi as "Hi, my name is Leenoos Torvahlds and I pronounce Leenooks as
  1631. Leenooks."
  1632.  
  1633. For the benefit of those of you who don't have the equipment or
  1634. inclination: Linus pronounces Linux approximately as Leenus, where the ee
  1635. is as in feet but rather shorter and the u is like a much shorter version
  1636. of the French eu sound in peur (pronouncing it as the u in put is probably
  1637. passable).
  1638.  
  1639. When speaking English I pronounce it Lie-nucks (u as in bucket) --- this
  1640. is an anglicised pronunciation based on the analogy with Linus' name,
  1641. which in English is usually pronounced Lie-nus (u as in put).  It is of
  1642. course quite acceptable and common to modify the pronunciation of a proper
  1643. noun when it changes languages.
  1644.  
  1645. I think I can safely say that the pronunciation Linnucks (short i as in
  1646. pit, short u as in bucket) is wrong in English, as it is not the original
  1647. Swedish pronunciation, not a sensible direct anglicisation of it, and not
  1648. based on the anglicised version of Linus' name.
  1649.  
  1650. ===============================================================================
  1651.  
  1652. Section 9.  Frequently encountered error messages
  1653.  
  1654.  Q9.1        During linking I get Undefined symbol _mcount
  1655.  Q9.2        lp1 on fire
  1656.  Q9.3        INET: Warning: old style ioctl(IP_SET_DEV) called!
  1657.  Q9.4        ld: unrecognized option '-m486'
  1658.  Q9.5        GCC says Internal compiler error
  1659.  Q9.6        make says Error 139
  1660.  Q9.7        shell-init: permission denied when I log in.
  1661.  Q9.8        No utmp entry.  You must exec ... when I log in.
  1662.  Q9.9        Warning - bdflush not running
  1663.  Q9.10       Warning: obsolete routing request made.
  1664.  Q9.11       EXT2-fs: warning: mounting unchecked filesystem
  1665.  Q9.12       EXT2-fs warning: maximal count reached
  1666.  Q9.13       EXT2-fs warning: checktime reached
  1667.  Q9.14       df says Cannot read table of mounted filesystems
  1668.  Q9.15       fdisk says Partition X has different physical/logical ...
  1669.  Q9.16       fdisk: Partition 1 does not start on cylinder boundary
  1670.  Q9.17       fdisk says cannot use nnn sectors of this partition
  1671.  Q9.18       fdisk says partition n has an odd number of sectors
  1672.  Q9.19       mtools says cannot initialise drive XYZ
  1673.  
  1674. - -----------------------------------------------------------------------------
  1675.  
  1676. Question 9.1.  During linking I get Undefined symbol _mcount
  1677.  
  1678. This is usually due to a bad interaction between a brokenness in SLS and
  1679. the C library release notes.  Your libc.a has been replaced by the
  1680. profiling library.  You should remove libc.a, libg.a and libc_p.a and once
  1681. again install the new libraries (following the release notes, of course).
  1682.  
  1683. - -----------------------------------------------------------------------------
  1684.  
  1685. Question 9.2.  lp1 on fire
  1686.  
  1687. This is a joke/traditional error message indicating that some sort of
  1688. error is being reported by your printer, but it isn't offline or out of
  1689. paper.  It may be that you have some kind of I/O or IRQ conflict - check
  1690. your cards' settings.  Hopefully it isn't really on fire ...
  1691.  
  1692. - -----------------------------------------------------------------------------
  1693.  
  1694. Question 9.3.  INET: Warning: old style ioctl(IP_SET_DEV) called!
  1695.  
  1696. You are trying to use the old network configuration utilities; the new
  1697. ones can be found on tsx-11.mit.edu in
  1698. /pub/linux/packages/net/net-2/binaries.
  1699.  
  1700. Note that they cannot be used just like the old-style programs; see the
  1701. NET-2 HOWTO for instructions on how to set up networking correctly.
  1702.  
  1703. - -----------------------------------------------------------------------------
  1704.  
  1705. Question 9.4.  ld: unrecognized option '-m486'
  1706.  
  1707. You have an old version of ld.  Install a newer binutils package -- this
  1708. will contain an updated ld.  Look on tsx-11.mit.edu in
  1709. /pub/linux/packages/GCC for binutils.tar.z.
  1710.  
  1711. - -----------------------------------------------------------------------------
  1712.  
  1713. Question 9.5.  GCC says Internal compiler error
  1714.  
  1715. If the fault is repeatable (ie, it always happens at the same place in the
  1716. same file --- even after rebooting and trying again, using a stable
  1717. kernel) you have discovered a bug in GCC.  See the GCC Info documentation
  1718. (type Control-h i in Emacs, and select GCC from the menu) for details on
  1719. how to report this -- make sure you have the latest version though.
  1720.  
  1721. Note that this is probably not a Linux-specific problem; unless you were
  1722. compiling a program many other Linux users also compile you should not
  1723. post your bug report to any of the comp.os.linux groups.
  1724.  
  1725. If the problem is not repeatable you are very probably experiencing memory
  1726. corruption --- see Q9.6 `make says Error 139'.
  1727.  
  1728. - -----------------------------------------------------------------------------
  1729.  
  1730. Question 9.6.  make says Error 139
  1731.  
  1732. Your compiler driver (gcc) dumped core.  You probably have a corrupted,
  1733. buggy or old version of GCC --- get the latest release.  Alternatively you
  1734. may be running out of swap space --- see Q6.6 `My machine runs very slowly
  1735. when I run GCC / X / ...' for more info.
  1736.  
  1737. If this doesn't fix the problem you are probably having problems with
  1738. memory or disk corruption.  Check that the clock rate, wait states and
  1739. refresh timing for your SIMMs are correct.  If so you may have some dodgy
  1740. SIMMs or a faulty motherboard or hard disk or controller.
  1741.  
  1742. Linux, like any Unix, is a very good memory tester --- much better than
  1743. DOS-based memory test programs.
  1744.  
  1745. Reportedly some clone x87 maths coprocessors can cause problems; try
  1746. compiling a kernel with maths emulation [Q7.6 `How do I upgrade/recompile
  1747. my kernel ?']; you may need to use the no387 kernel command line flag on
  1748. the LILO prompt to force the kernel to use it, or it may be able to work
  1749. and still use the 387, with the maths emulation compiled in but mainly
  1750. unused.
  1751.  
  1752. - -----------------------------------------------------------------------------
  1753.  
  1754. Question 9.7.  shell-init: permission denied when I log in.
  1755.  
  1756. Your root directory and all the directories up to your home directory must
  1757. be readable and executable by everybody.  See the manpage for chmod or a
  1758. book on Unix for how to fix the problem.
  1759.  
  1760. - -----------------------------------------------------------------------------
  1761.  
  1762. Question 9.8.  No utmp entry.  You must exec ... when I log in.
  1763.  
  1764. Your /etc/utmp is screwed up.  You should have
  1765.    > /etc/utmp
  1766. in your /etc/rc or /etc/rc.local.  See Q6.9 `I have screwed up my system
  1767. and can't log in to fix it.' for how to be able to do this.
  1768.  
  1769. - -----------------------------------------------------------------------------
  1770.  
  1771. Question 9.9.  Warning - bdflush not running
  1772.  
  1773. The development kernel series now uses a better strategy for writing
  1774. cached disk blocks.  In addition to the kernel changes, this involves
  1775. replacing the old update program which used to write everything every 30
  1776. seconds with a more subtle daemon (actually a pair), known as bdflush.
  1777.  
  1778. Get bdflush-n.n.tar.gz from the same place as the kernel source code [Q7.6
  1779. `How do I upgrade/recompile my kernel ?'] and compile and install it; it
  1780. should be started before the usual boot-time filesystem checks.  It will
  1781. work fine with older kernels as well, so there's no need to keep the old
  1782. update around.
  1783.  
  1784. - -----------------------------------------------------------------------------
  1785.  
  1786. Question 9.10.  Warning: obsolete routing request made.
  1787.  
  1788. This is nothing to worry about; it just means that the version of route
  1789. you have is a little out of date compared to the kernel.  You can make the
  1790. message go away by getting a new version of route from the same place as
  1791. the kernel source code [Q7.6 `How do I upgrade/recompile my kernel ?'].
  1792.  
  1793. - -----------------------------------------------------------------------------
  1794.  
  1795. Question 9.11.  EXT2-fs: warning: mounting unchecked filesystem
  1796.  
  1797. You need to run e2fsck (or fsck -t ext2 if you have the fsutils package)
  1798. with the -a option to get it to clear the `dirty' flag, and then cleanly
  1799. unmount the partition during each shutdown.
  1800.  
  1801. The easiest way to do this is to get the latest fsck, umount and shutdown
  1802. commands, available in Rik Faith's util-linux package [Q2.5 `Where can I
  1803. get Linux material by FTP ?'].  You have to make sure that your /etc/rc
  1804. scripts use them correctly.
  1805.  
  1806. NB don't try to check a filesystem that's mounted read-write - this
  1807. includes the root partition if you don't see
  1808.    VFS: mounted root ... read-only
  1809. at boot time.  You must arrange for to initially mount the root filesystem
  1810. readonly, check it if necessary, and then remount it read-write.  Read the
  1811. documentation that comes with util-linux to find out how to do this.
  1812.  
  1813. Note that you need to specify the -n option to mount to get it not to try
  1814. to update /etc/mtab, since the root filesystem is still read-only and this
  1815. will otherwise cause it to fail !
  1816.  
  1817. - -----------------------------------------------------------------------------
  1818.  
  1819. Question 9.12.  EXT2-fs warning: maximal count reached
  1820.  
  1821. This message is issued by the kernel when it mounts a filesystem that's
  1822. marked as clean, but whose `number of mounts since check' counter has
  1823. reached the predifined value.  The solution is to get the latest version
  1824. of the ext2fs utilities (e2fsprogs-0.5a.tar.gz at the time of writing)
  1825. from the usual sites [Q2.5 `Where can I get Linux material by FTP ?'].
  1826.  
  1827. The maximal number of mounts value can be examined and changed using the
  1828. tune2fs program from this package.
  1829.  
  1830. - -----------------------------------------------------------------------------
  1831.  
  1832. Question 9.13.  EXT2-fs warning: checktime reached
  1833.  
  1834. Kernels from 1.0 onwards support checking a filesystem based on the
  1835. elapsed time since the last check as well as by the number of mounts.  Get
  1836. the latest version of the ext2fs utilities [see Q9.12 `EXT2-fs warning:
  1837. maximal count reached'].
  1838.  
  1839. - -----------------------------------------------------------------------------
  1840.  
  1841. Question 9.14.  df says Cannot read table of mounted filesystems
  1842.  
  1843. There is probably something wrong with your /etc/mtab or /etc/fstab files.
  1844. If you have a reasonably new version of mount, /etc/mtab should be emptied
  1845. or deleted at boot time (in /etc/rc or /etc/rc.local), using something
  1846. like
  1847.    rm -f /etc/mtab*
  1848.  
  1849. Some versions of SLS have an entry for the root partition in /etc/mtab
  1850. made in /etc/rc by using rdev.  This is incorrect -- the newer versions of
  1851. mount do this automatically.
  1852.  
  1853. Other versions of SLS have a line in /etc/fstab that looks like:
  1854.     /dev/sdb1   /root   ext2   defaults
  1855. This is wrong.  /root should read simply /.
  1856.  
  1857. - -----------------------------------------------------------------------------
  1858.  
  1859. Question 9.15.  fdisk says Partition X has different physical/logical ...
  1860.  
  1861. If the partition number (X, above) is 1 this is the same problem as Q9.16
  1862. `fdisk: Partition 1 does not start on cylinder boundary'.
  1863.  
  1864. If the partition begins or ends on a cylinder numbered beyond 1024, this
  1865. is because standard DOS disk geometry information format in the partition
  1866. table can't cope with cylinder numbers with more than 10 bits.
  1867.  
  1868. This will cause DOS to be unable to access the partition correctly, and
  1869. will make booting a Linux kernel from that partition using LILO
  1870. problematic at best.
  1871.  
  1872. You can still use the partition for Linux or other operating systems that
  1873. use linear addressing (ie, number the disk blocks sequentially without
  1874. looking at heads, tracks and sectors).
  1875.  
  1876. I'd recommend creating at least one Linux partition entirely under the
  1877. 1024-cylinder limit and booting off that; the other partitions will then
  1878. be OK.
  1879.  
  1880. - -----------------------------------------------------------------------------
  1881.  
  1882. Question 9.16.  fdisk: Partition 1 does not start on cylinder boundary
  1883.  
  1884. The version of fdisk that comes with many Linux systems creates partitions
  1885. that fail its own validity checking.  Unfortunately if you've already
  1886. installed your system there's not much you can do about this, apart from
  1887. copying the data off the partition, deleting and remaking it, and copying
  1888. the data back.
  1889.  
  1890. You can avoid the problem by getting the latest version of fdisk, from Rik
  1891. Faith's util-linux package (available on all good FTP sites).
  1892. Alternatively, if you are creating a new partition 1 that starts in the
  1893. first cylinder, you can do the following to get a partition that fdisk
  1894. likes.
  1895.  
  1896. 1. Create partition 1 in the normal way.  A p listing will produce the
  1897. mismatch complaint.
  1898.  
  1899. 2. Type u to set sector mode and do p again.  Copy down the number from
  1900. the "End" column.
  1901.  
  1902. 3. Delete partition 1.
  1903.  
  1904. 4. While still in sector mode recreate partition 1.  Set the first sector
  1905. to match the number of sectors per track.  This is the sector number in
  1906. the first line of the p output.  Set the last sector to the value noted in
  1907. 2. above.
  1908.  
  1909. 5. Type u to reset cylinder mode and continue with other partitions.
  1910.  
  1911. Ignore the message about unallocated sectors - they refer to the sectors
  1912. on the first track apart from the Master Boot Record, which are not used
  1913. if you start the first partition in track 2.
  1914.  
  1915. - -----------------------------------------------------------------------------
  1916.  
  1917. Question 9.17.  fdisk says cannot use nnn sectors of this partition
  1918.  
  1919. Originally Linux only supported the Minix filesystem, which cannot use
  1920. more than 64Mb per parition.  This limitation is not present in the more
  1921. advanced filesystems now available, such as ext2fs (the 2nd version of the
  1922. Extended Filesystem) and xiafs (Qi Xia's filesystem).
  1923.  
  1924. If you intend to use ext2fs or xiafs you can ignore the message.
  1925.  
  1926. - -----------------------------------------------------------------------------
  1927.  
  1928. Question 9.18.  fdisk says partition n has an odd number of sectors
  1929.  
  1930. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  1931. 1K blocks.  If you have a partition with an odd number of sectors the last
  1932. sector is wasted.  Ignore the message.
  1933.  
  1934. - -----------------------------------------------------------------------------
  1935.  
  1936. Question 9.19.  mtools says cannot initialise drive XYZ
  1937.  
  1938. This means that mtools is having trouble accessing the drive.  This can be
  1939. due to several things.
  1940.  
  1941. Often this is due to the permissions on floppy drive devices (/dev/fd0*
  1942. and /dev/fd1*) being incorrect --- the user running mtools must have the
  1943. appropriate access.  See the manpage for chmod for details.
  1944.  
  1945. Most versions of mtools distributed with Linux systems (not the standard
  1946. GNU version) use the contents of a file /etc/mtools to discover which
  1947. devices and densities to use, in place of having this information compiled
  1948. into the binary.  Mistakes in this file often cause problems.  There is
  1949. often no documentation about this --- distribution packagers please note
  1950. that this is *evil*.
  1951.  
  1952. For the easiest way to access your DOS files (especially those on a hard
  1953. disk partition) see Q3.2 `How do I access files on my DOS partition or
  1954. floppy ?'.  Note - you should never use mtools to access files on an
  1955. msdosfs mounted partition or disk !
  1956.  
  1957. ===============================================================================
  1958.  
  1959. Section 10.  The X Window System
  1960.  
  1961.  Q10.1       Does Linux support X Windows ?
  1962.  Q10.2       Where can I get an XF86Config for my system ?
  1963.  Q10.3       xterm logins show up strangely in who, finger
  1964.  Q10.4       I can't get X Windows to work right.
  1965.  
  1966. - -----------------------------------------------------------------------------
  1967.  
  1968. Question 10.1.  Does Linux support X Windows ?
  1969.  
  1970. Yes.  Linux uses XFree86 (the current version is 3.1, which is based on
  1971. X11R6).  You need to have a video card which is supported by XFree86.  See
  1972. the Linux XFree86 HOWTO for more details.
  1973.  
  1974. Some of the Linux releases -- MCC, for example -- don't come with X
  1975. Windows already included; however you can easily download and install it
  1976. from /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites.
  1977. Read the XFree86 HOWTO for installation instructions.
  1978.  
  1979. Other releases -- Slackware, Debian, TAMU and SLS, for example -- come
  1980. with X Windows already included
  1981.  
  1982. - -----------------------------------------------------------------------------
  1983.  
  1984. Question 10.2.  Where can I get an XF86Config for my system ?
  1985.  
  1986. See the Linux XFree86 HOWTO.
  1987.  
  1988. You'll need to put together your own XF86Config file, because it depends
  1989. on the exact combination of video card and monitor you have.  It's not
  1990. that hard to do -- read the instructions that came with XFree86, in
  1991. /usr/X11R6/lib/X11/etc.  The file you probably most need to look at is
  1992. README.Config.
  1993.  
  1994. Please don't post to comp.os.linux.help asking for an XF86config.
  1995.  
  1996. - -----------------------------------------------------------------------------
  1997.  
  1998. Question 10.3.  xterm logins show up strangely in who, finger
  1999.  
  2000. The xterm that comes with XFree86 2.1 and earlier doesn't correctly
  2001. understand the format that Linux uses for the /etc/utmp file, where the
  2002. system records who is logged in.  It therefore doesn't set all the
  2003. information correctly.
  2004.  
  2005. XFree86 3.1 fixes this problem.
  2006.  
  2007. - -----------------------------------------------------------------------------
  2008.  
  2009. Question 10.4.  I can't get X Windows to work right.
  2010.  
  2011. Read the XFree86 HOWTO - note the question and answer section.
  2012.  
  2013. Try reading comp.windows.x.i386unix -- specifically read the the FAQ for
  2014. that group.
  2015.  
  2016. Please don't post X Windows or XFree86 related questions to
  2017. comp.os.linux.help unless they are Linux-specific.
  2018.  
  2019. ===============================================================================
  2020.  
  2021. Section 11.  Questions applicable to very out-of-date software
  2022.  
  2023.  Q11.1       GCC sometimes uses huge amounts of virtual memory and thrashes
  2024.  Q11.2       My keyboard goes all funny after I switch VC's.
  2025.  
  2026. The questions in this section are only relevant to users of software that
  2027. is at least 3 months old.
  2028.  
  2029. Please let me know if you find the answer to a problem you had here, as
  2030. unused questions in this section will eventually disappear [Q13.1
  2031. `Feedback is invited'].
  2032.  
  2033. - -----------------------------------------------------------------------------
  2034.  
  2035. Question 11.1.  GCC sometimes uses huge amounts of virtual memory and thrashes
  2036.  
  2037. Older versions of GCC had a bug which made them use lots of memory if you
  2038. tried to compile a program which had a large static data table in it.
  2039.  
  2040. You can either upgrade your version of GCC to at least version 2.5, or add
  2041. more swap if necessary and just grin and bear it; it'll work in the end.
  2042.  
  2043. - -----------------------------------------------------------------------------
  2044.  
  2045. Question 11.2.  My keyboard goes all funny after I switch VC's.
  2046.  
  2047. This is a bug in kernel versions before 0.99pl14-alpha-n.  Sometimes Linux
  2048. loses track of what modifier keys (Shift, Alt, Control etc.) are pressed
  2049. or not, and believes that one or more are pressed when they are not.  The
  2050. solution is to press and release each of the modifier keys (without
  2051. pressing any other keys) --- this will ensure that Linux knows what state
  2052. the keyboard is actually in.
  2053.  
  2054. This problem often occurs when switching out of X windows; it can
  2055. sometimes be avoided by releasing Ctrl and Alt very quickly after pressing
  2056. the F-key of the VC you are switching to.
  2057.  
  2058. ===============================================================================
  2059.  
  2060. Section 12.  How to get further assistance
  2061.  
  2062.  Q12.1       You still haven't answered my question !
  2063.  Q12.2       What to put in a posting to comp.os.linux.help
  2064.  Q12.3       I want to mail someone about my problem.
  2065.  
  2066. - -----------------------------------------------------------------------------
  2067.  
  2068. Question 12.1.  You still haven't answered my question !
  2069.  
  2070. Please read all of this answer before posting.  I know it's a bit long,
  2071. but you may be about to make a fool of yourself in front of 50000 people
  2072. and waste hundreds of hours of their time.  Don't you think it's worth it
  2073. to spend some of your time reading and following these instructions ?
  2074.  
  2075. If you think an answer is incomplete or inaccurate, please mail Ian
  2076. Jackson at <ijackson@nyx.cs.du.edu>.
  2077.  
  2078. Read the appropriate Linux Documentation Project books - see Q2.1 `Where
  2079. can I get the HOWTOs and other documentation ?'.
  2080.  
  2081. If you're a Unix newbie read the FAQ for comp.unix.questions, and those
  2082. for any of the other comp.unix.* groups that may be relevant.
  2083.  
  2084. Linux is a Unix clone, so almost everything you read there will apply to
  2085. Linux.  Those FAQs can, like all FAQs, be found on rtfm.mit.edu in
  2086. /pub/usenet/news.answers (the mail-server@rtfm.mit.edu can send you these
  2087. files, for those who don't have FTP access).  There are mirrors of rtfm's
  2088. FAQ artchives on various sites - check the Introduction to *.answers
  2089. posting, posted, or look in news-answers/introduction in the directory
  2090. above.
  2091.  
  2092. Check the relevant HOWTO for the subject in question, if there is one, or
  2093. an appropriate old-style sub-FAQ document.  Check the FTP sites.
  2094.  
  2095. Try experimenting --- that's the best way to get to know Unix and Linux.
  2096.  
  2097. Read the documentation.  Check the manpages (type man man if you don't
  2098. know about manpages.  Try man -k <subject> --- it often lists useful and
  2099. relevant manpages.
  2100.  
  2101. Check the Info documentation (type C-h i, i.e. Control H followed by I in
  2102. Emacs) --- NB this isn't just for Emacs; for example the GCC documentation
  2103. lives here as well.
  2104.  
  2105. There will also often be a README file with a package giving installation
  2106. and/or usage instructions.
  2107.  
  2108. Make sure that you don't have a corrupted or out-of-date copy of the
  2109. program in question.  If possible, download it again and reinstall it ---
  2110. perhaps you made a mistake the first time.
  2111.  
  2112. Read comp.os.linux.announce --- this often contains very important
  2113. information for all Linux users.
  2114.  
  2115. X-Windows questions belong in comp.windows.x.i386unix, not in
  2116. comp.os.linux.help.  But read the group first (including the FAQ), before
  2117. you post !
  2118.  
  2119. Only if you have done all of these things and are still stuck should you
  2120. post to comp.os.linux.help.  Make sure you read the next question, Q12.2
  2121. `What to put in a posting to comp.os.linux.help', first.
  2122.  
  2123. - -----------------------------------------------------------------------------
  2124.  
  2125. Question 12.2.  What to put in a posting to comp.os.linux.help
  2126.  
  2127. Please read carefully the following advice about how to write your
  2128. posting.  Taking heed of it will greatly increase the chances that an
  2129. expert and/or fellow user reading your posting will have enough
  2130. information and motivation to reply.
  2131.  
  2132. Make sure you give full details of the problem, including:
  2133.  
  2134. * What program, exactly, you are having problems with.  Include the
  2135.   version number if known and say where you got it.  Many standard
  2136.   commands tell you their version number if you give them a --version
  2137.   option.
  2138.  
  2139. * Which Linux release you're using (MCC, Slackware, Debian or whatever)
  2140.   and what version of that release.
  2141.  
  2142. * The *exact* and *complete* text of any error messages printed.
  2143.  
  2144. * Exactly what behaviour you were expecting, and exactly what behaviour
  2145.   you observed.  A transcript of an example session is a good way of
  2146.   showing this.
  2147.  
  2148. * The contents of any configuration files used by the program in question
  2149.   and any related programs.
  2150.  
  2151. * What version of the kernel and of the shared libraries you are using.
  2152.   The kernel version can be found by typing uname -a, and the shared
  2153.   library version by typing ls -l /lib/libc.so.4.
  2154.  
  2155. * Details of what hardware you're running on, if it seems appropriate.
  2156.  
  2157. You are in little danger of making your posting too long unless you
  2158. include large chunks of source code or uuencoded files, so err on the side
  2159. of giving too much information.
  2160.  
  2161. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  2162. `Linux', `help' or `question' in it --- we already knew that ! Save the
  2163. space for the name of the program, a fragment of the error message,
  2164. summary of the unusual behaviour, etc.
  2165.  
  2166. If you are reporting an `unable to handle kernel paging request' message,
  2167. follow the instructions in the Linux kernel sources README for turning the
  2168. numbers into something more meaningful.  If you don't do this noone who
  2169. reads your post will be able to do it for you, as the mapping from numbers
  2170. to function names varies from one kernel to another.
  2171.  
  2172. Put a summary paragraph at the top of your posting.
  2173.  
  2174. At the bottom of your posting, ask for responses by email and say you'll
  2175. post a summary.  Back this up by using Followup-To: poster.  Then, do
  2176. actually post a summary in a few days or a week or so.  Don't just
  2177. concatenate the replies you got --- summarise.  Putting the word SUMMARY
  2178. in your summary's Subject line is also a good idea.  Consider submitting
  2179. the summary to comp.os.linux.announce.
  2180.  
  2181. Make sure your posting doesn't have an inappropriate References header
  2182. line.  This marks your article as part of the thread of the article
  2183. referred to, which will often cause it to be junked by the readers with
  2184. the rest of a boring thread.
  2185.  
  2186. You might like to say in your posting that you've read this FAQ and the
  2187. appropriate HOWTOs - this may make people less likely to skip your
  2188. posting.
  2189.  
  2190. Remember that you should not post email sent to you personally without the
  2191. sender's permission.
  2192.  
  2193. - -----------------------------------------------------------------------------
  2194.  
  2195. Question 12.3.  I want to mail someone about my problem.
  2196.  
  2197. Try to find the author or developer of whatever program or component is
  2198. causing you difficulty.  If you have a contact point for the Linux
  2199. distribution you are using you should use it.
  2200.  
  2201. Please put everything in your email that you would put in a posting asking
  2202. for help.
  2203.  
  2204. Finally, remember that despite the fact that most of the Linux community
  2205. are very helpful and responsive to emailed questions you'll be asking for
  2206. help from an unpaid volunteer, so you have no right to expect an answer.
  2207.  
  2208. ===============================================================================
  2209.  
  2210. Section 13.  Administrative information and acknowledgements
  2211.  
  2212.  Q13.1       Feedback is invited
  2213.  Q13.2       Formats in which this FAQ is available
  2214.  Q13.3       Authorship and acknowledgements
  2215.  Q13.4       Disclaimer and Copyright
  2216.  
  2217. - -----------------------------------------------------------------------------
  2218.  
  2219. Question 13.1.  Feedback is invited
  2220.  
  2221. Please send me your comments on this FAQ.
  2222.  
  2223. I accept submissions for the FAQ in any format;  All contributions
  2224. comments and corrections are gratefully received.
  2225.  
  2226. Please send them to <ijackson@nyx.cs.du.edu>.
  2227.  
  2228. By the way, if you wish to refer to a question(s) in the FAQ it's most
  2229. useful for me if you do so by the question heading, rather than the
  2230. number, as the question numbers are generated automatically and I don't
  2231. see them in the source file I edit.
  2232.  
  2233. - -----------------------------------------------------------------------------
  2234.  
  2235. Question 13.2.  Formats in which this FAQ is available
  2236.  
  2237. This document is available as an ASCII text file, an Emacs Info document,
  2238. an HTML World Wide Web page, PostScript and as a USENET news posting.
  2239.  
  2240. The ASCII, Emacs Info, HTML and posted versions and a Lout typesetter file
  2241. (from which the PostScript is produced) are generated automatically by a
  2242. Perl script which takes as input a file in the Bizarre Format with No
  2243. Name.
  2244.  
  2245. The output files linux-faq.ascii, .info and .ps and a tarfile
  2246. linux-faq.source.tar.gz, containing the BFNN source and Perl script
  2247. converter, are available in the docs directories of the major Linux FTP
  2248. sites.
  2249.  
  2250. The HTML version of this FAQ is available as
  2251. http://www.cl.cam.ac.uk/users/iwj10/linux-faq/index.html.
  2252.  
  2253. The USENET version is posted regularly to comp.os.linux.announce,
  2254. comp.os.linux.help, comp.answers and news.answers.
  2255.  
  2256. - -----------------------------------------------------------------------------
  2257.  
  2258. Question 13.3.  Authorship and acknowledgements
  2259.  
  2260. This FAQ was compiled by Ian Jackson <ijackson@nyx.cs.du.edu>, with
  2261. assistance and comments from others too numerous to mention.  It was
  2262. loosely based on the original Linux FAQ by Marc-Michel Corsini.
  2263.  
  2264. Special thanks are due to Matt Welsh, who coordinates the HOWTOs and has
  2265. written substantial portions of many of them, and to Marc-Michel Corsini.
  2266. Thanks also to the contributors to the previous Linux FAQ, and to those
  2267. sent me comments about this FAQ, and who answered questions on the
  2268. newsgroup.
  2269.  
  2270. Last but not least, thanks to Linus Torvalds and the other contributors to
  2271. Linux for giving us something to write about !
  2272.  
  2273. - -----------------------------------------------------------------------------
  2274.  
  2275. Question 13.4.  Disclaimer and Copyright
  2276.  
  2277. Note that this document is provided as is.  The information in it is *not*
  2278. warranted to be correct; you use it at your own risk.
  2279.  
  2280. Linux Frequently Asked Questions with Answers is Copyright 1994 by Ian
  2281. Jackson <ijackson@nyx.cs.du.edu>.
  2282.  
  2283. It may be reproduced and distributed in its entirity (including this
  2284. authorship, copyright and permission notice) provided that either:
  2285.  
  2286. * the distribution is not commercial (commercial means any situation in
  2287.   which you benefit financially - directly or indirectly such as by
  2288.   inclusion in a publication which carries commercial advertising), or
  2289. * the distribution is in machine-readable form (ie, a form intended to be
  2290.   easily processed by a computer).
  2291.  
  2292. Note that this restriction is not intended to prohibit charging for the
  2293. service of printing or copying a document supplied by your customer.
  2294.  
  2295. Any distribution of a partial copy or extract, a translation or a
  2296. derivative work must be approved by me before distribution.  Email me -
  2297. I'll probably be happy to oblige !
  2298.  
  2299. Exceptions to these rules may be granted, and I shall be happy to answer
  2300. any questions about this copyright --- write to Ian Jackson, Churchill
  2301. College, Cambridge, CB3 0DS, United Kingdom or email
  2302. <ijackson@nyx.cs.du.edu>.  These restrictions are here to protect the
  2303. contributors, not to restrict you as educators and learners.
  2304.  
  2305. Ian Jackson asserts the right to be identified as the author of this work,
  2306. and claims the moral rights of paternity and integrity, in accordance with
  2307. the Copyright, Designs and Patents Act, 1988.
  2308.  
  2309.  
  2310. -----BEGIN PGP SIGNATURE-----
  2311. Version: 2.6
  2312.  
  2313. iQCVAgUBLviW0sMWjroj9a3bAQHzlAQAxkZTJqbddboeO9iuueZGmJTm8cLDQXMO
  2314. IzlowMtXk7254yOY3idZc1iAhe/B4GkTupC/dRRbln6GMKn7pvzlOhgqesruwagk
  2315. rHxHQo0zRf6tHjF8taLOf6at4yzvHlBLSI7802pk3FsBZxGaOXrYPFiLwZtaLbCF
  2316. o0JTFc2d9XA=
  2317. =Mm4g
  2318. -----END PGP SIGNATURE-----
  2319. -- 
  2320. Ian Jackson, at home.         ijackson@nyx.cs.du.edu or iwj10@cus.cam.ac.uk
  2321. +44 1223 575512    Escoerea on IRC.   http://www.cl.cam.ac.uk/users/iwj10/
  2322. 2 Lexington Close, Cambridge, CB4 3LS, England.   Urgent: iwj@cam-orl.co.uk
  2323.  
  2324.