home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / INSTALL / INSTALL.TXT < prev    next >
Encoding:
Text File  |  1995-04-20  |  56.9 KB  |  1,386 lines

  1.   The Linux Installation HOWTO
  2.   by Matt Welsh, mdw@sunsite.unc.edu
  3.   v3.0, 30 June 1994
  4.  
  5.   This document describes how to obtain and install the Linux software,
  6.   focusing on the popular Slackware distribution (version 2.0). It is
  7.   the first document which a new Linux user should read to get started.
  8.  
  9.   1.  Introduction
  10.  
  11.   Linux is a freely-distributable implementation of UNIX for 80386 and
  12.   80486 machines. It supports a wide range of software, including X
  13.   Windows, Emacs, TCP/IP networking (including SLIP), the works.  This
  14.   document assumes that you have heard of and know about Linux, and just
  15.   want to sit down and install it.
  16.  
  17.  
  18.  
  19.   1.1.  Other sources of information
  20.  
  21.   If you have never heard of Linux before, there are several sources of
  22.   basic information about the system. One is the Linux Frequently Asked
  23.   Questions list (FAQ), available from
  24.   sunsite.unc.edu:/pub/Linux/docs/FAQ. This document contains many
  25.   common questions (and answers!) about Linux---it is a ``must read''
  26.   for new users.
  27.  
  28.   In the directory /pub/Linux/docs on sunsite.unc.edu you'll find a
  29.   number of other documents about Linux, including the Linux INFO-SHEET
  30.   and META-FAQ, both of which you should read.  Also take a look at the
  31.   USENET newsgroups comp.os.linux.help and comp.os.linux.announce.
  32.  
  33.   Another source of online Linux documentation is the Linux HOWTO
  34.   archive, on sunsite.unc.edu:/pub/Linux/docs/HOWTO. The file HOWTO-
  35.   INDEX in that directory explains what Linux HOWTOs are available.
  36.  
  37.   The Linux Documentation Project is writing a set of manuals and books
  38.   about Linux, all of which are freely distributable on the net.  The
  39.   directory /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  40.   set of LDP manuals.
  41.  
  42.   The book ``Linux Installation and Getting Started'' is a complete
  43.   guide to getting and installing Linux, as well as how to use the
  44.   system once you've installed it. It contains a complete tutorial to
  45.   using and running the system, and much more information than is
  46.   contained here. This HOWTO is simply a condensation of some of the
  47.   most important information in that book. You can get ``Linux
  48.   Installation and Getting Started'' from sunsite.unc.edu in
  49.   /pub/Linux/docs/LDP/install-guide.  The README file there describes
  50.   how you can order a printed copy of the book (about 180 pages).
  51.  
  52.  
  53.  
  54.   1.2.  New versions of this document
  55.  
  56.   New versions of the Linux Installation HOWTO will be periodically
  57.   posted to comp.os.linux.announce, comp.os.linux, and news.answers.
  58.   They will also be uploaded to various Linux FTP sites, including
  59.   sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  60.  
  61.  
  62.  
  63.   1.3.  Feedback
  64.  
  65.   If you have questions or comments about this document, please feel
  66.   free to mail Matt Welsh, at mdw@sunsite.unc.edu. I welcome any
  67.   suggestions, criticism, or postcards. If you find a mistake with this
  68.   document, please let me know so I can correct it in the next version.
  69.   Thanks.
  70.  
  71.  
  72.   2.  Hardware Requirements
  73.  
  74.   What kind of system is needed to run Linux? This is a good question;
  75.   the actual hardware requirements for the system change periodically.
  76.   The Linux Hardware-HOWTO gives a (more or less) complete listing of
  77.   hardware supported by Linux. The Linux INFO-SHEET provides another
  78.   list.
  79.  
  80.   At the very least, a hardware configuration that looks like the
  81.   following is required:
  82.  
  83.   Any ISA, EISA or VESA Local Bus 80386 or 80486 system will do.
  84.   Currently, the MicroChannel (MCA) architecture (found on IBM PS/2
  85.   machines) is not supported.  Any CPU from the 386SX to the 486DX2 will
  86.   work. You do not need a math coprocessor, although it is nice to have
  87.   one.
  88.  
  89.   You need at least 4 megabytes of memory in your machine. Technically,
  90.   Linux will run with only 2 megs, but most installations and software
  91.   require 4. The more memory you have, the happier you'll be. I suggest
  92.   8 or 16 megabytes if you're planning to use X-Windows.
  93.  
  94.   Of course, you'll need a hard drive and an AT-standard drive
  95.   controller. All MFM, RLL, and IDE drives and controllers should work.
  96.   Many SCSI drives and adaptors are supported as well; the Linux SCSI-
  97.   HOWTO contains more information on SCSI.
  98.  
  99.   Linux can actually run on a single 5.25" HD floppy, but that's only
  100.   useful for installation and maintenance.
  101.  
  102.   Free space on your hard drive is needed as well. The amount of space
  103.   needed depends on how much software you plan to install. Most
  104.   installations require somewhere in the ballpark of 40 to 80 megs.
  105.   This includes space for the software, swap space (used as virtual RAM
  106.   on your machine), and free space for users, and so on.
  107.  
  108.   It's conceivable that you could run a minimal Linux system in 10 megs
  109.   or less, and it's conceivable that you could use well over 100 megs or
  110.   more for all of your Linux software. The amount varies greatly
  111.   depending on the amount of software you install and how much space you
  112.   require. More about this later.
  113.  
  114.   Linux will co-exist with other operating systems, such as MS-DOS,
  115.   Microsoft Windows, or OS/2, on your hard drive. (In fact you can even
  116.   access MS-DOS files and run some MS-DOS programs from Linux.)  In
  117.   other words, when partitioning your drive for Linux, MS-DOS or OS/2
  118.   live on their own partitions, and Linux exists on its own. We'll go
  119.   into more detail later.
  120.  
  121.   You do NOT need to be running MS-DOS, OS/2, or any other operating
  122.   system to use Linux. Linux is a completely different, stand-alone
  123.   operating system and does not rely on other OS's for installation and
  124.   use.
  125.  
  126.   You also need a Hercules, CGA, EGA, VGA, or Super VGA video card and
  127.   monitor.  In general, if your video card and monitor work under MS-DOS
  128.   then it should work under Linux. However, if you wish to run X
  129.   Windows, there are other restrictions on the supported video hardware.
  130.   The Linux XFree86-HOWTO contains more information about running X and
  131.   its requirements.
  132.  
  133.   In all, the minimal setup for Linux is not much more than is required
  134.   for most MS-DOS or MS Windows systems sold today. If you have a 386 or
  135.   486 with at least 4 megs of RAM, then you'll be happy running Linux.
  136.   Linux does not require huge amounts of diskspace, memory, or processor
  137.   speed. I (used to) run Linux on a 386/16 MHz (the slowest machine you
  138.   can get) with 4 megs of RAM, and was quite happy. The more you want to
  139.   do, the more memory (and faster processor) you'll need. In my
  140.   experience a 486 with 16 megabytes of RAM running Linux outdoes
  141.   several models of workstation.
  142.  
  143.  
  144.  
  145.   3.  Getting Linux
  146.  
  147.   In this section we'll cover how to obtain the Linux software.
  148.  
  149.  
  150.   3.1.  Linux Distributions
  151.  
  152.   Before you can install Linux, you need to decide on one of the
  153.   ``distributions'' of Linux which are available. There is no single,
  154.   standard release of the Linux software---there are many such releases.
  155.   Each release has its own documentation and installation instructions.
  156.  
  157.   Linux distributions are available both via anonymous FTP and via mail
  158.   order on diskette, tape, and CD-ROM. The Linux Distribution HOWTO (see
  159.   sunsite.unc.edu in the file /pub/Linux/docs/HOWTO/Distribution-HOWTO)
  160.   includes a list of many Linux distributions available via FTP and mail
  161.   order.
  162.  
  163.   The release of Linux covered in this HOWTO is the Slackware
  164.   distribution, maintained by Patrick J. Volkerding
  165.   (volkerdi@mhd1.moorhead.msus.edu). It is one of the most popular
  166.   distributions available; it is very up-to-date and includes a good
  167.   amount of software including X-Windows, TeX, and others.  The
  168.   Slackware distribution consists of a number of ``disk sets'', each one
  169.   containing a particular type of software (for example, the d disk set
  170.   contains development tools such as the gcc compiler, and so forth).
  171.   You can elect to install whatever disk sets you like, and can easily
  172.   install new ones later.
  173.  
  174.   Slackware is also easy to install; it is very self-explanatory.  (So
  175.   self-explanatory, in fact, that this HOWTO may not be necessary.)
  176.  
  177.   The version of Slackware described here is 2.0.0, of 25 June 1994.
  178.   Installation of later versions of Slackware should be very similar to
  179.   the information given here.
  180.  
  181.   Information on other releases can be found in the Linux Installation
  182.   and Getting Started manual from the LDP. You can also find other
  183.   releases of Linux on various FTP sites, including
  184.   sunsite.unc.edu:/pub/Linux/distributions See the Distribution-HOWTO
  185.   (mentioned above) for details.
  186.  
  187.   The instructions here should be general enough to be applicable to
  188.   releases other than Slackware. I hate to be biased towards a single
  189.   release, but I don't have time to keep up with them all! And Slackware
  190.   appears to have what most Linux users are looking for.
  191.  
  192.  
  193.  
  194.   3.2.  Slackware Space Requirements
  195.  
  196.   Unfortunately, Slackware does not maintain a complete list of
  197.   diskspace requirements for each disk set. You need at least 7
  198.   megabytes to install just the A series of disks; a very rough estimate
  199.   of the required diskspace would be 2 or 2.5 megabytes per disk.
  200.  
  201.   The following disk sets are available:
  202.  
  203.      A  The base system. Enough to get up and running and have elvis and
  204.         comm programs available. Based around the 1.0.9 Linux kernel,
  205.         and the new filesystem standard (FSSTND).
  206.  
  207.         These disks are known to fit on 1.2M disks, although the rest of
  208.         Slackware won't. If you have only a 1.2M floppy, you can still
  209.         install the base system, download other disks you want and
  210.         install them from your hard drive.
  211.  
  212.  
  213.      AP Various applications and add ons, such as the manual pages,
  214.         groff, ispell (GNU and international versions), term, joe, jove,
  215.         ghostscript, sc, bc, and the quota patches.
  216.  
  217.  
  218.      D  Program development. GCC/G++/Objective C 2.5.8, make (GNU and
  219.         BSD), byacc and GNU bison, flex, the 4.5.26 C libraries, gdb,
  220.         kernel source for 1.0.9, SVGAlib, ncurses, clisp, f2c, p2c, m4,
  221.         perl, rcs.
  222.  
  223.  
  224.      E  GNU Emacs 19.25.
  225.  
  226.  
  227.      F  A collection of FAQs and other documentation.
  228.  
  229.  
  230.      I  Info pages for GNU software. Documentation for various programs
  231.         readable by info or Emacs.
  232.  
  233.  
  234.      N  Networking. TCP/IP, UUCP, mailx, dip, deliver, elm, pine, smail,
  235.         cnews, nn, tin, trn.
  236.  
  237.  
  238.      OOP
  239.         Object Oriented Programming. GNU Smalltalk 1.1.1, and the
  240.         Smalltalk Interface to X (STIX).
  241.  
  242.  
  243.      Q  Alpha kernel source and images (currently contains Linux
  244.         1.1.18).
  245.  
  246.  
  247.      TCL
  248.         Tcl, Tk, TclX, blt, itcl.
  249.  
  250.  
  251.      Y  Games. The BSD games collection, and Tetris for terminals.
  252.  
  253.  
  254.      X  The base XFree86 2.1.1 system, with libXpm, fvwm 1.20, and xlock
  255.         added.
  256.  
  257.  
  258.      XAP
  259.         X applications: X11 ghostscript, libgr13, seyon, workman,
  260.         xfilemanager, xv 3.01, GNU chess and xboard, xfm 1.2, ghostview,
  261.         and various X games.
  262.  
  263.  
  264.  
  265.      XD X11 program development. X11 libraries, server linkkit, PEX
  266.         support.
  267.  
  268.  
  269.      XV Xview 3.2 release 5. XView libraries, and the Open Look virtual
  270.         and non-virtual window managers.
  271.  
  272.  
  273.      IV Interviews libraries, include files, and the doc and idraw apps.
  274.         These run unreasonably slow on my machine, but they might still
  275.         be worth looking at.
  276.  
  277.  
  278.      OI ParcPlace's Object Builder 2.0 and Object Interface Library 4.0,
  279.         generously made available for Linux developers according to the
  280.         terms in the "copying" notice found in these directories. Note
  281.         that these only work with libc-4.4.4, but a new version may be
  282.         released once gcc 2.5.9 is available.
  283.  
  284.  
  285.      T  The TeX and LaTeX2e text formatting systems.
  286.  
  287.  
  288.   You must get the ``a'' disk set; the rest are optional.  I suggest at
  289.   least installing the a, ap, and d sets, as well as the x set if you
  290.   plan to run X Windows.
  291.  
  292.  
  293.   3.3.  Getting Slackware via Mail Order
  294.  
  295.   Slackware is available for free from the Internet, as well as via mail
  296.   order (if you don't have Internet access, or don't want to take the
  297.   time to download it yourself). The next section describes how to
  298.   download Slackware from the Internet.
  299.  
  300.   The various mail order distributors for Slackware (and other Linux
  301.   distributions) are listed in the Linux Distribution HOWTO, from
  302.   sunsite.unc.edu in the directory /pub/Linux/docs/HOWTO.
  303.  
  304.  
  305.   3.4.  Getting Slackware from the Internet
  306.  
  307.   The Slackware release of Linux may be found on any number of FTP sites
  308.   worldwide. The Linux META-FAQ lists several of the Linux FTP sites; we
  309.   suggest that you try to find the software on the FTP site nearest you,
  310.   to reduce net traffic. However, two of the major Linux FTP sites are
  311.   sunsite.unc.edu and tsx-11.mit.edu.
  312.  
  313.   The Slackware release may be found on the following FTP sites:
  314.  
  315.   o  sunsite.unc.edu:/pub/Linux/distributions/slackware
  316.  
  317.   o  tsx-11.mit.edu:/pub/linux/packages/slackware
  318.  
  319.   o  ftp.cdrom.com:/pub/linux/slackware
  320.  
  321.      ftp.cdrom.com is Slackware's home site.
  322.  
  323.  
  324.   3.4.1.  Downloading the files
  325.  
  326.   You need to download the following files from the FTP sites listed
  327.   above. Make sure that you use binary mode when FTPing them!
  328.  
  329.  
  330.  
  331.   o  The various README files, as well as SLACKWARE_FAQ.  Be sure to
  332.      read these files before attempting to install the software, to get
  333.      any updates or changes to this document.
  334.  
  335.   o  A bootdisk image. This is a file that you will write to a floppy to
  336.      create the Slackware boot disk. If you have a 1.44 megabyte boot
  337.      floppy (3.5"), look in the directory bootdsks.144.  If you have a
  338.      1.2 megabyte boot floppy (5.25"), look in the directory
  339.      bootdsks.12.  The README files in these directories describes what
  340.      the files are.
  341.  
  342.      You need one of the following files:
  343.  
  344.   o  bare.gz. This is a boot floppy that has only IDE hard drive
  345.      drivers. (No SCSI, CD-ROM, or networking support.)  Use this if you
  346.      only have an IDE hard drive controller and aren't going to be
  347.      installing over the network or from CD-ROM.
  348.  
  349.   o  xt.gz. This is a boot floppy with IDE and XT hard drive support.
  350.  
  351.   o  cd.gz. Contains IDE hard drive and non-SCSI CD-ROM drivers.  Get
  352.      this if you're going to be installing from a (non-SCSI) CD-ROM
  353.      (only relevant if you bought a Slackware CD-ROM of some kind).
  354.  
  355.   o  cdscsi.gz. Contains IDE and SCSI hard drive support, and non-SCSI
  356.      CD-ROM drivers.
  357.  
  358.  
  359.   o  scsi.gz. Contains IDE and SCSI hard drive support, and SCSI CD-ROM
  360.      drivers.
  361.  
  362.   o  net.gz. Contains IDE hard drive and TCP/IP networking support. Get
  363.      this if you are going to install over the network using NFS.
  364.  
  365.   o  scsinet.gz. Contains IDE and SCSI hard drive support, SCSI CD-ROM
  366.      drivers, and TCP/IP networking support.  You might want to try this
  367.      one first; use bare.gz or one of the other boot floppies if this
  368.      doesn't work for you.
  369.  
  370.      You need only one of the above bootdisk images, depending on the
  371.      type hardware that you have in your system.
  372.  
  373.      The issue here is that some hardware drivers conflict with each
  374.      other in strange ways, and instead of attempting to debug hardware
  375.      problems on your system it's easier to use a boot floppy image with
  376.      only certain drivers enabled. Most users should try scsi.gz or
  377.      bare.gz.
  378.  
  379.   o  A rootdisk image. This is a file that you will write to a floppy to
  380.      create the Slackware installation disk. As with the bootdisk image,
  381.      look in rootdsks.144 or rootdsks.12 depending on the type of boot
  382.      floppy drive that you have.
  383.  
  384.      You need one of the following files:
  385.  
  386.   o  color144.gz. The menu-based color installation disk for 1.44 meg
  387.      drives. Most users should use this rootdisk.
  388.  
  389.   o  umsds144.gz. A version of the color144 disk for installing with the
  390.      UMSDOS filesystem, which allows you to install Linux onto a
  391.      directory of an MS-DOS filesystem. This installation method is not
  392.      discussed in detail here, but it will prevent you from having to
  393.      repartition your drive. More on this later.
  394.  
  395.   o  tty144.gz. The terminal-based installation disk for 1.44 meg
  396.      drives. You should use color144.gz, but a few people have reported
  397.      problems with it on their system. If color144.gz doesn't work for
  398.      you, try tty144.gz instead.  It is a bit dated and the installation
  399.      procedure isn't identical, but it should work if color144.gz
  400.      doesn't.
  401.  
  402.   o  colrlite.gz. The menu-based color installation disk for 1.2 meg
  403.      drives. Some things have been trimmed off of this disk to make it
  404.      fit on a 1.2 meg floppy, but it should work if you only have a 1.2
  405.      meg drive.
  406.  
  407.  
  408.   o  umsds12.gz. A version of the colrlite disk for installing with the
  409.      UMSDOS filesystem. See the description of umsds144.gz, above.
  410.  
  411.   o  tty12.gz. The terminal-based installation disk for 1.2 meg drives.
  412.      Use this rootdisk if you have a 1.2 meg boot floppy and colrlite.gz
  413.      doesn't work for you.
  414.  
  415.      Again, you need only one of the above rootdisk images, depending on
  416.      the type of boot floppy drive that you have.
  417.  
  418.   o  GZIP.EXE. This is an MS-DOS executable of the gzip compression
  419.      program used to compress the boot and rootdisk files (the .gz
  420.      extension on the filenames indicates this). This can be found in
  421.      the install directory.
  422.  
  423.   o  RAWRITE.EXE. This is an MS-DOS program that will write the contents
  424.      of a file (such as the boot and rootdisk images) directly to a
  425.      floppy, without regard to format. You will use RAWRITE.EXE to
  426.      create the boot and root floppies.  This can be found in the
  427.      install directory as well.
  428.  
  429.      You only need RAWRITE.EXE and GZIP.EXE if you plan to create the
  430.      boot and root floppies from an MS-DOS system. If you have access to
  431.      a UNIX workstation with a floppy drive instead, you can create the
  432.      floppies from there, using the dd command.  See the man page for dd
  433.      and ask your local UNIX gurus for assistance.
  434.  
  435.   o  The files in the directories a1, a2, a3, and a4.  These files make up
  436.      the ``a'' disk set of the Slackware distribution. They are
  437.      required. Later, you will copy these files to MS-DOS floppies for
  438.      installation (or, you can install from your hard drive). Therefore,
  439.      when you download these files, keep them in separate directories;
  440.      don't mix the a1 files with the a2 files, and so on.
  441.  
  442.      Be sure that you get the files without periods in the filenames as
  443.      well. That is, within FTP, use the command ``mget *'' instead of
  444.      ``mget *.*''.
  445.  
  446.   o  The files in the directories ap1, ap2, etc., depending on what disk
  447.      sets you are installing. For example, if you are installing the
  448.      ``x'' disk series, get the files in the directories x1 through x5.
  449.      As with the ``a'' disk set, above, be sure to keep the files in
  450.      separate directories when you download them.
  451.  
  452.  
  453.   3.4.2.  Installation methods
  454.  
  455.   Slackware provides several different means of installing the software.
  456.   The most popular is installing from an MS-DOS partition on your hard
  457.   drive; the other is to install from a set of MS-DOS floppies created
  458.   from the disk sets that you downloaded.
  459.  
  460.   You can also install Slackware from an NFS-mounted filesystem over a
  461.   TCP/IP network. This is somewhat involved, however, and a discussion
  462.   of how to do this is out of the range of this document. If you need
  463.   help, ask your local UNIX gurus how to set up your system to mount an
  464.   NFS filesystem which you can install Slackware from. (For this, you'll
  465.   need another system on the network which has Slackware available on an
  466.   exported filesystem.)
  467.  
  468.   First we'll describe how to create the boot and root floppies, and
  469.   then we'll describe how to set things up for either a hard drive or
  470.   floppy installation.
  471.  
  472.  
  473.   3.4.2.1.  Creating the boot and root floppies
  474.  
  475.   You must create floppies from the bootdisk and rootdisk images that
  476.   you downloaded, no matter what type of installation you will be doing.
  477.   This is where the MS-DOS programs GZIP.EXE and RAWRITE.EXE come into
  478.   play.
  479.  
  480.   First you must uncompress the bootdisk and rootdisk images using
  481.   GZIP.EXE (on an MS-DOS system, of course). For example, if you're
  482.   using the bare.gz bootdisk image, issue the MS-DOS command:
  483.  
  484.        C:\> GZIP -D BARE.GZ
  485.  
  486.  
  487.   which will uncompress bare.gz and leave you with the file bare. You
  488.   must similarly uncompress the rootdisk image. For example, if you are
  489.   using the rootdisk color144.gz, issue the command:
  490.  
  491.        C:\> GZIP -D COLOR144.GZ
  492.  
  493.  
  494.   which will uncompress the file and leave you with color144.
  495.  
  496.   Next, you must have two high-density MS-DOS formatted floppies.  (They
  497.   must be of the same type; that is, if your boot floppy drive is a 3.5"
  498.   drive, both floppies must be high-density 3.5" disks.) You will use
  499.   RAWRITE.EXE to write the boot and rootdisk images to the floppies.
  500.  
  501.   For example, if you're using the bare.gz bootdisk, use the command:
  502.  
  503.        C:\> RAWRITE
  504.  
  505.  
  506.   Answer the prompts for the name of the file to write (such as BARE-
  507.   BOOT) and the floppy to write it to (such as A:). RAWRITE will copy
  508.   the file, block-by-block, directly to the floppy. Also use RAWRITE for
  509.   the root disk image (such as COLOR144). When you're done, you'll have
  510.   two floppies: one containing the boot disk, the other containing the
  511.   root disk. Note that these two floppies will no longer be readable by
  512.   MS-DOS (they are ``Linux format'' floppies, in some sense).
  513.  
  514.   Be sure that you're using brand-new, error-free floppies. The floppies
  515.   must have no bad blocks on them.
  516.  
  517.   Note that you do not need to be running MS-DOS in order to install
  518.   Slackware. However, running MS-DOS makes it easier to create the boot
  519.   and root floppies, and it makes it easier to install the software (as
  520.   you can install directly from an MS-DOS partition on your system). If
  521.   you are not running MS-DOS on your system, you can use someone else's
  522.   MS-DOS system just to create the floppies, and install from there.
  523.  
  524.   It is not necessary to use GZIP.EXE and RAWRITE.EXE under MS-DOS to
  525.   create the boot and root floppies, either. You can use the gzip and dd
  526.   commands on a UNIX system to do the same job.  (For this, you will
  527.   need a UNIX workstation with a floppy drive, of course.) For example,
  528.   on a Sun workstation with the floppy drive on device /dev/rfd0, you
  529.   can use the commands:
  530.  
  531.  
  532.        $ gunzip bare.gz
  533.        $ dd if=bare of=/dev/rfd0 obs=18k
  534.  
  535.  
  536.  
  537.  
  538.   You must provide the appropriate block size argument (the obs argu-
  539.   ment) on some workstations (e.g., Suns) or this will fail. If you have
  540.   problems the man page for dd will be instructive.
  541.  
  542.  
  543.   3.4.2.2.  Preparing for installation from hard drive
  544.  
  545.   If you're planning on installing the Slackware software directly from
  546.   the hard drive (which is much faster and more reliable than a floppy
  547.   installation), you will need an MS-DOS partition on the system that
  548.   you're installing Slackware to. (That is, you must already be running
  549.   MS-DOS on the system.)
  550.  
  551.   Note: If you plan to install Slackware from an MS-DOS partition, that
  552.   partition must NOT be compressed with DoubleSpace, Stacker, or any
  553.   other MS-DOS drive compression utility. Linux cannot currently read
  554.   DoubleSpace/Stacker MS-DOS partitions directly. (You can access them
  555.   via the MS-DOS Emulator, but that is not an option when installing the
  556.   Linux software.)
  557.  
  558.   To prepare for hard drive installation, simply create a directory on
  559.   the hard drive to store the Slackware files. For example,
  560.  
  561.        C:\> MKDIR SLACKWAR
  562.  
  563.  
  564.   will create the directory C:\SLACKWAR to hold the Slackware files.
  565.   Under this directory, you should create the subdirectories A1, A2, and
  566.   so on, for each disk set that you downloaded. All of the files from
  567.   the A1 disk should go into the directory SLACKWAR\A1, and so forth.
  568.  
  569.   Now you're ready to go on and install the software; skip to the
  570.   section ``Installing the Software''.
  571.  
  572.  
  573.   3.4.2.3.  Preparing for floppy installation
  574.  
  575.   If you wish to install Slackware from floppies instead of the hard
  576.   drive, you'll need to have one blank, MS-DOS formatted floppy for each
  577.   Slackware disk that you downloaded. These disks must be high-density
  578.   format.
  579.  
  580.   The A disk set (disks A1 through A3) may be either 3.5" or 5.25"
  581.   floppies. However, the rest of the disk sets must be 3.5" disks.
  582.   Therefore, if you only have a 5.25" floppy drive, you'll need to
  583.   borrow a 3.5" drive from someone in order to install disk sets other
  584.   than A. (Or, you can install from the hard drive, as explained in the
  585.   previous section.)
  586.  
  587.   To make the disks, simply copy the files from each Slackware directory
  588.   onto an MS-DOS formatted floppy, using the MS-DOS COPY command. As so:
  589.  
  590.        C:\> COPY A1\*.* A:
  591.  
  592.  
  593.   will copy the contents of the A1 disk to the floppy in drive A:.  You
  594.   should repeat this for each disk that you downloaded.
  595.   You do not need to modify or uncompress the files on the disks in any
  596.   way; you merely need to copy them to MS-DOS floppies. The Slackware
  597.   installation procedure takes care of uncompressing the files for you.
  598.  
  599.  
  600.   4.  Installing the Software
  601.  
  602.   In this section we'll describe how to prepare your system for
  603.   installing Slackware, and finally how to go about installing it.
  604.  
  605.  
  606.   4.1.  Repartitioning
  607.  
  608.   On most systems, the hard drive is already dedicated to partitions for
  609.   MS-DOS, OS/2, and so on.  You need to resize these partitions in order
  610.   to make space for Linux.
  611.  
  612.   NOTE: If you use one of the umsds root diskettes, you can install
  613.   Slackware TO a directory on your MS-DOS partition. (This is different
  614.   than installing FROM an MS-DOS partition.) Instead, you use the
  615.   ``UMSDOS filesystem'', which allows you to treat a directory of your
  616.   MS-DOS partition as a Linux filesystem. In this way, you don't have to
  617.   repartition your drive.
  618.  
  619.   I only suggest using this method if your drive has four partitions and
  620.   repartitioning would be more trouble than it's worth. Or, if you want
  621.   to try Slackware out before repartitioning, this is a good way to do
  622.   so. But in most cases you should repartition, as described here. If
  623.   you do plan to use UMSDOS, you are on your own---it is not documented
  624.   in detail here. From now on, we assume that you are NOT using UMSDOS,
  625.   and that you will be repartitioning.
  626.  
  627.   A partition is just a section of the hard drive set aside for a
  628.   particular operating system to use. If you only have MS-DOS installed,
  629.   your hard drive probably has just one partition, entirely for MS-DOS.
  630.   To use Linux, however, you'll need to repartition the drive, so that
  631.   you have one partition for MS-DOS, and one (or more) for Linux.
  632.  
  633.   Partitions come in three flavors: primary, extended, and logical.
  634.   Briefly, primary partitions are one of the four main partitions on
  635.   your drive. However, if you wish to have more than four partitions per
  636.   drive, you need to create an extended partition, which can contain
  637.   many logical partitions.  You don't store data directly on an extended
  638.   partition---it is used only as a container for logical partitions.
  639.   Data is stored only on either primary or logical partitions.
  640.  
  641.   To put this another way, most people use only primary partitions.
  642.   However, if you need more than four partitions on a drive, you create
  643.   an extended partition. Logical partitions are then created on top of
  644.   the extended partition, and there you have it---more than four
  645.   partitions per drive.
  646.  
  647.   Note that you can easily install Linux on the second drive on your
  648.   system (known as D: to MS-DOS). You simply specify the appropriate
  649.   device name when creating Linux partitions. This is described in
  650.   detail below.
  651.  
  652.   Back to repartitioning your drive: The problem with resizing
  653.   partitions is that there is no way to do it (easily) without deleting
  654.   the data on those partitions.  Therefore, you will need to make a full
  655.   backup of your system before repartitioning. In order to resize a
  656.   partition, we simply delete the partition(s), and re-create them with
  657.   smaller sizes.
  658.  
  659.   NOTE: There is a non-destructive disk repartitioner available for MS-
  660.   DOS, called FIPS. Look on sunsite.unc.edu in the directory
  661.   /pub/Linux/system/Install. With FIPS, a disk optimizer (such as Norton
  662.   Speed Disk), and a little bit of luck, you should be able to resize
  663.   MS-DOS partitions without destroying the data on them.  It's still
  664.   suggested that you make a full backup before attempting this.
  665.  
  666.   If you're not using FIPS, however, the classic way to modify
  667.   partitions is with the program FDISK. For example, let's say that you
  668.   have an 80 meg hard drive, dedicated to MS-DOS. You'd like to split it
  669.   in half---40 megs for MS-DOS and 40 megs for Linux. In order to do
  670.   this, you run FDISK under MS-DOS, delete the 80 meg MS-DOS partition,
  671.   and re-create a 40 meg MS-DOS partition in its place. You can then
  672.   format the new partition and reinstall your MS-DOS software from
  673.   backups. 40 megabytes of the drive is left empty. Later, you create
  674.   Linux partitions on the unused portion of the drive.
  675.  
  676.   In short, you should do the following to resize MS-DOS partitions with
  677.   FDISK:
  678.  
  679.   1. Make a full backup of your system.
  680.  
  681.   2. Create an MS-DOS bootable floppy, using a command such as
  682.  
  683.        FORMAT /S A:
  684.  
  685.  
  686.   3. Copy the files FDISK.EXE and FORMAT.COM to this floppy, as well as
  687.      any other utilities that you need. (For example, utilities to
  688.      recover your system from backup.)
  689.  
  690.   4. Boot the MS-DOS system floppy.
  691.  
  692.   5. Run FDISK, possibly specifying the drive to modify (such as C: or
  693.      D:).
  694.  
  695.   6. Use the FDISK menu options to delete the partitions which you wish
  696.      to resize. This will destroy all data on the affected partitions.
  697.  
  698.   7. Use the FDISK menu options to re-create those partitions, with
  699.      smaller sizes.
  700.  
  701.   8. Exit FDISK and re-format the new partitions with the FORMAT
  702.      command.
  703.  
  704.   9. Restore the original files from backup.
  705.  
  706.   Note that MS-DOS FDISK will give you an option to create a ``logical
  707.   DOS drive''. A logical DOS drive is just a logical partition on your
  708.   hard drive. You can install Linux on a logical partition, but you
  709.   don't want to create that logical partition with MS-DOS fdisk. So, if
  710.   you're currently using a logical DOS drive, and want to install Linux
  711.   in its place, you should delete the logical drive with MS-DOS FDISK,
  712.   and (later) create a logical partition for Linux in its place.
  713.  
  714.   The mechanism used to repartition for OS/2 and other operating systems
  715.   is similar. See the documentation for those operating systems for
  716.   details.
  717.  
  718.  
  719.  
  720.   4.2.  Creating partitions for Linux
  721.  
  722.   After repartitioning your drive, you need to create partitions for
  723.   Linux. Before describing how to do that, we'll talk about partitions
  724.   and filesystems under Linux.
  725.  
  726.  
  727.   4.2.1.  Filesystems and swap space
  728.  
  729.   Linux requires at least one partition, for the root filesystem, which
  730.   will hold the Linux software itself.
  731.  
  732.   You can think of a filesystem as a partition formatted for Linux.
  733.   Filesystems are used to hold files. Every system must have a root
  734.   filesystem, at least. However, many users prefer to use multiple
  735.   filesystems---one for each major part of the directory tree. For
  736.   example, you may wish to create a separate filesystem to hold all
  737.   files under the /usr directory.  (Note that on UNIX systems, forward
  738.   slashes are used to delimit directories, not backslashes as with MS-
  739.   DOS.) In this case you have both a root filesystem, and a /usr
  740.   filesystem.
  741.  
  742.   Each filesystem requires its own partition. Therefore, if you're using
  743.   both root and /usr filesystems, you'll need to create two Linux
  744.   partitions.
  745.  
  746.   In addition, most users create a swap partition, which is used for
  747.   virtual RAM. If you have, say, 4 megabytes of memory on your machine,
  748.   and a 10-megabyte swap partition, as far as Linux is concerned you
  749.   have 14 megabytes of virtual memory.
  750.  
  751.   When using swap space, Linux moves unused pages of memory out to disk,
  752.   allowing you to run more applications at once on your system.
  753.   However, because swapping is often slow, it's no replacement for real
  754.   physical RAM. But applications that require a great deal of memory
  755.   (such as the X Window System) often rely on swap space if you don't
  756.   have enough physical RAM.
  757.  
  758.   Nearly all Linux users employ a swap partition.  If you have 4
  759.   megabytes of RAM or less, a swap partition is required to install the
  760.   software. It is strongly recommended that you have a swap partition
  761.   anyway, unless you have a great amount of physical RAM.
  762.  
  763.   The size of your swap partition depends on how much virtual memory you
  764.   need. It's often suggested that you have at least 16 megabytes of
  765.   virtual memory total. Therefore, if you have 8 megs of physical RAM,
  766.   you might want to create an 8-megabyte swap partition.  Note that swap
  767.   partitions can be no larger than 16 megabytes in size. Therefore, if
  768.   you need more than 16 megs of swap, you must create multiple swap
  769.   partitions. You may have up to 8 swap partitions in all.
  770.  
  771.  
  772.   4.2.2.  Booting the installation disk
  773.  
  774.   The first step is to boot the Slackware bootdisk.  After the system
  775.   boots, you will see the message:
  776.  
  777.  
  778.        Please remove the boot kernel disk from your floppy drive,
  779.        insert a disk to be loaded into the ramdisk, and press
  780.        [enter] to continue.
  781.  
  782.  
  783.  
  784.  
  785.   At this point you should remove the bootdisk from the drive and insert
  786.   the rootdisk. Then press enter to go on.
  787.  
  788.   The rootdisk will be loaded into memory, and you should be presented
  789.   with a login prompt. Login as ``root''.
  790.  
  791.  
  792.  
  793.   slackware login: root
  794.   #
  795.  
  796.  
  797.  
  798.  
  799.   Note to IBM PS/1, ValuePoint, and ThinkPad Users: If you use an IBM
  800.   PS/1, ValuePoint, or ThinkPad machine, the system will not recognize
  801.   your hard drive when you boot the Slackware bootdisk. This is because
  802.   these machines do not store drive geometry information in the CMOS (as
  803.   they should) and you have to specify the geometry by hand when
  804.   booting. (Later you can get around this by installing the LILO
  805.   software, which allows you to boot Linux from the hard drive.)
  806.  
  807.   You must use a bootdisk other than ``bare'' for this to work.  I
  808.   suggest using scsi.gz. While booting the bootdisk, hold down the left
  809.   shift key. You will be presented with a boot menu which will describe
  810.   how to specify your hard drive geometry (that is, the number of
  811.   cylinders, heads, and sectors per track) for your drive using the hd
  812.   boot option. You can get information on your drive geometry from your
  813.   hard drive manual or by running MS-DOS FDISK.
  814.  
  815.  
  816.   4.2.3.  Using fdisk
  817.  
  818.   To create partitions, you'll use the Linux fdisk program.  After
  819.   logging in as root, run the command
  820.  
  821.        fdisk <drive>
  822.  
  823.  
  824.   where <drive> is the name of the drive that you wish to create Linux
  825.   partitions on. Hard drive device names are:
  826.  
  827.   o  /dev/hda First IDE drive
  828.  
  829.   o  /dev/hdb Second IDE drive
  830.  
  831.   o  /dev/sda First SCSI drive
  832.  
  833.   o  /dev/sdb Second SCSI drive
  834.  
  835.      For example, to create Linux partitions on the first SCSI drive in
  836.      your system, use the command
  837.  
  838.        fdisk /dev/sda
  839.  
  840.  
  841.   If you use fdisk without an argument, it will assume /dev/hda.
  842.  
  843.   To create Linux partitions on the second drive on your system, simply
  844.   specify either /dev/hdb (for IDE drives) or /dev/sdb (for SCSI drives)
  845.   when running fdisk.
  846.  
  847.   Your Linux partitions don't all have to be on the same drive.  You
  848.   might want to create your root filesystem partition on /dev/hda and
  849.   your swap partition on /dev/hdb, for example. In order to do so just
  850.   run fdisk once for each drive.
  851.  
  852.   Use of fdisk is simple. The command ``p'' displays your current
  853.   partition table. ``n'' creates a new partition, and ``d'' deletes a
  854.   partition.
  855.  
  856.   To Linux, partitions are given a name based on the drive which they
  857.   belong to. For example, the first partition on the drive /dev/hda is
  858.   /dev/hda1, the second is /dev/hda2, and so on. If you have any logical
  859.   partitions, they are numbered starting with /dev/hda5, /dev/hda6 and
  860.   so on up.
  861.  
  862.   NOTE: You should not create or delete partitions for operating systems
  863.   other than Linux with Linux fdisk. That is, don't create or delete MS-
  864.   DOS partitions with this version of fdisk; use MS-DOS's version of
  865.   FDISK instead. If you try to create MS-DOS partitions with Linux
  866.   fdisk, chances are MS-DOS will not recognize the partition and not
  867.   boot correctly.
  868.  
  869.   Here's an example of using fdisk. Here, we have a single MS-DOS
  870.   partition using 61693 blocks on the drive, and the rest of the drive
  871.   is free for Linux. (Under Linux, one block is 1024 bytes. Therefore,
  872.   61693 blocks is about 61 megabytes.)  We will create two Linux
  873.   partitions: one for swap, and one for the root filesystem.
  874.  
  875.   First, we use the ``p'' command to display the current partition
  876.   table.  As you can see, /dev/hda1 (the first partition on /dev/hda) is
  877.   a DOS partition of 61693 blocks.
  878.  
  879.   ______________________________________________________________________
  880.   Command (m for help):   p
  881.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  882.   Units = cylinders of 608 * 512 bytes
  883.  
  884.        Device Boot  Begin   Start     End  Blocks   Id  System
  885.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  886.  
  887.   Command (m for help):
  888.   ______________________________________________________________________
  889.  
  890.  
  891.  
  892.   Next, we use the ``n'' command to create a new partition. The Linux
  893.   root partition will be 80 megs in size.
  894.  
  895.   ______________________________________________________________________
  896.   Command (m for help):  n
  897.   Command action
  898.       e   extended
  899.       p   primary partition (1-4)
  900.   p
  901.   ______________________________________________________________________
  902.  
  903.  
  904.   Here we're being asked if we want to create an extended or primary
  905.   partition. In most cases you want to use primary partitions, unless
  906.   you need more than four partitions on a drive. See the section
  907.   ``Repartitioning'', above, for more information.
  908.  
  909.   ______________________________________________________________________
  910.   Partition number (1-4): 2
  911.   First cylinder (204-683):  204
  912.   Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  913.   ______________________________________________________________________
  914.  
  915.  
  916.  
  917.   The first cylinder should be the cylinder AFTER where the last
  918.   partition left off. In this case, /dev/hda1 ended on cylinder 203, so
  919.   we start the new partition at cylinder 204.
  920.  
  921.   As you can see, if we use the notation ``+80M'', it specifies a
  922.   partition of 80 megs in size. Likewise, the notation ``+80K'' would
  923.   specify an 80 kilobyte partition, and ``+80'' would specify just an 80
  924.   byte partition.
  925.   ______________________________________________________________________
  926.   Warning: Linux cannot currently use 33090 sectors of this partition
  927.   ______________________________________________________________________
  928.  
  929.  
  930.   If you see this warning, you can ignore it. It is left over from an
  931.   old restriction that Linux filesystems could only be 64 megs in size.
  932.   However, with newer filesystem types, that is no longer the case...
  933.   partitions can now be up to 4 terabytes in size.
  934.  
  935.   Next, we create our 10 megabyte swap partition, /dev/hda3.
  936.  
  937.   ______________________________________________________________________
  938.   Command (m for help): n
  939.   Command action
  940.       e   extended
  941.       p   primary partition (1-4)
  942.   p
  943.  
  944.   Partition number (1-4): 3
  945.   First cylinder (474-683):  474
  946.   Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  947.   ______________________________________________________________________
  948.  
  949.  
  950.  
  951.   Again, we display the contents of the partition table. Be sure to
  952.   write down the information here, especially the size of each partition
  953.   in blocks. You need this information later.
  954.  
  955.   ______________________________________________________________________
  956.   Command (m for help): p
  957.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  958.   Units = cylinders of 608 * 512 bytes
  959.  
  960.        Device Boot  Begin   Start     End  Blocks   Id  System
  961.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  962.     /dev/hda2         204     204     473   82080   83  Linux native
  963.     /dev/hda3         474     474     507   10336   83  Linux native
  964.   ______________________________________________________________________
  965.  
  966.  
  967.  
  968.   Note that the Linux swap partition (here, /dev/hda3) has type ``Linux
  969.   native''. We need to change the type of the swap partition to ``Linux
  970.   swap'' so that the installation program will recognize it as such. In
  971.   order to do this, use the fdisk ``t'' command:
  972.  
  973.   ______________________________________________________________________
  974.   Command (m for help): t
  975.   Partition number (1-4): 3
  976.   Hex code (type L to list codes): 82
  977.   ______________________________________________________________________
  978.  
  979.  
  980.   If you use ``L'' to list the type codes, you'll find that 82 is the
  981.   type corresponding to Linux swap.
  982.  
  983.   To quit fdisk and save the changes to the partition table, use the
  984.   ``w'' command. To quit fdisk WITHOUT saving changes, use the ``q''
  985.   command.
  986.  
  987.   After quitting fdisk, the system may tell you to reboot to make sure
  988.   that the changes took effect. In general there is no reason to reboot
  989.   after using fdisk---the version of fdisk on the Slackware distribution
  990.   is smart enough to update the partitions without rebooting.
  991.   4.3.  Preparing the swap space
  992.  
  993.   If you have 4 megabytes of RAM (or less) in your machine, you need to
  994.   create a swap partition (using fdisk) and enable it for use before
  995.   installing the software. Here, we describe how to format and enable
  996.   your swap partition(s).
  997.  
  998.   If you have more than 4 megs of RAM, you need only create your
  999.   partition(s)---it's not necessary to format and enable them before
  1000.   installing the software.  In this case you can skip down to the
  1001.   section ``Installing the Software''.
  1002.  
  1003.   If you get any ``out of memory'' errors during the installation
  1004.   procedure you should create a swap partition and enable it as
  1005.   described here.
  1006.  
  1007.   To prepare the swap space for use, we use the mkswap command.  It
  1008.   takes the form:
  1009.  
  1010.        mkswap -c <partition> <size>
  1011.  
  1012.  
  1013.   where <partition> is the partition name, such as /dev/hda3, and <size>
  1014.   is the size of the partition in blocks.
  1015.  
  1016.   For example, if you created the swap partition /dev/hda3 of size 10336
  1017.   blocks, use the command
  1018.  
  1019.        mkswap -c /dev/hda3 10336
  1020.  
  1021.  
  1022.   The -c option tells mkswap to check for bad blocks on the partition
  1023.   when preparing the swap space. If you see any ``read_intr'' error mes-
  1024.   sages during the mkswap operation, this means that bad blocks were
  1025.   found (and flagged). So you can ignore these errors.
  1026.  
  1027.   To enable swapping on the new device, use the command
  1028.  
  1029.        swapon <partition>
  1030.  
  1031.  
  1032.   For example, for our swap space on /dev/hda3, we use
  1033.  
  1034.        swapon /dev/hda3
  1035.  
  1036.  
  1037.   We're now swapping with about 10 megabytes more virtual memory.
  1038.  
  1039.   You should execute mkswap and swapon for each swap partition that you
  1040.   created.
  1041.  
  1042.  
  1043.   4.4.  Installing the software
  1044.  
  1045.   Installing the Slackware release is very simple; it's almost
  1046.   automatic. You use the setup command, which guides you through a
  1047.   series of menus which allow you to specify the means of installation,
  1048.   the partitions to use, and so forth.  Almost everything is automatic.
  1049.  
  1050.   Here, we're not going to document many of the specifics of using
  1051.   setup, because it changes from time to time. setup is very self-
  1052.   explanatory; it contains its own documentation. Just to give you an
  1053.   idea of what it's like, however, we'll describe what most
  1054.   installations are like using setup.
  1055.  
  1056.  
  1057.   Before you begin, be sure that you have a high-density MS-DOS
  1058.   formatted floppy on hand. You will use this floppy to create a Linux
  1059.   boot diskette.
  1060.  
  1061.   After running fdisk (and, perhaps, mkswap and swapon as described
  1062.   above), issue the command
  1063.  
  1064.        # setup
  1065.  
  1066.  
  1067.   This will present you with a colourful menu with various options such
  1068.   as ``Addswap'' (to set up your swap space), ``Source'' (to specify the
  1069.   source of the software to install, such as floppy or hard drive),
  1070.   ``Target'' (to specify where to install the software), and so on.
  1071.  
  1072.   In general, you should go through the menu commands in the following
  1073.   order:
  1074.  
  1075.   1. Addswap. If you created a swap partition (using fdisk), use the
  1076.      addswap menu option to tell the system about it.  This option will
  1077.      present you with a list of possible swap partitions; just type in
  1078.      the name of the swap partition(s) that you wish to use (such as
  1079.      /dev/hda3). The system will then ask you if you want to format the
  1080.      swap partition, which you should do unless you already ran mkswap
  1081.      and swapon on it.  That is, you should format the swap partition
  1082.      unless you already formatted and enabled it by hand as described in
  1083.      the previous section.
  1084.  
  1085.   2. Source. This menu option lets you specify the source for the
  1086.      software to install. You can select several means of installation,
  1087.      such as from floppy or from hard drive. If you are installing from
  1088.      floppies, the system will ask you which floppy drive to use. If you
  1089.      are installing from hard drive, the system will ask you what
  1090.      partition the files are stored on, and what directory they are in.
  1091.  
  1092.      For example, if you are installing from an MS-DOS partition on your
  1093.      hard drive, and the Slackware files are under the directory
  1094.      C:\SLACKWAR, you should enter the name of the MS-DOS partition
  1095.      (such as /dev/hda1) and the name of the directory (such as
  1096.      /slackwar). Note that you should use forward slashes (/), not
  1097.      backslashes (\), in the directory name.
  1098.  
  1099.      There are other means of installation, such as CD-ROM. These should
  1100.      be self-explanatory as well.
  1101.  
  1102.   3. Target. This menu item lets you specify what partition(s) to
  1103.      install the software on. The system will display a list of possible
  1104.      partitions. First you will be asked to enter the name of the root
  1105.      partition, such as /dev/hda2. You will be asked if you want to
  1106.      format the partition; unless you are installing on a partition
  1107.      previously formatted for Linux you should do so. You should use the
  1108.      Second Extended Filesystem (ext2fs) type for the partition.
  1109.  
  1110.      You will also be given a chance to use additional partitions for
  1111.      different parts of the directory tree. For example, if you created
  1112.      a separate partition for the /usr filesystem, you should enter the
  1113.      name of that partition and the directory that it corresponds to
  1114.      (/usr) when asked.
  1115.  
  1116.   4. Disksets. This option allows you to specify the disksets you wish
  1117.      to install. Use the arrow keys to scroll through the list; pressing
  1118.      the spacebar selects or deselects a set. Press return when you're
  1119.      done selecting disk sets.
  1120.  
  1121.      You may wish to only install a minimal system at this time. That's
  1122.      fine. Only the A diskset is required. After you have installed the
  1123.      software you may run setup to install other disksets.
  1124.  
  1125.   5. Install. After setting up all of the parameters above, you're ready
  1126.      to install the software. First the system will ask you what type of
  1127.      prompting to use; you should use the ``normal'' prompting method
  1128.      (unless you're an expert and have modified the installation
  1129.      tagfiles in some way).
  1130.  
  1131.      The system will simply go through each disk set and install the
  1132.      software. For each software package, a dialog box will be displayed
  1133.      describing the software. Software packages that are required will
  1134.      be installed automatically. For optional software packages you will
  1135.      be given the option of either installing or not installing the
  1136.      package. (If you don't wish to install a certain package now, you
  1137.      can always use setup on your system to install it later).
  1138.  
  1139.      While the software is installing, watch out for error messages that
  1140.      may be displayed. The most common error that you're likely to run
  1141.      into is ``device full'', which means that you have run out of space
  1142.      on your Linux partitions. Unfortunately, the Slackware installation
  1143.      procedure is not quite smart enough to detect this, and will
  1144.      attempt to continue installing the software regardless. If you get
  1145.      any kind of error messages during the installation procedure, you
  1146.      may wish to break out of the installation program (using Ctrl-C) to
  1147.      record them. The only solution for the ``device full'' problem is
  1148.      to re-create your Linux partitions with different sizes, or attempt
  1149.      to reinstall the software without several of the optional software
  1150.      packages.
  1151.  
  1152.  
  1153.  
  1154.   4.5.  After installation
  1155.  
  1156.   After installation is complete, and if all goes well, you will be
  1157.   given the option of creating a ``standard boot disk'', which you can
  1158.   use to boot your newly-installed Linux system. For this you will need
  1159.   a blank, high-density MS-DOS formatted diskette of the type that you
  1160.   boot with on your system. Simply insert the disk when prompted and a
  1161.   boot diskette will be created.
  1162.  
  1163.   You will also be given the chance to install LILO on your hard drive.
  1164.   LILO (which stands for LInux LOader) is a program that will allow you
  1165.   to boot Linux (as well as other operating systems, such as MS-DOS)
  1166.   from your hard drive. If you wish to do this, just select the
  1167.   appropriate menu option and follow the prompts.
  1168.  
  1169.   If you are using OS/2's Boot Manager, the menu will include an option
  1170.   for configuring LILO for use with the Boot Manager, so that you can
  1171.   boot Linux from it.
  1172.  
  1173.   Note that this automated LILO installation procedure is not foolproof;
  1174.   there are situations in which this can fail. Be sure that you have a
  1175.   way to boot MS-DOS, Linux, and other operating systems from floppy
  1176.   before you attempt to install LILO. If the LILO installation fails you
  1177.   will be able to boot your system from floppy and correct the problem.
  1178.  
  1179.   More information on configuring LILO is given below.
  1180.  
  1181.   The postinstallation procedure will also take you through several menu
  1182.   items allowing you to configure your system. This includes specifying
  1183.   your modem and mouse device, as well as your time zone. Just follow
  1184.   the menu options.
  1185.  
  1186.  
  1187.  
  1188.  
  1189.   4.6.  Booting your new system
  1190.  
  1191.   If everything went as planned, you should be able to boot your Linux
  1192.   boot floppy (not the Slackware installation floppy, but the floppy
  1193.   created after installing the software). Or, if you installed LILO, you
  1194.   should be able to boot from the hard drive.  After booting, login as
  1195.   root. Congratulations! You have your very own Linux system.
  1196.  
  1197.   If you are booting using LILO, try holding down shift or control
  1198.   during boot. This will present you with a boot prompt; press tab to
  1199.   see a list of options. In this way you can boot Linux, MS-DOS, or
  1200.   whatever directly from LILO.
  1201.  
  1202.   After booting your system and logging in as root, one of the first
  1203.   things you should do is create an account for yourself.  The adduser
  1204.   command may be used for this purpose. For example,
  1205.  
  1206.  
  1207.        # adduser
  1208.        Login to add (^C to quit): ebersol
  1209.        Full Name: Norbert Ebersol
  1210.        GID [100]: 100
  1211.        UID [501]: 501
  1212.        Home Directory [/home/ebersol]: /home/ebersol
  1213.        Shell [/bin/bash]: /bin/bash
  1214.        Password [ebersol]: new.password
  1215.  
  1216.        Information for new user [ebersol]:
  1217.        Home directory: [/home/ebersol]  Shell: [/bin/bash]
  1218.        Password: [new.password]  UID: [502] GID:[100]
  1219.        Is this correct? [y/n]: y
  1220.  
  1221.  
  1222.  
  1223.  
  1224.   adduser will prompt you for various parameters, such as the username,
  1225.   full name, GID (group ID), UID (user ID), and so on. For the most part
  1226.   you can use the defaults. If you're unfamiliar with creating users on
  1227.   a UNIX system, I strongly suggest getting a book on UNIX systems
  1228.   administration. It will help you greatly in setting up and using your
  1229.   new system.
  1230.  
  1231.   You can now login as the new user. You can use the keys Alt-F1 through
  1232.   Alt-F8 to switch between virtual consoles, which will allow you to
  1233.   login multiple times from the console. The passwd command can be used
  1234.   to set the passwords on your new accounts; you should set a password
  1235.   for root and any new users that you create.
  1236.  
  1237.   Also, the hostname of your machine is set at boot time in the file
  1238.   /etc/rc.d/rc.M. You should edit this file (as root) to change the
  1239.   hostname of the machine.  You should edit the lines in this file which
  1240.   run the commands hostname or hostname_notcp. (The default hostname is
  1241.   slackware.) You may also wish to edit the domainname commands in this
  1242.   file, if you are on a TCP/IP network.
  1243.  
  1244.   Obviously, there are many more things to setup and configure. A good
  1245.   book on UNIX systems administration should help. (I suggest Essential
  1246.   Systems Administration from O'Reilly and Associates.)  You will pick
  1247.   these things up as time goes by. You should read various other Linux
  1248.   HOWTOs, such as the NET-2-HOWTO and Printing-HOWTO, for information on
  1249.   other configuration tasks.
  1250.  
  1251.   After that, the system is all yours... have fun!
  1252.  
  1253.  
  1254.  
  1255.   5.  Configuring LILO
  1256.  
  1257.   LILO is a boot loader, which can be used to select either Linux, MS-
  1258.   DOS, or some other operating system at boot time. If you install LILO
  1259.   as the primary boot loader, it will handle the first-stage booting
  1260.   process for all operating systems on your drive. This works well if
  1261.   MS-DOS is the only other operating system that you have installed.
  1262.   However, you might be running OS/2, which has it's own Boot Manager.
  1263.   In this case, you want OS/2's Boot Manager to be the primary boot
  1264.   loader, and use LILO just to boot Linux (as the secondary boot
  1265.   loader).
  1266.  
  1267.   The Slackware installation procedure allows you to install and
  1268.   configure LILO. However, this method doesn't seem to be smart enough
  1269.   to handle several peculiar situations. It might be easier in some
  1270.   cases to configure LILO by hand.
  1271.  
  1272.   In order to set up LILO for your system, just edit the file
  1273.   /etc/lilo/config. Below we present an example of a LILO configuration
  1274.   file, where the Linux root partition is on /dev/hda2, and MS-DOS is
  1275.   installed on /dev/hdb1 (on the second hard drive).
  1276.  
  1277.  
  1278.        # Tell LILO to install itself as the primary boot loader on /dev/hda.
  1279.        boot = /dev/hda
  1280.        # The boot image to install; you probably shouldn't change this
  1281.        install = /etc/lilo/boot.b
  1282.        # Do some optimization. Doesn't work on all systems.
  1283.        compact
  1284.  
  1285.        # The stanza for booting Linux.
  1286.        image = /vmlinuz       # The kernel is in /vmlinuz
  1287.          label = linux        # Give it the name "linux"
  1288.          root = /dev/hda2     # Use /dev/hda2 as the root filesystem
  1289.          vga = ask            # Prompt for VGA mode
  1290.  
  1291.        # The stanza for booting MS-DOS
  1292.        other = /dev/hdb1      # This is the MS-DOS partition
  1293.          label = msdos        # Give it the name "msdos"
  1294.          table = /dev/hdb     # The partition table for the second drive
  1295.  
  1296.  
  1297.  
  1298.  
  1299.   Once you have edited the /etc/lilo/config file, run /etc/lilo/lilo as
  1300.   root. This will install LILO on your drive. Note that you must rerun
  1301.   /etc/lilo/lilo anytime that you recompile your kernel (something that
  1302.   you don't need to worry about just now, but keep it in mind).
  1303.  
  1304.   You can now reboot your system from the hard drive. By default LILO
  1305.   will boot the operating system listed first in the configuration file,
  1306.   which in this case is Linux. In order to bring up a boot menu, in
  1307.   order to select another operating system, hold down shift or ctrl
  1308.   while the system boots; you should see a prompt such as
  1309.  
  1310.        Boot:
  1311.  
  1312.  
  1313.   Here, enter either the name of the operating system to boot (given by
  1314.   the label line in the configuration file; in this case, either linux
  1315.   or msdos), or press tab to get a list.
  1316.  
  1317.   Now let's say that you want to use LILO as the secondary boot loader;
  1318.   if you want to boot Linux from OS/2's Boot Manager, for example.  In
  1319.   order to boot a Linux partition from OS/2 Boot Manager, unfortunately,
  1320.   you must create the partition using OS/2's FDISK (not Linux's), and
  1321.   format the partition as FAT or HPFS, so that OS/2 knows about it.
  1322.   (That's IBM for you.)
  1323.  
  1324.   In order to have LILO boot Linux from OS/2 BM, you only want to
  1325.   install LILO on your Linux root filesystem (in the above example,
  1326.   /dev/hda2). In this case, your LILO config file should look something
  1327.   like:
  1328.  
  1329.  
  1330.        boot = /dev/hda2
  1331.        install = /etc/lilo/boot.b
  1332.        compact
  1333.  
  1334.        image = /vmlinuz
  1335.          label = linux
  1336.          root = /dev/hda2
  1337.          vga = ask
  1338.  
  1339.  
  1340.  
  1341.  
  1342.   Note the change in the boot line. After running /etc/lilo/lilo you
  1343.   should be able to add the Linux partition to Boot Manager. This mecha-
  1344.   nism should work for boot loaders used by other operating systems as
  1345.   well.
  1346.  
  1347.  
  1348.   6.  Miscellaneous
  1349.  
  1350.   I don't like to be biased towards the Slackware release, however, in
  1351.   order to document multiple releases of Linux, this file would be much,
  1352.   much longer. It is simpler and more coherent to cover the specific
  1353.   instructions for a single release of Linux. The book Linux
  1354.   Installation and Getting Started currently includes general
  1355.   installation instructions which should be applicable to ``any''
  1356.   distribution of Linux. However, because the installation procedures
  1357.   are so varied, covering them all would be very confusing both to
  1358.   myself and to the reader.
  1359.  
  1360.   The basic concepts in this document still hold, no matter what release
  1361.   of Linux you choose. For example, all releases require you to run
  1362.   fdisk, and all of them (to my knowledge) include some kind of
  1363.   installation menu similar to the setup program.  If you choose to use
  1364.   a release of Linux other than Slackware, the READMEs and installation
  1365.   instructions that come with that release should be easy to understand
  1366.   in the context of the material presented here.
  1367.  
  1368.   If you would like a more complete discussion of Linux installation
  1369.   (instead of the "quick" examples given here), read the book Linux
  1370.   Installation and Getting Started, from sunsite.unc.edu in
  1371.   /pub/Linux/docs/LDP.  This book includes a complete discussion of how
  1372.   to obtain and install Linux, as well as a basic UNIX and systems
  1373.   administration tutorial for new users.
  1374.  
  1375.   Please mail me at mdw@sunsite.unc.edu if any part of this document is
  1376.   confusing or incorrect. I depend on feedback from readers in order to
  1377.   maintain this document! I also like to help answer questions about
  1378.   Linux installation, if you have any.
  1379.  
  1380.   I'd like to thank Patrick Volkerding for his work on the Slackware
  1381.   distribution and assistance in preparing this document.
  1382.  
  1383.   Best of luck with your new Linux system!
  1384.  
  1385.   Cheers, mdw
  1386.