home *** CD-ROM | disk | FTP | other *** search
/ IT.SOFT 25 / ITSOFTCD_25.iso / pc / install.txt < prev    next >
Encoding:
Text File  |  1999-03-23  |  66.5 KB  |  1,522 lines

  1.  
  2. NOTE:  This is a somewhat ancient document, and may not be entirely accurate.
  3.        It might still contain useful information, so I hesitate to throw it
  4.        away.  Still, you'll do well to read the other README files first and
  5.        take advice here with a grain of salt. :^)
  6.  
  7. ------------------------------------------------------------------------------
  8.  
  9.   The Linux Installation HOWTO
  10.   by Matt Welsh, mdw@sunsite.unc.edu
  11.   v3.0, 30 June 1994
  12.   Updated by Patrick Volkerding for Slackware version 3.6.0.
  13.  
  14.   This document describes how to obtain and install the Linux software,
  15.   focusing on the popular Slackware distribution (version 3.6.0). It is
  16.   the first document which a new Linux user should read to get started.
  17.  
  18.   1.  Introduction
  19.  
  20.   Linux is a freely-distributable implementation of UNIX for 386, 486,
  21.   Pentium, and compatible machines.  It supports a wide range of software,
  22.   including X Windows, Emacs, TCP/IP networking (including SLIP/PPP), the
  23.   works.  This document assumes that you have heard of and know about Linux,
  24.   and just want to sit down and install it.
  25.  
  26.  
  27.  
  28.   1.1.  Other sources of information
  29.  
  30.   If you have never heard of Linux before, there are several sources of
  31.   basic information about the system. One is the Linux Frequently Asked
  32.   Questions list (FAQ), available from
  33.   sunsite.unc.edu:/pub/Linux/docs/FAQ. This document contains many
  34.   common questions (and answers!) about Linux---it is a ``must read''
  35.   for new users.
  36.  
  37.   In the directory /pub/Linux/docs on sunsite.unc.edu you'll find a
  38.   number of other documents about Linux, including the Linux INFO-SHEET
  39.   and META-FAQ, both of which you should read.  Also take a look at the
  40.   USENET newsgroups comp.os.linux.help and comp.os.linux.announce.
  41.  
  42.   Another source of online Linux documentation is the Linux HOWTO
  43.   archive, on sunsite.unc.edu:/pub/Linux/docs/HOWTO. The file HOWTO-
  44.   INDEX in that directory explains what Linux HOWTOs are available.
  45.  
  46.   The Linux Documentation Project is writing a set of manuals and books
  47.   about Linux, all of which are freely distributable on the net.  The
  48.   directory /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  49.   set of LDP manuals.
  50.  
  51.   The book ``Linux Installation and Getting Started'' is a complete
  52.   guide to getting and installing Linux, as well as how to use the
  53.   system once you've installed it. It contains a complete tutorial to
  54.   using and running the system, and much more information than is
  55.   contained here. This HOWTO is simply a condensation of some of the
  56.   most important information in that book. You can get ``Linux
  57.   Installation and Getting Started'' from sunsite.unc.edu in
  58.   /pub/Linux/docs/LDP/install-guide.  The README file there describes
  59.   how you can order a printed copy of the book (about 180 pages).
  60.  
  61.  
  62.  
  63.   1.2.  New versions of this document
  64.  
  65.   New versions of the Linux Installation HOWTO will be periodically
  66.   posted to comp.os.linux.announce, comp.os.linux, and news.answers.
  67.   They will also be uploaded to various Linux FTP sites, including
  68.   sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  69.  
  70.  
  71.  
  72.   1.3.  Feedback
  73.  
  74.   If you have questions or comments about this document, please feel
  75.   free to mail Matt Welsh, at mdw@sunsite.unc.edu. I welcome any
  76.   suggestions, criticism, or postcards. If you find a mistake with this
  77.   document, please let me know so I can correct it in the next version.
  78.   Thanks.
  79.  
  80.  
  81.   2.  Hardware Requirements
  82.  
  83.   What kind of system is needed to run Linux? This is a good question;
  84.   the actual hardware requirements for the system change periodically.
  85.   The Linux Hardware-HOWTO gives a (more or less) complete listing of
  86.   hardware supported by Linux. The Linux INFO-SHEET provides another
  87.   list.
  88.  
  89.   At the very least, a hardware configuration that looks like the
  90.   following is required:
  91.  
  92.   Any ISA, EISA or VESA Local Bus 80386 or 80486 system will do.
  93.   Currently, the MicroChannel (MCA) architecture (found on IBM PS/2
  94.   machines) is not supported.  Any CPU from the 386SX to the 486DX2 will
  95.   work. You do not need a math coprocessor, although it is nice to have
  96.   one.
  97.  
  98.   You need at least 4 megabytes of memory in your machine. Technically,
  99.   Linux will run with only 2 megs, but most installations and software
  100.   require 4. The more memory you have, the happier you'll be. I suggest
  101.   8 or 16 megabytes if you're planning to use X-Windows.
  102.  
  103.   Of course, you'll need a hard drive and an AT-standard drive
  104.   controller. All MFM, RLL, and IDE drives and controllers should work.
  105.   Many SCSI drives and adaptors are supported as well; the Linux SCSI-
  106.   HOWTO contains more information on SCSI.
  107.  
  108.   Linux can actually run on a single 5.25" HD floppy, but that's only
  109.   useful for installation and maintenance.
  110.  
  111.   Free space on your hard drive is needed as well. The amount of space
  112.   needed depends on how much software you plan to install. Most
  113.   installations require somewhere in the ballpark of 40 to 80 megs.
  114.   This includes space for the software, swap space (used as virtual RAM
  115.   on your machine), and free space for users, and so on.
  116.  
  117.   It's conceivable that you could run a minimal Linux system in 20 megs
  118.   or less, and it's conceivable that you could use well over 200 megs or
  119.   more for all of your Linux software. The amount varies greatly
  120.   depending on the amount of software you install and how much space you
  121.   require. More about this later.
  122.  
  123.   Linux will co-exist with other operating systems, such as MS-DOS,
  124.   Microsoft Windows, or OS/2, on your hard drive. (In fact you can even
  125.   access MS-DOS files and run some MS-DOS programs from Linux.)  In
  126.   other words, when partitioning your drive for Linux, MS-DOS or OS/2
  127.   live on their own partitions, and Linux exists on its own. We'll go
  128.   into more detail later.
  129.  
  130.   You do NOT need to be running MS-DOS, OS/2, or any other operating
  131.   system to use Linux. Linux is a completely different, stand-alone
  132.   operating system and does not rely on other OS's for installation and
  133.   use.
  134.  
  135.   You also need a Hercules, CGA, EGA, VGA, or Super VGA video card and
  136.   monitor.  In general, if your video card and monitor work under MS-DOS
  137.   then it should work under Linux. However, if you wish to run X
  138.   Windows, there are other restrictions on the supported video hardware.
  139.   The Linux XFree86-HOWTO contains more information about running X and
  140.   its requirements.
  141.  
  142.   In all, the minimal setup for Linux is not much more than is required
  143.   for most MS-DOS or MS Windows systems sold today. If you have a 386 or
  144.   486 with at least 4 megs of RAM, then you'll be happy running Linux.
  145.   Linux does not require huge amounts of diskspace, memory, or processor
  146.   speed. I (used to) run Linux on a 386/16 MHz (the slowest machine you
  147.   can get) with 4 megs of RAM, and was quite happy. The more you want to
  148.   do, the more memory (and faster processor) you'll need. In my
  149.   experience a 486 with 16 megabytes of RAM running Linux outdoes
  150.   several models of workstation.
  151.  
  152.  
  153.  
  154.   3.  Getting Linux
  155.  
  156.   In this section we'll cover how to obtain the Linux software.
  157.  
  158.  
  159.   3.1.  Linux Distributions
  160.  
  161.   Before you can install Linux, you need to decide on one of the
  162.   ``distributions'' of Linux which are available. There is no single,
  163.   standard release of the Linux software---there are many such releases.
  164.   Each release has its own documentation and installation instructions.
  165.  
  166.   Linux distributions are available both via anonymous FTP and via mail
  167.   order on diskette, tape, and CD-ROM. The Linux Distribution HOWTO (see
  168.   sunsite.unc.edu in the file /pub/Linux/docs/HOWTO/Distribution-HOWTO)
  169.   includes a list of many Linux distributions available via FTP and mail
  170.   order. 
  171.  
  172.   The release of Linux covered in this HOWTO is the Slackware
  173.   distribution, maintained by Patrick J. Volkerding
  174.   (volkerdi@slackware.com). It is one of the most popular
  175.   distributions available; it is very up-to-date and includes a good
  176.   amount of software including X-Windows, TeX, and others.  The
  177.   Slackware distribution consists of a number of ``disk sets'', each one
  178.   containing a particular type of software (for example, the d disk set
  179.   contains development tools such as the gcc compiler, and so forth).
  180.   You can elect to install whatever disk sets you like, and can easily
  181.   install new ones later.
  182.  
  183.   Slackware is also easy to install; it is very self-explanatory.  (So
  184.   self-explanatory, in fact, that this HOWTO may not be necessary.)
  185.  
  186.   The version of Slackware described here is 3.4.0, of November 1997.
  187.   Installation of later versions of Slackware should be very similar to
  188.   the information given here.
  189.  
  190.   Information on other releases can be found in the Linux Installation
  191.   and Getting Started manual from the LDP. You can also find other
  192.   releases of Linux on various FTP sites, including
  193.   sunsite.unc.edu:/pub/Linux/distributions See the Distribution-HOWTO
  194.   (mentioned above) for details.
  195.  
  196.   The instructions here should be general enough to be applicable to
  197.   releases other than Slackware. I hate to be biased towards a single
  198.   release, but I don't have time to keep up with them all! And Slackware
  199.   appears to have what most Linux users are looking for.
  200.  
  201.  
  202.  
  203.   3.2.  Slackware Space Requirements
  204.  
  205.   Unfortunately, Slackware does not maintain a complete list of
  206.   diskspace requirements for each disk set. You need at least 7
  207.   megabytes to install just the A series of disks; a very rough estimate
  208.   of the required diskspace would be 2 or 2.5 megabytes per disk.
  209.  
  210.   The following disk sets are available:
  211.  
  212.      A    The base Slackware system.  Contains enough utilities to get
  213.           Slackware running and have comm programs, editors, and installation
  214.           utilities available.  Installing the entire A series requires 25 MB.
  215.  
  216.      AP   Linux applications.  These are some useful programs, including
  217.           better editors, file quota utilities, a spell checker, man
  218.           pages (and the groff package needed to process them), a Norton
  219.           Commander clone called the Midnight Commander, extra shells, and
  220.           other utilities.  Installing the entire AP series uses 20 MB.
  221.  
  222.      D    Program development.  This series contains compilers, interpreters,
  223.           and other tools for C, C++, Objective-C, Fortran-77, Common LISP,
  224.           Pascal, Perl, and more.  You need this series if you plan to
  225.           recompile your kernel (or anything else).  Installing the entire D
  226.           series will require 48 MB.
  227.  
  228.      E    GNU Emacs 20.3.  This is a text editor with about a million extra
  229.           features that allow you to read your mail, news, edit and compile
  230.           programs, and just about anything else you might need to do.
  231.           Installing the entire E series will require 35 MB.
  232.  
  233.      F    Answers to Frequently Asked Questions about Linux.  This series
  234.           will install useful Linux documentation, including the Linux HOWTOs,
  235.           on your machine under /usr/doc/faq.  Installing the F series
  236.           requires about 11 MB.
  237.  
  238.      K    Linux kernel source.  This package contains source code for the
  239.           2.0.35 Linux kernel.  You'll need this (along with the C compiler
  240.           and utilities from the D series) if you want to recompile
  241.           your Linux kernel.  Installing the K series will require 27 MB, and
  242.           you'll need more to compile it.
  243.  
  244.      N    Networking.  This package contains TCP/IP and UUCP support for
  245.           Slackware, including packages to support SLIP/PPP, mail programs such
  246.           as sendmail, pine, and elm, news readers like tin, trn, and nn, the
  247.           Apache Web server, and lynx Web browser.  Installing the entire N
  248.           series will use 23 MB.
  249.  
  250.      T    The teTeX TeX distribution.  TeX is a typesetting language that you
  251.           can use to format and print high-quality output on many types of
  252.           printers.  Installing the entire T series requires 42 MB.
  253.  
  254.      TCL  Tcl/Tk/TclX scripting languages, and tools for using Macintosh disk
  255.           volumes.  The TCL series needs about 7 MB.
  256.  
  257.      X    The X Window System, from XFree86 3.3.2.  This series provides a
  258.           system for supporting GUIs (Graphical User Interfaces) under
  259.           Slackware.  The entire X series requires 70 MB.
  260.  
  261.      XAP  Applications for the X Window System.  Extra programs for X, such
  262.           as file managers (TkDesk, xfm, xfilemanager), a window manager
  263.           that makes X resemble Windows95 (fvwm95), graphical web browsers
  264.           (Arena and Netscape Communicator), image editing and processing
  265.           apps (xv, GNU gimp), a fractal generator (xfractint),
  266.           communications programs, and more.  Installing the entire XAP
  267.           series will require about 65 MB.
  268.  
  269.      XD   Tools to recompile X servers.  This is a kit used to relink your
  270.           server, perhaps to compile in support for a new video card.  Not
  271.           many people will need to install this -- this series is not needed
  272.           to compile X applications.  Installing the XD series will use
  273.           about 14 MB.
  274.  
  275.      XV   xview3.2p1-X11R6.  The XView series adds support for the Open Look
  276.           window manager (commonly used on Sun systems), and for compiling
  277.           XView applications.  The XV series uses 11 MB.
  278.  
  279.      Y    The Y series contains a collection of games for Slackware.
  280.           Installing the entire Y series will use about 8 MB.
  281.  
  282.   You must get the ``a'' disk set; the rest are optional.  I suggest at
  283.   least installing the a, ap, and d sets, as well as the x set if you
  284.   plan to run X Windows.
  285.  
  286.  
  287.   3.3.  Getting Slackware via Mail Order
  288.  
  289.   Slackware is available for free from the Internet, as well as via mail
  290.   order (if you don't have Internet access, or don't want to take the
  291.   time to download it yourself). The next section describes how to
  292.   download Slackware from the Internet.
  293.  
  294.   The official Slackware CD-ROM set is available from Walnut Creek CDROM,
  295.   see:  http://www.cdrom.com.
  296.  
  297.  
  298.   3.4.  Getting Slackware from the Internet
  299.  
  300.   The Slackware release of Linux may be found on any number of FTP sites
  301.   worldwide. The Linux META-FAQ lists several of the Linux FTP sites; we
  302.   suggest that you try to find the software on the FTP site nearest you,
  303.   to reduce net traffic. However, two of the major Linux FTP sites are
  304.   sunsite.unc.edu and tsx-11.mit.edu.
  305.  
  306.   The Slackware release may be found on the following FTP sites:
  307.  
  308.   o  sunsite.unc.edu:/pub/Linux/distributions/slackware
  309.  
  310.   o  tsx-11.mit.edu:/pub/linux/packages/slackware
  311.  
  312.   o  ftp.cdrom.com:/pub/linux/slackware
  313.  
  314.      ftp.cdrom.com is Slackware's home site.
  315.  
  316.  
  317.   3.4.1.  Downloading the files
  318.  
  319.   You need to download the following files from the FTP sites listed
  320.   above. Make sure that you use binary mode when FTPing them!
  321.  
  322.  
  323.  
  324.   o  The various README files, as well as FAQ.TXT.  Be sure to
  325.      read these files before attempting to install the software, to get
  326.      any updates or changes to this document.
  327.  
  328.   o  A bootdisk image. This is a file that you will write to a floppy to
  329.      create the Slackware boot disk. If you have a 1.44 megabyte boot
  330.      floppy (3.5"), look in the directory bootdsks.144.  If you have a
  331.      1.2 megabyte boot floppy (5.25"), look in the directory
  332.      bootdsks.12.  The README files in these directories describes what
  333.      the files are.
  334.  
  335.      You need one of the following files:
  336.  
  337.  
  338.     IDE Slackware bootdisks: 
  339.     ------------------------
  340.  
  341.     aztech.i           CDROM drives:  Aztech CDA268-01A, Orchid CD-3110,
  342.                        Okano/Wearnes CDD110, Conrad TXC, CyCDROM CR520, CR540.
  343.  
  344.     bare.i             This is the disk to use for installation on most IDE
  345.                        based PCs.  It includes support for IDE/ATAPI CDROM
  346.                        drives.  Most CDROM drives made today fall into this
  347.                        catagory.
  348.  
  349.     bareapm.i          This disk is the same as the bare.i image, with the
  350.                        addition of Advanced Power Management support.  This
  351.                        is usually used on laptops to check the battery
  352.                        level, or to put the machine in standby or sleep mode.
  353.                        On machines that aren't laptops, it can cause booting
  354.                        problems.
  355.  
  356.     cdu31a.i           Sony CDU31/33a CDROM.
  357.  
  358.     cdu535.i           Sony CDU531/535 CDROM.
  359.  
  360.     cm206.i            Philips/LMS cm206 CDROM with cm260 adapter card.
  361.  
  362.     goldstar.i         Goldstar R420 CDROM  (sometimes sold in a 'Reveal
  363.                        Multimedia Kit').
  364.  
  365.     isp16.i            Supports ISP16/MAD16/Mozart CDROM drives.
  366.                        Boot time command line options (or 'append=' options
  367.                        in /etc/lilo.conf) are:
  368.  
  369.                        isp16=<port>,<irq>,<dma>,<drive_type>
  370.  
  371.                        Valid values for drive_type include: Sanyo, Panasonic
  372.                        (same as Sanyo), Sony and Mitsumi.  Default values are:
  373.                        port=0x340, irq=0, dma=0, drive_type=Sanyo.
  374.  
  375.     lowmem.i           This is a really stripped-down Linux kernel which might
  376.                        be useful for installing on IDE systems with a low
  377.                        amount of RAM (less than 8MB).  If bare.i runs into
  378.                        problems, you might try this.  NOTE:  On systems with
  379.                        extremely low memory (4MB), ZipSlack plus the
  380.                        fourmeg.zip add-on (found in the zipslack directory)
  381.                        may boot and run even in cases where lowmem.i doesn't.
  382.  
  383.     mcd.i              NON-IDE Mitsumi CDROM support.
  384.  
  385.     mcdx.i             Improved NON-IDE Mitsumi CDROM support.
  386.  
  387.     net.i              An IDE/ATAPI bootdisk with Ethernet support.
  388.  
  389.     no_kbd.i           This version of bare.i is a workaround for a problem:
  390.                        Some newer P2/Celeron systems have been known to
  391.                        reboot themselves as the kernel is starting up.  This
  392.                        seems to happen as the keyboard LEDs are reset.  The
  393.                        no_kbd.i does not reset the keyboard LEDs, and will
  394.                        boot correctly on most machines with this symptom.
  395.                        A BIOS upgrade from the motherboard manufacturer may
  396.                        fix the problem.
  397.  
  398.     no_pci.i           If you're having problems with a hang during PCI
  399.                        probing, try this IDE-supporting bootdisk without PCI
  400.                        BIOS support.  Some old PCI motherboards have BIOS
  401.                        bugs and may crash if "PCI bios support" is enabled,
  402.                        but they run fine without this option.  In many cases
  403.                        the BIOS can be fixed with a flash update from the
  404.                        motherboard manufacturer's web site.
  405.  
  406.     optics.i           Optics Storage 8000 AT CDROM (the 'DOLPHIN' drive).
  407.  
  408.     pportide.i         This is an extended version of bare.i will support for
  409.                        a wide variety of parallel-port IDE devices.  Supports
  410.                        parallel-port products from MicroSolutions,
  411.                        Hewlett-Packard, SyQuest, Imation, Avatar, and other
  412.                        manufacturers.
  413.  
  414.     sanyo.i            Sanyo CDR-H94A CDROM support.
  415.  
  416.     sbpcd.i            Matsushita, Kotobuki, Panasonic, CreativeLabs
  417.                        (Sound Blaster), Longshine and Teac NON-IDE CDROM
  418.                        support.  IMPORTANT!  I can't possibly stress enough
  419.                        that this disk is *not* for IDE/ATAPI CDROM drives,
  420.                        which include nearly all of the drives made by these
  421.                        manufacturers recently.  For IDE/ATAPI CDROM drives,
  422.                        use bare.i.
  423.  
  424.     testkern.i         This is a disk built with a recent development kernel,
  425.                        such as linux-2.1.125.
  426.  
  427.     xt.i               MFM (very very old) hard drive support.
  428.  
  429.  
  430.     SCSI/IDE Slackware bootdisks:    
  431.     -----------------------------
  432.  
  433.     7000fast.s         Western Digital 7000FASST SCSI support.
  434.  
  435.     advansys.s         This bootdisk supports all AdvanSys SCSI controllers,
  436.                        including some SCSI cards included with HP CD-R/RW
  437.                        drives, the Iomega Jaz Jet SCSI controller, and the
  438.                        SCSI controller on the Iomega Buz multimedia adapter.
  439.  
  440.     aha152x.s          Adaptec 152x SCSI support.  This supports the AHA-1510,
  441.                        AHA-1520, AHA-1522, and AHA-2825 SCSI host adapters.
  442.  
  443.     aha1542.s          Adaptec 1542 SCSI support.
  444.  
  445.     aha1740.s          Adaptec 1740 SCSI support.
  446.  
  447.     aha2x4x.s          Adaptec AIC7xxx SCSI support.  These include the 274x
  448.                        EISA cards, 284x VLB cards, 294x PCI cards, 394x PCI
  449.                        cards, 3985 PCI card, and several versions of the
  450.                        Adaptec built-in SCSI controllers on various PC
  451.                        motherboards.
  452.  
  453.     aic7890.s          This bootdisk supports some SCSI controllers using
  454.                        very recent versions of the Adaptec aic7xxx chipset.  If
  455.                        aha2x4x.s doesn't work for you, try this.  This may also
  456.                        provide better performance for other aic7xxx cards.
  457.  
  458.     am53c974.s         AMD AM53/79C974 SCSI support.
  459.  
  460.     buslogic.s         This supports BusLogic MultiMaster and FlashPoint SCSI
  461.                        controllers.
  462.  
  463.     dtc3280.s          DTC (Data Technology Corp) 3180/3280 SCSI support.
  464.  
  465.     eata_dma.s         DPT EATA-DMA SCSI support.  (Boards such as PM2011,
  466.                        PM2021, PM2041, PM3021, PM2012B, PM2022, PM2122, PM2322,
  467.                        PM2042, PM3122, PM3222, PM3332, PM2024, PM2124, PM2044,
  468.                        PM2144, PM3224, PM3334.)
  469.  
  470.     eata_isa.s         DPT EATA-ISA/EISA SCSI support.  (Boards such as
  471.                        PM2011B/9X, PM2021A/9X, PM2012A, PM2012B, PM2022A/9X,
  472.                        PM2122A/9X, PM2322A/9X)
  473.  
  474.     eata_pio.s         DPT EATA-PIO SCSI support.  (PM2001 and PM2012A)
  475.  
  476.     fdomain.s          This supports Future Domain's 16-bit SCSI host adapters
  477.                        (TMC-1660/1680, TMC-1650/1670, TMC-3260,
  478.                        TMC-1610M/MER/MEX) and other adapters based on the
  479.                        Future Domain chipsets (Quantum ISA-200S, ISA-250MG;
  480.                        Adaptec AHA-2920; and at least one IBM board).
  481.  
  482.     gdt.s              This is a bootdisk for all SCSI Disk Array Controllers
  483.                        (EISA/ISA/PCI) manufactured by ICP Vortex.
  484.  
  485.     ibmmca.s           This is a bootdisk based on a development kernel which
  486.                        supports MicroChannel Architecture, found in some IBM
  487.                        PS/2 machines and laptops. It is a bus system similar to
  488.                        PCI or ISA.  Support for most MCA SCSI, Ethernet, and
  489.                        Token Ring adapters is included.
  490.  
  491.     in2000.s           Always IN2000 SCSI support.
  492.  
  493.     iomega.s           IOMEGA PPA3 parallel port SCSI support.  This supports
  494.                        the parallel-port Zip drive as a Linux SCSI device.  It
  495.                        does not support the ZipPlus drive (but you can use a
  496.                        ZipPlus with Linux if you attach it to a SCSI controller.                       It works better that way, anyway. :)
  497.  
  498.     n53c406a.s         NCR 53c406a SCSI support.
  499.  
  500.     n_5380.s           NCR 5380 and 53c400 SCSI support.  This is the generic
  501.                        NCR family of SCSI controllers, not to be confused with
  502.                        the NCR 53c7 or 8xx controllers.  An example of a
  503.                        controller that uses the NCR53c400 chip is the Trantor
  504.                        T130B.
  505.  
  506.     n_53c7xx.s         NCR 53c7xx, 53c8xx SCSI support.  (Most NCR PCI
  507.                        SCSI controllers use this driver)
  508.  
  509.     n_53c8xx.s         This is the FreeBSD NCR driver adapted to Linux for
  510.                        the NCR53C8XX family of PCI-SCSI controllers. This
  511.                        driver supports parity checking, tagged command queuing,
  512.                        fast SCSI II transfer up to 10 MB/s with narrow SCSI
  513.                        devices and 20 MB/s with wide scsi devices.  It also
  514.                        supports Ultra SCSI data transfers with NCR53C860 and
  515.                        NCR53C875 controllers.
  516.  
  517.     no_kbd.s           This version of scsi.s is a workaround for a problem:
  518.                        Some newer P2/Celeron systems have been known to
  519.                        reboot themselves as the kernel is starting up.  This
  520.                        seems to happen as the keyboard LEDs are reset.  The
  521.                        no_kbd.s does not reset the keyboard LEDs, and will
  522.                        boot correctly on most machines with this symptom.
  523.                        A BIOS upgrade from the motherboard manufacturer may
  524.                        fix the problem.
  525.  
  526.     no_pci.s           If you're having problems with a hang during PCI
  527.                        probing, try this SCSI-supporting bootdisk without PCI
  528.                        BIOS support.  Some old PCI motherboards have BIOS
  529.                        bugs and may crash if "PCI bios support" is enabled,
  530.                        but they run fine without this option.  In many cases
  531.                        the BIOS can be fixed with a flash update from the
  532.                        motherboard manufacturer's web site.
  533.  
  534.     old_cd.s           This disk is provided in the unlikely event that
  535.                        someone needs to install from an old CDROM drive on a
  536.                        proprietary (*not* SCSI or IDE/ATAPI) interface to a
  537.                        hard drive on a SCSI controller.  This disk supports
  538.                        most Linux supported SCSI controllers, plus the CDROM
  539.                        drives supported by these bootdisks:  aztech.i, cdu31a.i,                       cdu535.i, cm206.i, goldstar.i, isp16.i, mcd.i, mcdx.i,
  540.                        optics.i, sanyo.i, and sbpcd.i.
  541.  
  542.     pas16.s            Pro Audio Spectrum/Studio 16 SCSI support.
  543.  
  544.     qlog_fas.s         ISA/VLB/PCMCIA Qlogic FastSCSI! support.  (also
  545.                        supports the Control Concepts SCSI cards based on the
  546.                        Qlogic FASXXX chip)
  547.  
  548.     qlog_isp.s         Supports all Qlogic PCI SCSI controllers, except the
  549.                        PCI-basic, which is supported by the AMD SCSI driver
  550.                        found on the am53c974.s bootdisk.
  551.  
  552.     scsi.s             A generic SCSI bootdisk, with support for most SCSI
  553.                        controllers that work under Linux.  (NOTE: This disk
  554.                        wastes a lot of memory, since it contains nearly *all*
  555.                        of the SCSI drivers.  If you know which SCSI controller
  556.                        your system has, it's *far* better to use the disk
  557.                        designed especially for it.  But, if you don't know,
  558.                        then this generic disk might just work for you.)
  559.  
  560.     scsinet.s          Supports most SCSI controllers, plus most ethernet
  561.                        cards.  Use this for installing over a network to a
  562.                        SCSI drive.
  563.  
  564.     seagate.s          Seagate ST01/ST02, Future Domain TMC-885/950 SCSI
  565.                        support.
  566.  
  567.     tekram.s           This bootdisk supports the Tekram DC390(T) PCI SCSI
  568.                        Hostadapter with the Am53C974A chip, and perhaps other
  569.                        cards using the same chip.  It does _not_ support the
  570.                        DC390W/U/F adaptor with the NCR/Symbios chips -- for
  571.                        those cards, use the n_53c8xx.s bootdisk.
  572.  
  573.     testkern.s         This is a generic SCSI supporting disk built with a
  574.                        recent development kernel such as linux-2.1.125.
  575.  
  576.     trantor.s          Trantor T128/T128F/T228 SCSI support.
  577.  
  578.     ultrastr.s         UltraStor 14F, 24F, and 34F SCSI support.
  579.  
  580.     ustor14f.s         UltraStor 14F and 34F SCSI support.
  581.  
  582.  
  583.   o  A rootdisk image. This is a file that you will write to a floppy to
  584.      create the Slackware installation disk. As with the bootdisk image,
  585.      look in rootdsks.144 or rootdsks.12 depending on the type of boot
  586.      floppy drive that you have.
  587.  
  588.      You need one of the following files:
  589.  
  590.   o  color.gz. The menu-based color installation disk for 1.44 meg
  591.      drives. Most users should use this rootdisk.
  592.  
  593.   o  umsdos.gz. A version of the color.gz disk for installing with the
  594.      UMSDOS filesystem, which allows you to install Linux onto a
  595.      directory of an MS-DOS filesystem. This installation method is not
  596.      discussed in detail here, but it will prevent you from having to
  597.      repartition your drive. More on this later.
  598.  
  599.   o  text.gz. The terminal-based installation disk for 1.44 meg
  600.      drives. You should use color.gz, but a few people have reported
  601.      problems with it on their system. If color.gz doesn't work for
  602.      you, try text.gz instead.  It is a bit dated and the installation
  603.      procedure isn't identical, but it should work if color.gz
  604.      doesn't.
  605.  
  606.   o  pcmcia.gz.  This disk contains support for installing via a PCMCIA
  607.      card.  
  608.  
  609.      Again, you need only one of the above rootdisk images, depending on
  610.      the type of boot floppy drive that you have.
  611.  
  612.   o  RAWRITE.EXE. This is an MS-DOS program that will write the contents
  613.      of a file (such as the boot and rootdisk images) directly to a
  614.      floppy, without regard to format. You will use RAWRITE.EXE to
  615.      create the boot and root floppies.  This can be found in the
  616.      install directory as well.
  617.  
  618.      You only need RAWRITE.EXE if you plan to create the boot and root
  619.      floppies from an MS-DOS system. If you have access to a UNIX
  620.      workstation with a floppy drive instead, you can create the floppies
  621.      from there, using the dd command.  See the man page for dd and ask
  622.      your local UNIX gurus for assistance.
  623.  
  624.   o  The files in the directories a1 through a12.  These files make up
  625.      the ``a'' disk set of the Slackware distribution. They are
  626.      required. Later, you will copy these files to MS-DOS floppies for
  627.      installation (or, you can install from your hard drive). Therefore,
  628.      when you download these files, keep them in separate directories;
  629.      don't mix the a1 files with the a2 files, and so on.
  630.  
  631.      Be sure that you get the files without periods in the filenames as
  632.      well. That is, within FTP, use the command ``mget *'' instead of
  633.      ``mget *.*''.
  634.  
  635.   o  The files in the directories ap1, ap2, etc., depending on what disk
  636.      sets you are installing. For example, if you are installing the
  637.      ``x'' disk series, get the files in the directories x1 through x5.
  638.      As with the ``a'' disk set, above, be sure to keep the files in
  639.      separate directories when you download them.
  640.  
  641.  
  642.   3.4.2.  Installation methods
  643.  
  644.   Slackware provides several different means of installing the software.
  645.   The most popular is installing from an MS-DOS partition on your hard
  646.   drive; the other is to install from a set of MS-DOS floppies created
  647.   from the disk sets that you downloaded.
  648.  
  649.   You can also install Slackware from an NFS-mounted filesystem over a
  650.   TCP/IP network. This is somewhat involved, however, and a discussion
  651.   of how to do this is out of the range of this document. If you need
  652.   help, ask your local UNIX gurus how to set up your system to mount an
  653.   NFS filesystem which you can install Slackware from. (For this, you'll
  654.   need another system on the network which has Slackware available on an
  655.   exported filesystem.)
  656.  
  657.   First we'll describe how to create the boot and root floppies, and
  658.   then we'll describe how to set things up for either a hard drive or
  659.   floppy installation.
  660.  
  661.  
  662.   3.4.2.1.  Creating the boot and root floppies
  663.  
  664.   You must create floppies from the bootdisk and rootdisk images that
  665.   you downloaded, no matter what type of installation you will be doing.
  666.   This is where the MS-DOS program RAWRITE.EXE comes into play.
  667.  
  668.   First, you must have two high-density MS-DOS formatted floppies.  (They
  669.   must be of the same type; that is, if your boot floppy drive is a 3.5"
  670.   drive, both floppies must be high-density 3.5" disks.) You will use
  671.   RAWRITE.EXE to write the boot and rootdisk images to the floppies.
  672.  
  673.   For example, if you're using the bare.i bootdisk, use the command:
  674.  
  675.        C:\> RAWRITE BARE.I A:
  676.  
  677.  
  678.   RAWRITE will copy the file, block-by-block, directly to the floppy. 
  679.   Also use RAWRITE for the root disk image (such as COLOR.GZ). When 
  680.   you're done, you'll have two floppies: one containing the boot disk,
  681.   the other containing the root disk. Note that these two floppies will
  682.   no longer be readable by MS-DOS (they are ``Linux format'' floppies,
  683.   in some sense).
  684.  
  685.   Be sure that you're using brand-new, error-free floppies. The floppies
  686.   must have no bad blocks on them.
  687.  
  688.   Note that you do not need to be running MS-DOS in order to install
  689.   Slackware. However, running MS-DOS makes it easier to create the boot
  690.   and root floppies, and it makes it easier to install the software (as
  691.   you can install directly from an MS-DOS partition on your system). If
  692.   you are not running MS-DOS on your system, you can use someone else's
  693.   MS-DOS system just to create the floppies, and install from there.
  694.  
  695.   It is not necessary to use RAWRITE.EXE under MS-DOS to create the boot
  696.   and root floppies, either. You can use the dd command on a UNIX system
  697.   to do the same job.  (For this, you will need a UNIX workstation with
  698.   a floppy drive, of course.) For example, on a Sun workstation with the
  699.   floppy drive on device /dev/rfd0, you can use the command:
  700.  
  701.  
  702.        $ dd if=bare.i of=/dev/rfd0 obs=18k
  703.  
  704.  
  705.  
  706.  
  707.   You must provide the appropriate block size argument (the obs argu-
  708.   ment) on some workstations (e.g., Suns) or this will fail. If you have
  709.   problems the man page for dd will be instructive.
  710.  
  711.  
  712.   3.4.2.2.  Preparing for installation from hard drive
  713.  
  714.   If you're planning on installing the Slackware software directly from
  715.   the hard drive (which is much faster and more reliable than a floppy
  716.   installation), you will need an MS-DOS partition on the system that
  717.   you're installing Slackware to. (That is, you must already be running
  718.   MS-DOS on the system.)
  719.  
  720.   Note: If you plan to install Slackware from an MS-DOS partition, that
  721.   partition must NOT be compressed with DoubleSpace, Stacker, or any
  722.   other MS-DOS drive compression utility. Linux cannot currently read
  723.   DoubleSpace/Stacker MS-DOS partitions directly. (You can access them
  724.   via the MS-DOS Emulator, but that is not an option when installing the
  725.   Linux software.)
  726.  
  727.   To prepare for hard drive installation, simply create a directory on
  728.   the hard drive to store the Slackware files. For example,
  729.  
  730.        C:\> MKDIR SLACKWAR
  731.  
  732.  
  733.   will create the directory C:\SLACKWAR to hold the Slackware files.
  734.   Under this directory, you should create the subdirectories A1, A2, and
  735.   so on, for each disk set that you downloaded. All of the files from
  736.   the A1 disk should go into the directory SLACKWAR\A1, and so forth.
  737.  
  738.   Now you're ready to go on and install the software; skip to the
  739.   section ``Installing the Software''.
  740.  
  741.  
  742.   3.4.2.3.  Preparing for floppy installation
  743.  
  744.   If you wish to install Slackware from floppies instead of the hard
  745.   drive, you'll need to have one blank, MS-DOS formatted floppy for each
  746.   Slackware disk that you downloaded. These disks must be high-density
  747.   format.
  748.  
  749.   The A disk set (disks A1 through A8) may be either 3.5" or 5.25"
  750.   floppies. However, the rest of the disk sets must be 3.5" disks.
  751.   Therefore, if you only have a 5.25" floppy drive, you'll need to
  752.   borrow a 3.5" drive from someone in order to install disk sets other
  753.   than A. (Or, you can install from the hard drive, as explained in the
  754.   previous section.)
  755.  
  756.   To make the disks, simply copy the files from each Slackware directory
  757.   onto an MS-DOS formatted floppy, using the MS-DOS COPY command. As so:
  758.  
  759.        C:\> COPY A1\*.* A:
  760.  
  761.  
  762.   will copy the contents of the A1 disk to the floppy in drive A:.  You
  763.   should repeat this for each disk that you downloaded.
  764.   You do not need to modify or uncompress the files on the disks in any
  765.   way; you merely need to copy them to MS-DOS floppies. The Slackware
  766.   installation procedure takes care of uncompressing the files for you.
  767.  
  768.  
  769.   4.  Installing the Software
  770.  
  771.   In this section we'll describe how to prepare your system for
  772.   installing Slackware, and finally how to go about installing it.
  773.  
  774.  
  775.   4.1.  Repartitioning
  776.  
  777.   On most systems, the hard drive is already dedicated to partitions for
  778.   MS-DOS, OS/2, and so on.  You need to resize these partitions in order
  779.   to make space for Linux.
  780.  
  781.   NOTE: If you use one of the umsdos root diskettes, you can install
  782.   Slackware TO a directory on your MS-DOS partition. (This is different
  783.   than installing FROM an MS-DOS partition.) Instead, you use the
  784.   ``UMSDOS filesystem'', which allows you to treat a directory of your
  785.   MS-DOS partition as a Linux filesystem. In this way, you don't have to
  786.   repartition your drive.
  787.  
  788.   I only suggest using this method if your drive has four partitions and
  789.   repartitioning would be more trouble than it's worth. Or, if you want
  790.   to try Slackware out before repartitioning, this is a good way to do
  791.   so. But in most cases you should repartition, as described here. If
  792.   you do plan to use UMSDOS, you are on your own---it is not documented
  793.   in detail here. From now on, we assume that you are NOT using UMSDOS,
  794.   and that you will be repartitioning.
  795.  
  796.   A partition is just a section of the hard drive set aside for a
  797.   particular operating system to use. If you only have MS-DOS installed,
  798.   your hard drive probably has just one partition, entirely for MS-DOS.
  799.   To use Linux, however, you'll need to repartition the drive, so that
  800.   you have one partition for MS-DOS, and one (or more) for Linux.
  801.  
  802.   Partitions come in three flavors: primary, extended, and logical.
  803.   Briefly, primary partitions are one of the four main partitions on
  804.   your drive. However, if you wish to have more than four partitions per
  805.   drive, you need to create an extended partition, which can contain
  806.   many logical partitions.  You don't store data directly on an extended
  807.   partition---it is used only as a container for logical partitions.
  808.   Data is stored only on either primary or logical partitions.
  809.  
  810.   To put this another way, most people use only primary partitions.
  811.   However, if you need more than four partitions on a drive, you create
  812.   an extended partition. Logical partitions are then created on top of
  813.   the extended partition, and there you have it---more than four
  814.   partitions per drive.
  815.  
  816.   Note that you can easily install Linux on the second drive on your
  817.   system (known as D: to MS-DOS). You simply specify the appropriate
  818.   device name when creating Linux partitions. This is described in
  819.   detail below.
  820.  
  821.   Back to repartitioning your drive: The problem with resizing
  822.   partitions is that there is no way to do it (easily) without deleting
  823.   the data on those partitions.  Therefore, you will need to make a full
  824.   backup of your system before repartitioning. In order to resize a
  825.   partition, we simply delete the partition(s), and re-create them with
  826.   smaller sizes.
  827.  
  828.   NOTE: There is a non-destructive disk repartitioner available for MS-
  829.   DOS, called FIPS. Look on sunsite.unc.edu in the directory
  830.   /pub/Linux/system/Install. With FIPS, a disk optimizer (such as Norton
  831.   Speed Disk), and a little bit of luck, you should be able to resize
  832.   MS-DOS partitions without destroying the data on them.  It's still
  833.   suggested that you make a full backup before attempting this.
  834.  
  835.   If you're not using FIPS, however, the classic way to modify
  836.   partitions is with the program FDISK. For example, let's say that you
  837.   have an 80 meg hard drive, dedicated to MS-DOS. You'd like to split it
  838.   in half---40 megs for MS-DOS and 40 megs for Linux. In order to do
  839.   this, you run FDISK under MS-DOS, delete the 80 meg MS-DOS partition,
  840.   and re-create a 40 meg MS-DOS partition in its place. You can then
  841.   format the new partition and reinstall your MS-DOS software from
  842.   backups. 40 megabytes of the drive is left empty. Later, you create
  843.   Linux partitions on the unused portion of the drive.
  844.  
  845.   In short, you should do the following to resize MS-DOS partitions with
  846.   FDISK:
  847.  
  848.   1. Make a full backup of your system.
  849.  
  850.   2. Create an MS-DOS bootable floppy, using a command such as
  851.  
  852.        FORMAT /S A:
  853.  
  854.  
  855.   3. Copy the files FDISK.EXE and FORMAT.COM to this floppy, as well as
  856.      any other utilities that you need. (For example, utilities to
  857.      recover your system from backup.)
  858.  
  859.   4. Boot the MS-DOS system floppy.
  860.  
  861.   5. Run FDISK, possibly specifying the drive to modify (such as C: or
  862.      D:).
  863.  
  864.   6. Use the FDISK menu options to delete the partitions which you wish
  865.      to resize. This will destroy all data on the affected partitions.
  866.  
  867.   7. Use the FDISK menu options to re-create those partitions, with
  868.      smaller sizes.
  869.  
  870.   8. Exit FDISK and re-format the new partitions with the FORMAT
  871.      command.
  872.  
  873.   9. Restore the original files from backup.
  874.  
  875.   Note that MS-DOS FDISK will give you an option to create a ``logical
  876.   DOS drive''. A logical DOS drive is just a logical partition on your
  877.   hard drive. You can install Linux on a logical partition, but you
  878.   don't want to create that logical partition with MS-DOS fdisk. So, if
  879.   you're currently using a logical DOS drive, and want to install Linux
  880.   in its place, you should delete the logical drive with MS-DOS FDISK,
  881.   and (later) create a logical partition for Linux in its place.
  882.  
  883.   The mechanism used to repartition for OS/2 and other operating systems
  884.   is similar. See the documentation for those operating systems for
  885.   details.
  886.  
  887.  
  888.  
  889.   4.2.  Creating partitions for Linux
  890.  
  891.   After repartitioning your drive, you need to create partitions for
  892.   Linux. Before describing how to do that, we'll talk about partitions
  893.   and filesystems under Linux.
  894.  
  895.  
  896.   4.2.1.  Filesystems and swap space
  897.  
  898.   Linux requires at least one partition, for the root filesystem, which
  899.   will hold the Linux software itself.
  900.  
  901.   You can think of a filesystem as a partition formatted for Linux.
  902.   Filesystems are used to hold files. Every system must have a root
  903.   filesystem, at least. However, many users prefer to use multiple
  904.   filesystems---one for each major part of the directory tree. For
  905.   example, you may wish to create a separate filesystem to hold all
  906.   files under the /usr directory.  (Note that on UNIX systems, forward
  907.   slashes are used to delimit directories, not backslashes as with MS-
  908.   DOS.) In this case you have both a root filesystem, and a /usr
  909.   filesystem.
  910.  
  911.   Each filesystem requires its own partition. Therefore, if you're using
  912.   both root and /usr filesystems, you'll need to create two Linux
  913.   partitions.
  914.  
  915.   In addition, most users create a swap partition, which is used for
  916.   virtual RAM. If you have, say, 4 megabytes of memory on your machine,
  917.   and a 10-megabyte swap partition, as far as Linux is concerned you
  918.   have 14 megabytes of virtual memory.
  919.  
  920.   When using swap space, Linux moves unused pages of memory out to disk,
  921.   allowing you to run more applications at once on your system.
  922.   However, because swapping is often slow, it's no replacement for real
  923.   physical RAM. But applications that require a great deal of memory
  924.   (such as the X Window System) often rely on swap space if you don't
  925.   have enough physical RAM.
  926.  
  927.   Nearly all Linux users employ a swap partition.  If you have 4
  928.   megabytes of RAM or less, a swap partition is required to install the
  929.   software. It is strongly recommended that you have a swap partition
  930.   anyway, unless you have a great amount of physical RAM.
  931.  
  932.   The size of your swap partition depends on how much virtual memory you
  933.   need. It's often suggested that you have at least 16 megabytes of
  934.   virtual memory total. Therefore, if you have 8 megs of physical RAM,
  935.   you might want to create an 8-megabyte swap partition.  In fact, with the
  936.   high memory requirements of today's X applications, you should probably
  937.   consider shooting for a higher total virtual memory figure, like 32 MB or
  938.   even 64 MB.
  939.  
  940.  
  941.   4.2.2.  Booting the installation disk
  942.  
  943.   The first step is to boot the Slackware bootdisk.  After the system
  944.   boots, you will see the message:
  945.  
  946.     VFS: Insert root floppy disk to be loaded into ramdisk and press ENTER
  947.  
  948.  
  949.  
  950.   At this point you should remove the bootdisk from the drive and insert
  951.   the rootdisk. Then press enter to go on.
  952.  
  953.   The rootdisk will be loaded into memory, and you should be presented
  954.   with a login prompt. Login as ``root''.
  955.  
  956.  
  957.  
  958.   slackware login: root
  959.   #
  960.  
  961.  
  962.   4.2.3.  Using fdisk
  963.  
  964.   To create partitions, you'll use the Linux fdisk program.  After
  965.   logging in as root, run the command
  966.  
  967.        fdisk <drive>
  968.  
  969.  
  970.   where <drive> is the name of the drive that you wish to create Linux
  971.   partitions on. Hard drive device names are:
  972.  
  973.   o  /dev/hda First IDE drive
  974.  
  975.   o  /dev/hdb Second IDE drive
  976.  
  977.   o  /dev/sda First SCSI drive
  978.  
  979.   o  /dev/sdb Second SCSI drive
  980.  
  981.      For example, to create Linux partitions on the first SCSI drive in
  982.      your system, use the command
  983.  
  984.        fdisk /dev/sda
  985.  
  986.  
  987.   If you use fdisk without an argument, it will assume /dev/hda.
  988.  
  989.   To create Linux partitions on the second drive on your system, simply
  990.   specify either /dev/hdb (for IDE drives) or /dev/sdb (for SCSI drives)
  991.   when running fdisk.
  992.  
  993.   Your Linux partitions don't all have to be on the same drive.  You
  994.   might want to create your root filesystem partition on /dev/hda and
  995.   your swap partition on /dev/hdb, for example. In order to do so just
  996.   run fdisk once for each drive.
  997.  
  998.   Use of fdisk is simple. The command ``p'' displays your current
  999.   partition table. ``n'' creates a new partition, and ``d'' deletes a
  1000.   partition.
  1001.  
  1002.   To Linux, partitions are given a name based on the drive which they
  1003.   belong to. For example, the first partition on the drive /dev/hda is
  1004.   /dev/hda1, the second is /dev/hda2, and so on. If you have any logical
  1005.   partitions, they are numbered starting with /dev/hda5, /dev/hda6 and
  1006.   so on up.
  1007.  
  1008.   NOTE: You should not create or delete partitions for operating systems
  1009.   other than Linux with Linux fdisk. That is, don't create or delete MS-
  1010.   DOS partitions with this version of fdisk; use MS-DOS's version of
  1011.   FDISK instead. If you try to create MS-DOS partitions with Linux
  1012.   fdisk, chances are MS-DOS will not recognize the partition and not
  1013.   boot correctly.
  1014.  
  1015.   Here's an example of using fdisk. Here, we have a single MS-DOS
  1016.   partition using 61693 blocks on the drive, and the rest of the drive
  1017.   is free for Linux. (Under Linux, one block is 1024 bytes. Therefore,
  1018.   61693 blocks is about 61 megabytes.)  We will create two Linux
  1019.   partitions: one for swap, and one for the root filesystem.
  1020.  
  1021.   First, we use the ``p'' command to display the current partition
  1022.   table.  As you can see, /dev/hda1 (the first partition on /dev/hda) is
  1023.   a DOS partition of 61693 blocks.
  1024.  
  1025.   ______________________________________________________________________
  1026.   Command (m for help):   p
  1027.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  1028.   Units = cylinders of 608 * 512 bytes
  1029.  
  1030.        Device Boot  Begin   Start     End  Blocks   Id  System
  1031.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  1032.  
  1033.   Command (m for help):
  1034.   ______________________________________________________________________
  1035.  
  1036.  
  1037.  
  1038.   Next, we use the ``n'' command to create a new partition. The Linux
  1039.   root partition will be 80 megs in size.
  1040.  
  1041.   ______________________________________________________________________
  1042.   Command (m for help):  n
  1043.   Command action
  1044.       e   extended
  1045.       p   primary partition (1-4)
  1046.   p
  1047.   ______________________________________________________________________
  1048.  
  1049.  
  1050.   Here we're being asked if we want to create an extended or primary
  1051.   partition. In most cases you want to use primary partitions, unless
  1052.   you need more than four partitions on a drive. See the section
  1053.   ``Repartitioning'', above, for more information.
  1054.  
  1055.   ______________________________________________________________________
  1056.   Partition number (1-4): 2
  1057.   First cylinder (204-683):  204
  1058.   Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  1059.   ______________________________________________________________________
  1060.  
  1061.  
  1062.  
  1063.   The first cylinder should be the cylinder AFTER where the last
  1064.   partition left off. In this case, /dev/hda1 ended on cylinder 203, so
  1065.   we start the new partition at cylinder 204.
  1066.  
  1067.   As you can see, if we use the notation ``+80M'', it specifies a
  1068.   partition of 80 megs in size. Likewise, the notation ``+80K'' would
  1069.   specify an 80 kilobyte partition, and ``+80'' would specify just an 80
  1070.   byte partition.
  1071.  
  1072.   Next, we create our 10 megabyte swap partition, /dev/hda3.
  1073.  
  1074.   ______________________________________________________________________
  1075.   Command (m for help): n
  1076.   Command action
  1077.       e   extended
  1078.       p   primary partition (1-4)
  1079.   p
  1080.  
  1081.   Partition number (1-4): 3
  1082.   First cylinder (474-683):  474
  1083.   Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  1084.   ______________________________________________________________________
  1085.  
  1086.  
  1087.  
  1088.   Again, we display the contents of the partition table. Be sure to
  1089.   write down the information here, especially the size of each partition
  1090.   in blocks. You need this information later.
  1091.  
  1092.   ______________________________________________________________________
  1093.   Command (m for help): p
  1094.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  1095.   Units = cylinders of 608 * 512 bytes
  1096.  
  1097.        Device Boot  Begin   Start     End  Blocks   Id  System
  1098.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  1099.     /dev/hda2         204     204     473   82080   83  Linux native
  1100.     /dev/hda3         474     474     507   10336   83  Linux native
  1101.   ______________________________________________________________________
  1102.  
  1103.  
  1104.  
  1105.   Note that the Linux swap partition (here, /dev/hda3) has type ``Linux
  1106.   native''. We need to change the type of the swap partition to ``Linux
  1107.   swap'' so that the installation program will recognize it as such. In
  1108.   order to do this, use the fdisk ``t'' command:
  1109.  
  1110.   ______________________________________________________________________
  1111.   Command (m for help): t
  1112.   Partition number (1-4): 3
  1113.   Hex code (type L to list codes): 82
  1114.   ______________________________________________________________________
  1115.  
  1116.  
  1117.   If you use ``L'' to list the type codes, you'll find that 82 is the
  1118.   type corresponding to Linux swap.
  1119.  
  1120.   To quit fdisk and save the changes to the partition table, use the
  1121.   ``w'' command. To quit fdisk WITHOUT saving changes, use the ``q''
  1122.   command.
  1123.  
  1124.   After quitting fdisk, the system may tell you to reboot to make sure
  1125.   that the changes took effect. In general there is no reason to reboot
  1126.   after using fdisk---the version of fdisk on the Slackware distribution
  1127.   is smart enough to update the partitions without rebooting.
  1128.   4.3.  Preparing the swap space
  1129.  
  1130.   If you have 4 megabytes of RAM (or less) in your machine, you need to
  1131.   create a swap partition (using fdisk) and enable it for use before
  1132.   installing the software. Here, we describe how to format and enable
  1133.   your swap partition(s).
  1134.  
  1135.   If you have more than 4 megs of RAM, you need only create your
  1136.   partition(s)---it's not necessary to format and enable them before
  1137.   installing the software.  In this case you can skip down to the
  1138.   section ``Installing the Software''.
  1139.  
  1140.   If you get any ``out of memory'' errors during the installation
  1141.   procedure you should create a swap partition and enable it as
  1142.   described here.
  1143.  
  1144.   To prepare the swap space for use, we use the mkswap command.  It
  1145.   takes the form:
  1146.  
  1147.        mkswap -c <partition> <size>
  1148.  
  1149.  
  1150.   where <partition> is the partition name, such as /dev/hda3, and <size>
  1151.   is the size of the partition in blocks.
  1152.  
  1153.   For example, if you created the swap partition /dev/hda3 of size 10336
  1154.   blocks, use the command
  1155.  
  1156.        mkswap -c /dev/hda3 10336
  1157.  
  1158.  
  1159.   The -c option tells mkswap to check for bad blocks on the partition
  1160.   when preparing the swap space. If you see any ``read_intr'' error mes-
  1161.   sages during the mkswap operation, this means that bad blocks were
  1162.   found (and flagged). So you can ignore these errors.
  1163.  
  1164.   To enable swapping on the new device, use the command
  1165.  
  1166.        swapon <partition>
  1167.  
  1168.  
  1169.   For example, for our swap space on /dev/hda3, we use
  1170.  
  1171.        swapon /dev/hda3
  1172.  
  1173.  
  1174.   We're now swapping with about 10 megabytes more virtual memory.
  1175.  
  1176.   You should execute mkswap and swapon for each swap partition that you
  1177.   created.
  1178.  
  1179.  
  1180.   4.4.  Installing the software
  1181.  
  1182.   Installing the Slackware release is very simple; it's almost
  1183.   automatic. You use the setup command, which guides you through a
  1184.   series of menus which allow you to specify the means of installation,
  1185.   the partitions to use, and so forth.  Almost everything is automatic.
  1186.  
  1187.   Here, we're not going to document many of the specifics of using
  1188.   setup, because it changes from time to time. setup is very self-
  1189.   explanatory; it contains its own documentation. Just to give you an
  1190.   idea of what it's like, however, we'll describe what most
  1191.   installations are like using setup.
  1192.  
  1193.  
  1194.   Before you begin, be sure that you have a high-density MS-DOS
  1195.   formatted floppy on hand. You will use this floppy to create a Linux
  1196.   boot diskette.
  1197.  
  1198.   After running fdisk (and, perhaps, mkswap and swapon as described
  1199.   above), issue the command
  1200.  
  1201.        # setup
  1202.  
  1203.  
  1204.   This will present you with a colourful menu with various options such
  1205.   as ``Addswap'' (to set up your swap space), ``Source'' (to specify the
  1206.   source of the software to install, such as floppy or hard drive),
  1207.   ``Target'' (to specify where to install the software), and so on.
  1208.  
  1209.   In general, you should go through the menu commands in the following
  1210.   order:
  1211.  
  1212.   1. Addswap. If you created a swap partition (using fdisk), use the
  1213.      addswap menu option to tell the system about it.  This option will
  1214.      present you with a list of possible swap partitions; just type in
  1215.      the name of the swap partition(s) that you wish to use (such as
  1216.      /dev/hda3). The system will then ask you if you want to format the
  1217.      swap partition, which you should do unless you already ran mkswap
  1218.      and swapon on it.  That is, you should format the swap partition
  1219.      unless you already formatted and enabled it by hand as described in
  1220.      the previous section.
  1221.  
  1222.   2. Source. This menu option lets you specify the source for the
  1223.      software to install. You can select several means of installation,
  1224.      such as from floppy or from hard drive. If you are installing from
  1225.      floppies, the system will ask you which floppy drive to use. If you
  1226.      are installing from hard drive, the system will ask you what
  1227.      partition the files are stored on, and what directory they are in.
  1228.  
  1229.      For example, if you are installing from an MS-DOS partition on your
  1230.      hard drive, and the Slackware files are under the directory
  1231.      C:\SLACKWAR, you should enter the name of the MS-DOS partition
  1232.      (such as /dev/hda1) and the name of the directory (such as
  1233.      /slackwar). Note that you should use forward slashes (/), not
  1234.      backslashes (\), in the directory name.
  1235.  
  1236.      There are other means of installation, such as CD-ROM. These should
  1237.      be self-explanatory as well.
  1238.  
  1239.   3. Target. This menu item lets you specify what partition(s) to
  1240.      install the software on. The system will display a list of possible
  1241.      partitions. First you will be asked to enter the name of the root
  1242.      partition, such as /dev/hda2. You will be asked if you want to
  1243.      format the partition; unless you are installing on a partition
  1244.      previously formatted for Linux you should do so.
  1245.  
  1246.      You will also be given a chance to use additional partitions for
  1247.      different parts of the directory tree. For example, if you created
  1248.      a separate partition for the /usr filesystem, you should enter the
  1249.      name of that partition and the directory that it corresponds to
  1250.      (/usr) when asked.
  1251.  
  1252.   4. Disksets. This option allows you to specify the disksets you wish
  1253.      to install. Use the arrow keys to scroll through the list; pressing
  1254.      the spacebar selects or deselects a set. Press return when you're
  1255.      done selecting disk sets.
  1256.  
  1257.      You may wish to only install a minimal system at this time. That's
  1258.      fine. Only the A diskset is required. After you have installed the
  1259.      software you may run setup to install other disksets.
  1260.  
  1261.   5. Install. After setting up all of the parameters above, you're ready
  1262.      to install the software. First the system will ask you what type of
  1263.      prompting to use; you should use the ``normal'' prompting method
  1264.      (unless you're an expert and have modified the installation
  1265.      tagfiles in some way).
  1266.  
  1267.      The system will simply go through each disk set and install the
  1268.      software. For each software package, a dialog box will be displayed
  1269.      describing the software. Software packages that are required will
  1270.      be installed automatically. For optional software packages you will
  1271.      be given the option of either installing or not installing the
  1272.      package. (If you don't wish to install a certain package now, you
  1273.      can always use setup on your system to install it later).
  1274.  
  1275.      While the software is installing, watch out for error messages that
  1276.      may be displayed. The most common error that you're likely to run
  1277.      into is ``device full'', which means that you have run out of space
  1278.      on your Linux partitions. Unfortunately, the Slackware installation
  1279.      procedure is not quite smart enough to detect this, and will
  1280.      attempt to continue installing the software regardless. If you get
  1281.      any kind of error messages during the installation procedure, you
  1282.      may wish to break out of the installation program (using Ctrl-C) to
  1283.      record them. The only solution for the ``device full'' problem is
  1284.      to re-create your Linux partitions with different sizes, or attempt
  1285.      to reinstall the software without several of the optional software
  1286.      packages.
  1287.  
  1288.  
  1289.  
  1290.   4.5.  After installation
  1291.  
  1292.   After installation is complete, and if all goes well, you will be
  1293.   given the option of creating a ``standard boot disk'', which you can
  1294.   use to boot your newly-installed Linux system. For this you will need
  1295.   a blank, high-density MS-DOS formatted diskette of the type that you
  1296.   boot with on your system. Simply insert the disk when prompted and a
  1297.   boot diskette will be created.
  1298.  
  1299.   You will also be given the chance to install LILO on your hard drive.
  1300.   LILO (which stands for LInux LOader) is a program that will allow you
  1301.   to boot Linux (as well as other operating systems, such as MS-DOS)
  1302.   from your hard drive. If you wish to do this, just select the
  1303.   appropriate menu option and follow the prompts.
  1304.  
  1305.   If you are using OS/2's Boot Manager, the menu will include an option
  1306.   for configuring LILO for use with the Boot Manager, so that you can
  1307.   boot Linux from it.
  1308.  
  1309.   Note that this automated LILO installation procedure is not foolproof;
  1310.   there are situations in which this can fail. Be sure that you have a
  1311.   way to boot MS-DOS, Linux, and other operating systems from floppy
  1312.   before you attempt to install LILO. If the LILO installation fails you
  1313.   will be able to boot your system from floppy and correct the problem.
  1314.  
  1315.   More information on configuring LILO is given below.
  1316.  
  1317.   The postinstallation procedure will also take you through several menu
  1318.   items allowing you to configure your system. This includes specifying
  1319.   your modem and mouse device, as well as your time zone. Just follow
  1320.   the menu options.
  1321.  
  1322.  
  1323.  
  1324.  
  1325.   4.6.  Booting your new system
  1326.  
  1327.   If everything went as planned, you should be able to boot your Linux
  1328.   boot floppy (not the Slackware installation floppy, but the floppy
  1329.   created after installing the software). Or, if you installed LILO, you
  1330.   should be able to boot from the hard drive.  After booting, login as
  1331.   root. Congratulations! You have your very own Linux system.
  1332.  
  1333.   If you are booting using LILO, try holding down shift or control
  1334.   during boot. This will present you with a boot prompt; press tab to
  1335.   see a list of options. In this way you can boot Linux, MS-DOS, or
  1336.   whatever directly from LILO.
  1337.  
  1338.   After booting your system and logging in as root, one of the first
  1339.   things you should do is create an account for yourself.  The adduser
  1340.   command may be used for this purpose. For example,
  1341.  
  1342.  
  1343.        # adduser
  1344.        Login to add (^C to quit): ebersol
  1345.        Full Name: Norbert Ebersol
  1346.        GID [100]: 100
  1347.        UID [501]: 501
  1348.        Home Directory [/home/ebersol]: /home/ebersol
  1349.        Shell [/bin/bash]: /bin/bash
  1350.        Password [ebersol]: new.password
  1351.  
  1352.        Information for new user [ebersol]:
  1353.        Home directory: [/home/ebersol]  Shell: [/bin/bash]
  1354.        Password: [new.password]  UID: [502] GID:[100]
  1355.        Is this correct? [y/n]: y
  1356.  
  1357.  
  1358.  
  1359.  
  1360.   adduser will prompt you for various parameters, such as the username,
  1361.   full name, GID (group ID), UID (user ID), and so on. For the most part
  1362.   you can use the defaults. If you're unfamiliar with creating users on
  1363.   a UNIX system, I strongly suggest getting a book on UNIX systems
  1364.   administration. It will help you greatly in setting up and using your
  1365.   new system.
  1366.  
  1367.   You can now login as the new user. You can use the keys Alt-F1 through
  1368.   Alt-F8 to switch between virtual consoles, which will allow you to
  1369.   login multiple times from the console. The passwd command can be used
  1370.   to set the passwords on your new accounts; you should set a password
  1371.   for root and any new users that you create.
  1372.  
  1373.   Also, the hostname of your machine is set at boot time in the file
  1374.   /etc/rc.d/rc.M. You should edit this file (as root) to change the
  1375.   hostname of the machine.  You should edit the lines in this file which
  1376.   run the commands hostname or hostname_notcp. (The default hostname is
  1377.   slackware.) You may also wish to edit the domainname commands in this
  1378.   file, if you are on a TCP/IP network.
  1379.  
  1380.   Obviously, there are many more things to setup and configure. A good
  1381.   book on UNIX systems administration should help. (I suggest Essential
  1382.   Systems Administration from O'Reilly and Associates.)  You will pick
  1383.   these things up as time goes by. You should read various other Linux
  1384.   HOWTOs, such as the NET-2-HOWTO and Printing-HOWTO, for information on
  1385.   other configuration tasks.
  1386.  
  1387.   After that, the system is all yours... have fun!
  1388.  
  1389.  
  1390.  
  1391.   5.  Configuring LILO
  1392.  
  1393.   LILO is a boot loader, which can be used to select either Linux, MS-
  1394.   DOS, or some other operating system at boot time. If you install LILO
  1395.   as the primary boot loader, it will handle the first-stage booting
  1396.   process for all operating systems on your drive. This works well if
  1397.   MS-DOS is the only other operating system that you have installed.
  1398.   However, you might be running OS/2, which has it's own Boot Manager.
  1399.   In this case, you want OS/2's Boot Manager to be the primary boot
  1400.   loader, and use LILO just to boot Linux (as the secondary boot
  1401.   loader).
  1402.  
  1403.   The Slackware installation procedure allows you to install and
  1404.   configure LILO. However, this method doesn't seem to be smart enough
  1405.   to handle several peculiar situations. It might be easier in some
  1406.   cases to configure LILO by hand.
  1407.  
  1408.   In order to set up LILO for your system, just edit the file
  1409.   /etc/lilo/config. Below we present an example of a LILO configuration
  1410.   file, where the Linux root partition is on /dev/hda2, and MS-DOS is
  1411.   installed on /dev/hdb1 (on the second hard drive).
  1412.  
  1413.  
  1414.        # Tell LILO to install itself as the primary boot loader on /dev/hda.
  1415.        boot = /dev/hda
  1416.        # The boot image to install; you probably shouldn't change this
  1417.        install = /etc/lilo/boot.b
  1418.        # Do some optimization. Doesn't work on all systems.
  1419.        compact
  1420.  
  1421.        # The stanza for booting Linux.
  1422.        image = /vmlinuz       # The kernel is in /vmlinuz
  1423.          label = linux        # Give it the name "linux"
  1424.          root = /dev/hda2     # Use /dev/hda2 as the root filesystem
  1425.          vga = ask            # Prompt for VGA mode
  1426.  
  1427.        # The stanza for booting MS-DOS
  1428.        other = /dev/hdb1      # This is the MS-DOS partition
  1429.          label = msdos        # Give it the name "msdos"
  1430.          table = /dev/hdb     # The partition table for the second drive
  1431.  
  1432.  
  1433.  
  1434.  
  1435.   Once you have edited the /etc/lilo/config file, run /etc/lilo/lilo as
  1436.   root. This will install LILO on your drive. Note that you must rerun
  1437.   /etc/lilo/lilo anytime that you recompile your kernel (something that
  1438.   you don't need to worry about just now, but keep it in mind).
  1439.  
  1440.   You can now reboot your system from the hard drive. By default LILO
  1441.   will boot the operating system listed first in the configuration file,
  1442.   which in this case is Linux. In order to bring up a boot menu, in
  1443.   order to select another operating system, hold down shift or ctrl
  1444.   while the system boots; you should see a prompt such as
  1445.  
  1446.        Boot:
  1447.  
  1448.  
  1449.   Here, enter either the name of the operating system to boot (given by
  1450.   the label line in the configuration file; in this case, either linux
  1451.   or msdos), or press tab to get a list.
  1452.  
  1453.   Now let's say that you want to use LILO as the secondary boot loader;
  1454.   if you want to boot Linux from OS/2's Boot Manager, for example.  In
  1455.   order to boot a Linux partition from OS/2 Boot Manager, unfortunately,
  1456.   you must create the partition using OS/2's FDISK (not Linux's), and
  1457.   format the partition as FAT or HPFS, so that OS/2 knows about it.
  1458.   (That's IBM for you.)
  1459.  
  1460.   In order to have LILO boot Linux from OS/2 BM, you only want to
  1461.   install LILO on your Linux root filesystem (in the above example,
  1462.   /dev/hda2). In this case, your LILO config file should look something
  1463.   like:
  1464.  
  1465.  
  1466.        boot = /dev/hda2
  1467.        install = /etc/lilo/boot.b
  1468.        compact
  1469.  
  1470.        image = /vmlinuz
  1471.          label = linux
  1472.          root = /dev/hda2
  1473.          vga = ask
  1474.  
  1475.  
  1476.  
  1477.  
  1478.   Note the change in the boot line. After running /etc/lilo/lilo you
  1479.   should be able to add the Linux partition to Boot Manager. This mecha-
  1480.   nism should work for boot loaders used by other operating systems as
  1481.   well.
  1482.  
  1483.  
  1484.   6.  Miscellaneous
  1485.  
  1486.   I don't like to be biased towards the Slackware release, however, in
  1487.   order to document multiple releases of Linux, this file would be much,
  1488.   much longer. It is simpler and more coherent to cover the specific
  1489.   instructions for a single release of Linux. The book Linux
  1490.   Installation and Getting Started currently includes general
  1491.   installation instructions which should be applicable to ``any''
  1492.   distribution of Linux. However, because the installation procedures
  1493.   are so varied, covering them all would be very confusing both to
  1494.   myself and to the reader.
  1495.  
  1496.   The basic concepts in this document still hold, no matter what release
  1497.   of Linux you choose. For example, all releases require you to run
  1498.   fdisk, and all of them (to my knowledge) include some kind of
  1499.   installation menu similar to the setup program.  If you choose to use
  1500.   a release of Linux other than Slackware, the READMEs and installation
  1501.   instructions that come with that release should be easy to understand
  1502.   in the context of the material presented here.
  1503.  
  1504.   If you would like a more complete discussion of Linux installation
  1505.   (instead of the "quick" examples given here), read the book Linux
  1506.   Installation and Getting Started, from sunsite.unc.edu in
  1507.   /pub/Linux/docs/LDP.  This book includes a complete discussion of how
  1508.   to obtain and install Linux, as well as a basic UNIX and systems
  1509.   administration tutorial for new users.
  1510.  
  1511.   Please mail me at mdw@sunsite.unc.edu if any part of this document is
  1512.   confusing or incorrect. I depend on feedback from readers in order to
  1513.   maintain this document! I also like to help answer questions about
  1514.   Linux installation, if you have any.
  1515.  
  1516.   I'd like to thank Patrick Volkerding for his work on the Slackware
  1517.   distribution and assistance in preparing this document.
  1518.  
  1519.   Best of luck with your new Linux system!
  1520.  
  1521.   Cheers, mdw
  1522.