home *** CD-ROM | disk | FTP | other *** search
/ IT.SOFT 22 / ITSOFTCD_22.iso / mac / linux22 / slackware3.6 / DOCS / LINUX.FAQ / LINUX-FAQ.SGML;1 / Linux-FAQ.sgml
Encoding:
SGML Document  |  1998-10-12  |  140.2 KB  |  3,255 lines

  1. <!DOCTYPE LINUXDOC SYSTEM>
  2. <article>
  3.  
  4. <title>Linux Frequently Asked Questions with Answers
  5. <author>Robert Kiesling, kiesling@ix.netcom.com
  6. <date>October 4, 1998
  7. <abstract>
  8. This is the list of Frequently Asked Questions for Linux, the free
  9. Unix for just about every computer hardware platform on the planet.
  10. Originally written for 386/486/586 Intel/ISA bus machines, versions
  11. exist for Alpha, MIPS, ARM, 680x0, and PPC processors, and many
  12. others. (See the question, ``<ref id="What is Linux?">'' below.)  This
  13. document should be read in conjunction with the Linux Documentation
  14. Project's HOWTO series. (``<ref id="Where can I get Linux material by
  15. FTP?">'' and, ``<ref id="Where can I get the HOWTO's and other
  16. documentation?">'') The <tt>INFO-SHEET</tt> and <tt>META-FAQ</tt>,
  17. which are found in the same place, also list sources of Linux
  18. information.  Please look at these documents, and, ``<ref id="You
  19. still haven't answered my question!">'' before posting to a Usenet
  20. news group.  You can also get Postscript, HTML, SGML, and plain ASCII
  21. versions of this document.  (``<ref id="Formats in which this FAQ is
  22. available.">'')
  23. </abstract>
  24. <toc>
  25.  
  26. <sect>Introduction and General Information <label id="Introduction and General Information">
  27. <P>
  28. <sect1>What is Linux? <label id="What is Linux?">
  29. <P>
  30. Linux is the free Unix written from scratch by Linus Torvalds with
  31. assistance from a loosely-knit team of hackers from across the
  32. Internet.  Linux aims towards POSIX compliance, and has all of the
  33. features you would expect of a modern, fully fledged Unix: true
  34. multitasking, virtual memory, shared libraries, demand loading,
  35. shared, copy-on-write executables, proper memory management, and
  36. TCP/IP networking.
  37.  
  38. Linux runs mainly on 386/486/586-based PC's, using the hardware
  39. facilities of the 80386 processor family (TSS segments, et al.) to
  40. implement these features.  Ports to other architectures are
  41. underway. (See, ``<ref id="What ports to other processors are
  42. there?">'')
  43.  
  44. See the Linux <tt>INFO-SHEET</tt> for more details.  (``<ref id="Where can
  45. I get the HOWTO's and other documentation?">'')
  46.  
  47. The Linux kernel is distributed under the GNU General Public
  48. License. (``<ref id="Is Linux public domain?  Copyrighted?">'')
  49.  
  50. -------------------------------------------------------------------------------
  51. <sect1>Where do I start? <label id="Where do I start?">
  52. <P>
  53. There are a handful of major Linux distributions.  For information
  54. about them, and how they are installed, see Matthew Welsh's
  55. <em>Installation and Getting Started</em>, or IGS for short.  It's
  56. located at the Linux Documentation Project Home Page, <htmlurl
  57. url="http://sunsite.unc.edu/LDP" name="http://sunsite.unc.edu/LDP">.
  58.  
  59. There is also an Installation HOWTO on the LDP Home Page.  
  60.  
  61. Most of the distributions are available via anonymous FTP from various
  62. Linux archive sites.  (``<ref id="Where can I get Linux material by
  63. FTP?">'') There are also a large number of other releases which are
  64. distributed less globally that suit special local and national needs.
  65.  
  66. -------------------------------------------------------------------------------
  67.  
  68. <sect1>What software does Linux support? <label id="What software does Linux support?">
  69. <P>
  70. Linux supports GCC, Emacs, the X Window System, all the standard Unix
  71. utilities, TCP/IP (including SLIP and PPP), and all of the hundreds of
  72. programs that people have compiled or ported to it.
  73.  
  74. There is a DOS emulator, called DOSEMU.  The latest stable release is
  75. 0.98.1.  The FTP archives are at <htmlurl
  76. url="ftp://ftp.dosemu.org/dosemu" name="ftp://ftp.dosemu.org/dosemu">.
  77. The Web site is htmlurl url="http://www.dosemu.org"
  78. name="http://www.dosemu.org">. 
  79.  
  80. The emulator can run DOS itself and some (but not all) DOS
  81. applications.  Be sure to look at the <tt>README</tt> file to
  82. determine which version you should get.  Also, see the
  83. <tt>DOSEMU-HOWTO</tt> (slightly dated at this point--it doesn't cover
  84. the most recent version of the program), at <htmlurl
  85. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO"
  86. name="sunsite.unc.edu/pub/Linux/docs/HOWTO">.
  87.  
  88. Work has been progressing on an emulator for Microsoft Windows binaries.
  89. (``<ref id="Can I run Microsoft Windows programs under Linux?">'')
  90.  
  91. iBCS2 (Intel Binary Compatibility Standard) emulator code for SVR4 ELF and
  92. SVR3.2 COFF binaries can be included in the kernel as a compile-time
  93. option.  There is information at
  94. <htmlurl
  95. url="ftp://tsx-11.mit.edu/pub/linux/BETA/ibcs2/README" name="tsx-11.mit.edu/pub/linux/BETA/ibcs2/README">.
  96.  
  97. For more information see the <tt>INFO-SHEET</tt>, which is one of the
  98. HOWTO's (``<ref id="Where can I get the HOWTO's and other
  99. documentation?">'' and, ``<ref id="How do I port XXX to
  100. Linux?">'')
  101.  
  102. Some companies have commercial software available, including Motif.  They
  103. announce their availability in comp.os.linux.announce--try searching
  104. the archives.  (``<ref id="Are the newsgroups archived anywhere?">'')
  105.  
  106. -------------------------------------------------------------------------------
  107.  
  108. <sect1>Does Linux run on my computer?  What hardware is supported? <label
  109. id="Does Linux run on my computer?  What hardware is supported?">
  110. <P>
  111. Giving Linux a try requires a machine with an Intel '386, '486, or
  112. '586 processor with at least 2Mb of RAM and a single floppy drive.  To
  113. do anything useful, more RAM and disk space is needed.  (``<ref
  114. id="How much memory does Linux need?">'')
  115.  
  116. VESA Local Bus and PCI are supported.  
  117.  
  118. MCA (IBM's proprietary bus) and ESDI hard drives are mostly supported.
  119. There is further information on the MCA bus and what cards Linux
  120. supports on the Micro Channel Linux Web page, <htmlurl
  121. url="http://glycerine.itsmm.uni.edu/mca"
  122. name="http://glycerine.itsmm.uni.edu/mca">.
  123.  
  124. Linux runs on '386 family based laptops, with X on most of them.  There
  125. is a Web page at <htmlurl
  126. url="http://www.cs.utexas.edu/users/kharker/linux-laptop/"
  127. name="http://www.cs.utexas.edu/users/kharker/linux-laptop/">.
  128.  
  129. For details of exactly which PC's, video cards, disk controllers, etc.
  130. work see the <tt>INFO-SHEET</tt> and the <tt>Hardware-HOWTO</tt>.
  131. (See ``<ref id="Where can I get the HOWTO's and other
  132. documentation?">'')
  133.  
  134. There is a port of Linux to the 8086, known as the Embeddable Linux
  135. Kernel Subset (ELKS).  This is a 16-bit subset of the Linux kernel
  136. which will mainly be used for embedded systems.  See <htmlurl
  137. url="http://www.linux.org.uk/Linux8086.html"
  138. name="http://www.linux.org.uk/Linux8086.html"> for more information.
  139. Linux will never run fully on an 8086 or '286, because it requires
  140. task-switching and memory management facilities not found on these
  141. processors.
  142.  
  143. Linux supports multiprocessing with Intel MP architecture.  See the
  144. file <tt>Documentation/smp.tex</tt> in the Linux kernel source code
  145. distribution.
  146.  
  147. See the next question for a (probably incomplete) list of hardware
  148. platforms Linux has been ported to.
  149.  
  150. -------------------------------------------------------------------------------
  151.  
  152. <sect1>What ports to other processors are there? <label id="What ports to other processors are there?">
  153. <P>
  154. There is a reasonably complete list of Linux ports at 
  155. <htmlurl url="http://www.ctv.es/USERS/xose/linux/linux_ports.html"
  156. name="http://www.ctv.es/USERS/xose/linux/linux_ports.html">, and at 
  157. <htmlurl url="http://www.linuxhq.com/dist-index.html"
  158. name="http://www.linuxhq.com/dist-index.html">.
  159.  
  160. A project has been underway for a while to port Linux to suitable
  161. 68000-series based systems like Amigas and Ataris.  The Linux/m68K
  162. FAQ is located at <htmlurl
  163. url="http://www.clark.net/pub/lawrencc/linux/faq/faq.html"
  164. name="www.clark.net/pub/lawrencc/linux/faq/faq.html">.  The URL of the
  165. Linux/m68k home page is <htmlurl url="http://www.linux-m68k.org"
  166. name="www.linux-m68k">.
  167.  
  168. There is a linux-680x0 mailing list. (``<ref id="What mailing
  169. lists are there?">'')
  170.  
  171. There is (or was) a FTP site for the Linux-m68k project on <htmlurl
  172. url="ftp://ftp.phil.uni-sb.de/pub/atari/linux-68k"
  173. name="ftp.phil.uni-sb.de/pub/atari/linux-68k">, but this address may
  174. no longer be current.
  175.  
  176. Debian GNU/Linux is being ported to Alpha, Sparc, PowerPC, and ARM
  177. platforms.  There are mailing lists for all of them.  See
  178. <htmlurl url="http://www.debian.org/MailingLists/subscribe"
  179. name="http://www.debian.org/MailingLists/subscribe">.
  180.  
  181. One of the Linux-PPC project pages has moved recently.  Its location
  182. is <htmlurl url="http://www.linuxppc.org"
  183. name="http://www.linuxppc.org">, and the archive site is <htmlurl
  184. url="ftp://ftp.linuxppc.org/linuxppc"
  185. name="ftp.linuxppc.org/linuxppc">.
  186.  
  187. There is a Linux-PPC support page at <htmlurl
  188. url="http://www.cs.nmt.edu/~linuxppc/"
  189. name="www.cs.nmt.edu/˜linuxppc/">.  There you will find the kernel that
  190. is distributed with Linux.
  191.  
  192. Apple now supports MkLinux development on Power Macs, based on OSF and
  193. the Mach microkernel.  See <htmlurl url="http://www.mklinux.apple.com"
  194. name="http://www.mklinux.apple.com">.
  195.  
  196. A port to the 64-bit DEC Alpha/AXP is at <htmlurl
  197. url="http://www.azstarnet.com/~axplinux/"
  198. name="http://www.azstarnet.com/˜axplinux/">.  There is a mailing list
  199. at vger.rutgers.edu.  (``<ref id="What mailing lists are
  200. there?">'')
  201.  
  202.  
  203. Ralf Baechle is working on a port to the MIPS, initially for the R4600
  204. on Deskstation Tyne machines.  The Linux-MIPS FTP sites are <htmlurl
  205. url="ftp://ftp.fnet.fr/linux-mips" name="ftp.fnet.fr/linux-mips"> and
  206. <htmlurl url="ftp://ftp.linux.sgi.com/pub/mips-linux"
  207. name="ftp://ftp.linux.sgi.com/pub/mips-linux">. Interested people may
  208. mail their questions and offers of assistance to <htmlurl
  209. url="mailto:linux@waldorf-gmbh.de" name="linux@waldorf-gmbh.de">.
  210.  
  211. There is also a MIPS channel on the Linux Activists mail server and a
  212. linux-mips mailing list.  (``<ref id="What mailing lists are
  213. there?">'')
  214.  
  215. There are currently two ports of Linux to the ARM family of
  216. processors.  One of these is for the ARM3, fitted to the Acorn A5000,
  217. and it includes I/O drivers for the 82710/11 as appropriate.  The
  218. other is to the ARM610 of the Acorn RISC PC.  The RISC PC port is
  219. currently in its early to middle stages, owing to the need to rewrite
  220. much of the memory handling.  The A5000 port is in restricted beta
  221. testing.  A release is likely soon.
  222.  
  223. For more, up-to-date information, read the newsgroup
  224. <tt>comp.sys.acorn.misc</tt>.  There is a FAQ at <htmlurl
  225. url="http://www.arm.uk.linux.org"
  226. name="http://www.arm.uk.linux.org"> 
  227.  
  228. The Linux SPARC project is a hotbed of activity.  There is a FAQ
  229. available from Jim Mintha's Linux for SPARC Processors page, <htmlurl
  230. url="http://www.geog.ubc.ca/sparclinux.html"
  231. name="http://www.geog.ubc.ca/sparclinux.html">.  The SPARC/Linux
  232. archives are at <htmlurl url="ftp://vger.rutgers.edu/pub/linux/Sparc"
  233. name="vger.rutgers.edu/pub/linux/Sparc">.
  234.  
  235. There is also a port (``Hardhat'') to SGI/Indy machines.  The URL is
  236. <htmlurl url="http://www.linux.sgi.com"
  237. name="http://www.linux.sgi.com">.
  238.  
  239. -------------------------------------------------------------------------------
  240.  
  241. <sect1>How much hard disk space does Linux need?  <label id="How much hard disk space does Linux need?">
  242. <P>
  243. About 10Mb for a very minimal installation, suitable for trying Linux, and not
  244. much else.
  245.  
  246. You can fit an installation that includes X into 80Mb.  Installing
  247. Debian GNU/Linux takes 500Mb--1GB, including kernel source code, some
  248. space for user files, and spool areas.
  249.  
  250. -------------------------------------------------------------------------------
  251.  
  252. <sect1>How much memory does Linux need? <label id="How much memory
  253. does Linux need?">
  254. <P>
  255. At least 4MB, and then you will need to use special installation
  256. procedures until the disk swap space is installed.  Linux will run
  257. comfortably in 4MB of RAM, although X Windows Apps will run slowly
  258. because they need to swap out to disk.
  259.  
  260. Some recent applications, like Netscape, require 64MB of physical
  261. memory.
  262.  
  263. -------------------------------------------------------------------------------
  264.  
  265. <sect1>How much memory can Linux use? <label id="How much memory can
  266. Linux use?">
  267. <P>
  268. A number of people have asked how to address more than 64 MB of
  269. memory, which is the default upper limit.  Place the following in your
  270. lilo.conf file:
  271. <verb>
  272. append="mem=XXM"    
  273. </verb>
  274. Where "XX" is the amount of memory, specified as 
  275. megabytes; for example, '128M'.  For further details, see the lilo
  276. manual page.  
  277.  
  278. -------------------------------------------------------------------------------
  279.  
  280. <sect1>Is Linux public domain?  Copyrighted? <label id="Is Linux public domain?  Copyrighted?">
  281. <P>
  282. The Linux kernel copyright belongs to Linus Torvalds.  He has placed
  283. it under the GNU General Public License, which basically means that
  284. you may freely copy, change, and distribute it, but you may not impose
  285. any restrictions on further distribution, and you must make the source
  286. code available.
  287.  
  288. This is not the same as Public Domain. See the Copyright FAQ, <htmlurl
  289. url="rtfm.mit.edu/pub/usenet/news.answers/law/copyright"
  290. name="rtfm.mit.edu/pub/usenet/news.answers/law/copyright">, for
  291. details.
  292.  
  293. Full details are in the file <tt>COPYING</tt> in the Linux kernel
  294. sources (probably in <tt>/usr/src/linux</tt> on your system).
  295.  
  296. The licenses of the utilities and programs which come with the
  297. installations vary.  Much of the code is from the GNU Project at the Free
  298. Software Foundation, and is also under the GPL.
  299.  
  300. Note that discussion about the merits or otherwise of the GPL should
  301. be posted to the news group <tt>gnu.misc.discuss</tt>, and not to the
  302. <tt>comp.os.linux</tt> hierarchy.
  303.  
  304. ===============================================================================
  305.  
  306. <sect>Network sources and resources. <label id="Network sources and resources.">
  307. <P>
  308. -------------------------------------------------------------------------------
  309.  
  310. <sect1>Where can I get the HOWTO's and other documentation? <label id="Where can I get the HOWTO's and other documentation?">
  311. <P>
  312. Look in the following places, and the sites that mirror them.
  313. <itemize>
  314. <item><htmlurl url="ftp://ftp.funet.fi/pub/OS/Linux/doc/HOWTO"
  315. name="ftp.funet.fi : /pub/OS/Linux/doc/HOWTO">
  316. <item><htmlurl url="ftp://tsx-11.mit.edu/pub/linux/docs/HOWTO"
  317. name="tsx-11.mit.edu : /pub/linux/docs/HOWTO">
  318. <item><htmlurl url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO"
  319. name="sunsite.unc.edu : /pub/Linux/docs/HOWTO">
  320. </itemize>
  321. For a complete list of Linux FTP sites, see, ``<ref id="Where can I get Linux
  322. material by FTP?">''
  323.  
  324. If you don't have access to FTP, try the FTP-by-mail servers at
  325. <htmlurl url="mailto:ftpmail@decwrl.dec.com"
  326. name="ftpmail@decwrl.dec.com">, <htmlurl
  327. url="mailto:ftpmail@doc.ic.ac.uk" name="ftpmail@doc.ic.ac.uk">, or
  328. <htmlurl url="mailto:ftp-mailer@informatik.tu-meunchen.de"
  329. name="ftp-mailer@informatik.tu-muenchen.de">.
  330.  
  331. A complete list of HOWTO's and Mini-HOWTO's is available in the file
  332. <tt>HOWTO-INDEX</tt> in the <tt>docs/HOWTO</tt> directory at the FTP
  333. sites, and on the Web at <htmlurl
  334. url="http://sunsite.unc.edu/LDP/HOWTO/HOWTO-INDEX.html"
  335. name="http://sunsite.unc.edu/LDP/HOWTO/HOWTO-INDEX.html">, but
  336. here is a (possibly incomplete) list:
  337. <verb>
  338. AX25-HOWTO                             Access-HOWTO
  339. Assembly-HOWTO                         Benchmarking-HOWTO
  340. BootPrompt-HOWTO                       Bootdisk-HOWTO
  341. CD-Writing-HOWTO                       CDROM-HOWTO
  342. Chinese-HOWTO                          Commercial-HOWTO
  343. Consultants-HOWTO                      Cyrillic-HOWTO
  344. DNS-HOWTO                              DOS-to-Linux-HOWTO
  345. DOSEMU-HOWTO                           Danish-HOWTO
  346. Distribution-HOWTO                     ELF-HOWTO
  347. Emacspeak-HOWTO                        Ethernet-HOWTO
  348. Finnish-HOWTO                          Firewall-HOWTO
  349. Ftape-HOWTO                            GCC-HOWTO
  350. German-HOWTO                           HAM-HOWTO
  351. HOWTO-INDEX                            Hardware-HOWTO
  352. Hebrew-HOWTO                           IPX-HOWTO
  353. ISP-Hookup-HOWTO                       Installation-HOWTO
  354. Intranet-Server-HOWTO                  Italian-HOWTO
  355. Java-CGI-HOWTO                         Kernel-HOWTO
  356. Keyboard-and-Console-HOWTO             MGR-HOWTO
  357. MILO-HOWTO                             Mail-HOWTO
  358. NET-3-HOWTO                            NFS-HOWTO
  359. NIS-HOWTO                              News-HOWTO
  360. Optical-Disk-HOWTO                     PCI-HOWTO
  361. PCMCIA-HOWTO                           PPP-HOWTO
  362. Pilot-HOWTO                            Polish-HOWTO
  363. Printing-HOWTO                         Printing-Usage-HOWTO
  364. RPM-HOWTO                              Reading-List-HOWTO
  365. SCSI-HOWTO                             SCSI-Programming-HOWTO
  366. SMB-HOWTO                              Serial-HOWTO
  367. Serial-Programming-HOWTO               Shadow-Password-HOWTO
  368. Slovenian-HOWTO                        Sound-HOWTO
  369. Sound-Playing-HOWTO                    Spanish-HOWTO
  370. TeTeX-HOWTO                            Thai-HOWTO
  371. Tips-HOWTO                             UMSDOS-HOWTO
  372. UPS-HOWTO                              UUCP-HOWTO
  373. User-Group-HOWTO                       VAR-HOWTO
  374. VMS-to-Linux-HOWTO                     XFree86-HOWTO
  375. XFree86-Video-Timings-HOWTO
  376. 3-Button-Mouse
  377. </verb>
  378. The following Mini-HOWTO's are available from <htmlurl
  379. url="http://sunsite.unc.edu/pub/Linux/HOWTO/mini"
  380. name="http://sunsite.unc.edu/pub/Linux/HOWTO/mini">:
  381. <verb>
  382. ADSM-Backup                            AI-Alife
  383. Advocacy                               Backup-With-MSDOS
  384. Battery-Powered                        Boca
  385. BogoMips                               Bridge
  386. Bridge+Firewall                        Clock
  387. Colour-ls                              Comeau-C++
  388. DHCPd                                  Dial-On-Demand
  389. Diald                                  Dip+SLiRP+CSLIP
  390. Diskless                               Dynamic-IP-Hacks
  391. Ext2fs-Undeletion                      GTEK-BBS-550
  392. HTML-Validation                        IO-Port-Programming
  393. IP-Alias                               IP-Masquerade
  394. IP-Subnetworking                       JE
  395. Jaz-Drive                              Kerneld
  396. Key-Setup                              LBX
  397. Large-Disk                             Linux+DOS+Win95
  398. Linux+DOS+Win95+OS2                    Linux+NT-Loader
  399. Linux+OS2+DOS                          Linux+Win95
  400. Loadlin+Win95                          Locales
  401. MIDI+SB                                Mail-Queue
  402. Mail2News                              Man-Page
  403. Multiple-Disks-Layout                  Multiple-Ethernet
  404. NFS-Root                               NFS-Root-Client
  405. Netscape+Proxy                         Offline-Mailing
  406. Online-Support                         PLIP
  407. PPP-over-minicom                       Pager
  408. Partition                              Print2Win
  409. Process-Accounting                     Proxy-ARP
  410. Public-Web-Browser                     Qmail+MH
  411. Quota                                  RCS
  412. Remote-Boot                            Remote-X-Apps
  413. SLIP+proxyARP                          SLIP-PPP-Emulator
  414. Sendmail+UUCP                          Software-Building
  415. Software-RAID                          Soundblaster-16
  416. Soundblaster-AWE64                     StarOffice
  417. Swap-Space                             Term-Firewall
  418. Tiny-News                              Token-Ring
  419. Upgrade                                VPN
  420. Virtual-wu-ftpd                        Visual-Bell
  421. Win95+Win+Linux                        Windows-Modem-Sharing
  422. WordPerfect                            X-Big-Cursor
  423. XFree86-XInside                        Xterm-Title
  424. Xterminal                              ZIP-Drive
  425. ZIP-Install
  426. </verb>
  427.  
  428. In addition, translations of the HOWTO's are available from <htmlurl
  429. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/translations"
  430. name="sunsite.unc.edu/pub/Linux/docs/HOWTO/translations"> and mirrors
  431. worldwide.  Translations in the following languages are available:
  432.  
  433. <verb>
  434. Chinese (zh)                    Croatian(hr)
  435. French (fr)                     German (de)
  436. Hellenic (el)                   Indonesian (id)
  437. Italian (it)                    Japanese (jp)
  438. Korean (ko)                     Polish (pl)
  439. Spanish (es)                    Slovenian (sl)
  440. Swedish (sv)                    Turkish (tr)
  441. </verb>
  442.  
  443. The HOWTO's are also on the Web, at the Linux Documentation Project's
  444. Home Page, <htmlurl url="http://sunsite.unc.edu/LDP"
  445. name="http://sunsite.unc.edu/LDP">.
  446.  
  447. More of these documents are always in preparation.  Please get in
  448. touch with Timothy Bynum, <htmlurl url="mailto:tjbynum@sunsite.unc.edu"
  449. name="tjbynum@sunsite.unc.edu">, the HOWTO coordinator, if you are
  450. interested in writing one.  The file <htmlurl
  451. url="ftp://sunsite.unc.edu/pub/Linux/HOWTO/HOWTO-INDEX"
  452. name="sunsite.unc.edu/pub/Linux/HOWTO/HOWTO-INDEX"> contains
  453. guidelines for writing a HOWTO.  He has a Web page that lists current
  454. HOWTO updates and additions at <htmlurl
  455. url="wallybox.cei.net/~tjbynum/HOWTO/projects"
  456. name="wallybox.cei.net/~tjbynum/HOWTO/projects">.
  457.  
  458. The Guide Series produced by the Linux Documentation Project is
  459. available from <htmlurl url="http://sunsite.unc.edu/LDP"
  460. name="http://sunsite.unc.edu/LDP">.  Please read them if you are new
  461. to Unix and Linux.  Here is a list of those available so far:
  462.  
  463. <itemize>
  464. <item><htmlurl url="http://sunsite.unc.edu/LDP/LDP-Manifesto"
  465. name="The Linux Documentation Project Manifesto">, by Matt Welsh.
  466. <item><htmlurl url="http://sunsite.unc.edu/LDP/gs/gs.html"
  467. name="Installation and Getting Started Guide">, by Matt Welsh.
  468. <item><htmlurl
  469. url="ftp://sunsite.unc.edu/pub/Linux/docs/linux-doc-project/linux-kernel"
  470. name="The Linux Kernel">, by David Rusling.  <item><htmlurl
  471. url="http://sunsite.unc.edu/LDP/nag/nag.html" name="The Network
  472. Administrator's Guide">, by Olaf Kirch.
  473. <item><htmlurl url="http://linuxwww.db.erau.edu/LPG/" name="The Linux
  474. Programmer's Guide">, by Sven Goldt, Sven van der Meer, Scott Burkett,
  475. and Matt Welsh.
  476. <item><htmlurl url="http://sunsite.unc.edu/LDP/LDP/sag-0.5" name="The
  477. Linux System Administrator's Guide, Version 0.5">, by Lars Wirzenius.
  478. </itemize>
  479.  
  480. In addition, there is a FAQ for Linux kernel developers at <htmlurl
  481. url="http://www.tux.org/lkml/" name="http://www.tux.org/html/">.
  482.  
  483. -------------------------------------------------------------------------------
  484.  
  485. <sect1>Where should I look on the World Wide Web for Linux stuff? <label id="Where should I look on the World Wide Web for Linux stuff?">
  486. <P>
  487.  
  488. Two Web pages in particular provide good starting point for general
  489. Linux information: Linux International's Home Page, at <htmlurl
  490. url="http://www.li.org" name="http://www.li.org">, and the Linux
  491. Online's Linux Home Page at <htmlurl url="http://www.linux.org" 
  492. name="http://www.linux.org/">.  
  493.  
  494. Both of these pages provide links to other sites, information about
  495. general information, distributions, new software, documentation, and
  496. news.
  497.  
  498. Greg Hankins, <htmlurl url="mailto:gregh@cc.gatech.edu"
  499. name="gregh@cc.gatech.edu">, maintains the Linux Documentation Project
  500. Home Page, at <htmlurl url="http://sunsite.unc.edu/LDP"
  501. name="http://sunsite.unc.edu/LDP">.  This page refers to all of the
  502. HOWTO's and FAQ's, both those which are available in HTML (WWW)
  503. format, and those which aren't.
  504.  
  505.  
  506.  
  507. -------------------------------------------------------------------------------
  508.  
  509. <sect1>What newsgroups are there for Linux? <label id="What newsgroups are there for Linux?">
  510. <P>
  511. <tt>Comp.os.linux.announce</tt> is the moderated announcements group;
  512. you should read this if you intend to use Linux: it contains
  513. information about software updates, new ports, user group meetings,
  514. and commercial products.  It is the ONLY newsgroup that may carry
  515. commercial postings.  Submissions for that group should be e-mailed to
  516. <htmlurl url="mailto:linux-announce@news.ornl.gov"
  517. name="linux-announce@news.ornl.gov">.
  518.  
  519. <tt>comp.os.linux.announce</tt>, however, is not archived on DejaNews
  520. or Alta Vista.  The only archive for the news group seems to be
  521. <htmlurl url="http://www.iki.fi/mjr/linux/cola.html"
  522. name="www.iki.fi/mjr/linux/cola.html">.
  523.  
  524. [Axel Boldt]
  525.  
  526. Also worth reading are the following other groups in the
  527. <tt>comp.os.linux.*</tt> hierarchy--you may find many common
  528. problems too recent for the documentation but are answered in the
  529. newsgroups.  
  530. <verb>
  531. comp.os.linux.setup
  532. comp.os.linux.hardware
  533. comp.os.linux.networking
  534. comp.os.linux.x
  535. comp.os.linux.development.apps
  536. comp.os.linux.development.system
  537. comp.os.linux.advocacy
  538. comp.os.linux.misc
  539. </verb>
  540.  
  541. Remember that Linux is POSIX compatible, and most all of the
  542. material in <tt>comp.unix.*</tt> and <tt>comp.windows.x.*</tt> groups
  543. will be relevant.  Apart from hardware considerations, and some
  544. obscure or very technical low-level issues, you'll find that these
  545. groups are good places to start.
  546.  
  547. Please read ``<ref id="You still haven't answered my question!">''
  548. before posting.  Cross posting between different
  549. <tt>comp.os.linux.*</tt> groups is rarely a good idea.
  550.  
  551. There may well be Linux groups local to your institution or area--check
  552. there first.
  553.  
  554. See also ``<ref id="I don't have Usenet access.  Where do I get
  555. information?">''
  556.  
  557. Other regional and local newsgroups also exist--you may find the
  558. traffic more manageable there.  The French Linux newsgroup is
  559. <tt>fr.comp.os.linux</tt>. The German one is
  560. <tt>de.comp.os.linux</tt>.  In Australia, try
  561. <tt>aus.computers.linux</tt>.  In Croatia there is
  562. <tt>hr.comp.linux</tt>.  In Italy, there is <tt>it.comp.linux</tt>.
  563.  
  564. -------------------------------------------------------------------------------
  565. <sect1>Where can I find out about Linux and the Millennium (Y2K) bug? <label
  566. id="Where can I find out about Linux and the Millennium (Y2K) bug?">
  567. <P>
  568. The Debian/GNU Linux people have a statement on their Web site at
  569. <htmlurl url="http://www.debian.org" name="http://www.debian.org">
  570.  
  571. Essentially, Linux uses libraries that store dates as 32-bit integers,
  572. which count the seconds since 1970.  This counter will not overflow
  573. until the year 2038, by which time the library programmers will
  574. (hopefully) have upgraded the system software to store dates as 64-bit
  575. integers.
  576.  
  577. This, of course, does not mean that applications are not susceptible
  578. to the millennium bug, if they do not use the standard library
  579. routines.
  580.  
  581. The Free Software Foundation has a Web page about Y2K issues in GNU software
  582. at <htmlurl url="http://www.fsf.org/software/year2000.html"
  583. name="http://www.fsf.org/software/year2000.html">
  584.  
  585. There is also a Usenet newsgroup, comp.software.year-2000, for general
  586. discussion of Y2K issues.
  587.  
  588. -------------------------------------------------------------------------------
  589.  
  590. <sect1>Where can I get Linux material by FTP? <label id="Where can I get Linux material by FTP?">
  591. <P>
  592. There are three main archive sites for Linux:
  593. <itemize>
  594. <item><htmlurl url="ftp://ftp.funet.fi/pub/OS/Linux"
  595. name="ftp.funet.fi (Finland) : /pub/OS/Linux">
  596. <item><htmlurl url="ftp://sunsite.unc.edu/pub/Linux"
  597. name="sunsite.unc.edu (US) : /pub/Linux"> <item><htmlurl
  598. url="ftp://tsx-11.mit.edu/pub/linux" name="tsx-11.mit.edu (US) : 
  599. /pub/linux">
  600. </itemize>
  601. The best place to get the Linux kernel is <htmlurl
  602. url="ftp://ftp.cs.helsinki.fi/pub/Linux_Kernel"
  603. name="ftp.cs.helsinki.fi/pub/Linux_Kernel">.  Linus Torvalds uploads
  604. the most recent kernel versions to this site.
  605.  
  606. Of the U.S. distributions, Debian GNU/Linux is available at <htmlurl
  607. url="ftp://ftp.debian.org/pub/debian"
  608. name="ftp.debian.org/pub/debian">. Red Hat Linux's home site is
  609. <htmlurl url="ftp://ftp.redhat.com" name="ftp.redhat.com">, and
  610. Linux Slackware's is <htmlurl url="ftp.cdrom.com" name="ftp.cdrom.com">.
  611.  
  612. The contents of these sites is mirrored (copied, usually approximately
  613. daily) by a number of other sites.  Please use a site close to you--it
  614. will be faster for you and easier on the network.
  615. <itemize>
  616. <item><htmlurl url="ftp://ftp.sun.ac.za/pub/linux/sunsite/"
  617. name="ftp.sun.ac.za/pub/linux/sunsite/"> (South Africa)
  618. <item><htmlurl url="ftp://ftp.is.co.za/linux/sunsite/"
  619. name="ftp.is.co.za/linux/sunsite/"> (South Africa)
  620. <item><htmlurl url="ftp://ftp.cs.cuhk.hk/pub/Linux/"
  621. name="ftp.cs.cuhk.hk/pub/Linux/"> (Hong Kong)
  622. <item><htmlurl url="ftp://sunsite.ust.hk/pub/Linux/"
  623. name="ftp.cs.cuhk.hk/pub/Linux/"> (Hong Kong)
  624. <item><htmlurl url="ftp://ftp.spin.ad.jp/pub/linux/sunsite.unc.edu/"
  625. name="ftp.spin.ad.jp/pub/linux/sunsite.unc.edu/"> (Japan)
  626. <item><htmlurl url="ftp://ftp.nuri.net/pub/Linux/"
  627. name="ftp.nuri.net/pub/Linux/"> (Korea)
  628. <item><htmlurl url="ftp://ftp.jaring.my/pub/Linux/"
  629. name="ftp.jaring.my/pub/Linux/"> (Malaysia)
  630. <item><htmlurl url="ftp://ftp.nus.sg/pub/unix/Linux/"
  631. name="ftp.nus.sg/pub/unix/Linux/"> (Singapore)
  632. <item><htmlurl url="ftp://ftp.nectec.or.th/pub/mirrors/linux/"
  633. name="ftp.nectec.or.th/pub/mirrors/linux/"> (Thailand)
  634. <item><htmlurl url="ftp://mirror.aarnet.edu.au/pub/linux/"
  635. name="mirror.aarnet.edu.au/pub/linux/"> (Australia) 
  636. <item><htmlurl url="ftp://sunsite.anu.edu.au/pub/linux/"
  637. name="sunsite.anu.edu.au/pub/linux/"> (Australia)
  638. <item><htmlurl url="ftp://ftp.monash.edu.au/pub/linux/"
  639. name="ftp.monash.edu.au/pub/linux/"> (Australia)
  640. <item><htmlurl url="ftp://ftp.univie.ac.at/systems/linux/sunsite/"
  641. name="ftp.univie.ac.at/systems/linux/sunsite/"> (Austria)
  642. <item><htmlurl url="ftp://ftp.fi.muni.cz/pub/UNIX/linux/"
  643. name="ftp.fi.muni.cz/pub/UNIX/linux/"> (Czech Republic)
  644. <item><htmlurl url="ftp://sunsite.fri.uni-lj.si/pub/linux/" 
  645. name="ftp://sunsite.fri.uni-lj.si/pub/linux/"> (Slovenia)
  646. <item><htmlurl url="ftp://ftp.funet.fi/pub/Linux/sunsite/"
  647. name="ftp.funet.fi/pub/Linux/sunsite/"> (Finland)
  648. <item><htmlurl url="ftp://ftp.univ-angers.fr/pub/Linux/"
  649. name="ftp.univ-angers.fr/pub/Linux/"> (France)
  650. <item><htmlurl url="ftp://ftp.iut-bm.univ-fcomte.fr"
  651. name="ftp.iut-bm.univ-fcomte.fr"> (France)
  652. <item><htmlurl url="ftp://ftp.ibp.fr/pub/linux/sunsite/"
  653. name="ftp.ibp.fr/pub/linux/sunsite/"> (France)
  654. <item><htmlurl url="ftp://ftp.loria.fr/pub/linux/sunsite/"
  655. name="ftp.loria.fr/pub/linux/sunsite/"> (France)
  656. <item><htmlurl url="ftp://ftp.dfv.rwth-aachen.de/pub/linux/sunsite/"
  657. name="ftp.dfv.rwth-aachen.de/pub/linux/sunsite/"> (Germany)
  658. <item><htmlurl
  659. url="ftp://ftp.germany.eu.net/pub/os/Linux/Mirror.SunSITE/"
  660. name="ftp.germany.eu.net/pub/os/Linux/Mirror.SunSITE/"> (Germany)
  661. <item><htmlurl url="ftp://ftp.tu-dresden.de/pub/Linux/sunsite/"
  662. name="ftp.tu-dresden.de/pub/Linux/sunsite/"> (Germany)
  663. <item><htmlurl
  664. url="ftp://ftp.uni-erlangen.de/pub/Linux/MIRROR.sunsite/"
  665. name="ftp.uni-erlangen.de/pub/Linux/MIRROR.sunsite/"> (Germany)
  666. <item><htmlurl url="ftp://ftp.gwdg.de/pub/linux/mirrors/sunsite/"
  667. name="ftp.gwdg.de/pub/linux/mirrors/sunsite/"> (Germany)
  668. <item><htmlurl
  669. url="ftp://ftp.rz.uni-karlsruhe.de/pub/linux/mirror.sunsite/"
  670. name="ftp.rz.uni-karlsruhe.de/pub/linux/mirror.sunsite/"> (Germany)
  671. <item><htmlurl
  672. url="ftp://ftp.ba-mannheim.de/pub/linux/mirror.sunsite/"
  673. name="ftp.ba-mannheim.de/pub/linux/mirror.sunsite/"> (Germany)
  674. <item><htmlurl
  675. url="ftp://ftp.uni-paderborn.de/pub/Mirrors/sunsite.unc.edu/"
  676. name="ftp.uni-paderborn.de/pub/Mirrors/sunsite.unc.edu/"> (Germany)
  677. <item><htmlurl url="ftp://ftp.uni-rostock.de/Linux/sunsite/"
  678. name="ftp.uni-rostock.de/Linux/sunsite/"> (Germany)
  679. <item><htmlurl
  680. url="ftp://ftp.rus.uni-stuttgart.de/pub/unix/systems/linux/MIRROR.sunsite/"
  681. name="tp.rus.uni-stuttgart.de/pub/unix/systems/linux/MIRROR.sunsite/">
  682. (Germany)
  683. <item><htmlurl
  684. url="ftp://ftp.uni-tuebingen.de/pub/linux/Mirror.sunsite/"
  685. name="ftp.uni-tuebingen.de/pub/linux/Mirror.sunsite/"> (Germany)
  686. <item><htmlurl
  687. url="ftp://ftp.rz.uni-ulm.de/pub/mirrors/linux/sunsite/"
  688. name="ftp.rz.uni-ulm.de/pub/mirrors/linux/sunsite/"> (Germany)
  689. <item><htmlurl url="ftp://ftp.kfki.hu/pub/linux/"
  690. name="ftp.kfki.hu/pub/linux/"> (Hungary)
  691. <item><htmlurl url="ftp://linux.italnet.it/pub/Linux/"
  692. name="linux.italnet.it/pub/Linux/"> (Italy)
  693. <item><htmlurl url="ftp://ftp.unina.it/pub/linux/sunsite/"
  694. name="ftp.unina.it/pub/linux/sunsite/"> (Italy)
  695. <item><htmlurl url="ftp://giotto.unipd.it/pub/unix/Linux/"
  696. name="giotto.unipd.it/pub/unix/Linux/"> (Italy)
  697. <item><htmlurl url="ftp://cnuce-arch.cnr.it/pub/Linux/"
  698. name="cnuce-arch.cnr.it/pub/Linux/"> (Italy)
  699. <item><htmlurl url="ftp://ftp.flashnet.it/mirror2/sunsite.unc.edu/"
  700. name="ftp.flashnet.it/mirror2/sunsite.unc.edu/"> (Italy)
  701. <item><htmlurl
  702. url="ftp://ftp.nijenrode.nl/pub/linux/sunsite.unc-mirror/"
  703. name="ftp.nijenrode.nl/pub/linux/sunsite.unc-mirror/"> (Netherlands)
  704. <item><htmlurl url="ftp://ftp.LeidenUniv.nl/pub/linux/sunsite/"
  705. name="ftp.LeidenUniv.nl/pub/linux/sunsite/"> (Netherlands)
  706. <item><htmlurl url="ftp://ftp.nvg.unit.no/pub/linux/sunsite/"
  707. name="ftp.nvg.unit.no/pub/linux/sunsite/"> (Norway)
  708. <item><htmlurl
  709. url="ftp://sunsite.icm.edu.pl/pub/Linux/sunsite.unc.edu/"
  710. name="ftp://sunsite.icm.edu.pl/pub/Linux/sunsite.unc.edu/"> (Poland)
  711. <item><htmlurl url="ftp://ftp.rediris.es/software/os/linux/sunsite/"
  712. name="ftp.rediris.es/software/os/linux/sunsite/"> (Spain)
  713. <item><htmlurl url="ftp://sunsite.rediris.es/software/linux/"
  714. name="sunsite.rediris.es/software/linux/"> (Spain)
  715. <item><htmlurl url="ftp://ftp.cs.us.es/pub/Linux/sunsite-mirror/"
  716. name="ftp.cs.us.es/pub/Linux/sunsite-mirror/"> (Spain)
  717. <item><htmlurl url="ftp://ftp.etse.urv.es/pub/mirror/linux/"
  718. name="ftp.etse.urv.es/pub/mirror/linux/"> (Spain)
  719. <item><htmlurl url="ftp://ftp.etsimo.uniovi.es/pub/linux/"
  720. name="ftp.etsimo.uniovi.es/pub/linux/"> (Spain)
  721. <item><htmlurl url="ftp://ftp.luna.gui.es/pub/linux.new/"
  722. name="ftp.luna.gui.es/pub/linux.new/"> (Spain)
  723. <item><htmlurl url="ftp://ftp.switch.ch/mirror/linux/"
  724. name="ftp.switch.ch/mirror/linux/"> (Switzerland)
  725. <item><htmlurl url="ftp://ftp.metu.edu.tr/pub/linux/sunsite/"
  726. name="ftp.metu.edu.tr/pub/linux/sunsite/"> (Turkey)
  727. <item><htmlurl url="ftp://unix.hensa.ac.uk/mirrors/sunsite/pub/Linux/"
  728. name="unix.hensa.ac.uk/mirrors/sunsite/pub/Linux/"> (UK)
  729. <item><htmlurl
  730. url="ftp://ftp.maths.warwick.ac.uk/mirrors/linux/sunsite.unc-mirror/"
  731. name="ftp.maths.warwick.ac.uk/mirrors/linux/sunsite.unc-mirror/"> (UK)
  732. <item><htmlurl
  733. url="ftp://ftp.idiscover.co.uk/pub/Linux/sunsite.unc-mirror/"
  734. name="ftp.idiscover.co.uk/pub/Linux/sunsite.unc-mirror/"> (UK)
  735. <item><htmlurl
  736. url="ftp://sunsite.doc.ic.ac.uk/packages/linux/sunsite.unc-mirror/"
  737. name="sunsite.doc.ic.ac.uk/packages/linux/sunsite.unc-mirror/"> (UK)
  738. <item><htmlurl url="ftp://ftp.dungeon.com/pub/linux/sunsite-mirror/"
  739. name="ftp.dungeon.com/pub/linux/sunsite-mirror/"> (UK)
  740. <item><htmlurl url="ftp://ftp.io.org/pub/mirrors/linux/sunsite/"
  741. name="ftp.io.org/pub/mirrors/linux/sunsite/"> (Canada)
  742. <item><htmlurl url="ftp://ftp.cc.gatech.edu/pub/linux/"
  743. name="ftp.cc.gatech.edu/pub/linux/"> (US)
  744. <item><htmlurl url="ftp://ftp.cdrom.com/pub/linux/sunsite/"
  745. name="ftp.cdrom.com/pub/linux/sunsite/"> (US)
  746. <item><htmlurl url="ftp://ftp.siriuscc.com/pub/Linux/Sunsite/"
  747. name="ftp.siriuscc.com/pub/Linux/Sunsite/"> (US)
  748. <item><htmlurl url="ftp://ftp.engr.uark.edu/pub/linux/sunsite/"
  749. name="ftp.engr.uark.edu/pub/linux/sunsite/"> (US)
  750. <item><htmlurl
  751. url="ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/"
  752. name="ftp.infomagic.com/pub/mirrors/linux/sunsite/"> (US)
  753. <item><htmlurl
  754. url="ftp://linux.if.usp.br/pub/mirror/sunsite.unc.edu/pub/Linux/"
  755. name="linux.if.usp.br/pub/mirror/sunsite.unc.edu/pub/Linux/"> (Brazil)
  756. <item><htmlurl url="ftp://farofa.ime.usp.br/pub/linux/"
  757. name="farofa.ime.usp.br/pub/linux/"> (Brazil)
  758. </itemize>
  759.  
  760. Not all of these mirror all of the other ``source'' sites, and some have
  761. material not available on the ``source'' sites.
  762.  
  763. -------------------------------------------------------------------------------
  764.  
  765. <sect1>I don't have FTP access.  Where do I get Linux? <label id="I don't have FTP access.  Where do I get Linux?">
  766. <P>
  767. The easiest thing is probably to find a friend with FTP access.  If there
  768. is a Linux user's group near you, they may be able to help.
  769.  
  770. If you have a reasonably good email connection, you could try the
  771. FTP-by-mail servers at <htmlurl
  772. url="mailto:ftpmail@ftp.sunet.se"
  773. name="ftpmail@ftp.sunet.se">, <htmlurl
  774. url="mailto:ftpmail@garbo.uwasa.fi" name="ftpmail@garbo.uwasa.fi">, or
  775. <htmlurl url="mailto:ftpmail@ftp.uni-stuttgart.de"
  776. name="ftpmail@ftp.uni-stuttgart.de">.
  777.  
  778. Linux is also available via traditional mail on CD-ROM.  The file
  779. <htmlurl
  780. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Installation-HOWTO"
  781. name="sunsite.unc.edu/pub/Linux/docs/HOWTO/Installation-HOWTO">, and
  782. the file
  783. <htmlurl
  784. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Distribution-HOWTO"
  785. name="sunsite.unc.edu/pub/Linux/docs/HOWTO/Distribution-HOWTO">
  786. contain information on these distributions.
  787.  
  788. -------------------------------------------------------------------------------
  789.  
  790. <sect1>I don't have Usenet access.  Where do I get information? <label id="I don't have Usenet access.  Where do I get information?">
  791. <P>
  792. A digest of comp.os.linux.announce is available by mailing the word
  793. ``subscribe'' (without the quotes) as the body of a message to
  794. <htmlurl url="mailto:linux-announce-REQUEST@news-digests.mit.edu"
  795. name="linux-announce-REQUEST@news-digests.mit.edu">.  Subscribing to
  796. this list is a good idea, as it carries important information and
  797. documentation about Linux.
  798.  
  799. Please remember to use the <tt>*-request</tt> addresses for your
  800. subscribe and unsubscribe messages; mail to the other address is
  801. posted to the news group.
  802.  
  803. -------------------------------------------------------------------------------
  804.  
  805. <sect1>What mailing lists are there? <label id="What mailing lists are there?">
  806. <P>
  807. The Linux developers now mainly use the Majordomo server at <htmlurl
  808. url="mailto:majordomo@vger.rutgers.edu"
  809. name="majordomo@vger.rutgers.edu">.  Send a message with the word
  810. ``lists'' (without the quotes) in the body to get a list of lists
  811. there.  Add a line with the word, ``help,'' to get the standard
  812. Majordomo help file that lists instructions for subscribing and
  813. unsubscribing to the lists.
  814.  
  815. Most of the lists are used by Linux developers to talk about technical
  816. issues and future developments.  These are not intended for new users'
  817. questions.
  818.  
  819. There is a <tt>linux-newbie</tt> list where, ``no question is too
  820. stupid.''  Unfortunately, it seems that few experienced users read
  821. that list, and it has very low volume.
  822.  
  823. -------------------------------------------------------------------------------
  824.  
  825. <sect1>Are the newsgroups archived anywhere? <label id="Are the newsgroups archived anywhere?">
  826. <P>
  827.  
  828. The Usenet Linux news groups are archived at <htmlurl
  829. url="http://www.dejanews.com" name="http://www.dejanews.com">,
  830. <htmlurl url="http://www.reference.com"
  831. name="http://www.reference.com">, and <htmlurl
  832. url="http://altavista.digital.com/"
  833. name="http://altavista.digital.com">
  834.  
  835.  
  836. <htmlurl
  837. url="ftp://sunsite.unc.edu//pub/Linux/docs/linux-announce.archive"
  838. name="Sunsite.unc.edu/pub/Linux/docs/linux-announce.archive">
  839. contains archives of <tt>comp.os.linux.announce</tt>.  These are
  840. mirrored from <htmlurl url="ftp://src.doc.ic.ac.uk/usenet"
  841. name="src.doc.ic.ac.uk/usenet">, which also archives
  842. <tt>comp.os.linux</tt>, <tt>comp.os.linux.development.apps</tt>, and
  843. <tt>comp.os.linux.development.system</tt>.
  844.  
  845. There is an `easy to access' archive of
  846. <tt>comp.os.linux.announce</tt> on the World Wide Web at <htmlurl
  847. url="http://www.leo.org/archiv/linux/archiv/ann_index.html"
  848. name="http://www.leo.org/archiv/linux/archiv/ann_index.html"> which
  849. supports searching and browsing.
  850.  
  851. ===============================================================================
  852.  
  853. <sect>Compatibility with other operating systems. <label id="Compatibility with other operating systems.">
  854. <P>
  855. -------------------------------------------------------------------------------
  856.  
  857. <sect1>Can Linux share my disk with DOS?  OS/2?  386BSD?  Win95? <label id="Can Linux share my disk with DOS?  OS/2?  386BSD?  Win95?">
  858. <P>
  859. Yes.  Linux uses the standard MS-DOS partitioning scheme, so it can
  860. share your disk with other operating systems.  Note, however, that
  861. many other operating systems may not be exactly compatible.  DOS's
  862. <tt>FDISK.EXE</tt> and <tt>FORMAT.EXE</TT>, for example, can overwrite
  863. data in a Linux partition, because they sometimes incorrectly use
  864. partition data from the partition's boot sector rather than the
  865. partition table.
  866.  
  867. In order to prevent programs from doing this, it is a good
  868. idea to zero out--under Linux--the start of a partition you
  869. created, before you use MS-DOS--or whatever--to format it.  Type:
  870. <verb>
  871. $ dd if=/dev/zero of=/dev/hdXY bs=512 count=1
  872. </verb>
  873. where <tt>hdXY</tt> is the relevant partition; e.g., <tt>/dev/hda1</tt> for
  874. the first partition of the first (IDE) disk.
  875.  
  876. Linux can read and write the files on your DOS and OS/2 FAT partitions
  877. and floppies using either the DOS file system type built into the
  878. kernel or mtools.  There is kernel support for the VFAT file system
  879. used by Windows 9x and Windows NT.
  880.  
  881. For information about FAT32 partition support, see <htmlurl 
  882. url="http://bmrc.berkeley.edu/people/chaffee/fat32.html" 
  883. name="http://bmrc.berkeley.edu/people/chaffee/fat32.html">.
  884.  
  885. See, ``<ref id="What software does Linux support?">'' for details and
  886. status of the emulators for DOS, MS Windows, and System V programs.
  887.  
  888. See also, ``<ref id="Can Linux access Amiga file systems?">'',
  889. ``<ref id="Can Linux access Macintosh file systems?">'',
  890. ``<ref id="Can Linux access BSD, SysV, etc., UFS?">'', and
  891. ``<ref id="Can Linux access SMB file systems?">''
  892.  
  893. There are said to be NTFS drivers under development, which 
  894. should support compression as a standard feature.
  895.  
  896.  
  897. -------------------------------------------------------------------------------
  898.  
  899. <sect1>How do I access files on my DOS partition or floppy? <label id="How do I access files on my DOS partition or floppy?">
  900. <P>
  901. Use the DOS file system, type, for example:
  902. <verb>
  903. $ mkdir /dos
  904. $ mount -t msdos -o conv=text,umask=022,uid=100,gid=100 /dev/hda3 /dos
  905. </verb>
  906. If it's a floppy, don't forget to umount it before ejecting it!
  907.  
  908. You can use the <tt>conv=text/binary/auto</tt>, <tt>umask=nnn</tt>,
  909. <tt>uid=nnn</tt>, and <tt>gid=nnn</tt> options to control the
  910. automatic line-ending conversion, permissions and ownerships of the
  911. files in the DOS file system as they appear under Linux.  If you mount
  912. your DOS file system by putting it in your <tt>/etc/fstab</tt>, you can
  913. record the options (comma-separated) there, instead of defaults.
  914.  
  915. Alternatively, you can use mtools, available in both binary and source
  916. form on the FTP sites.  (``<ref id="Where can I get Linux material by
  917. FTP?">'')
  918.  
  919. A kernel patch (known as the fd-patches) is available which allows
  920. floppies with nonstandard numbers of tracks and/or sectors to be used;
  921. this patch is included in the 1.1 alpha testing kernel series.
  922.  
  923. -------------------------------------------------------------------------------
  924. <sect1>Does Linux support compressed ext2 file systems? <label id="Does
  925. Linux support compressed ext2 file systems?">
  926. <P>
  927. As of recently, it does.  Information about them is located at 
  928. <htmlurl url="http://www.netspace.net.au/~reiter/e2compr/" name="http://www.netspace.net.au/˜reiter/e2compr/">.
  929.  
  930. There is also a Web site for the e2compr patches  The code is still
  931. experimental and consists of patches for the 2.0 and 2.1 kernels.  For
  932. more information about the project, including the latest patches, and
  933. the address of the mailing list, look up the URL at
  934. <htmlurl url="http:// debs.fuller.edu/e2compr/" 
  935. name="http://debs.fuller.edu/e2compr/">.   
  936.  
  937. [Roderich Schupp]
  938.  
  939. Zlibc is a program that allows existing applications to read
  940. compressed (GNU gzip'ed) files as if they were not compressed.  Look
  941. on sunsite.unc.edu in /pub/Linux/libs/.  The author is
  942. Alain Knuff.
  943.  
  944. There is also a compressing block device driver, ``DouBle,'' by
  945. Jean-Marc Verbavatz, which can provide on-the-fly disk compression in
  946. the kernel.  The source-only distribution is located at
  947. sunsite.unc.edu in the directory /pub/Linux/patches/diskdrives/.  This
  948. driver compresses inodes and directory information as well as files,
  949. so any corruption of the file system is likely to be serious.
  950.  
  951. There is also a package called tcx (Transparently Compressed
  952. Executables), which allows you to keep infrequently compressed
  953. executables compressed and only uncompress them temporarily when in
  954. use.  It is located on sunsite.unc.edu in the directory
  955. /pub/Linux/utils/compress/.  
  956.  
  957. -------------------------------------------------------------------------------
  958. <sect1>Can I use my Stacked/DBLSPC/etc. DOS drive? <label id="Can I use my Stacked/DBLSPC/etc. DOS drive?">
  959. <P>
  960.  
  961. Until recently, not very easily.  You can access DOS 6.X volumes
  962. from the DOS emulator (``<ref id="What software does Linux
  963. support?">''), but it's harder than accessing a normal DOS volume via
  964. the DOS kernel option, a module, or mtools.
  965.  
  966. There is a recently added package, dmsdos, which reads and writes
  967. compressed file systems like DoubleSpace/DriveSpace in MS-DOS 6.x and
  968. Win95, as well as Stacker versions 3 and 4.  It is available in the
  969. archives on <htmlurl 
  970. url="ftp://sunsite.unc.edu/pub/Linux/system/Filesystem/dosfs" 
  971. name="ftp://sunsite.unc.edu/pub/Linux/system/Filesystem/dosfs">.
  972.  
  973. There is a module available for the Linux kernel which can do
  974. read-only access of compressed volume.  Look at <htmlurl
  975. url="ftp://sunsite.unc.edu/pub/Linux/system/filesystems/dosfs"
  976. name="sunsite.unc.edu/pub/Linux/system/filesystems/dosfs/">.
  977.  
  978. -------------------------------------------------------------------------------
  979.  
  980. <sect1>Can I access OS/2 HPFS partitions from Linux? <label id="Can I access OS/2 HPFS partitions from Linux?">
  981. <P>
  982. Yes, but Linux access to HPFS partitions is read-only.  HPFS
  983. file system access is available as an option when compiling the kernel
  984. or as a module.  See the <tt>Documentation/filesystems/hpfs.txt</tt>
  985. file in the kernel source distribution.  (``<ref id ="How do I
  986. upgrade/recompile my kernel?">'')  Then you can mount HPFS partition,
  987. using, for example:
  988. <verb>
  989. $ mkdir /hpfs
  990. $ mount -t hpfs /dev/hda5 /hpfs
  991. </verb>
  992. -------------------------------------------------------------------------------
  993.  
  994. <sect1>Can Linux access Amiga file systems? <label id="Can Linux access Amiga file systems?">
  995. <P>
  996.  
  997. The Linux kernel has support for the Amiga Fast File System (AFFS)
  998. version 1.3 and later, both as a compile-time option and as a module.
  999. The file <tt>Documentation/filesystems/affs.txt</tt> in the Linux
  1000. kernel source distribution has more information.
  1001.  
  1002. See ``<ref id ="How do I upgrade/recompile my kernel?">''.
  1003.  
  1004. Linux supports AFFS hard-drive partitions only.  Floppy access
  1005. is not supported due to incompatibilities between Amiga floppy
  1006. controllers and PC and workstation controllers.  The AFFS driver can
  1007. also mount disk partitions used by the Un*x Amiga Emulator, by Bernd
  1008. Schmidt.
  1009.  
  1010. -------------------------------------------------------------------------------
  1011.  
  1012. <sect1>Can Linux access BSD, SysV, etc. UFS? <label id="Can Linux access BSD, SysV, etc., UFS?">
  1013. <P>
  1014.  
  1015. Recent kernels can mount (read only) the UFS file system used by System
  1016. V; Coherent; Xenix; BSD; and derivatives like SunOS, FreeBSD, NetBSD,
  1017. and NeXTStep.  UFS support is available as a kernel compile-time
  1018. option and a module.
  1019.  
  1020. See, ``<ref id ="How do I upgrade/recompile my kernel?">''
  1021.  
  1022. -------------------------------------------------------------------------------
  1023.  
  1024. <sect1>Can Linux access SMB file systems? <label id="Can Linux access SMB file systems?">
  1025. <P>
  1026.  
  1027. Linux supports read/write access of Windows for Workgroups and Windows NT
  1028. SMB volumes.  See the file Documentation/filesystems/smbfs.txt of the
  1029. Linux kernel source distribution, and ``<ref id ="How do I
  1030. upgrade/recompile my kernel?">'' in this FAQ.
  1031.  
  1032. There is also a suite of programs called Samba which provide support
  1033. for WfW networked file systems (provided they're for
  1034. TCP/IP).  Information is available in the README file at <htmlurl
  1035. url="ftp://sunsite.unc.edu/pub/Linux/system/network/samba/"
  1036. name="sunsite.unc.edu/pub/Linux/system/network/samba/">. 
  1037.  
  1038. There is a SMB Web site at <htmlurl
  1039. url="http://samba.anu.edu.au/samba/" name="samba.anu.edu.au/samba/">.
  1040.  
  1041. -------------------------------------------------------------------------------
  1042.  
  1043. <sect1>Can Linux access Macintosh file systems? <label id="Can Linux access Macintosh file systems?">
  1044. <P>
  1045.  
  1046. There is a set of user-level programs that read and write the
  1047. Macintosh Hierarchical File System (HFS). It is available at
  1048. <htmlurl url="ftp://sunsite.unc.edu/pub/Linux/utils/disk-management"
  1049. name="sunsite.unc.edu/pub/Linux/utils/disk-management">.  
  1050.  
  1051. -------------------------------------------------------------------------------
  1052.  
  1053. <sect1>Can I run Microsoft Windows programs under Linux? <label id="Can I run Microsoft Windows programs under Linux?">
  1054. <P>
  1055.  
  1056. WINE, a MS Windows emulator for Linux, is still not ready for general
  1057. distribution.  If you want to contribute to its development, look for
  1058. the status reports in the <tt>comp.emulators.ms-windows.wine</tt>
  1059. newsgroup.
  1060.  
  1061. There is also a FAQ, compiled by P. David Gardner, at <htmlurl
  1062. url="ftp://sunsite.unc.edu/pub/Linux/docs/faqs/Wine-FAQ/"
  1063. name="sunsite.unc.edu/pub/Linux/docs/faqs/Wine-FAQ/">.
  1064.  
  1065. In the meantime, if you need to run MS Windows programs, the best
  1066. bet--seriously--is to reboot.  LILO, the Linux boot loader, can boot
  1067. one of several operating systems from a menu.  See the LILO
  1068. documentation for details.
  1069.  
  1070. Also, LOADLIN (a DOS program to load a Linux, or other OS, kernel is
  1071. one way to make Linux co-exist with DOS.  LOADLIN is particularly
  1072. handy when you want to install Linux on a 3rd or 4th drive on a system
  1073. (or when you're adding a SCSI drive to a system with an existing IDE).
  1074.     
  1075. In these cases, it is common for LILO's boot loader to be unable to
  1076. find or load the kernel on the "other" drive.  So you just create a
  1077. C:\LINUX directory (or whatever), put LOADLIN in it with a copy of
  1078. your kernel, and use that.
  1079.  
  1080. LOADLIN is a VCPI compliant program.  Win95 will want to, "shutdown
  1081. into DOS mode," to run it (as it would with certain other DOS
  1082. protected-mode programs).
  1083.  
  1084. Earlier versions of LOADLIN sometimes required a package called
  1085. REALBIOS.COM, which required a boot procedure on an (almost) blank
  1086. floppy to map the REALBIOS interrupt vectors (prior to the loading of
  1087. any software drivers).  (Current versions don't seem to ship with
  1088. it, and don't seem to need it).
  1089.  
  1090. [Jim Dennis]
  1091.  
  1092. -------------------------------------------------------------------------------
  1093.  
  1094. <sect1>How can I boot Linux from OS/2's Boot Manager? <label id="How can I boot Linux from OS/2's Boot Manager?">
  1095. <P>
  1096.  
  1097. <enum>
  1098. <item>Create a partition using OS/2's <tt>FDISK.EXE</tt> (Not Linux's
  1099. <tt>fdisk</tt>).
  1100.  
  1101. <item> Format the partition under OS/2, either with FAT or HPFS.  This is so
  1102. that OS/2 knows about the partition being formatted.  (This step is not
  1103. necessary with OS/2 `warp' 3.0.)
  1104.  
  1105. <item>Add the partition to the Boot Manager.
  1106.  
  1107. <item>Boot Linux, and create a file system on the partition using <tt>mkfs
  1108. -t ext2</tt> or <tt>mke2fs</tt>.  At this point you may, if you like,
  1109. use Linux's <tt>fdisk</tt> to change the code of the new partition to
  1110. type 83 (Linux Native)--this may help some automated installation
  1111. scripts find the right partition to use.
  1112.  
  1113. <item>Install Linux on the partition.
  1114.  
  1115. <item>Install LILO on the Linux partition--NOT on the master boot record of
  1116. the hard drive.  This installs LILO as a second-stage boot loader on the
  1117. Linux partition itself, to start up the kernel specified in the LILO
  1118. configuration file.  To do this, you should put
  1119. <verb>
  1120. boot = /dev/hda2
  1121. </verb>
  1122. (where <tt>/dev/hda2</tt> is the <em>partition</em> you want to boot
  1123. from) in your <tt>/etc/lilo/config</tt> or <tt>/etc/lilo.config</tt>
  1124. file.
  1125.  
  1126. <item>Make sure that it is the Boot Manager partition that is marked active,
  1127. so that you can use Boot Manager to choose what to boot.
  1128. </enum>
  1129.  
  1130. There is a set of HOWTO's on the subject of multi-boot systems on the
  1131. LDP Home Page, <htmlurl url="http://sunsite.unc.edu/LDP/" 
  1132. name="http://sunsite.unc.edu/LDP/">.
  1133.  
  1134. -------------------------------------------------------------------------------
  1135.  
  1136. <sect1>How can I share a swap partition between Linux and MS Windows? <label id="How can I share a swap partition between Linux and MS Windows?">
  1137. <P>
  1138. See the Mini-HOWTO on the subject.  The Mini-HOWTO is currently
  1139. unmaintained but is available at <htmlurl
  1140. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/unmaintained"
  1141. name="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/unmaintained">.
  1142.  
  1143. ===============================================================================
  1144.  
  1145. <sect>Linux's handling of file systems, disks, and drives <label id="Linux's handling of file systems, disks, and drives">
  1146. <P>
  1147. -------------------------------------------------------------------------------
  1148.  
  1149. <sect1>How can I get Linux to work with my disk? <label id="How can I get Linux to work with my disk?">
  1150. <P>
  1151. If your disk is an IDE or EIDE drive, you should read the file
  1152. <tt>/usr/src/linux/drivers/block/README.ide</tt> (part of the Linux
  1153. kernel source code).  This README contains many helpful hints about
  1154. IDE drives.  Many modern IDE controllers do translation between
  1155. `physical' cylinders/heads/sectors, and `logical' ones.
  1156.  
  1157. SCSI disks are accessed by linear block numbers.  The BIOS invents some
  1158. `logical' cylinder/head/sector fiction to support DOS.
  1159.  
  1160. An IBM PC-compatible BIOS will usually not be able to access
  1161. partitions which extend beyond 1024 logical cylinders, and will make
  1162. booting a Linux kernel from such partitions using LILO problematic at
  1163. best.
  1164.  
  1165. You can still use such partitions for Linux or other operating systems
  1166. that access the controller directly.
  1167.  
  1168. It's recommend that you create at least one Linux partition entirely
  1169. under the 1024 logical cylinder limit, and boot from that.  The other
  1170. partitions will then be okay.
  1171.  
  1172. Also there seems to be a bit of trouble with the newer Ultra-DMA
  1173. drives.  I haven't gotten the straight scoop on them--but they are
  1174. becoming a very common problem at the SVLUG installfests.  When you
  1175. can get 8 to 12 Gig drives for $200 to $300 it's no wonder.
  1176.  
  1177. [Jim Dennis]
  1178.  
  1179. -------------------------------------------------------------------------------
  1180.  
  1181. <sect1>How can I undelete files? <label id="How can I undelete files?">
  1182. <P>
  1183. In general, this is very hard to do on Unices because of their
  1184. multitasking nature.  Undelete functionality for the ext2fs file
  1185. system is being worked on, but don't hold your breath.
  1186.  
  1187. There are a number of packages available which instead provide new
  1188. commands for deleting and copying which move deleted files into a
  1189. `wastebasket' directory.  The files can be recovered until cleaned out
  1190. automatically by background processing.
  1191.  
  1192. Alternatively, you can search the raw disk device which holds the file
  1193. system in question.  This is hard work, and you will need to be logged
  1194. in as root to do this.
  1195.  
  1196. -------------------------------------------------------------------------------
  1197.  
  1198. <sect1>Is there a defragmenter for ext2fs etc.? <label id="Is there a defragmenter for ext2fs etc.?">
  1199. <P>
  1200. Yes.  There is <tt>defrag</tt>, a Linux file system defragmenter for
  1201. ext2, Minix, and old-style ext file systems.  It is available at
  1202. <htmlurl
  1203. url="ftp://sunsite.unc.edu/pub/Linux/system/filesystems/defrag-0.70.tar.gz"
  1204. name="sunsite.unc.edu/pub/Linux/system/filesystems/defrag-0.70.tar.gz">.
  1205.  
  1206. Users of the ext2 file system can probably do without <tt>defrag</tt>,
  1207. because ext2 contains extra code to keep fragmentation reduced even in
  1208. very full file systems.
  1209.  
  1210. -------------------------------------------------------------------------------
  1211.  
  1212. <sect1>How do I format and create a file system on a floppy? <label id="How do I format and create a file system on a floppy?">
  1213. <P>
  1214. To format a 3.5-inch, high density floppy:
  1215. <verb>
  1216. $ fdformat /dev/fd0H1440
  1217. $ mkfs -t ext2 -m 0 /dev/fd0H1440 1440
  1218. </verb>
  1219. For a 5.25 inch floppy, use <tt>fd0h1200</tt> and <tt>1200</tt> as
  1220. appropriate.  For the `B' drive use <tt>fd1</tt> instead of
  1221. <tt>fd0</tt>.  
  1222.  
  1223. The <tt>-m 0</tt> option tells <tt>mkfs.ext2</tt> not to reserve any
  1224. space on the disk for the superuser--usually the last 10% is
  1225. reserved for root.
  1226.  
  1227. The first command performs a low-level format.  The second creates an
  1228. empty file system.  You can mount the floppy like a hard disk partition
  1229. and simply <tt>cp</tt> and <tt>mv</tt> files, etc.
  1230.  
  1231. Device naming conventions generally are the same as for other Unices.
  1232. They can be found in Matt Welsh's <em>Installation and Getting
  1233. Started</em> Guide. (See ``<ref id="Where can I get the HOWTO's and other
  1234. documentation?">'') A more detailed and technical description is
  1235. <em>Linux Allocated Devices</em> by H. Peter Anvin, <htmlurl
  1236. url="mailto:hpa@zytor.com" name="hpa@zytor.com">, which is
  1237. included in LaTeX and ASCII form in the kernel source distribution
  1238. (probably in <tt>/usr/src/kernel/Documentation</tt>), as
  1239. <tt>devices.tex</tt> and <tt>devices.txt</tt>.
  1240.  
  1241. -------------------------------------------------------------------------------
  1242.  
  1243. <sect1>I get nasty messages about inodes, blocks, and the like. <label id="I get nasty messages about inodes, blocks, and the like.">
  1244. <P>
  1245. You may have a corrupted file system, probably caused by not shutting
  1246. Linux down properly before turning off the power or resetting.  You need
  1247. to use a recent shutdown program to do this--for example, the one
  1248. included in the util-linux package, available on sunsite and tsx-11.
  1249.  
  1250. If you're lucky, the program fsck (or e2fsck or xfsck as appropriate
  1251. if you don't have the automatic fsck front-end) will be able to repair
  1252. your file system.  If you're unlucky, the file system is trashed, and
  1253. you'll have to re-initialize it with mkfs (or mke2fs, mkxfs, etc.), and
  1254. restore from a backup.
  1255.  
  1256. NB: don't try to check a file system that's mounted read/write--this
  1257. includes the root partition, if you don't see
  1258. <verb>
  1259.    VFS: mounted root ... read-only
  1260. </verb>
  1261. at boot time.
  1262.  
  1263. -------------------------------------------------------------------------------
  1264.  
  1265. <sect1>My swap area isn't working. <label id="My swap area isn't working.">
  1266. <P>
  1267. When you boot (or enable swapping manually) you should see
  1268. <verb>
  1269.         Adding Swap: NNNNk swap-space
  1270. </verb>
  1271. If you don't see any messages at all you are probably missing 
  1272. <verb>
  1273. swapon -av 
  1274. </verb>
  1275. (the command to enable swapping) in your <tt>/etc/rc.local</tt> or
  1276. <tt>/etc/rc.d/*</tt> (the system startup scripts), or have forgotten to
  1277. make the right entry in <tt>/etc/fstab</tt>:
  1278.  
  1279. <verb>
  1280. /dev/hda2       none       swap       sw
  1281. </verb>
  1282. for example.
  1283.  
  1284. If you see
  1285. <verb>
  1286. Unable to find swap-space signature
  1287. </verb>
  1288. you have forgotten to run <tt>mkswap</tt>.  See the manual page for
  1289. details; it works much like <tt>mkfs</tt>.
  1290.  
  1291. Running, 'free' in addition to showing free memory, should display:
  1292. <verb>
  1293.              total       used       free
  1294. Swap:        10188       2960       7228
  1295. </verb>
  1296.  
  1297. [Andy Jefferson]
  1298.  
  1299. Take a look also at the Installation HOWTO for detailed instructions of
  1300. how to set up a swap area.
  1301.  
  1302. -------------------------------------------------------------------------------
  1303.  
  1304. <sect1>How do I remove LILO so my system boots DOS again? <label id="How do I remove LILO so my system boots DOS again?">
  1305. <P>
  1306. Using DOS (MS-DOS 5.0 or later, or OS/2), type <tt>FDISK /MBR</tt>
  1307. (which is not documented).  This will restore a standard MS-DOS Master
  1308. Boot Record.  If you have DR-DOS 6.0, go into FDISK in the normal way
  1309. and then select the `Re-write Master Boot Record' option.
  1310.  
  1311. If you don't have MS-DOS or DR-DOS, you need to have the boot sector that
  1312. LILO saved when you first installed it.  You did keep that file, didn't
  1313. you?  It's probably called <tt>boot.0301</tt> or some such.  Type
  1314. <verb>
  1315.    dd if=boot.0301 of=/dev/hda bs=445 count=1
  1316. </verb>
  1317. (or <tt>/dev/sda</tt> if you're using a SCSI disk).  This may also wipe out your
  1318. partition table, so beware!  If you're desperate, you could use
  1319. <verb>
  1320.    dd if=/dev/zero of=/dev/hda bs=512 count=1
  1321. </verb>
  1322. This will erase your partition table and boot sector completely: you
  1323. can then reformat the disk using your favorite software.  But this
  1324. will render the contents of your disk inaccessible--you'll lose it
  1325. all unless you're an expert.
  1326.  
  1327. Note that the DOS MBR boots whichever (single!) partition is flagged
  1328. as `active'.  You may need to use <tt>fdisk</tt> to set and clear the
  1329. active flags on partitions appropriately.
  1330.  
  1331. -------------------------------------------------------------------------------
  1332.  
  1333. <sect1>Why can't I use fdformat except as root? <label id="Why can't I use fdformat except as root?">
  1334. <P>
  1335. The system call to format a floppy can only be done as root,
  1336. regardless of the permissions of <tt>/dev/fd0*</tt>.  If you want any
  1337. user to be able to format a floppy, try getting the <tt>fdformat2</tt>
  1338. program.  This works around the problems by being setuid to root.
  1339.  
  1340. -------------------------------------------------------------------------------
  1341.  
  1342. <sect1>My ext2fs partitions are checked each time I reboot. <label id="My ext2fs partitions are checked each time I reboot.">
  1343. <P>
  1344. See ``<ref id="EXT2-fs: warning: mounting unchecked file system." 
  1345. name="EXT2-fs: warning: mounting unchecked file system.">''.
  1346.  
  1347. -------------------------------------------------------------------------------
  1348.  
  1349. <sect1>My root file system is read-only! <label id="My root file system is read-only!">
  1350. <P>
  1351. Remount it.  If <tt>/etc/fstab</tt> is correct, you can simply
  1352. <verb>
  1353. mount -n -o remount /
  1354. </verb>
  1355. If <tt>/etc/fstab</tt> is wrong, you
  1356. must give the device name and possibly the type, too: e.g. 
  1357. <verb>
  1358. mount -n -o remount -t ext2 /dev/hda2 /
  1359. </verb>
  1360. To understand how you got into
  1361. this state, see, ``<ref id="EXT2-fs: warning: mounting unchecked
  1362. file system."  name="EXT2-fs: warning: mounting unchecked
  1363. file system.">''
  1364.  
  1365. -------------------------------------------------------------------------------
  1366.  
  1367. <sect1>I have a huge /proc/kcore!  Can I delete it? <label id="I have a huge /proc/kcore!  Can I delete it?">
  1368. <P>
  1369. None of the files in /proc are really there--they're all, ``pretend,'' files
  1370. made up by the kernel, to give you information about the system and don't
  1371. take up any hard disk space.
  1372.  
  1373. /proc/kcore is like an `alias' for the memory in your computer.  Its
  1374. size is the same as the amount of RAM you have, and if you read it as
  1375. a file, the kernel does memory reads.
  1376.  
  1377. -------------------------------------------------------------------------------
  1378.  
  1379. <sect1>My AHA1542C doesn't work with Linux. <label id="My AHA1542C doesn't work with Linux.">
  1380. <P>
  1381. The option to allow disks with more than 1024 cylinders is only
  1382. required as a workaround for a PC-compatible BIOS misfeature and
  1383. should be turned `off' under Linux.  For older Linux kernels you need
  1384. to turn off most of the `advanced BIOS' options--all but the one
  1385. about scanning the bus for bootable devices.
  1386.  
  1387. ===============================================================================
  1388.  
  1389. <sect>Porting, compiling and obtaining programs <label id="Porting, compiling and obtaining programs">
  1390. <P>
  1391. -------------------------------------------------------------------------------
  1392.  
  1393. <sect1>How do I compile programs? <label id="How do I compile programs?">
  1394. <P>
  1395. Most Linux software is written in C and compiled with the GNU C
  1396. compiler.  GCC is a part of every Linux distribution.  The latest 
  1397. compiler version, documentation, and patches are on <htmlurl
  1398. url="ftp://ftp.gnu.org/pub/gnu/" name="ftp://ftp.gnu.org/pub/gnu/">.
  1399.  
  1400. Programs that are written in C++ must be compiled with the GNU G++
  1401. compiler, which is also included in Linux distributions and available
  1402. from the same place as GCC.
  1403.  
  1404. To build version 2.0.x kernels, you will need GCC version 2.7.2.x.
  1405. Trying to build a Linux kernel with a different compiler, like 
  1406. GCC 2.8.x, EGCS, or PGCC, may cause problems until code dependencies 
  1407. of the 2.7.2.x compilers are fixed.  
  1408.  
  1409. Information on the EGCS compiler is at htmlurl
  1410. url="http://egcs.cygnus.com" name="http://egcs.cygnus.com">.
  1411.  
  1412. Note that at this time, the kernel developers are not answering bug
  1413. requests for 2.0.x version kernels, but instead are concentrating on 
  1414. developing 2.1.x version kernels.
  1415.  
  1416. [J.H.M. Dassen]
  1417.  
  1418. -------------------------------------------------------------------------------
  1419.  
  1420.  
  1421. <sect1>How do I port XXX to Linux? <label id="How do I port XXX to Linux?">
  1422. <P>
  1423. In general, Unix programs need very little porting.  Simply follow the
  1424. installation instructions.  If you don't know--and don't know how to
  1425. find out--the answers to some of the questions asked during the
  1426. installation procedure, you can guess, but this tends to produce buggy
  1427. programs.  In this case, you're probably better off asking someone
  1428. else to do the port.
  1429.  
  1430. If you have a BSD-ish program, you should try using
  1431. <tt>-I/usr/include/bsd</tt> and <tt>-lbsd</tt> on the appropriate
  1432. parts of the compilation lines.
  1433.  
  1434. -------------------------------------------------------------------------------
  1435.  
  1436. <sect1>What is ld.so and where do I get it? <label id="What is ld.so and where do I get it?">
  1437. <P>
  1438. <tt>Ld.so</tt> is the dynamic library loader.  Each binary using
  1439. shared libraries used to have about 3K of start-up code to find and
  1440. load the shared libraries.  Now that code has been put in a special
  1441. shared library, <tt>/lib/ld.so</tt>, where all binaries can look for
  1442. it, so that it wastes less disk space, and can be upgraded more
  1443. easily.
  1444.  
  1445. <tt>Ld.so</tt> can be obtained from <htmlurl
  1446. url="ftp://tsx-11.mit.edu/pub/linux/packages/GCC/"
  1447. name="tsx-11.mit.edu/pub/linux/packages/GCC/"> and mirror sites.  The
  1448. latest version at the time of writing is <tt>ld.so.1.9.5.tar.gz</tt>.
  1449.  
  1450. <tt>/lib/ld-linux.so.1</tt> is the same thing for ELF (``<ref
  1451. id="What's all this about ELF?">'') and comes in the same package as
  1452. the <tt>a.out</tt> loader.
  1453.  
  1454. -------------------------------------------------------------------------------
  1455. <sect1>How do I upgrade the libraries withough trashing my system?  <label id="How do I upgrade the libraries withough trashing my system?">
  1456. <P>
  1457.  
  1458. Note: You should always have a rescue disk set ready when you perform
  1459. this procedure, in the likely event that something goes wrong!
  1460.  
  1461. This procedure is especially difficult if you're upgrading very old
  1462. libraries like libc4. But you should be able to keep libc4 on the same
  1463. system with libc5 libraries for the programs that still need them.
  1464. The same holds true for upgrading from libc5 to the newer-yet glibc2
  1465. libraries.
  1466.  
  1467. The problem with upgrading dynamic libraries is that, the moment you
  1468. remove the old libraries, the utilities that you need to upgrade to
  1469. the new version of the libraries don't work.  There are ways around
  1470. around this.  One is to temporarily place a spare copy of the run
  1471. time libraries, which are in /lib/, in /usr/lib/, or /usr/local/lib/,
  1472. or another directory that is listed in the /etc/ld.so.conf file.
  1473.  
  1474. For example, when upgrading libc5 libraries, the files in /lib/ might
  1475. look something like:
  1476.  
  1477. <verb>
  1478. libc.so.5
  1479. libc.so.5.4.33
  1480. libm.so.5
  1481. libm.so.5.0.9
  1482. </verb>
  1483. These are the C libraries and the math libraries.  Copy them to
  1484. another directory that is listed in /etc/ld.so.conf, like /usr/lib/.
  1485.  
  1486. <verb>
  1487. cp -df /lib/libc.so.5* /usr/lib/
  1488. cp -df /lib/libm.so.5* /usr/lib/
  1489. ldconfig
  1490. </verb>
  1491. Be sure to run ldconfig to upgrade the library configuration.
  1492.  
  1493. The files libc.so.5 and libm.so.5 are symbolic links to the actual
  1494. library files.  When you upgrade, the new links will not be created if
  1495. the old links are still there, unless you use the -f flag with cp.
  1496. The -d flag to cp will copy the symbolic link itself, and not the file
  1497. it points to.
  1498.  
  1499. If you need to overwrite the link to the library directly, use the -f
  1500. flag with ln.
  1501.  
  1502. For example, to copy new libraries over the old ones, try this.  Make
  1503. a symbolic link to the new libraries first, then copy both the libraries
  1504. and the links to /lib/, with the following commands.
  1505. <verb>
  1506. ln -sf ./libm.so.5.0.48 libm.so.5
  1507. ln -sf ./libc.so.5.0.48 libc.so.5
  1508. cp -df libm.so.5* /lib
  1509. cp -df libc.so.5* /lib
  1510. </verb>
  1511. Again, remember to run ldconfig after you copy the libraries.
  1512.  
  1513. If you are satisfied that everything is working correctly, you can
  1514. remove the temporary copies of the old libraries from /usr/lib/ or
  1515. wherever you copied them.
  1516.  
  1517. -------------------------------------------------------------------------------
  1518.  
  1519. <sect1>Has anyone ported / compiled / written XXX for Linux? <label id="Has anyone ported / compiled / written XXX for Linux?">
  1520. <P>
  1521. First, look in the Linux Software Map--it's at <htmlurl
  1522. url="ftp://sunsite.unc.edu/pub/Linux/docs/linux-software-map"
  1523. name="sunsite.unc.edu/pub/Linux/docs/linux-software-map">, and on the
  1524. other FTP sites.  A search engine is available on the World Wide Web
  1525. at <htmlurl url="http://www.boutell.com/lsm/"
  1526. name="http://www.boutell.com/lsm/">.
  1527.  
  1528. Check the FTP sites (``<ref id="Where can I get Linux material by
  1529. FTP?">'') first--search the <tt>ls-lR</tt> or <tt>INDEX</tt> files
  1530. for appropriate strings.
  1531.  
  1532. Also look at the Linux Projects Map, <htmlurl
  1533. url="ftp://ftp.ix.de/pub/ix/Linux/docs/Projects-Map.gz"
  1534. name="ftp.ix.de/pub/ix/Linux/docs/Projects-Map.gz">.
  1535.  
  1536. There's a search engine for Linux FTP archives at
  1537. http://lfw.linuxhq.com/
  1538.  
  1539. Also check out the Freshmeat Web site <htmlurl
  1540. url="http://www.freshmeat.org" name="http://www.freshmeat.org">,
  1541. which is really cool.  (``<ref id="What online/free periodicals exist
  1542. for Linux?">'' 
  1543.  
  1544. If you don't find anything, you could download the sources to
  1545. the program yourself and compile them.  See ``<ref id="How do I port
  1546. XXX to Linux?">'' If it's a large package that may require some
  1547. porting, post a message to <tt>comp.os.linux.development.apps</tt>.
  1548.  
  1549. If you compile a large-ish program, please upload it to one or more of
  1550. the FTP sites, and post a message to <tt>comp.os.linux.announce</tt>
  1551. (submit your posting to <htmlurl
  1552. url="mailto:linux-announce@news.ornl.gov"
  1553. name="linux-announce@news.ornl.gov">).
  1554.  
  1555. If you're looking for an application program, the chances are that
  1556. someone has already written a free version.  The
  1557. <tt>comp.sources.wanted</tt> FAQ has instructions for finding the
  1558. source code.
  1559.  
  1560. -------------------------------------------------------------------------------
  1561.  
  1562. <sect1>Can I use code or a compiler compiled for a 486 on my 386? <label id="Can I use code or a compiler compiled for a 486 on my 386?">
  1563. <P>
  1564. Yes, unless it's the kernel.
  1565.  
  1566. The -m486 option to GCC, which is used to compile binaries for x486
  1567. machines, merely changes certain optimizations.  This makes for slightly
  1568. larger binaries that run somewhat faster on a 486.  They still work fine
  1569. on a 386, though, with a small performance hit.
  1570.  
  1571. However, from version 1.3.35 the kernel uses 486 or Pentium-specific
  1572. instructions if configured for a 486 or Pentium, thus making it unusable
  1573. on a 386.
  1574.  
  1575. GCC can be configured for a 386 or 486; the only difference is that
  1576. configuring it for a 386 makes -m386 the default and configuring for a 486
  1577. makes -m486 the default.  In either case, these can be overridden on a
  1578. per-compilation basis or by editing /usr/lib/gcc-lib/i*-linux/n.n.n/specs.
  1579.  
  1580. There is an Alpha version of GCC which knows how to do optimization well
  1581. for the 586, but it is quite unreliable, especially at high optimization
  1582. settings.  The Pentium GCC can be found on tsx-11.mit.edu in
  1583. /pub/linux/ALPHA/pentium-gcc.  I'd recommend using the ordinary 486 GCC
  1584. instead; word has it that using -m386 produces code that's better for the
  1585. Pentium, or at least slightly smaller.
  1586.  
  1587. -------------------------------------------------------------------------------
  1588.  
  1589. <sect1>What does gcc -O6 do? <label id="What does gcc -O6 do?">
  1590. <P>
  1591. Currently, the same as -O2 (GCC 2.5) or -O3 (GCC 2.6, 2.7).  Any number
  1592. greater than that does the same thing.  The Makefiles of newer
  1593. kernels use -O2, and you should probably do the same.
  1594.  
  1595. -------------------------------------------------------------------------------
  1596.  
  1597. <sect1>Where are linux/*.h and asm/*.h? <label id="Where are linux/*.h and asm/*.h?">
  1598. <P>
  1599. The files <tt>/usr/include/linux/</tt> and
  1600. <tt>/usr/include/asm/</tt> are often soft links to the 
  1601. directories where the kernel headers are.  They are usually under
  1602. /usr/src/kernel*/.
  1603.  
  1604. If you don't have the kernel sources, download them--see, ``<ref
  1605. id="How do I upgrade/recompile my kernel?">''
  1606.  
  1607. Then, use <tt>rm</tt> to remove any garbage, and <tt>ln</tt> to create
  1608. the links:
  1609. <verb>
  1610. rm -rf /usr/include/linux /usr/include/asm
  1611. ln -sf /usr/src/linux/include/linux /usr/include/linux
  1612. ln -sf /usr/src/linux/include/asm /usr/include/asm
  1613. </verb>
  1614. <tt>/usr/src/linux/include/asm/</tt> is a symbolic link to an
  1615. architecture-specific asm directory--if you have a freshly
  1616. unpacked kernel source tree, you must make symlinks.  You'll also find
  1617. that you may need to do `make config' in a newly-unpacked kernel source
  1618. tree, to create linux/autoconf.h.
  1619.  
  1620. -------------------------------------------------------------------------------
  1621.  
  1622. <sect1>I get errors when I try to compile the kernel. <label id="I get errors when I try to compile the kernel.">
  1623. <P>
  1624. See the previous question regarding the header files.
  1625.  
  1626. Remember that when you apply a patch to the kernel, you must use the
  1627. <tt>-p0</tt> or <tt>-p1</tt> option: otherwise, the patch may be
  1628. misapplied.  See the <tt>patch</tt> manual page for details.
  1629.  
  1630. ``<tt>ld: unrecognized option `-qmagic'</tt>'' means that
  1631. you should get a
  1632. newer linker, from <htmlurl
  1633. url="ftp://tsx-11.mit.edu/pub/linux/packages/GCC/"
  1634. name="ftp://tsx-11.mit.edu/pub/linux/packages/GCC/">, in the file
  1635. <tt>binutils-2.8.1.0.1.bin.tar.gz</tt>.
  1636.  
  1637. -------------------------------------------------------------------------------
  1638.  
  1639. <sect1>How do I make a shared library? <label id="How do I make a shared library?">
  1640. <P>
  1641. For ELF,
  1642. <verb>
  1643.    gcc -fPIC -c *.c
  1644.    gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0 *.o
  1645. </verb>
  1646. For <tt>a.out</tt>, get tools-n.nn.tar.gz from tsx-11.mit.edu, in
  1647. /pub/linux/packages/GCC/src/.  It comes with documentation that will
  1648. tell you what to do.  Note that <tt>a.out</tt> shared libraries are a
  1649. very tricky business.  Consider upgrading your libraries to ELF
  1650. shared libraries.  See the ELF HOWTO, at  <htmlurl
  1651. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/"
  1652. name="sunsite.unc.edu/pub/Linux/docs/HOWTO/"> 
  1653.  
  1654. -------------------------------------------------------------------------------
  1655.  
  1656. <sect1>My executables are (very) large. <label id="My executables are (very) large.">
  1657. <P>
  1658. With an ELF compiler (``<ref id="What's all this about ELF?">''), the
  1659. most common cause of large executables is the lack of an appropriate
  1660. .so library link for one of the libraries you're using.  There should
  1661. be a link like libc.so for every library like libc.so.5.2.18.
  1662.  
  1663. With an <tt>a.out compiler</tt> the most common cause of large
  1664. executables is the <tt>-g</tt> linker (compiler) flag.  This produces
  1665. (as well as debugging information in the output file) a program which
  1666. is statically linked--one which includes a copy of the C library
  1667. instead of a dynamically linked copy.
  1668.  
  1669. Other things worth investigating are <tt>-O</tt> and <tt>-O2</tt>,
  1670. which enable optimization (check the GCC documentation), and
  1671. <tt>-s</tt> (or the strip command) which strip the symbol information
  1672. from the resulting binary (making debugging totally impossible).
  1673.  
  1674. You may wish to use <tt>-N</tt> on very small executables (less than
  1675. 8K with the <tt>-N</tt>), but you shouldn't do this unless you
  1676. understand its performance implications, and definitely never with
  1677. daemons.
  1678.  
  1679. -------------------------------------------------------------------------------
  1680.  
  1681. <sect1>Does Linux support threads or lightweight processes? <label id="Does Linux support threads or lightweight processes?">
  1682. <P>
  1683. As well as the Unix multiprocessing model involving heavyweight processes,
  1684. which is of course part of the standard Linux kernel, there are several
  1685. implementations of lightweight processes or threads.  Recent kernels
  1686. implement a thread model, kthreads.  In addition, there are the
  1687. following packages available for Linux.
  1688. <itemize>
  1689. <item>GNU glibc2 for Linux has optional support for threads.  The
  1690. archive is available from the same place as glibc2, <htmlurl 
  1691. url="ftp://ftp.gnu.org/pub/gnu" name="ftp://ftp.gnu.org/pub/gnu">
  1692. <item>In sipb.mit.edu:/pub/pthread or ftp.ibp.fr:/pub/unix/threads/pthreads.
  1693. Documentation isn't in the package, but is available on the World Wide
  1694. Web at http://www.mit.edu:8001/people/proven/home_page.html.  Newer
  1695. Linux libc's contain the pthreads source.  The GNU Ada compiler on
  1696. sunsite.unc.edu in /pub/Linux/devel/lang/ada/gnat-3.01-linux+elf.tar.gz
  1697. contains binaries made from that source code.
  1698. <item>In ftp.cs.washington.edu:/pub/qt-001.tar.Z is QuickThreads.  More
  1699. information can be found in the technical report, available on the same
  1700. site as /tr/1993/05/UW-CSE-93-05-06.PS.Z.
  1701. <item>In gummo.doc.ic.ac.uk/rex/ is lwp, a very minimal implementation.
  1702. <item>In ftp.cs.fsu.edu:/pub/PART/, an Ada implementation.  This is useful
  1703. mainly because it has a lot of Postscript papers that you'll find useful
  1704. in learning more about threads.  This is not directly usable under
  1705. Linux.
  1706. </itemize>
  1707. Please contact the authors of the packages in question for details.
  1708.  
  1709. -------------------------------------------------------------------------------
  1710.  
  1711. <sect1>Where can I get `lint' for Linux? <label id="Where can I get `lint' for Linux?">
  1712. <P>
  1713. Roughly equivalent functionality is built into GCC.  Use the -Wall
  1714. option to turn on most of the useful extra warnings.  See the GCC
  1715. manual for more details (type control-h followed by i in Emacs and
  1716. select the entry for GCC).
  1717.  
  1718. There is a freely available program called `lclint' that does much the
  1719. same thing as traditional lint.  The announcement and source code are
  1720. available at on larch.lcs.mit.edu in /pub/Larch/lclint/; on the World Wide
  1721. Web, look at http://larch-www.lcs.mit.edu:8001/larch/lclint.html.
  1722.  
  1723. -------------------------------------------------------------------------------
  1724.  
  1725. <sect1>Where can I find kermit for Linux? <label id="Where can I find kermit for Linux?">
  1726. <P>
  1727. Kermit is distributed under a non-GPL copyright that makes its
  1728. terms of distribution somewhat different.
  1729. The sources and some binaries are available on <htmlurl
  1730. url="ftp://kermit.columbia.edu"
  1731. name="kermit.columbia.edu">.
  1732.  
  1733. The WWW Home Page of the Columbia University Kermit project is 
  1734. <htmlurl url="http://www.columbia.edu/kermit/"
  1735. name="http://www.columbia.edu/kermit/">. 
  1736.  
  1737. ===============================================================================
  1738.  
  1739. <sect>Solutions to common miscellaneous problems. <label id="Solutions to common miscellaneous problems.">
  1740. <P>
  1741. -------------------------------------------------------------------------------
  1742.  
  1743. <sect1>free dumps core. <label id="free dumps core.">
  1744. <P>
  1745. In Linux 1.3.57 and later, the format of /proc/meminfo was changed in a way
  1746. that the implementation of free doesn't understand.
  1747.  
  1748. Get the latest version, from sunsite.unc.edu, in
  1749. /pub/Linux/system/Status/ps/procps-0.99.tgz.
  1750.  
  1751. -------------------------------------------------------------------------------
  1752.  
  1753. <sect1>My clock is very wrong. <label id="My clock is very wrong.">
  1754. <P>
  1755. There are two clocks in your computer.  The hardware (CMOS) clock runs
  1756. even when the computer is turned off, and is used when the system
  1757. starts up and by DOS (if you use DOS).  The ordinary system time,
  1758. shown and set by ``date,'' is maintained by the kernel while Linux is
  1759. running.
  1760.  
  1761. You can display the CMOS clock time, or set either clock from the other,
  1762. with /sbin/clock program--see ``man 8 clock.''
  1763.  
  1764. There are various other programs that can correct either or both
  1765. clocks for system drift or transfer time across the network.  Some of
  1766. them may already be installed on your system.  Try looking for
  1767. adjtimex (corrects for drift), netdate, and getdate (get the time from
  1768. the network), or xntp (accurate, full-featured network time daemon).
  1769.  
  1770. -------------------------------------------------------------------------------
  1771.  
  1772. <sect1>Setuid scripts don't seem to work. <label id="Setuid scripts don't seem to work.">
  1773. <P>
  1774. That's right.  This feature has been disabled in the Linux kernel on
  1775. purpose, because setuid scripts are almost always a security hole.
  1776. Sudo and SuidPerl can provide more security that setuid scripts or
  1777. binaries, especially if execute permissions are limited to a certain
  1778. user ID or group ID.
  1779.  
  1780. If you want to know why setuid scripts are a security hole, read the
  1781. FAQ for comp.unix.questions.
  1782.  
  1783. -------------------------------------------------------------------------------
  1784.  
  1785. <sect1>Free memory as reported by free keeps shrinking. <label id="Free memory as reported by free keeps shrinking.">
  1786. <P>
  1787. The ``free'' figure printed by free doesn't include memory used as a disk
  1788. buffer cache--shown in the ``buffers'' column.  If you want to know how
  1789. much memory is really free add the ``buffers'' amount to ``free''--newer
  1790. versions of free print an extra line with this info.
  1791.  
  1792. The disk buffer cache tends to grow soon after starting Linux up.  As you
  1793. load more programs and use more files, the contents get cached.  It
  1794. will stabilize after a while.
  1795.  
  1796. -------------------------------------------------------------------------------
  1797.  
  1798. <sect1>When I add more memory, the system slows to a crawl. <label id="When I add more memory, the system slows to a crawl.">
  1799. <P>
  1800. This is a common symptom of a failure to cache the additional memory.
  1801. The exact problem depends on your motherboard.
  1802.  
  1803. Sometimes you have to enable caching of certain regions in your BIOS
  1804. setup.  Look in the CMOS setup and see if there is an option to cache the
  1805. new memory area which is currently switched off.  This is apparently most
  1806. common on a '486.
  1807.  
  1808. Sometimes the RAM has to be in certain sockets to be cached.
  1809.  
  1810. Sometimes you have to set jumpers to enable caching.
  1811.  
  1812. Some motherboards don't cache all of the RAM if you have more RAM per
  1813. amount of cache than the hardware expects.  Usually a full 256K cache will
  1814. solve this problem.
  1815.  
  1816. If in doubt, check the manual.  If you still can't fix it because the
  1817. documentation is inadequate, you might like to post a message to
  1818. comp.os.linux.hardware giving <em>all</em> of the details--make, model
  1819. number, date code, etc., so other Linux users can avoid it.
  1820.  
  1821. -------------------------------------------------------------------------------
  1822.  
  1823. <sect1>Some programs (e.g. xdm) won't let me log in. <label id="Some programs (e.g. xdm) won't let me log in.">
  1824. <P>
  1825. You are probably using non-shadow password programs and are using shadow
  1826. passwords.
  1827.  
  1828. If so, you have to get or compile a shadow password version of the
  1829. programs in question.  The shadow password suite can be found at
  1830. tsx-11.mit.edu:/pub/linux/sources/usr.bin/shadow/.
  1831. This is the source code.  The binaries are probably in 
  1832. linux/binaries/usr.bin/.
  1833.  
  1834. -------------------------------------------------------------------------------
  1835.  
  1836. <sect1>Some programs let me log in with no password. <label id="Some programs let me log in with no password.">
  1837. <P>
  1838. You probably have the same problem as in ``<ref id="Some programs (e.g. xdm)
  1839. won't let me log in.">'', with an added wrinkle.
  1840.  
  1841. If you are using shadow passwords, you should put a letter `x' or an
  1842. asterisk in the password field of /etc/passwd for each account, so
  1843. that if a program doesn't know about the shadow passwords it won't
  1844. think it's a passwordless account and let anyone in.
  1845.  
  1846. -------------------------------------------------------------------------------
  1847.  
  1848. <sect1>My machine runs very slowly when I run GCC / X / ... <label id="My machine runs very slowly when I run GCC / X / ...">
  1849. <P>
  1850. You may have too little real memory.  If you have less RAM than all
  1851. the programs you're running at once, Linux will swap to your hard disk
  1852. instead and thrash horribly.  The solution in this case is to not run
  1853. so many things at once or buy more memory.  You can also reclaim some
  1854. memory by compiling and using a kernel with less options configured.
  1855. See ``<ref id="How do I upgrade/recompile my kernel?">''.
  1856.  
  1857. You can tell how much memory and swap you're using with the free
  1858. command, or by typing:
  1859. <verb>
  1860. cat /proc/meminfo
  1861. </verb>
  1862. If your kernel is configured with a RAM disk, this is probably wasted
  1863. space and will cause things to go slowly.  Use LILO or rdev to tell
  1864. the kernel not to allocate a RAM disk (see the LILO documentation or
  1865. type <tt>man rdev</tt>).
  1866.  
  1867. -------------------------------------------------------------------------------
  1868.  
  1869. <sect1>I can only log in as root. <label id="I can only log in as root.">
  1870. <P>
  1871. You probably have some permission problems, or you have a file
  1872. /etc/nologin.
  1873.  
  1874. In the latter case, put <tt>rm -f /etc/nologin</tt> in your
  1875. <tt>/etc/rc.local</tt> or <tt>/etc/rc.d/*</tt> scripts.
  1876.  
  1877. Otherwise, check the permissions on your shell, and any file names
  1878. that appear in error messages, and also the directories that contain
  1879. these files, up to and including the root directory.
  1880.  
  1881. -------------------------------------------------------------------------------
  1882.  
  1883. <sect1>My screen is all full of weird characters instead of letters. <label id="My screen is all full of weird characters instead of letters.">
  1884. <P>
  1885. You probably sent some binary data to your screen by mistake.  Type
  1886. <tt>echo '\033c'</tt> to fix it.  Many Linux distributions have a
  1887. command, ``reset,'' that does this.  
  1888.  
  1889. If that doesn't help, try a direct screen escape command.  
  1890. <verb>
  1891. echo <Ctrl-V><Ctrl-O>
  1892. </verb>
  1893. This resets the default font of a Linux console.  Remember to hold
  1894. down the Control key and type the letter, instead of, for example,
  1895. `Ctrl-V'.  The sequence
  1896. <verb>
  1897. echo <Ctrl-V><Esc>c
  1898. </verb>
  1899. causes a full screen reset.  If there's data left on the shell command
  1900. line after typing a binary file, press Ctrl-C a few times to restore
  1901. the shell command line.
  1902.  
  1903. [Bernhard Gabler]
  1904.  
  1905. -------------------------------------------------------------------------------
  1906.  
  1907. <sect1>I have screwed up my system and can't log in to fix it. <label id="I have screwed up my system and can't log in to fix it.">
  1908. <P>
  1909.  
  1910. Reboot from an emergency floppy or floppy pair.  For example, the
  1911. Slackware boot and root disk pair in the install subdirectory of the
  1912. Slackware distribution.
  1913.  
  1914. There are
  1915. also two, do-it-yourself rescue disk creation packages in <htmlurl
  1916. url="sunsite.unc.edu/pub/Linux/system/Recovery"
  1917. name="sunsite.unc.edu/pub/Linux/system/Recovery">.  These are better
  1918. because they have your own kernel on them, so you don't run
  1919. the risk of missing devices and file systems.
  1920.  
  1921. Get to a shell prompt and mount your hard disk with something like
  1922. <verb>
  1923. mount -t ext2 /dev/hda1 /mnt
  1924. </verb>
  1925. Then your file system is available under the directory <tt>/mnt</tt>
  1926. and you can fix the problem.  Remember to unmount your hard disk
  1927. before rebooting (<tt>cd</tt> somewhere else first, or it
  1928. will say it's busy).
  1929.  
  1930. -------------------------------------------------------------------------------
  1931.  
  1932. <sect1>I've discovered a huge security hole in <tt>rm</tt>! <label id="I've discovered a huge security hole in <tt>rm</tt>!">
  1933. <P>
  1934. No you haven't.  You are obviously new to Unix and need to read a good
  1935. book to find out how things work.  Clue: the ability to delete files
  1936. under Unix depends on permission to write in that directory.
  1937.  
  1938. -------------------------------------------------------------------------------
  1939.  
  1940. <sect1><tt>lpr(1)</tt> and/or <tt>lpd(8)</tt> don't work. <label id="<tt>lpr(1)</tt> and/or <tt>lpd(8)</tt> don't working.">
  1941. <P>
  1942. First make sure that your <tt>/dev/lp*</tt> port is correctly configured.
  1943. Its IRQ (if any) and port address need to match the settings on the
  1944. printer card.  You should be able to dump a file directly to the printer.
  1945. <verb>
  1946. cat the_file >/dev/lp1
  1947. </verb>
  1948. If lpr gives you a message like ``myname@host: host not found,'' it may
  1949. mean that the TCP/IP loopback interface, lo, isn't working properly.
  1950. Loopback support is compiled into most distribution kernels.  Check
  1951. that the interface is configured with the <tt>ifconfig</tt> command.
  1952. By Internet convention, the network number is 127.0.0.0, and the local
  1953. host address is 127.0.0.1.  If everything is configured correctly, you
  1954. should be able to telnet to your own machine and get a <tt>login</tt>
  1955. prompt.
  1956.  
  1957. Make sure that <tt>/etc/hosts.lpd</tt> contains the machine's host
  1958. name.
  1959.  
  1960. If your machine has a network-aware <tt>lpd</tt>, like the one that
  1961. comes with LPRng, make sure that <tt>/etc/lpd.perms</tt> is configured
  1962. correctly.
  1963.  
  1964. Also look at the <tt>Printing-HOWTO</tt> ``<ref id="Where can I get
  1965. the HOWTO's and other documentation?">''.
  1966.  
  1967. -------------------------------------------------------------------------------
  1968.  
  1969. <sect1>Timestamps on files on MS-DOS partitions are set incorrectly. <label id="Timestamps on files on MS-DOS partitions are set incorrectly.">
  1970. <P>
  1971. There is a bug in the program ``<tt>clock</tt>'' (often found in
  1972. <tt>/sbin</tt>).  It miscounts a time zone offset, confusing seconds
  1973. with minutes or something like that.  Get a recent version.
  1974.  
  1975. -------------------------------------------------------------------------------
  1976.  
  1977. <sect1>How do I get LILO to boot the <tt>vmlinux</tt> file? <label id="How do I get LILO to boot the <tt>vmlinux</tt> file?">
  1978. <P>
  1979. >From kernel versions 1.1.80 on, the compressed kernel image,
  1980. which is what LILO needs to find, is in
  1981. <tt>arch/i386/boot/zImage</tt>.  The <tt>vmlinux</tt> file in the root
  1982. directory is the uncompressed kernel, and you shouldn't try to boot
  1983. it.
  1984.  
  1985. This was changed to make it easier to build kernel versions for
  1986. several different processors from one source tree.
  1987.  
  1988. ===============================================================================
  1989.  
  1990. <sect>How do I do this or find out that ... ? <label id="How do I do this or find out that ... ?">
  1991. <P>
  1992. -------------------------------------------------------------------------------
  1993.  
  1994. <sect1>How can I get scrollback in text mode? <label id="How can I get scrollback in text mode?">
  1995. <P>
  1996. With the default US keymap, you can use Shift with the PageUp and
  1997. PageDown keys.  (The gray ones, not the ones on the numeric keypad.)
  1998. With other keymaps, look in <tt>/usr/lib/keytables</tt>.  You can
  1999. remap the ScrollUp and ScrollDown keys to be whatever you like.  For
  2000. example, to remap them to the keys on an 84-key, AT keyboard.
  2001.  
  2002. The "screen" program, <htmlurl
  2003. url="http://vector.co.jp/vpack/browse/person/an010455.html" 
  2004. name="http://vector.co.jp/vpack/browse/person/an010455.html">
  2005. provides a searchable scrollback buffer and the
  2006. ability to take ``snapshots'' of text-mode screens.
  2007.  
  2008. You can't increase the amount of scrollback, because it is implemented
  2009. using the video memory to store the scrollback text.  You may be
  2010. able to get more scrollback in each virtual console by reducing the
  2011. total number of VC's.  See <tt>linux/tty.h</tt>.
  2012.  
  2013. -------------------------------------------------------------------------------
  2014.  
  2015. <sect1>How do I switch virtual consoles?  How do I enable them? <label id="How do I switch virtual consoles?  How do I enable them?">
  2016. <P>
  2017. In text mode, press Left Alt-F1 to Alt-F12 to select the consoles
  2018. <tt>tty1</tt> to <tt>tty12</tt>; Right Alt-F1 gives <tt>tty13</tt> and
  2019. so on.  To switch out of X Windows you must press Ctrl-Alt-F1, etc;
  2020. Alt-F5 or whatever will switch back.
  2021.  
  2022. If you want to use a VC for ordinary login, it must be listed in
  2023. <tt>/etc/inittab</tt>, which controls which terminals and virtual
  2024. consoles have login prompts.  The X Window System needs at least one
  2025. free VC in order to start.
  2026.  
  2027. -------------------------------------------------------------------------------
  2028.  
  2029. <sect1>How do I set the time zone? <label id="How do I set the time zone?">
  2030. <P>
  2031. Change directory to <tt>/usr/lib/zoneinfo/</tt>.  Get the time zone
  2032. package if you don't have this directory.  The source is available as 
  2033. <htmlurl
  2034. url="ftp://sunsite.unc.edu/pub/Linux/system/admin/time/timesrc-1.2.tar.gz"
  2035. name="sunsite.unc.edu/pub/Linux/system/admin/time/timesrc-1.2.tar.gz">.
  2036.  
  2037. Then make a symbolic link named <tt>localtime</tt> pointing to one of
  2038. the files in this directory (or a subdirectory), and one called
  2039. <tt>posixrules</tt> pointing to <tt>localtime</tt>.  For example:
  2040. <verb>
  2041.    ln -sf US/Mountain localtime
  2042.    ln -sf localtime posixrules
  2043. </verb>
  2044. This change will take effect immediately--try <tt>date(1)</tt>.
  2045.  
  2046. The manual page for tzset describes setting the time zone.  Some
  2047. programs recognize the TZ environment variable, but this is not
  2048. POSIX-correct.
  2049.  
  2050. You should also make sure that your Linux kernel clock is set to the
  2051. correct <tt>GMT</tt> time--type <tt>date -u</tt> and check that the
  2052. correct UTC time is displayed.  (``<ref id="My clock is very wrong.">'')
  2053.  
  2054. -------------------------------------------------------------------------------
  2055.  
  2056. <sect1>What version of Linux and what machine name am I using? <label id="What version of Linux and what machine name am I using?">
  2057. <P>
  2058. Type:
  2059. <verb>
  2060. uname -a
  2061. </verb>
  2062.  
  2063. -------------------------------------------------------------------------------
  2064.  
  2065. <sect1>How can I enable or disable core dumps? <label id="How can I enable or disable core dumps?">
  2066. <P>
  2067. By using the <tt>ulimit</tt> command in <tt>bash</tt>, the
  2068. <tt>limit</tt>
  2069. command in <tt>tcsh</tt>, or the <tt>rlimit</tt> command in
  2070. <tt>ksh</tt>.  See the appropriate manual page for details.
  2071.  
  2072. This setting affects all programs run from the shell (directly or
  2073. indirectly), not the whole system.
  2074.  
  2075. If you wish to enable or disable core dumping for all processes by
  2076. default, you can change the default setting in
  2077. <tt>linux/sched.h</tt>--see the definition of
  2078. <tt>INIT_TASK</tt>, and look also in <tt>linux/resource.h</tt>.
  2079.  
  2080. -------------------------------------------------------------------------------
  2081.  
  2082. <sect1>How do I upgrade/recompile my kernel? <label id="How do I upgrade/recompile my kernel?">
  2083. <P>
  2084. See the Kernel HOWTO or the README files which come with the kernel
  2085. release on ftp.cs.helsinki.fi, in <tt>/pub/Software/Linux/Kernel/</tt>
  2086. and mirrors. (See ``<ref id="Where can I get Linux material by
  2087. FTP?">'') You may already have a version of the kernel source code
  2088. installed on your system, but if it is part of a standard distribution
  2089. it is likely to be somewhat out of date (this is not a problem if you
  2090. only want a custom configured kernel, but it probably is if you need
  2091. to upgrade.)
  2092.  
  2093. With newer kernels you can (and should) make all of the following
  2094. targets.  Don't forget that you can specify multiple targets with one
  2095. command.
  2096. <verb>
  2097. make clean dep install modules modules_install
  2098. </verb>
  2099.  
  2100. Also remember to update the module dependencies.
  2101. <verb>
  2102. depmod -a
  2103. </verb>
  2104.  
  2105. Remember that to make the new kernel boot you must run LILO after copying
  2106. the kernel into your root partition--the Makefile in recent kernels has
  2107. a special zlilo target for this; try:
  2108. <verb>
  2109. make zlilo
  2110. </verb>
  2111. Kernel version numbers with an odd minor version (ie, 1.1.x, 1.3.x)
  2112. are the testing releases; stable production kernels have even minor
  2113. versions (1.0.x, 1.2.x).  If you want to try the testing kernels you
  2114. should probably subscribe to the linux-kernel mailing list.  (See ``<ref
  2115. id="What mailing lists are there?">.'')
  2116.  
  2117. -------------------------------------------------------------------------------
  2118.  
  2119. <sect1>Can I have more than 3 serial ports by sharing interrupts? <label id="Can I have more than 3 serial ports by sharing interrupts?">
  2120. <P>
  2121. Yes, but you won't be able to use simultaneously two ordinary ports which
  2122. share an interrupt (without some trickery).  This is a limitation of the
  2123. ISA Bus architecture.
  2124.  
  2125. See the Serial HOWTO for information about possible solutions and
  2126. workarounds for this problem.
  2127.  
  2128. -------------------------------------------------------------------------------
  2129.  
  2130. <sect1>How do I make a bootable floppy? <label id="How do I make a bootable floppy?">
  2131. <P>
  2132. Make a file system on it with bin, etc, lib and dev
  2133. directories--everything you need.  Install a kernel on it and arrange
  2134. to have LILO boot it from the floppy (see the LILO documentation, in
  2135. lilo.u.*.ps).
  2136.  
  2137. If you build the kernel (or tell LILO to tell the kernel) to have a
  2138. RAM disk the same size as the floppy the RAM disk will be loaded at
  2139. boot time and mounted as root in place of the floppy.
  2140.  
  2141. See the Bootdisk HOWTO.
  2142.  
  2143. -------------------------------------------------------------------------------
  2144.  
  2145. <sect1>How do I remap my keyboard to UK, French, etc.? <label id="How do I remap my keyboard to UK, French, etc.?">
  2146. <P>
  2147. For recent kernels, get /pub/Linux/system/Keyboards/kbd-0.90.tar.gz from
  2148. sunsite.unc.edu.  Make sure you get the appropriate version; you have to
  2149. use the right keyboard mapping package for your kernel version.
  2150.  
  2151. For older kernels you have to edit the top-level kernel Makefile, in
  2152. /usr/src/linux.
  2153.  
  2154. You may find more helpful information in The Linux Keyboard and
  2155. Console HOWTO, by Andries Brouwer, at <htmlurl
  2156. url="ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/"
  2157. name="sunsite.unc.edu/pub/Linux/docs/HOWTO">.
  2158.  
  2159.  
  2160. -------------------------------------------------------------------------------
  2161.  
  2162. <sect1>How do I get NUM LOCK to default to on? <label id="How do I get NUM LOCK to default to on?">
  2163. <P>
  2164. Use the setleds program, for example (in /etc/rc.local or one of the
  2165. /etc/rc.d/* files):
  2166. <verb>
  2167. for t in 1 2 3 4 5 6 7 8
  2168. do
  2169.     setleds +num < /dev/tty$t > /dev/null
  2170. done
  2171. </verb>
  2172. Setleds is part of the kbd package (``<ref id="How do I remap my keyboard
  2173. to UK, French, etc.?">'').
  2174.  
  2175. Alternatively, patch your kernel.  You need to arrange for
  2176. KBD_DEFLEDS to be defined to (1 << VC_NUMLOCK)
  2177. when compiling drivers/char/keyboard.c.
  2178.  
  2179. -------------------------------------------------------------------------------
  2180.  
  2181. <sect1>How do I set (or reset) my initial terminal colors?<label id="How do I set (or reset) my initial terminal colors?">
  2182. <p>
  2183. The following shell script should work for VGA consoles:
  2184. <verb>
  2185. for n in 1 2 4 5 6 7 8; do 
  2186.     setterm -fore yellow -bold on -back blue -store > /dev/tty$n
  2187.     done
  2188. </verb>
  2189. Substitute your favorite colors, and use /dev/ttyS$n for serial
  2190. terminals.  
  2191.  
  2192. To make sure they are reset when people log out (if they've been
  2193. changed):
  2194.  
  2195. Replace the references to ``getty'' (or ``mingetty'' or ``uugetty'' or
  2196. whatever) in <tt>/etc/inittab</tt> with references to
  2197. ``<tt>/sbin/mygetty</tt>.''
  2198. <verb>
  2199. #!/bin/sh
  2200. setterm -fore yellow -bold on -back blue -store > $1
  2201. exec /sbin/mingetty $@
  2202. </verb>
  2203.  
  2204. [Jim Dennis]
  2205. -------------------------------------------------------------------------------
  2206.  
  2207. <sect1>How can I have more than 128Mb of swap? <label id="How can I have more than 128Mb of swap?">
  2208. <P>
  2209. Use several swap partitions or swap files--Linux supports up to 16 swap
  2210. areas, each of up to 128Mb.
  2211.  
  2212. Very old kernels only supported swap partition sizes up to 16Mb.
  2213.  
  2214. Linux on machines with 8KB paging, like Alpha
  2215. and Sparc64, support a swap partition up to 512KB.  The
  2216. 128KB limitation comes from PAGE_SIZE*BITSPERBYTE on machines with 4KB
  2217. paging, but is 512KB on machines with 8KB paging.  The limit is due to
  2218. the use of a single page allocation map.
  2219.  
  2220. The file <tt>mm/swapfile.c</tt> has all of the gory details.
  2221.  
  2222.  
  2223.  
  2224. [Peter Moulder, Gordon Weast]
  2225.  
  2226. ===============================================================================
  2227.  
  2228. <sect>Miscellaneous information and questions answered. <label id="Miscellaneous information and questions answered.">
  2229. <P>
  2230. -------------------------------------------------------------------------------
  2231.  
  2232. <sect1>How do I program XYZ under Linux? <label id="How do I program XYZ under Linux?">
  2233. <P>
  2234. Read the manuals, or a good book on Unix.  Manual pages (type ``man
  2235. man'') are usually a good source of reference information on exactly
  2236. how to use a particular command or function.
  2237.  
  2238. There is also a lot of GNU Info documentation, which is often more
  2239. useful as a tutorial.  Run Emacs and type C-h i, or type info info if
  2240. you don't have or don't like Emacs.  Note that the Emacs libc node may
  2241. not exactly describe the latest Linux libc, or GNU glibc2.  
  2242. But the GNU progject and LDP are always looking for volunteers to
  2243. upgrade their library documentation.
  2244.  
  2245. Anyway, between the existing Texinfo documentation, and the manual
  2246. pages in sections 2 and 3, should provide enough information to get
  2247. started.  
  2248.  
  2249. As with all free software, the best tutorial is the source code
  2250. itself.
  2251.  
  2252. The latest release of the Linux manual pages, a collection of useful
  2253. GNU Info documentation, and various other information related to
  2254. programming Linux, can be found on sunsite.unc.edu in
  2255. /pub/Linux/docs/man-pages.
  2256.  
  2257. -------------------------------------------------------------------------------
  2258.  
  2259. <sect1>What's all this about ELF? <label id="What's all this about ELF?">
  2260. <P>
  2261. See the ELF HOWTO by Daniel Barlow--note, this is not the file
  2262. move-to-elf, which is a blow-by-blow account of how to upgrade to ELF
  2263. manually.
  2264.  
  2265. Linux has two different formats for executables, object files, and
  2266. object code libraries, known as, ``ELF.''  (The old format is called
  2267. `a.out'.)  They have advantages, including better support for shared
  2268. libraries and dynamic linking.
  2269.  
  2270. Both a.out and ELF binaries can coexist on a system.  However, they use
  2271. different shared C libraries, both of which have to be installed.
  2272.  
  2273. If you want to find out whether your system can run ELF binaries, look
  2274. in <tt>/lib</tt> for a file named, ``<tt>libc.so.5</tt>.''  If it's
  2275. there, you probably have ELF libraries.  If you want to know whether
  2276. your installation actually is ELF you can pick a representative
  2277. program, like <tt>ls</tt>, and run <tt>file</tt> on it:
  2278. <verb>
  2279. -chiark:~> file /bin/ls
  2280. /bin/ls: Linux/i386 impure executable (OMAGIC) - stripped
  2281.  
  2282. valour:~> file /bin/ls
  2283. /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1, stripped
  2284. </verb>
  2285. There is a patch to get 1.2.x to compile using the ELF compilers, and
  2286. produce ELF core dumps, at tsx-11.mit.edu in /pub/packages/GCC/.  You
  2287. do not need the patch merely to run ELF binaries.  1.3.x and later do
  2288. not need the patch at all.
  2289.  
  2290. -------------------------------------------------------------------------------
  2291.  
  2292. <sect1>What is a .gz file ? And a .tgz ? And ... ? <label id="What is a .gz file ? And a .tgz ? And ... ?">
  2293. <P>
  2294. .gz (and .z) files are compressed using GNU gzip.  You need to use
  2295. gunzip (which is a symlink to the gzip command which comes with most
  2296. Linux installations) to unpack the file.
  2297.  
  2298. .taz and .tz are tar files (made with Unix tar) compressed using standard
  2299. Unix compress.
  2300.  
  2301. .tgz (or .tpz) is a tar file compressed with gzip.
  2302.  
  2303. .lsm is a Linux Software Map entry, in the form of a short text file.
  2304. Details about the LSM and the LSM itself are available in the docs
  2305. subdirectory on sunsite.unc.edu.
  2306.  
  2307. .deb is a Debian Binary Package - the binary package format used by the
  2308. Debian GNU/Linux distribution.  It is manipulated using dpkg and dpkg-deb
  2309. (available on Debian systems and from ftp.debian.org).
  2310.  
  2311. .rpm is a Red Hat RPM package, which is used in the Red Hat distribution.
  2312. They can be found on ftp.redhat.com.
  2313.  
  2314. .bz2 is a file compressed by the more recent bzip program.
  2315.  
  2316. The ``file'' command can often tell you what a file is.
  2317.  
  2318. If you find that gzip complains when you try to uncompress a gzip'ed file
  2319. you probably downloaded it in ASCII mode by mistake.  You must download
  2320. most things in binary mode--remember to type binary as a command in FTP
  2321. before using, ``get,'' to get the file.
  2322.  
  2323. -------------------------------------------------------------------------------
  2324.  
  2325. <sect1>What does VFS stand for? <label id="What does VFS stand for?">
  2326. <P>
  2327. Virtual File System.  It's the abstraction layer between the user and real
  2328. file systems like ext2, Minix and MS-DOS.  Among other things, its job is
  2329. to flush the read buffer when it detects a disk change on the floppy disk
  2330. drive.
  2331. <verb>
  2332. VFS: Disk change detected on device 2/0
  2333. </verb>
  2334.  
  2335. -------------------------------------------------------------------------------
  2336.  
  2337. <sect1>What is a BogoMip? <label id="What is a BogoMip?">
  2338. <P>
  2339. ``BogoMips'' is a contraction of ``Bogus MIPS.''  MIPS stands for
  2340. (depending who you listen to) Millions of Instructions per Second, or
  2341. Meaningless Indication of Processor Speed.
  2342.  
  2343. The number printed at boot time is the result of a kernel timing
  2344. calibration, used for very short delay loops by some device drivers.
  2345.  
  2346. As a very rough guide, the BogoMips rating for your machine will be
  2347. approximately:
  2348. <verb>
  2349.      386SX              clock * 0.14
  2350.      386DX              clock * 0.18
  2351.      486Cyrix/IBM       clock * 0.33
  2352.      486SX/DX/DX2       clock * 0.50
  2353.      586                clock * 0.39
  2354. </verb>
  2355. If the number is wildly lower, you may have the Turbo button or CPU
  2356. speed set incorrectly, or have some kind of caching problem (as
  2357. described in 
  2358. ``<ref id="When I add more memory, the system slows to a crawl.">.'')
  2359.  
  2360. For values people have seen with other, rarer, chips, see the BogoMips
  2361. Mini-HOWTO, on sunsite.unc.edu in /pub/Linux/docs/howto/mini/BogoMips/.
  2362.  
  2363. -------------------------------------------------------------------------------
  2364.  
  2365. <sect1>What is the Linux Journal and where can I get it? <label id="What is the Linux Journal and where can I get it?">
  2366. <P>
  2367. The Linux Journal is a monthly magazine (printed on paper) that is
  2368. available on news stands and via subscription worldwide. Email
  2369. <htmlurl url="mailto:linux@ssc.com" name="linux@ssc.com"> for details.
  2370. Their URL is <htmlurl url="http://www.ssc.com/"
  2371. name="http://www.ssc.com/">.
  2372.  
  2373. -------------------------------------------------------------------------------
  2374.  
  2375. <sect1>What online/free periodicals exist for Linux? <label id="What online/free periodicals exist for Linux?">
  2376. <P>
  2377. There are a number of recent additions to the list of periodicals
  2378. devoted to Linux.
  2379. <itemize>
  2380. <item>Linux Gazette. <htmlurl url="http://www.linuxgazette.com"
  2381. name="http://www.linuxgazette.com">.
  2382. <item>Linux Weekly News. <htmlurl url="http://www.lwn.net"
  2383. name="http://www.lwn.net">.
  2384. <item>Slashdot. <htmlurl url="http://www.slashdot.org"
  2385. name="http://www.slashdot.org">.
  2386. <item>Freshmeat. <htmlurl url="http://www.freshmeat.org" name="http://www.freshmeat.org">.
  2387. </itemize>
  2388.  
  2389. [Jim Dennis, Robert Kiesling]
  2390.  
  2391. -------------------------------------------------------------------------------
  2392.  
  2393.  
  2394. <sect1>How many people use Linux? <label id="How many people use Linux?">
  2395. <P>
  2396. Linux is freely available, and no one is required to register their
  2397. copy with any central authority, so it is difficult to know.  Several
  2398. businesses survive solely on selling and supporting Linux.  The Linux
  2399. newsgroups are some of the most heavily read on Usenet, so the number
  2400. is likely in the hundreds of thousands.  Accurate numbers probably
  2401. don't exist.
  2402.  
  2403. However, one brave soul, Harald T. Alvestrand, <htmlurl
  2404. url="mailto:Harald.T.Alvestrand@uninett.no"
  2405. name="Harald.T.Alvestrand@uninett.no">, has decided to try, and asks
  2406. that if you use Linux, send a message to <htmlurl
  2407. url="mailto:linux-counter@uninett.no" name="linux-counter@uninett.no">
  2408. with one of the following subjects: ``I use Linux at home,'' ``I use
  2409. Linux at work,'' or, ``I use Linux at home and at work.''  He will
  2410. also accept `third party' registrations--ask him for details.
  2411.  
  2412. Alternatively, you can register using the WWW forms found at
  2413. <htmlurl url="http://domen.uninett.no/~hta/linux/counter.html"
  2414. name="http://domen.uninett.no/˜hta/linux/counter.html">.
  2415.  
  2416. He posts his counts to aun.uninett.no in /pub/misc/linux-counter/ or at
  2417. the web page above.
  2418.  
  2419. -------------------------------------------------------------------------------
  2420.  
  2421. <sect1>How should I pronounce Linux? <label id="How should I pronounce Linux?">
  2422. <P>
  2423. This is a matter of religious debate, of course!
  2424.  
  2425. If you want to hear Linus himself say how he pronounces it, download
  2426. english.au or swedish.au from ftp.funet.fi (in
  2427. /pub/Linux/PEOPLE/Linus/SillySounds/).  If you have a sound card or the
  2428. PC-speaker audio driver you can hear them by typing
  2429. <verb>
  2430. cat english.au >/dev/audio
  2431. </verb>
  2432. The difference isn't in the pronunciation of Linux but in the language
  2433. Linus uses to say, ``hello.''  
  2434.  
  2435. For the benefit of those who don't have the equipment or inclination:
  2436. Linus pronounces Linux approximately as Leenus, where the ``ee'' is
  2437. pronounced as in ``feet,'' but rather shorter, and the ``u'' is
  2438. like a much shorter version of the French ``eu'' sound in ``peur''
  2439. (pronouncing it as the ``u'' in ``put'' is probably passable).
  2440.  
  2441. ===============================================================================
  2442.  
  2443. <sect>Frequently encountered error messages. <label id="Frequently encountered error messages.">
  2444. <P>
  2445.  
  2446. -------------------------------------------------------------------------------
  2447.  
  2448. <sect1>Modprobe can't locate module, ``XXX,'' and similar messages. <label id="Modprobe can't locate module, ``XXX,'' and similar messages.">
  2449. <P>
  2450.  
  2451. These types of messages mostly occur at boot time or shutdown.
  2452. If modprobe, insmod, or rmmod complain about not being able to find a
  2453. module, add the following to the /etc/modules.conf or
  2454. /etc/modutils/aliases file, whichever is present on your system.  
  2455. <verb>
  2456. alias <module-name> off
  2457. </verb>
  2458. And use the name of the module that appears in the error
  2459. message.
  2460.  
  2461. [J.H.M. Dassen]
  2462.  
  2463. -------------------------------------------------------------------------------
  2464.  
  2465. <sect1>Unknown terminal type linux and similar. <label id="Unknown terminal type linux and similar.">
  2466. <P>
  2467. In early kernels the default console terminal type has changed from
  2468. ``console'' to ``linux.''  You must edit /etc/termcap to change the
  2469. line reading:
  2470. <verb>
  2471. console|con80x25:\
  2472. </verb>
  2473. to
  2474. <verb>
  2475. linux|console|con80x25:\
  2476. </verb>
  2477. (there may be an additional dumb in there--if so it should be removed.)
  2478.  
  2479. To get the editor to work you may need say 
  2480. <verb>
  2481. TERM=console 
  2482. </verb>
  2483. (for bash and ksh), or 
  2484. <verb>
  2485. setenv TERM console 
  2486. </verb>
  2487. for csh or tcsh.
  2488.  
  2489. Some programs use /usr/lib/terminfo instead of /etc/termcap.  For these
  2490. programs you should upgrade your terminfo, which is part of ncurses.
  2491.  
  2492. -------------------------------------------------------------------------------
  2493.  
  2494. <sect1>lp1 on fire <label id="lp1 on fire">
  2495. <P>
  2496. This is a joke/traditional error message indicating that some sort of
  2497. error is being reported by your printer, but that the error status isn't a
  2498. valid one.  It may be that you have some kind of I/O or IRQ conflict--
  2499. check your cards' settings.  Some people report that they get this message
  2500. when their printer is switched off.  Hopefully it isn't really on fire ...
  2501.  
  2502. In newer kernels, this message reads, ``lp1 reported invalid error
  2503. status (on fire, eh?)''
  2504.  
  2505. -------------------------------------------------------------------------------
  2506.  
  2507. <sect1>INET: Warning: old style ioctl... called! <label id="INET: Warning: old style ioctl... called!">
  2508. <P>
  2509. You are trying to use the old network configuration utilities.  The
  2510. new ones can be found on ftp.linux.org.uk in
  2511. /pub/linux/Networking/PROGRAMS/NetTools/ (source only, I'm afraid).
  2512.  
  2513. Note that they cannot be used just like the old-style programs.  See
  2514. the NET-2 HOWTO for instructions on how to set up the old-style
  2515. networking programs correctly.  Even better, see the NET-3 HOWTO and
  2516. upgrade your networking software.
  2517.  
  2518. -------------------------------------------------------------------------------
  2519.  
  2520. <sect1>ld: unrecognized option '-m486' <label id="ld: unrecognized option '-m486'">
  2521. <P>
  2522. You have an old version of ld.  Install a newer binutils package--this
  2523. will contain an updated ld.  Look on tsx-11.mit.edu in
  2524. /pub/linux/packages/GCC/ for binutils-2.6.0.2.bin.tar.gz.
  2525.  
  2526. -------------------------------------------------------------------------------
  2527.  
  2528. <sect1>GCC says Internal compiler error. <label id="GCC says Internal compiler error.">
  2529. <P>
  2530. If the fault is repeatable (i.e., it always happens at the same place in the
  2531. same file--even after rebooting and trying again, using a stable
  2532. kernel) you have discovered a bug in GCC.  See the GCC Info documentation
  2533. (type Control-h i in Emacs, and select GCC from the menu) for details on
  2534. how to report the error--make sure you have the latest version, though.
  2535.  
  2536. Note that this is probably not a Linux-specific problem.  Unless you are
  2537. compiling a program many other Linux users also compile, you should not
  2538. post your bug report to any of the comp.os.linux groups.
  2539.  
  2540. If the problem is not repeatable, you may be experiencing memory
  2541. corruption--see <ref id="make says Error 139">.
  2542.  
  2543. -------------------------------------------------------------------------------
  2544.  
  2545. <sect1>make says Error 139 <label id="make says Error 139">
  2546. <P>
  2547. Your compiler driver (gcc) dumped core.  You probably have a
  2548. corrupted, buggy, or old version of GCC--get the latest release.
  2549. Alternatively, you may be running out of swap space--see 
  2550. <ref id="My machine runs very slowly when I run GCC / X / ...">.
  2551.  
  2552. If this doesn't fix the problem, you are probably having problems with
  2553. memory or disk corruption.  Check that the clock rate, wait states,
  2554. and refresh timing for your SIMMS and cache are correct (hardware
  2555. manuals are sometimes wrong, too).  If so, you may have some marginal
  2556. SIMMS, or a faulty motherboard or hard disk or controller.
  2557.  
  2558. Linux, like any Unix, is a very good memory tester--much better than
  2559. MS-DOS based memory test programs.
  2560.  
  2561. Reportedly, some clone x87 math coprocessors can cause problems.  Try
  2562. compiling a kernel with math emulation 
  2563. (<ref id ="How do I upgrade/recompile my kernel?">.)  
  2564. You may need to use the ``no387'' kernel
  2565. command line flag on the LILO prompt to force the kernel to use math
  2566. emulation, or it may be able to work and still use the '387, with the
  2567. math emulation compiled in but mainly unused.
  2568.  
  2569. More information about this problem is available on the Web at
  2570. <htmlurl url="http://www.bitwizard.nl/sig11/"
  2571. name="http://www.bitwizard.nl/sig11/">.
  2572.  
  2573. -------------------------------------------------------------------------------
  2574.  
  2575. <sect1>shell-init: permission denied when I log in. <label id="shell-init: permission denied when I log in.">
  2576. <P>
  2577. Your root directory and all the directories up to your home directory
  2578. must be readable and executable by everybody.  See the manual page for
  2579. chmod or a book on Unix for how to fix the problem.
  2580.  
  2581. -------------------------------------------------------------------------------
  2582.  
  2583. <sect1>No utmp entry.  You must exec ... when I log in. <label id="No utmp entry.  You must exec ... when I log in.">
  2584. <P>
  2585. Your /var/run/utmp is screwed up.  You should have
  2586. <verb>
  2587. > /var/run/utmp
  2588. </verb>
  2589. in your <tt>/etc/rc.local</tt> or <tt>/etc/rc.d/*</tt>.  See (``<ref
  2590. id="I have screwed up my system and can't log in to fix it.">'') Note
  2591. that the utmp may also be found in /var/adm/ or /etc/ on some
  2592. older systems.
  2593.  
  2594. -------------------------------------------------------------------------------
  2595.  
  2596. <sect1>Warning--bdflush not running. <label id="Warning--bdflush not running.">
  2597. <P>
  2598. Modern kernels use a better strategy for writing cached disk blocks.  In
  2599. addition to the kernel changes, this involves replacing the old update
  2600. program which used to write everything every 30 seconds with a more subtle
  2601. daemon (actually a pair), known as bdflush.
  2602.  
  2603. Get bdflush-n.n.tar.gz from the same place as the kernel source code
  2604. (<ref id ="How do I upgrade/recompile my kernel?">) and compile and
  2605. install it.  Bdflush should be started before the usual boot-time file
  2606. system checks.  It will work fine with older kernels as well, so
  2607. there's no need to keep the old update around.
  2608.  
  2609. -------------------------------------------------------------------------------
  2610.  
  2611. <sect1>Warning: obsolete routing request made. <label id="Warning: obsolete routing request made.">
  2612. <P>
  2613. This is nothing to worry about.  The message means that your version
  2614. route is a little out of date, compared to the kernel.  You can make
  2615. the message go away by getting a new version of route from the same
  2616. place as the kernel source code. (<ref id ="How do I upgrade/recompile
  2617. my kernel?">)
  2618.  
  2619. -------------------------------------------------------------------------------
  2620.  
  2621. <sect1>EXT2-fs: warning: mounting unchecked file system. <label id="EXT2-fs: warning: mounting unchecked file system.">
  2622. <P>
  2623. You need to run e2fsck (or fsck -t ext2 if you have the fsck front end
  2624. program) with the -a option to get it to clear the `dirty' flag, and then
  2625. cleanly unmount the partition during each shutdown.
  2626.  
  2627. The easiest way to do this is to get the latest fsck, umount, and
  2628. shutdown commands, available in Rik Faith's util-linux package 
  2629. (`<ref id="Where can I get Linux material by FTP?">'')
  2630. You have to make sure that your /etc/rc*/ scripts use them correctly.
  2631.  
  2632. NB: don't try to check a file system that's mounted read/write--this
  2633. includes the root partition if you don't see
  2634. <verb>
  2635. VFS: mounted root ... read-only
  2636. </verb>
  2637. at boot time.  You must arrange to mount the root file system
  2638. read/only to start with, check it if necessary, and then remount it
  2639. read/write.  Read the documentation that comes with util-linux to find
  2640. out how to do this.
  2641.  
  2642. Note that you need to specify the -n option to mount so it won't try
  2643. to update /etc/mtab, since the root file system is still read-only,
  2644. and this will otherwise cause it to fail.
  2645.  
  2646. -------------------------------------------------------------------------------
  2647.  
  2648. <sect1>EXT2-fs warning: maximal count reached. <label id="EXT2-fs warning: maximal count reached.">
  2649. <P>
  2650. This message is issued by the kernel when it mounts a file system that's
  2651. marked as clean, but whose ``number of mounts since check'' counter has
  2652. reached the predefined value.  The solution is to get the latest version
  2653. of the ext2fs utilities (e2fsprogs-0.5b.tar.gz at the time of writing)
  2654. from the usual sites.  (`<ref id="Where can I get Linux material by FTP?">'')
  2655.  
  2656. The maximal number of mounts value can be examined and changed using
  2657. the tune2fs program from this package.
  2658.  
  2659. -------------------------------------------------------------------------------
  2660.  
  2661. <sect1>EXT2-fs warning: checktime reached. <label id="EXT2-fs warning: checktime reached.">
  2662. <P>
  2663. Kernels from 1.0 onwards support checking a file system based on the
  2664. elapsed time since the last check as well as by the number of mounts.
  2665. Get the latest version of the ext2fs utilities. ``(<ref id="EXT2-fs
  2666. warning: maximal count reached.">'')
  2667.  
  2668. -------------------------------------------------------------------------------
  2669.  
  2670. <sect1>df says Cannot read table of mounted file systems. <label id="df says Cannot read table of mounted file systems.">
  2671. <P>
  2672. There is probably something wrong with your <tt>/etc/mtab</tt> or 
  2673. <tt>/etc/fstab</tt> files.
  2674. If you have a reasonably new version of mount, /etc/mtab should be emptied
  2675. or deleted at boot time (in /etc/rc.local or /etc/rc.d/*), using something
  2676. like
  2677. <verb>
  2678. rm -f /etc/mtab*
  2679. </verb>
  2680.  
  2681. Some versions of SLS have an entry for the root partition in /etc/mtab
  2682. made in /etc/rc* by using rdev.  This is incorrect--the newer versions
  2683. of mount do this automatically.
  2684.  
  2685. Other versions of SLS have a line in /etc/fstab that looks like:
  2686. <verb>
  2687. /dev/sdb1   /root   ext2   defaults
  2688. </verb>
  2689. This is wrong.  /root should read simply /.
  2690.  
  2691. -------------------------------------------------------------------------------
  2692.  
  2693. <sect1>fdisk says Partition X has different physical/logical ... <label id="fdisk says Partition X has different physical/logical ...">
  2694. <P>
  2695. If the partition number (X, above) is 1, this is the same problem as 
  2696. in ``<ref id="fdisk: Partition 1 does not start on cylinder boundary.">''
  2697.  
  2698. If the partition begins or ends on a cylinder numbered greater than
  2699. 1024, this is because the standard DOS disk geometry information
  2700. format in the partition table can't cope with cylinder numbers with
  2701. more than 10 bits.  You should see ``<ref id="How can I get Linux to
  2702. work with my disk?">''
  2703.  
  2704. -------------------------------------------------------------------------------
  2705.  
  2706. <sect1>fdisk: Partition 1 does not start on cylinder boundary. <label id="fdisk: Partition 1 does not start on cylinder boundary.">
  2707. <P>
  2708. The version of fdisk that comes with many Linux systems creates partitions
  2709. that fail its own validity checking.  Unfortunately, if you've already
  2710. installed your system, there's not much you can do about this, apart from
  2711. copying the data off the partition, deleting and remaking it, and copying
  2712. the data back.
  2713.  
  2714. You can avoid the problem by getting the latest version of fdisk, from Rik
  2715. Faith's util-linux package (available on all the usual FTP sites).
  2716. Alternatively, if you are creating a new partition 1 that starts in the
  2717. first cylinder, you can do the following to get a partition that fdisk
  2718. likes.
  2719. <itemize>
  2720. <item>Create partition 1 in the normal way.  A `p' listing will produce the
  2721. mismatch complaint.
  2722. <item>Type `u' to set sector mode and do `p' again.  Copy down the number from
  2723. the ``End'' column.
  2724. <item>Delete partition 1.
  2725. <item>While still in sector mode, re-create partition 1.  Set the first sector
  2726. to match the number of sectors per track.  This is the sector number in
  2727. the first line of the `p' output.  Set the last sector to the value you
  2728. wrote down in the step above.
  2729. <item>Type `u' to reset cylinder mode and continue with other partitions.
  2730. </itemize>
  2731. Ignore the message about unallocated sectors--they refer to the sectors
  2732. on the first track apart from the Master Boot Record, and they are not used
  2733. if you start the first partition in track 2.
  2734.  
  2735. -------------------------------------------------------------------------------
  2736.  
  2737. <sect1>fdisk says partition n has an odd number of sectors. <label id="fdisk says partition n has an odd number of sectors.">
  2738. <P>
  2739. The PC disk partitioning scheme works in 512-byte sectors, but Linux uses
  2740. 1K blocks.  If you have a partition with an odd number of sectors, the last
  2741. sector is wasted.  Ignore the message.
  2742.  
  2743. -------------------------------------------------------------------------------
  2744.  
  2745. <sect1>mtools says cannot initialize drive XYZ <label id="mtools says cannot initialize drive XYZ">
  2746. <P>
  2747. This means that mtools is having trouble accessing the drive.  This can be
  2748. due to several things.
  2749.  
  2750. Often this is due to the permissions on floppy drive devices (/dev/fd0*
  2751. and /dev/fd1*) being incorrect--the user running mtools must have the
  2752. appropriate access.  See the manual page for chmod for details.
  2753.  
  2754. Most versions of mtools distributed with Linux systems (not the standard
  2755. GNU version) use the contents of a file /etc/mtools to determine which
  2756. devices and densities to use, in place of having this information compiled
  2757. into the binary.  Mistakes in this file often cause problems.  There is
  2758. often no documentation about this.
  2759.  
  2760. For the easiest way to access your MS-DOS files (especially those on a
  2761. hard disk partition) see <ref id="How do I access files on my DOS
  2762. partition or floppy?">  Note--you should never use mtools to access
  2763. files on an msdosfs mounted partition or disk!
  2764.  
  2765. -------------------------------------------------------------------------------
  2766.  
  2767. <sect1>At the start of booting: Memory tight <label id="At the start of booting: Memory tight">
  2768. <P>
  2769. This means that you have an extra-large kernel, which means that Linux
  2770. has to do some special memory-management magic to be able to boot
  2771. itself from the BIOS.  It isn't related to the amount of physical
  2772. memory in your machine.  Ignore the message, or compile a kernel
  2773. containing only the drivers and features you need.
  2774. (``<ref id ="How do I upgrade/recompile my kernel?">)''
  2775.  
  2776. -------------------------------------------------------------------------------
  2777. <sect1>My syslog says `end_request: I/O error, ...'. <label id="My
  2778. syslog says `end_request: I/O error, ...'.">
  2779. <P>
  2780. This error message, and messages like it, almost always indicate
  2781. a hardware error with a hard drive.
  2782.  
  2783. This commonly indicates a hard drive defect.  The only way to avoid
  2784. further data loss is to completely shut own the system.  You must also
  2785. make sure that whatever data is on the drive is backed up, and
  2786. restore it to a non-defective hard drive.
  2787.  
  2788. This error message may also indicate a bad connection to the drive,
  2789. especially with homebrew systems.  If you install an IDE drive,
  2790. ALWAYS use new cables.  It's probably is a good idea with SCSI drives,
  2791. too.
  2792.  
  2793. In one instance, this error also seemed to coincide with a bad ground
  2794. between the system board and the chassis.  Be sure that all electrical
  2795. connections are clean and tight before placing the blame on the hard
  2796. drive itself.
  2797.  
  2798. [Peter Moulder, Theodore T'so]
  2799.  
  2800. -------------------------------------------------------------------------------
  2801.  
  2802. <sect1>You don't exist. Go away. <label id="You don't exist. Go away.">
  2803. <P>
  2804. This is not a viral infection :-).  It comes from programs like
  2805. write, talk, and wall, if your invoking UID doesn't correspond to a valid
  2806. user (probably due to /etc/passwd being corrupted), or if the session
  2807. (pseudoterminal, specifically) you're using isn't properly registered in
  2808. the utmp file (probably because you invoked it in a funny way).
  2809.  
  2810. ===============================================================================
  2811.  
  2812. <sect>The X Window System. <label id="The X Window System.">
  2813. <P>
  2814. -------------------------------------------------------------------------------
  2815.  
  2816. <sect1>Does Linux support X Windows? <label id="Does Linux support X Windows?">
  2817. <P>
  2818. Yes.  Linux uses XFree86 (the current version is 3.3.2, which is based on
  2819. X11R6).  You need to have a video card which is supported by XFree86.  See
  2820. the Linux XFree86 HOWTO for more details.
  2821.  
  2822. Most Linux distributions nowadays come with an X installation.
  2823.  
  2824. However, you can install or upgrade your own, from
  2825. /pub/Linux/X11/Xfree86-* on sunsite.unc.edu and its mirror sites.  
  2826.  
  2827. -------------------------------------------------------------------------------
  2828.  
  2829. <sect1>Where can I get an XF86Config for my system? <label id="Where can I get an XF86Config for my system?">
  2830. <P>
  2831. See the Linux XFree86 HOWTO, recent versions of Installation and
  2832. Getting Started, and the instructions for the XF86Setup program.
  2833.  
  2834. The contents of the XF86Config file depend on the your exact
  2835. combination of video card and monitor.  It can either be configured by
  2836. hand, or using the XF86Setup utility.  Read the instructions that
  2837. came with XFree86, in /usr/X11R6/lib/X11/etc.  The file you probably
  2838. need to look at most is README.Config.
  2839.  
  2840. You should <em>not</em> use the sample XF86Config.eg file which is included
  2841. with newer versions of XFree86 verbatim, because the wrong video clock
  2842. settings can damage your monitor.
  2843.  
  2844. Please don't post to comp.os.linux.x asking for an XF86Config, and please
  2845. don't answer such requests.
  2846.  
  2847. -------------------------------------------------------------------------------
  2848.  
  2849. <sect1>xterm logins show up strangely in who, finger. <label id="xterm logins show up strangely in who, finger.">
  2850. <P>
  2851. The xterm that comes with XFree86 2.1 and earlier doesn't correctly
  2852. understand the format that Linux uses for the /var/adm/utmp file, where
  2853. the system records who is logged in.  It therefore doesn't set all the
  2854. information correctly.
  2855.  
  2856. The Xterms in XFree86 3.1 and later versions fix this problem.
  2857.  
  2858. -------------------------------------------------------------------------------
  2859.  
  2860. <sect1>I can't get X Windows to work right. <label id="I can't get X Windows to work right.">
  2861. <P>
  2862. Read the XFree86 HOWTO--note the question and answer section.
  2863.  
  2864. Try reading comp.windows.x.i386unix--specifically read the the FAQ for
  2865. that group.
  2866.  
  2867. Please don't post X Windows or XFree86 related questions to
  2868. comp.os.linux.x unless they are Linux-specific.
  2869.  
  2870. ===============================================================================
  2871.  
  2872. <sect>Questions applicable to very out-of-date software. <label id="Questions applicable to very out-of-date software.">
  2873. <P>
  2874. The questions in this section are only relevant to users of software that
  2875. is at least three months old.
  2876.  
  2877. Please let me know if you find the answer to a problem you had here, as
  2878. unused questions in this section will eventually disappear.
  2879. (See ``<ref id="Feedback is invited.">'')
  2880.  
  2881. -------------------------------------------------------------------------------
  2882.  
  2883. <sect1>fdisk says cannot use nnn sectors of this partition. <label id="fdisk says cannot use nnn sectors of this partition.">
  2884. <P>
  2885. Originally Linux only supported the Minix file system, which cannot
  2886. use more than 64Mb per partition.  This limitation is not present in
  2887. the more advanced file systems that are now available, such as ext2fs
  2888. (the 2nd version of the Extended File System, the `standard' Linux
  2889. file system).
  2890.  
  2891. If you intend to use ext2fs you can ignore the message.
  2892.  
  2893. -------------------------------------------------------------------------------
  2894.  
  2895. <sect1>GCC sometimes uses huge amounts of virtual memory and thrashes.<label id="GCC sometimes uses huge amounts of virtual memory and thrashes.">
  2896. <P>
  2897. Older versions of GCC had a bug which made them use lots of memory if you
  2898. tried to compile a program which had a large static data table in it.
  2899.  
  2900. You can either upgrade your version of GCC, or add more swap space if
  2901. necessary, or just wait for the program to finish compiling.
  2902.  
  2903. ===============================================================================
  2904.  
  2905. <sect>How to get further assistance. <label id="How to get further assistance.">
  2906. <P>
  2907.  
  2908. -------------------------------------------------------------------------------
  2909.  
  2910. <sect1>You still haven't answered my question! <label id="You still haven't answered my question!">
  2911. <P>
  2912. Please read all of this answer before posting.  I know it's a bit long,
  2913. but you may be about to make a fool of yourself in front of 50,000 people
  2914. and waste hundreds of hours of their time.  Don't you think it's worth 
  2915. spending some of your time to read and follow these instructions?
  2916.  
  2917. If you think an answer is incomplete or inaccurate, please e-mail Robert
  2918. Kiesling at <htmlurl url="mailto:kiesling@terracom.net" name="kiesling@terracom.net">.
  2919.  
  2920. Read the appropriate Linux Documentation Project books--see 
  2921. ``<ref id="Where can I get the HOWTO's and other documentation?">''
  2922.  
  2923.  
  2924. If you're a Unix newbie, read the FAQ for comp.unix.questions, and those
  2925. for any of the other comp.unix.* groups that may be relevant.
  2926.  
  2927. Linux has so much in common with commercial Unices, that almost
  2928. everything you read there will apply to Linux.  The FAQs, like all
  2929. FAQs, be found on rtfm.mit.edu in /pub/usenet/news.answers (the
  2930. <htmlurl url="mailto:mail-server@rtfm.mit.edu"
  2931. name="mail-server@rtfm.mit.edu"> can send you these files, if you
  2932. don't have FTP access).  There are mirrors of rtfm's FAQ archives on
  2933. various sites--check the Introduction to *.answers posting, posted,
  2934. or look in news-answers/introduction in the directory above.
  2935.  
  2936. Check the relevant HOWTO for the subject in question, if there is one, or
  2937. an appropriate old style sub-FAQ document.  Check the FTP sites.
  2938.  
  2939. Try experimenting--that's the best way to get to know Unix and Linux.
  2940.  
  2941. Read the documentation.  Check the manual pages (type ``man man'' if
  2942. you don't know about manual pages.  Try ``man -k subject''--it often
  2943. lists useful and relevant manual pages.
  2944.  
  2945. Check the Info documentation (type C-h i, i.e. Control H followed by I
  2946. in Emacs).  This isn't just for Emacs.  For example, the GCC
  2947. documentation lives here as well.
  2948.  
  2949. There will also often be a README file with a package that gives installation
  2950. and/or usage instructions.
  2951.  
  2952. Make sure you don't have a corrupted or out-of-date copy of the
  2953. program in question.  If possible, download it again and re-install
  2954. it--you probably made a mistake the first time.
  2955.  
  2956. Read comp.os.linux.announce--this often contains very important
  2957. information for all Linux users.
  2958.  
  2959. General X Window System questions belong in comp.windows.x.i386unix,
  2960. not in comp.os.linux.x.  But read the group first (including the FAQ),
  2961. before you post.
  2962.  
  2963. Only if you have done all of these things and are still stuck, should
  2964. you post to the appropriate comp.os.linux.* newsgroup.  Make sure you
  2965. read the next question first.  ``(<ref id="What to put in a request
  2966. for help.">)''
  2967.  
  2968. -------------------------------------------------------------------------------
  2969.  
  2970. <sect1>What to put in a request for help. <label id="What to put in a request for help.">
  2971. <P>
  2972. Please read the following advice carefully about how to write your
  2973. posting or email.  Making a complete posting will greatly increase the
  2974. chances that an expert or fellow user reading it will have enough
  2975. information and motivation to reply.
  2976.  
  2977. This advice applies both to postings asking for advice and to personal
  2978. email sent to experts and fellow users.
  2979.  
  2980. Make sure you give full details of the problem, including:
  2981. <itemize>
  2982. <item>What program, exactly, you are having problems with.  Include the
  2983. version number if known and say where you got it.  Many standard
  2984. commands tell you their version number if you give them 
  2985. a <tt>--version</tt> option.
  2986.  
  2987. <item>Which Linux release you're using (Red Hat, Slackware, Debian, or
  2988. whatever) and what version of that release.
  2989.  
  2990. <item>The exact and complete text of any error messages printed.
  2991.  
  2992. <item>Exactly what behavior you expected, and exactly what behavior
  2993. you observed.  A transcript of an example session is a good way to
  2994. show this.
  2995.  
  2996. <item>The contents of any configuration files used by the program in question
  2997. and any related programs.
  2998.  
  2999. <item>What version of the kernel and shared libraries you have installed.
  3000. The kernel version can be found by typing uname -a, and the shared
  3001. library version by typing ls -l /lib/libc.so.4.
  3002.  
  3003. <item>Details of what hardware you're running on, if it seems appropriate.
  3004. </itemize>
  3005. You are in little danger of making your posting too long unless you
  3006. include large chunks of source code or uuencoded files, so err on the side
  3007. of giving too much information.
  3008.  
  3009. Use a clear, detailed Subject line.  Don't put things like `doesn't work',
  3010. `Linux', `help', or `question' in it--we already know that. Save the
  3011. space for the name of the program, a fragment of an error message,
  3012. or summary of the unusual behavior.
  3013.  
  3014. If you report an `unable to handle kernel paging request' message,
  3015. follow the instructions in the Linux kernel sources README file for
  3016. turning the numbers into something more meaningful.  If you don't do
  3017. this, no one who reads your post will be able to do it for you.  The
  3018. mapping from numbers to function names varies from one kernel to
  3019. another.
  3020.  
  3021. Put a summary paragraph at the top of your posting.
  3022.  
  3023. At the bottom of your posting, ask for responses by email and say
  3024. you'll post a summary.  Back this up by using Followup-To: poster.
  3025. Then, actually post the summary in a few days or a week or so.  Don't
  3026. just concatenate the replies you got--summarize.  Putting the word
  3027. SUMMARY in your summary's Subject line is also a good idea.  Consider
  3028. submitting the summary to comp.os.linux.announce.
  3029.  
  3030. Make sure your posting doesn't have an inappropriate References: header
  3031. line.  This marks your article as part of the thread of the article
  3032. referred to, which will often cause it to be junked by readers, along
  3033. with the rest of a boring thread.
  3034.  
  3035. You might like to say in your posting that you've read this FAQ and the
  3036. appropriate HOWTO's--this may make people less likely to skip your
  3037. posting.
  3038.  
  3039. Remember that you should not post email sent to you personally without the
  3040. sender's permission.
  3041.  
  3042. -------------------------------------------------------------------------------
  3043.  
  3044. <sect1>I want to mail someone about my problem. <label id="I want to mail someone about my problem.">
  3045. <P>
  3046. Try to find the author or developer of whatever program or component is
  3047. causing you difficulty.  If you have a contact point for your Linux
  3048. distribution, you should use it.
  3049.  
  3050. Please put everything in your e-mail message that you would put in a
  3051. posting asking for help.
  3052.  
  3053. Finally, remember that, despite the fact that most of the Linux community
  3054. are very helpful and responsive to e-mailed questions, you're asking for
  3055. help from unpaid volunteers, so you have no right to expect an answer.
  3056.  
  3057. ===============================================================================
  3058. <sect>Administrative information and acknowledgments. <label id="Administrative information and acknowledgments.">
  3059. <P>
  3060. -------------------------------------------------------------------------------
  3061.  
  3062. <sect1>Feedback is invited. <label id="Feedback is invited.">
  3063. <P>
  3064. Please send me your comments on this FAQ.
  3065.  
  3066. I accept contributions to the FAQ in any format.  All contributions,
  3067. comments, and corrections are gratefully received.  Please send e-mail
  3068. to <htmlurl url="mailto:kiesling@terracom.net"
  3069. name="kiesling@terracom.net">.
  3070.  
  3071. If you wish to refer to a question in the FAQ, it's better for me if
  3072. you do so by the question heading, rather than number.  The
  3073. question numbers are generated automatically, and I don't see them in
  3074. the source file I edit.
  3075.  
  3076. I prefer comments in English to patch files--context diff is not my
  3077. first language.
  3078.  
  3079. -------------------------------------------------------------------------------
  3080.  
  3081. <sect1>Formats in which this FAQ is available. <label id="Formats in which this FAQ is available.">
  3082. <P>
  3083. This document is available as an ASCII text file, an HTML World Wide
  3084. Web page, Postscript, and as a USENET news posting.
  3085.  
  3086. All of these formats are generated from SGML source using SGML Tools
  3087. and the LinuxDoc DTD.
  3088.  
  3089. The HTML version of this FAQ is available as
  3090. <htmlurl url="http://sunsite.unc.edu/LDP/"
  3091. name="http://sunsite.unc.edu/LDP/"> 
  3092. at other sites.
  3093.  
  3094. The Usenet version is posted regularly to news.answers, comp.answers,
  3095. comp.os.linux.misc, and comp.os.linux.announce.  It is archived at
  3096. <htmlurl
  3097. url="ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/os/linux/misc/" 
  3098. name="ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/comp/os/linux/misc/">. 
  3099.  
  3100. The most recent text, HTML, SGML, and Postscript versions are
  3101. available from the Linux archives at sunsite.unc.edu, 
  3102. and from
  3103. <htmlurl url="http://www.terracom.net/~kiesling"
  3104. name="http://www.terracom.net/˜kiesling">
  3105.  
  3106. -------------------------------------------------------------------------------
  3107.  
  3108. <sect1>Authorship and acknowledgments. <label id="Authorship and acknowledgments.">
  3109. <P>
  3110. This FAQ is compiled and maintained by Robert Kiesling <htmlurl
  3111. url="mailto:kiesling@ix.netcom.com" name="kiesling@ix.netcom.com">,
  3112. with assistance and comments from Linux activists all over the
  3113. world.
  3114.  
  3115. Special thanks are due to Matt Welsh, who moderated
  3116. comp.os.linux.announce and comp.os.linux.answers, coordinated the
  3117. HOWTO's and wrote substantial portions of many of them, Greg Hankins
  3118. and Timothy Bynum, the former and current Linux Documentation Project
  3119. HOWTO maintainers, Lars Wirzenius and Mikko Rauhala, the former and
  3120. current moderators of comp.os.linux.announce, Marc-Michel Corsini, who
  3121. wrote the original Linux FAQ, and Ian Jackson, the previous FAQ
  3122. maintainer.  Thanks also to Roman Maurer for his many updates and
  3123. additions, especially with European Web sites, translations, and
  3124. general miscellany.
  3125.  
  3126. Last but not least, thanks to Linus Torvalds and the other contributors to
  3127. Linux for giving us something to talk about!
  3128.  
  3129. -------------------------------------------------------------------------------
  3130.  
  3131. <sect1>Disclaimer and Copyright. <label id="Disclaimer and Copyright.">
  3132. <P>
  3133. Note that this document is provided `as is'.  The information in it is
  3134. <em>not</em> warranted to be correct.  Use it at your own risk.
  3135.  
  3136. Linux Frequently Asked Questions with Answers is Copyright (c) 1997,
  3137. 1998 by Robert Kiesling <htmlurl url="mailto:kiesling@terracom.net"
  3138. name="kiesling@terracom.net">, under the copyright of the Linux
  3139. Documentation Project.  The full text of the LDP copyright is
  3140. available via anonymous FTP from sunsite.unc.edu, in the directory
  3141. /pub/Linux/docs/LDP, and is included below.
  3142.  
  3143. Portions are Copyright (c) 1994, 1995, 1996 by Ian Jackson, the previous
  3144. Linux FAQ maintainer.
  3145.  
  3146. Linux Frequently Asked Questions with Answers may be reproduced and
  3147. distributed in its entirety (including this authorship, copyright, and
  3148. permission notice), provided that no charge is made for the document
  3149. itself, without the author's consent.  This includes "fair use"
  3150. excerpts like reviews and advertising, and derivative works like
  3151. translations.
  3152.  
  3153. Note that this restriction is not intended to prohibit charging for the
  3154. service of printing or copying the document.
  3155.  
  3156. Exceptions to these rules may be granted.  I would be happy to answer
  3157. any questions regarding this copyright. E-mail me at <htmlurl
  3158. url="mailto:kiesling@ix.netcom.com" name="kiesling@ix.netcom.com">.  As
  3159. the license below says, these restrictions are here to protect the
  3160. contributors, not to restrict you as educators and learners.
  3161.  
  3162.  
  3163.  
  3164. <verb>
  3165.                   LINUX DOCUMENTATION PROJECT COPYING LICENSE
  3166.  
  3167.    Last modified 6 January 1997
  3168.  
  3169.  
  3170.    The following copyright license applies to all works by the Linux
  3171.    Documentation Project.
  3172.  
  3173.    Please read the license carefully---it is somewhat like the GNU
  3174.    General Public License, but there are several conditions in it that
  3175.    differ from what you may be used to. If you have any questions, please
  3176.    email the LDP coordinator, mdw@sunsite.unc.edu.
  3177.  
  3178.    The Linux Documentation Project manuals may be reproduced and
  3179.    distributed in whole or in part, subject to the following conditions:
  3180.  
  3181.    All Linux Documentation Project manuals are copyrighted by their
  3182.    respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN.
  3183.      * The copyright notice above and this permission notice must be
  3184.        preserved complete on all complete or partial copies.
  3185.      * Any translation or derivative work of Linux Installation and
  3186.        Getting Started must be approved by the author in writing before
  3187.        distribution.
  3188.      * If you distribute Linux Installation and Getting Started in part,
  3189.        instructions for obtaining the complete version of this manual
  3190.        must be included, and a means for obtaining a complete version
  3191.        provided.
  3192.      * Small portions may be reproduced as illustrations for reviews or
  3193.        quotes in other works without this permission notice if proper
  3194.        citation is given.
  3195.      * The GNU General Public License referenced below may be reproduced
  3196.        under the conditions given within it.
  3197.  
  3198.    Exceptions to these rules may be granted for academic purposes: Write
  3199.    to the author and ask. These restrictions are here to protect us as
  3200.    authors, not to restrict you as educators and learners. All source
  3201.    code in Linux Installation and Getting Started is placed under the GNU
  3202.    General Public License, available via anonymous FTP from the GNU
  3203.    archive site.
  3204.  
  3205.  
  3206.  
  3207.                             PUBLISHING LDP MANUALS
  3208.  
  3209.     If you're a publishing company interested in distributing any of the
  3210.    LDP manuals, read on.
  3211.  
  3212.    By the license given in the previous section, anyone is allowed to
  3213.    publish and distribute verbatim copies of the Linux Documentation
  3214.    Project manuals. You don't need our explicit permission for this.
  3215.    However, if you would like to distribute a translation or derivative
  3216.    work based on any of the LDP manuals, you must obtain permission from
  3217.    the author, in writing, before doing so.
  3218.  
  3219.    All translations and derivative works of LDP manuals must be placed
  3220.    under the Linux Documentation License given in the previous section.
  3221.    That is, if you plan to release a translation of one of the manuals,
  3222.    it must be freely distributable by the above terms.
  3223.  
  3224.    You may, of course, sell the LDP manuals for profit. We encourage you
  3225.    to do so. Keep in mind, however, that because the LDP manuals are
  3226.    freely distributable, anyone may photocopy or distribute printed
  3227.    copies free of charge, if they wish to do so.
  3228.  
  3229.    We do not require to be paid royalties for any profit earned from
  3230.    selling LDP manuals. However, we would like to suggest that if you do
  3231.    sell LDP manuals for profit, that you either offer the author
  3232.    royalties, or donate a portion of your earnings to the author, the LDP
  3233.    as a whole, or to the Linux development community. You may also wish
  3234.    to send one or more free copies of the LDP manual that you are
  3235.    distributing to the author. Your show of support for the LDP and the
  3236.    Linux community will be very appreciated.
  3237.  
  3238.    We would like to be informed of any plans to publish or distribute LDP
  3239.    manuals, just so we know how they're becoming available. If you are
  3240.    publishing or planning to publish any LDP manuals, please send email
  3241.    to Matt Welsh (email mdw@sunsite.unc.edu).
  3242.  
  3243.    We encourage Linux software distributors to distribute the LDP manuals
  3244.    (such as the Installation and Getting Started Guide) with their
  3245.    software. The LDP manuals are intended to be used as the ``official''
  3246.    Linux documentation, and we'd like to see mail-order distributors
  3247.    bundling the LDP manuals with the software. As the LDP manuals mature,
  3248.    hopefully they will fulfill this goal more adequately.
  3249.  
  3250.  
  3251.     Matt Welsh, mdw@sunsite.unc.edu
  3252. </verb>
  3253.  
  3254. </article>
  3255.