2009-08-26 17:00:38 +02:00
|
|
|
Slackware Linux CD-ROM Installation HOWTO
|
|
|
|
Patrick Volkerding <volkerdi@slackware.com>
|
2022-02-02 05:17:39 +01:00
|
|
|
v15.0, 2022-02-02
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
This document covers installation of the Slackware(R) distribution of the
|
|
|
|
Linux operating system from the Slackware CD-ROM.
|
|
|
|
______________________________________________________________________
|
|
|
|
|
|
|
|
|
|
|
|
Table of Contents
|
|
|
|
|
|
|
|
|
|
|
|
1. Introduction
|
|
|
|
|
|
|
|
1.1 Sources of documentation
|
|
|
|
|
|
|
|
2. Hardware requirements
|
|
|
|
|
|
|
|
3. Slackware Space Requirements
|
|
|
|
|
|
|
|
3.1 Preparing a Partition for Slackware
|
|
|
|
3.2 Booting the Slackware CD-ROM
|
|
|
|
3.3 Using Linux fdisk to create Linux partitions
|
|
|
|
|
|
|
|
4. Installing the Slackware distribution
|
|
|
|
|
|
|
|
4.1 The ADDSWAP option
|
|
|
|
4.2 The TARGET option
|
|
|
|
4.3 The SOURCE option
|
|
|
|
4.4 The SELECT option
|
|
|
|
4.5 The INSTALL option
|
|
|
|
4.6 The CONFIGURE option
|
|
|
|
4.7 LILO
|
|
|
|
4.8 Networking
|
|
|
|
|
|
|
|
5. Booting the installed Slackware system
|
|
|
|
|
|
|
|
6. Post-installation configuration
|
|
|
|
|
|
|
|
6.1 /etc/rc.d/rc.modules
|
|
|
|
6.2 Configuring the X Window System
|
|
|
|
6.3 Hardware acceleration with X
|
|
|
|
6.4 User Accounts
|
|
|
|
|
|
|
|
7. For more information
|
|
|
|
|
|
|
|
8. Trademarks
|
|
|
|
|
|
|
|
______________________________________________________________________
|
|
|
|
|
|
|
|
1. Introduction
|
|
|
|
|
|
|
|
Linux is a multiuser, multitasking operating system that was developed by
|
|
|
|
Linus Torvalds and hundreds of volunteers around the world working over
|
|
|
|
the Internet.
|
|
|
|
|
|
|
|
The Linux operating system now runs on several machine architectures,
|
|
|
|
including ARMs, Intel 80x86, Sparc, 68K, PowerPC, DEC Alpha, MIPS, and
|
2022-02-02 05:17:39 +01:00
|
|
|
others. The x86 Slackware distribution of Linux runs on most PC
|
|
|
|
processors compatible with the Intel 586 or better - essentially anything
|
|
|
|
that's x86 and 32-bit (with at least i586 opcodes) will do for the 32-bit
|
|
|
|
x86 edition of Slackware, or 64-bit and supporting x86_64 extensions (also
|
2009-08-26 17:00:38 +02:00
|
|
|
known as AMD64, EM64T, or Intel 64) for the x86_64 edition of Slackware.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Linux is modeled after the UNIX(R) operating system. The Slackware
|
2009-08-26 17:00:38 +02:00
|
|
|
distribution contains a full program development system with support for
|
|
|
|
C, C++, Fortran-77, LISP, and other languages, full TCP/IP networking
|
|
|
|
with NFS, PPP, CIFS/SMB (Samba), a full implementation of the X Window
|
|
|
|
System, and much more.
|
|
|
|
|
|
|
|
|
|
|
|
1.1. Sources of Documentation
|
|
|
|
|
|
|
|
If you're new to Slackware, you'll be happy to know there is a *lot* of
|
|
|
|
documentation and help available both on the Internet and on the CD-ROM
|
|
|
|
itself.
|
|
|
|
|
2013-11-04 18:08:47 +01:00
|
|
|
The Slackware documentation wiki has a lot of information:
|
|
|
|
|
|
|
|
http://docs.slackware.com
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
A great source of general documentation about Linux is the Linux
|
|
|
|
Documentation Project, online at: http://tldp.org/
|
|
|
|
|
|
|
|
Here you will find a collection of documents known as the "Linux HOWTOs"
|
|
|
|
as well as other useful guides.
|
|
|
|
|
|
|
|
For additional help with Slackware, check out the Slackware forum at
|
|
|
|
linuxquestions.org.
|
|
|
|
|
|
|
|
|
|
|
|
2. Hardware Requirements
|
|
|
|
|
|
|
|
Here's a basic list of what you'll need to install Slackware:
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
One gigabyte (1 GB) or more of RAM. If you have less RAM than this, you
|
2009-08-26 17:00:38 +02:00
|
|
|
might still be able to install, but if so don't expect the best possible
|
|
|
|
experience.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
You also will need some disk space to install Slackware. For a complete
|
|
|
|
installation, you'll probably want to devote *at least* a 20GB partition
|
2021-04-12 22:07:12 +02:00
|
|
|
completely to Slackware (you'll need almost 16 GB for a full default
|
2009-08-26 17:00:38 +02:00
|
|
|
installation, and then you'll want extra space when you're done).
|
|
|
|
If you haven't installed Slackware before, you may have to experiment.
|
|
|
|
If you've got the drive space, more is going to be better than not enough.
|
|
|
|
Also, you can always install only the first software set (the A series
|
|
|
|
containing only the basic system utilities) and then install more software
|
|
|
|
later once your system is running.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
If you use SCSI, Slackware supports most SCSI controllers. The "huge"
|
2009-08-26 17:00:38 +02:00
|
|
|
kernels support as much of the boot hardware as possible, including
|
|
|
|
several hardware RAID controllers, Fiber Channel controllers, software
|
|
|
|
RAID in linear and RAID 0 through 6 and RAID 10, LVM (Logical Volume
|
|
|
|
Manager), and kernel support required to have fully encrypted systems.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
To install from the DVD or CD-ROM, you'll need a supported drive. These
|
2009-08-26 17:00:38 +02:00
|
|
|
days, the chances that your drive is supported by the install kernels
|
2022-02-02 05:17:39 +01:00
|
|
|
is excellent. But, if not, you can always use a USB stick and install
|
|
|
|
via the network. Or, use a floppy disk to install using PXE and the
|
|
|
|
network. See the docs in usb-and-pxe-installers and the etherboot
|
2009-08-26 17:00:38 +02:00
|
|
|
directory within for instructions.
|
|
|
|
|
|
|
|
|
|
|
|
3. Slackware Space Requirements
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Slackware divides the installable software into categories. (in the old
|
2009-08-26 17:00:38 +02:00
|
|
|
days when people installed Linux from floppy disks, these were often
|
2022-02-02 05:17:39 +01:00
|
|
|
referred to as "disk sets"). Only the A series category (containing the
|
2009-08-26 17:00:38 +02:00
|
|
|
base Linux OS) is mandatory, but you can't do very much on a system that
|
2022-02-02 05:17:39 +01:00
|
|
|
only has the A series installed. Here's an overview of the software
|
2009-08-26 17:00:38 +02:00
|
|
|
categories available for installation, along with the (approximate) amount
|
|
|
|
of drive space needed to install the entire set:
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
A The base Slackware system. (1.5 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
AP Linux applications. (677 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
D Program development tools. (2.7 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
E GNU Emacs. (176 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2013-11-04 18:08:47 +01:00
|
|
|
F FAQs and HOWTOs for common tasks. (33 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
K Linux 5.15.19 kernel source. (1.2 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
KDE The KDE Plasma 5 desktop environment and applications. (2.9 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
L System libraries. (2.5 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
N Networking applications and utilities. (555 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
T TeX typesetting language. (577 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2021-04-12 22:07:12 +02:00
|
|
|
TCL Tcl/Tk/TclX scripting languages and tools. (19 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
X X Window System graphical user interface. (1.3 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
XAP Applications for the X Window System. (1.1 GB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
XFCE The XFCE desktop environment and applications. (84 MB)
|
2013-11-04 18:08:47 +01:00
|
|
|
|
2021-04-12 22:07:12 +02:00
|
|
|
Y Classic text-based BSD games. (11 MB)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2021-04-12 22:07:12 +02:00
|
|
|
TOTAL SIZE OF ALL SETS: about 16GB
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
If you have the disk space, we encourage you to do a full installation for
|
2022-02-02 05:17:39 +01:00
|
|
|
best results. Otherwise, remember that you must install the A set. You
|
2009-08-26 17:00:38 +02:00
|
|
|
probably also want to install the AP, D, L, and N series, as well as the KDE,
|
2013-11-04 18:08:47 +01:00
|
|
|
X, XAP, and XFCE sets if you wish to run the X Window System. The Y series is
|
|
|
|
fun, but not required.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
3.1 Preparing a Partition for Slackware
|
|
|
|
|
|
|
|
If you plan to install Slackware onto its own hard drive partition
|
|
|
|
(this offers optimal performance), then you'll need to prepare one or
|
|
|
|
more partitions for it.
|
|
|
|
|
2013-11-04 18:08:47 +01:00
|
|
|
NOTE: For information on partitioning UEFI systems, please see the
|
|
|
|
README_UEFI.TXT file.
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
A partition is a section of a hard drive that has been set aside for
|
2022-02-02 05:17:39 +01:00
|
|
|
use by an operating system. You can have up to four primary
|
|
|
|
partitions on a single hard drive. If you need more than that, you
|
|
|
|
can make what is called an ''extended partition.'' This is actually
|
2009-08-26 17:00:38 +02:00
|
|
|
a way to make one of the primary partitions contain several
|
|
|
|
sub-partitions.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Usually there won't be any free space on your hard drive. Instead,
|
2009-08-26 17:00:38 +02:00
|
|
|
you will have already partitioned it for the use of other operating
|
2022-02-02 05:17:39 +01:00
|
|
|
systems, such as MS-DOS or Windows. Before you can make your Linux
|
2009-08-26 17:00:38 +02:00
|
|
|
partitions, you'll need to remove one or more of your existing drive
|
2022-02-02 05:17:39 +01:00
|
|
|
partitions to make room for it. Removing a partition destroys the
|
2009-08-26 17:00:38 +02:00
|
|
|
data on it, so you'll want to back it up first.
|
|
|
|
|
|
|
|
If you've got a large partition that you'd like to shrink to make
|
|
|
|
space for Slackware you might consider using GParted, a partition
|
|
|
|
editor that allows resizing and moving of existing partitions.
|
|
|
|
They have a Live CD and USB image that allows running the program
|
|
|
|
on a minimal OS, as well as versions to boot from PXE or the hard
|
2022-02-02 05:17:39 +01:00
|
|
|
drive. Bootable images with GParted may be found here:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
http://gparted.sourceforge.net/index.php
|
|
|
|
|
|
|
|
There's also the regular version of GNU parted that does the same
|
2022-02-02 05:17:39 +01:00
|
|
|
thing from the command line. It is included in the installer, and
|
2009-08-26 17:00:38 +02:00
|
|
|
as a package in the L series.
|
|
|
|
|
|
|
|
If you plan to repartition your system manually, you'll need to back
|
2022-02-02 05:17:39 +01:00
|
|
|
up the data on any partitions you plan to change. The usual tool for
|
|
|
|
deleting/creating partitions is the fdisk program. Most PC operating
|
2009-08-26 17:00:38 +02:00
|
|
|
systems have a version of this tool, and if you're running DOS or
|
|
|
|
Windows it's probably best to use the repartitioning tool from that OS.
|
2022-02-02 05:17:39 +01:00
|
|
|
Usually DOS uses the entire drive. Use DOS fdisk to delete the
|
|
|
|
partition. Then create a smaller primary DOS partition, leaving
|
2016-06-30 22:26:57 +02:00
|
|
|
enough space to install Linux. Preferably this should be more than 9GB.
|
2009-08-26 17:00:38 +02:00
|
|
|
If your machine doesn't have a lot of RAM, you'll want another
|
2022-02-02 05:17:39 +01:00
|
|
|
partition for swap space. The swap partition should be equal to the
|
2009-08-26 17:00:38 +02:00
|
|
|
amount of RAM your machine has, but should in any case be at least
|
2022-02-02 05:17:39 +01:00
|
|
|
128MB. If you don't have that much drive space to spare, the more the
|
2009-08-26 17:00:38 +02:00
|
|
|
better to avoid running out of virtual RAM (especially if you plan on
|
2022-02-02 05:17:39 +01:00
|
|
|
using a graphical desktop). You'll then need to reinstall DOS or
|
2009-08-26 17:00:38 +02:00
|
|
|
Windows on your new DOS partition, and then restore your backup.
|
|
|
|
|
|
|
|
We'll go into more detail about partitioning later, and you don't need
|
|
|
|
to create any new partitions yet -- just make sure you have enough free
|
2016-06-30 22:26:57 +02:00
|
|
|
space on the drive to do an installation (more than 9GB is ideal), or
|
2009-08-26 17:00:38 +02:00
|
|
|
that you have some idea about which existing partition you can use for
|
|
|
|
to install on.
|
|
|
|
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
3.2 Booting the Slackware CD-ROM/DVD
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
If your machine has a bootable CD-ROM drive (you may need to configure
|
|
|
|
this in the system's BIOS settings) then you'll be able to directly
|
2022-02-02 05:17:39 +01:00
|
|
|
boot the first CD-ROM. If not, then see the files in the
|
2009-08-26 17:00:38 +02:00
|
|
|
usb-and-pxe-installers directory for information about alternative
|
2022-02-02 05:17:39 +01:00
|
|
|
methods of booting the installer. Also, don't neglect to read the
|
2009-08-26 17:00:38 +02:00
|
|
|
CHANGES_AND_HINTS.TXT file, which is probably the most accurate piece
|
|
|
|
of documentation to ship with Slackware (thanks Robby!).
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Now it's time to boot the disc. Put the Slackware installation CD-ROM in
|
|
|
|
your machine's CD-ROM drive and reboot to load the disc. You'll get an
|
2009-08-26 17:00:38 +02:00
|
|
|
initial information screen and a prompt (called the "boot:" prompt) at the
|
2022-02-02 05:17:39 +01:00
|
|
|
bottom of the screen. This is where you'll enter the name of the kernel
|
|
|
|
that you want to boot with. With most systems you'll want to use the
|
|
|
|
default kernel, called hugesmp.s. Even on a machine with only a single
|
2010-05-19 10:58:23 +02:00
|
|
|
one-core processor, it is recommended to use this kernel if your machine
|
2022-02-02 05:17:39 +01:00
|
|
|
can run it. Otherwise use the huge.s kernel, which should support any
|
2016-06-30 22:26:57 +02:00
|
|
|
586 or better.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
To boot the hugesmp.s kernel, just enter hugesmp.s on the boot prompt:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
boot: hugesmp.s
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
(actually, since the hugesmp.s kernel is the default, you could have just
|
|
|
|
hit ENTER and the machine would go ahead and load the hugesmp.s kernel
|
2009-08-26 17:00:38 +02:00
|
|
|
for you)
|
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
If you've got some non-standard hardware in your machine (or if hugesmp.s
|
|
|
|
doesn't work, and you're beginning to suspect you need a different
|
2022-02-02 05:17:39 +01:00
|
|
|
kernel), then you'll have to try huge.s. If, for some reason, that still
|
2010-05-19 10:58:23 +02:00
|
|
|
will not boot and you know that your hardware should be supported by the
|
2021-04-12 22:07:12 +02:00
|
|
|
5.10.29 kernel, contact volkerdi at slackware dot com and I will see
|
2010-05-19 10:58:23 +02:00
|
|
|
what I can do.
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
These are the kernels shipped in Slackware:
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
hugesmp.s This is the default installation kernel. If possible,
|
2009-08-26 17:00:38 +02:00
|
|
|
you can save a bit of RAM later (and some ugly warnings at
|
|
|
|
boot time or when trying to load modules when the driver is
|
2022-02-02 05:17:39 +01:00
|
|
|
already built-in) by switching to a generic kernel. In this
|
2010-05-19 10:58:23 +02:00
|
|
|
case that would be gensmp.s, which is a similar kernel but
|
2009-08-26 17:00:38 +02:00
|
|
|
without filesystems and many of the less common drive
|
2022-02-02 05:17:39 +01:00
|
|
|
controllers built in. To support these (at the very least
|
2009-08-26 17:00:38 +02:00
|
|
|
your root filesystem), an initrd (actually an initramfs)
|
2022-02-02 05:17:39 +01:00
|
|
|
is required when a generic kernel is used. Previous
|
2009-08-26 17:00:38 +02:00
|
|
|
versions of Slackware used an ext2 filesystem for this, but
|
|
|
|
now a filesystem-less dynamic kernel-based directory
|
2022-02-02 05:17:39 +01:00
|
|
|
structure is used. A big advantage of this is that the size
|
2009-08-26 17:00:38 +02:00
|
|
|
usable by the initrd is only limited by the amount of RAM in
|
2022-02-02 05:17:39 +01:00
|
|
|
the machine. A disadvantage is that the generic kernels no
|
2009-08-26 17:00:38 +02:00
|
|
|
longer include *any* filesystems besides romfs, so old
|
|
|
|
initrd.gz files are not usable (they would have needed new
|
|
|
|
modules anyway), and it is trickier to get a custom binaries
|
|
|
|
or modules or whatever into the installer for guru-install
|
2022-02-02 05:17:39 +01:00
|
|
|
purposes. It's not impossible though -- think tar to/from a
|
2009-08-26 17:00:38 +02:00
|
|
|
device such as a USB stick, or leveraging ROMFS.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
gensmp.s The trimmed down, more modular version of hugesmp.s. This
|
2010-05-19 10:58:23 +02:00
|
|
|
can be switched to, after setting up an initrd and
|
2022-02-02 05:17:39 +01:00
|
|
|
reinstalling LILO. It is packaged as a .txz, and can be
|
2010-05-19 10:58:23 +02:00
|
|
|
found on the installed system as:
|
2022-02-02 05:17:39 +01:00
|
|
|
/boot/vmlinuz-generic-smp-5.15.19-smp
|
2010-05-19 10:58:23 +02:00
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
huge.s This is the 586-compatible single processor version of the
|
2022-02-02 05:17:39 +01:00
|
|
|
hugesmp.s kernel. Try this if hugesmp.s does not work on
|
2010-05-19 10:58:23 +02:00
|
|
|
your machine.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
generic.s The trimmed down, more modular version of huge.s. Found on
|
2010-05-19 10:58:23 +02:00
|
|
|
the system as:
|
2022-02-02 05:17:39 +01:00
|
|
|
/boot/vmlinuz-generic-5.15.19
|
2010-05-19 10:58:23 +02:00
|
|
|
This also requires using an initrd.
|
|
|
|
|
2013-11-04 18:08:47 +01:00
|
|
|
speakup.s This used to be a separate kernel patched with the Speakup
|
|
|
|
voice synth software, but this is now part of the regular
|
|
|
|
kernels.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
For more information about speakup and its drivers check out:
|
|
|
|
http://www.linux-speakup.org.
|
|
|
|
To use this, you'll need to specify one of the supported
|
|
|
|
synthesizers on the kernel's boot prompt:
|
|
|
|
|
|
|
|
speakup.s speakup.synth=synth
|
|
|
|
|
|
|
|
where 'synth' is one of the supported speech synthesizers:
|
|
|
|
acntpc, acntsa, apollo, audptr, bns, decext, decpc,
|
|
|
|
dectlk, dtlk, dummy, keypc, ltlk, soft, spkout, txprt.
|
|
|
|
|
|
|
|
A serial port may be specified with an option like this:
|
|
|
|
|
|
|
|
speakup.s speakup.synth=decext speakup.ser=1
|
|
|
|
|
|
|
|
Note that speakup serial ports are numbered starting with
|
|
|
|
one (1, 2, 3) rather than the more typical 0, 1, 2 numbering
|
|
|
|
usually seen on Linux.
|
|
|
|
|
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
Note that if you use the huge (non-SMP kernel) and plan to compile any
|
|
|
|
third party kernel modules, you may need to apply the kernel patch in
|
2021-04-12 22:07:12 +02:00
|
|
|
/extra/linux-5.10... or, you could just cd to the kernel sources, run
|
2010-05-19 10:58:23 +02:00
|
|
|
"make menuconfig", make sure that SMP (and the -smp suffix) are turned
|
2022-02-02 05:17:39 +01:00
|
|
|
off, and recompile the kernel with "make". But, that's for later --
|
2010-05-19 10:58:23 +02:00
|
|
|
after the install.
|
|
|
|
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
Once you've entered your kernel choice and hit ENTER, the kernel and
|
|
|
|
install program will load from the DVD or CD-ROM, and you'll arrive at
|
2022-02-02 05:17:39 +01:00
|
|
|
the Linux login prompt. (You're running Linux now. Congratulations! :-)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
To log into the system, enter the name of the superuser account and hit
|
|
|
|
Enter:
|
|
|
|
|
|
|
|
root
|
|
|
|
|
|
|
|
Since there is no password on the install CD, you will be logged in right
|
|
|
|
away.
|
|
|
|
|
|
|
|
|
|
|
|
3.3 Using Linux fdisk to create Linux partitions
|
|
|
|
|
|
|
|
At this point, you should have a large chunk of unpartitioned space on
|
|
|
|
your hard drive that you'll be making into partitions for Slackware.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Now you're ready to create your root Linux partition. To do this, you'll
|
2009-08-26 17:00:38 +02:00
|
|
|
use the Linux version of fdisk.
|
|
|
|
|
|
|
|
To need to partition a hard drive, you need to specify the
|
2022-02-02 05:17:39 +01:00
|
|
|
name of the device when you start fdisk. For example:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
fdisk /dev/sda (Repartition the first hard drive)
|
|
|
|
fdisk /dev/sdb (Repartition the second hard drive)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
NOTE: If you prefer, you may also try a newer menu-driven version
|
2022-02-02 05:17:39 +01:00
|
|
|
of Linux fdisk called 'cfdisk'. Rumor has it that MOST people do
|
|
|
|
prefer cfdisk, and "newer" has to be taken in context. cfdisk has
|
2009-08-26 17:00:38 +02:00
|
|
|
many years of testing behind it.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Once you've started fdisk, it will display a command prompt. First look
|
2009-08-26 17:00:38 +02:00
|
|
|
at your existing partition table with the 'p' command:
|
|
|
|
|
|
|
|
Command (m for help): p
|
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
Disk /dev/sda: 40.0 GB, 40020664320 bytes
|
2009-08-26 17:00:38 +02:00
|
|
|
255 heads, 63 sectors/track, 4865 cylinders
|
|
|
|
Units = cylinders of 16065 * 512 = 8225280 bytes
|
|
|
|
|
|
|
|
Device Boot Start End Blocks Id System
|
2010-05-19 10:58:23 +02:00
|
|
|
/dev/sda1 * 1 2423 19462716 c W95 FAT32 (LBA)
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
Here we can see that there is one DOS partition on the drive already,
|
2022-02-02 05:17:39 +01:00
|
|
|
starting on the first cylinder and extending to cylinder 2423. Since the
|
2009-08-26 17:00:38 +02:00
|
|
|
drive has 4865 cylinders, the range 2424 - 4865 is free to accept a Linux
|
|
|
|
installation.
|
|
|
|
|
|
|
|
If the FAT32 partition were using the entire drive, you would have no
|
|
|
|
choice but to delete it entirely (this destroys the partition), or go back
|
|
|
|
and use some kind of partition resizing tool like GNU parted or Partition
|
2022-02-02 05:17:39 +01:00
|
|
|
Magic to create some free space for the installation. If you need to
|
|
|
|
delete a partition, use the 'd' command. You'll be asked which partition
|
2009-08-26 17:00:38 +02:00
|
|
|
number you want to delete -- check the partition size to make sure it's
|
|
|
|
the right one.
|
|
|
|
|
|
|
|
Next, you'll want to use the 'n' command to create a primary partition.
|
|
|
|
This will be your root Linux partition.
|
|
|
|
|
|
|
|
Command (m for help): n
|
|
|
|
Command action
|
|
|
|
e extended
|
|
|
|
p primary partition (1-4)
|
|
|
|
|
|
|
|
You'll want to enter 'p' to make a primary partition.
|
|
|
|
|
|
|
|
Partition number (1-4): 2
|
|
|
|
|
|
|
|
Here, you enter "2" since DOS is already using the first primary
|
2022-02-02 05:17:39 +01:00
|
|
|
partition. Fdisk will first ask you which cylinder the partition should
|
|
|
|
start on. Fdisk knows where your last partition left off and will suggest
|
2009-08-26 17:00:38 +02:00
|
|
|
the first available cylinder on the drive as the starting point for the
|
2022-02-02 05:17:39 +01:00
|
|
|
new partition. Go ahead and accept this value. Then, fdisk will want to
|
|
|
|
know what size to make the partition. You can specify this in a couple of
|
2009-08-26 17:00:38 +02:00
|
|
|
ways, either by entering the ending cylinder number directly, or by
|
2022-02-02 05:17:39 +01:00
|
|
|
entering a size. In this case, we'll enter the last cylinder. Here's what
|
2009-08-26 17:00:38 +02:00
|
|
|
the screen looks like as these figures are entered:
|
|
|
|
|
|
|
|
First cylinder (2424-4865): 2424
|
|
|
|
Last cylinder or +size or +sizeM or +sizeK (2424-4865): 4700
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
You have now created your primary Linux partition with a size of 18.7 GB.
|
|
|
|
Next, you'll want to make a Linux swap partition. You do this the same
|
|
|
|
way. First, enter another "n" to make a primary partition:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Command (m for help): n
|
|
|
|
Command action
|
|
|
|
e extended
|
|
|
|
p primary partition (1-4)
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Enter "p" to select a primary partition. Partition 1 is in use by DOS,
|
2009-08-26 17:00:38 +02:00
|
|
|
and you've already used partition 2 for Linux, so you'll want to enter "3"
|
|
|
|
for the new partition number:
|
|
|
|
|
|
|
|
Partition number (1-4): 3
|
|
|
|
|
|
|
|
Since this is the last partition we plan to make on this hard drive, we'll
|
2022-02-02 05:17:39 +01:00
|
|
|
use the end cylinder this time. Here are the entries for this:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
First cylinder (4701-4865): 4701
|
|
|
|
Last cylinder or +size or +sizeM or +sizeK (4701-4865): 4865
|
|
|
|
|
|
|
|
Now we need to set the type of partition to 82, used for Linux swap. The
|
|
|
|
reason we didn't need to set a partition type the last time is that unless
|
|
|
|
otherwise specified Linux fdisk automatically sets the type of all new
|
2022-02-02 05:17:39 +01:00
|
|
|
partitions to 83 (Linux). To set the partition type, use the "t" command:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Command (m for help): t
|
|
|
|
Partition number (1-4): 3
|
|
|
|
Hex code (type L to list codes): 82
|
|
|
|
|
|
|
|
Now you're ready to save the updated partition table information onto your
|
2022-02-02 05:17:39 +01:00
|
|
|
hard drive. Use the "p" command again to check the results and be sure
|
2009-08-26 17:00:38 +02:00
|
|
|
you're satisfied with them:
|
|
|
|
|
|
|
|
Command (m for help): p
|
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
Disk /dev/sda: 40.0 GB, 40020664320 bytes
|
2009-08-26 17:00:38 +02:00
|
|
|
255 heads, 63 sectors/track, 4865 cylinders
|
|
|
|
Units = cylinders of 16065 * 512 = 8225280 bytes
|
|
|
|
|
|
|
|
Device Boot Start End Blocks Id System
|
2010-05-19 10:58:23 +02:00
|
|
|
/dev/sda1 1 2423 19462716+ c W95 FAT32 (LBA)
|
|
|
|
/dev/sda2 2424 4700 18720732 83 Linux
|
|
|
|
/dev/sda3 4701 4865 1317332 82 Linux swap
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
This looks good, so we'll use the "w" command to write the data out to the
|
2022-02-02 05:17:39 +01:00
|
|
|
drive's partition table. If you want to exit without updating the
|
2009-08-26 17:00:38 +02:00
|
|
|
partition table (if you've made a mistake), then you can exit without
|
|
|
|
changing anything by using the "q" command instead.
|
|
|
|
|
|
|
|
When you exit fdisk using the "w" command, fdisk recommends that you
|
2022-02-02 05:17:39 +01:00
|
|
|
reboot the machine to be sure that the changes you've made take effect.
|
2009-08-26 17:00:38 +02:00
|
|
|
Unless you've created extended partitions, you can go ahead and run setup
|
|
|
|
without rebooting.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Note: Sometimes fdisk will give you a message like "This drive has more
|
2009-08-26 17:00:38 +02:00
|
|
|
than 1024 cylinders" and warn about possible problems using partitions
|
2022-02-02 05:17:39 +01:00
|
|
|
with DOS. This is because MS-DOS suffers from a limitation that only
|
|
|
|
allows access to the first 1024 cylinders on a hard drive. At one time,
|
2009-08-26 17:00:38 +02:00
|
|
|
LILO used the standard BIOS routines to read sectors, so this was a
|
|
|
|
limitation of LILO, too. Luckily modern versions of LILO use the LBA32
|
2022-02-02 05:17:39 +01:00
|
|
|
method of accessing sectors, so this limitation no longer applies. If you
|
2009-08-26 17:00:38 +02:00
|
|
|
see the warning from fdisk, you can safely ignore it.
|
|
|
|
|
|
|
|
|
|
|
|
4.0 Installing the Slackware distribution
|
|
|
|
|
|
|
|
Now that you have one or more Linux partitions, you are now ready to begin
|
|
|
|
installing software onto your hard drive. To start the Slackware install
|
|
|
|
program, enter the command "setup" and hit enter:
|
|
|
|
|
|
|
|
# setup
|
|
|
|
|
|
|
|
The installer will start up with a full-color menu on your screen with the
|
2022-02-02 05:17:39 +01:00
|
|
|
various options needed to install Slackware. In general, you'll want to
|
|
|
|
start with the ADDSWAP option. Even if you've already created and
|
2009-08-26 17:00:38 +02:00
|
|
|
activated a swap partition manually, you'll need to run this so Slackware
|
2022-02-02 05:17:39 +01:00
|
|
|
adds the swap partition to your /etc/fstab file. If you don't add it,
|
2009-08-26 17:00:38 +02:00
|
|
|
your system won't use the swap space when you reboot.
|
|
|
|
|
|
|
|
Installing a typical system involves running the following options from
|
|
|
|
the setup menu in this order: ADDSWAP, TARGET, SOURCE, SELECT, INSTALL,
|
|
|
|
and CONFIGURE. You may also start with KEYMAP if you have a non-US
|
|
|
|
keyboard layout, or with TARGET if you don't want to use a swap partition.
|
|
|
|
|
|
|
|
For the rest of this section, we'll walk through a typical installation
|
|
|
|
process.
|
|
|
|
|
|
|
|
|
|
|
|
4.1 The ADDSWAP option:
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
First, we select the ADDSWAP option. The system will scan for partitions
|
2009-08-26 17:00:38 +02:00
|
|
|
marked as type "Linux swap" and will ask if you want to use them for swap
|
2022-02-02 05:17:39 +01:00
|
|
|
space. Answer YES, and the system will format the partition and then make
|
|
|
|
it active for swapping. Once it's finished, setup will display a message
|
2009-08-26 17:00:38 +02:00
|
|
|
showing the line it will add to /etc/fstab to configure the swap partition
|
2022-02-02 05:17:39 +01:00
|
|
|
at boot time. Hit enter to continue, and setup will go on to the TARGET
|
2009-08-26 17:00:38 +02:00
|
|
|
section of the install.
|
|
|
|
|
|
|
|
NOTE: If you created a partition to use for swap space, but setup
|
|
|
|
doesn't see it when it scans your drives, it's possible that the partition
|
2022-02-02 05:17:39 +01:00
|
|
|
type hasn't been set in the partition table. Use the Linux "fdisk"
|
2009-08-26 17:00:38 +02:00
|
|
|
program to list your partitions like this:
|
|
|
|
|
|
|
|
# fdisk -l
|
|
|
|
|
2010-05-19 10:58:23 +02:00
|
|
|
Disk /dev/sda: 40.0 GB, 40020664320 bytes
|
2009-08-26 17:00:38 +02:00
|
|
|
255 heads, 63 sectors/track, 4865 cylinders
|
|
|
|
Units = cylinders of 16065 * 512 = 8225280 bytes
|
|
|
|
|
|
|
|
Device Boot Start End Blocks Id System
|
2010-05-19 10:58:23 +02:00
|
|
|
/dev/sda1 1 2423 19462716+ c W95 FAT32 (LBA)
|
|
|
|
/dev/sda2 2424 4700 18720732 83 Linux
|
|
|
|
/dev/sda3 4701 4865 1317332 82 Linux
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
In this case, if /dev/sda3 is meant to be a Linux swap partition, you'll
|
|
|
|
need to start fdisk on drive /dev/sda:
|
|
|
|
|
|
|
|
# fdisk /dev/sda
|
|
|
|
|
|
|
|
Command (m for help): t
|
|
|
|
Partition number (1-4): 3
|
|
|
|
Hex code (type L to list codes): 82
|
|
|
|
|
|
|
|
Command (m for help): w
|
|
|
|
|
|
|
|
This will change the third partition to type 82 (Linux swap) and write the
|
|
|
|
partition table out to /dev/sda.
|
|
|
|
|
|
|
|
When you run setup again, the ADDSWAP option should detect the Linux swap
|
|
|
|
partition.
|
|
|
|
|
|
|
|
|
|
|
|
4.2 The TARGET option:
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
The next option on the setup menu is TARGET. This lets you select which
|
2009-08-26 17:00:38 +02:00
|
|
|
partition(s) you'd like to install Slackware on, and will format them
|
2022-02-02 05:17:39 +01:00
|
|
|
using a Linux filesystem. Probably the safer filesystem choice is "ext4",
|
2016-06-30 22:26:57 +02:00
|
|
|
which is a journaling filesystem based on ext2 which was the default
|
2022-02-02 05:17:39 +01:00
|
|
|
filesystem for Linux for many years. Other good choices for a filesystem
|
2016-06-30 22:26:57 +02:00
|
|
|
are xfs and btrfs (although with these you'll likely want your /boot
|
|
|
|
directory on its own partition with a simpler filesystem such as ext2 or
|
|
|
|
ext4).
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
NOTE: It is *not* recommended or supported to place /usr on a separate
|
|
|
|
partition, as it makes some utilities and libraries inaccessible when they
|
|
|
|
are needed during early boot, prior to when /usr would be mounted. If you
|
|
|
|
do this anyway you might run into problems.
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
When you select the TARGET option, the system will scan for "Linux"
|
2022-02-02 05:17:39 +01:00
|
|
|
partitions on your hard drives. If it doesn't find any, you'll need to
|
2009-08-26 17:00:38 +02:00
|
|
|
make sure that you've created partitions using the fdisk program, and that
|
2022-02-02 05:17:39 +01:00
|
|
|
the partitions are labeled as type 83 (Linux). This is the same process
|
|
|
|
shown above. If you've created one or more partitions for Slackware using
|
2009-08-26 17:00:38 +02:00
|
|
|
Linux's fdisk program then you shouldn't have any problems, since Linux
|
|
|
|
fdisk (and cfdisk) sets all new partitions to type 83 (Linux) by default.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
You will see a menu listing all the Linux partitions. Use the arrow keys
|
2009-08-26 17:00:38 +02:00
|
|
|
to select the partition you'd like to use for your root (or primary) Linux
|
2022-02-02 05:17:39 +01:00
|
|
|
partition and hit enter. The setup program will then ask if you'd like to
|
|
|
|
format the partition, and what type of filesystem to use. If this is a
|
|
|
|
new installation of Slackware, you'll need to do this. Otherwise, if you
|
2009-08-26 17:00:38 +02:00
|
|
|
are installing software onto an existing Linux system, you don't need to
|
2022-02-02 05:17:39 +01:00
|
|
|
format the partition. For example, the partition might be used as your
|
|
|
|
/home and contains home directories that you want to keep. If you choose
|
2009-08-26 17:00:38 +02:00
|
|
|
not to format a partition, you'll see "partition will not be reformatted"
|
|
|
|
on the top of the screen as you confirm your choice, so that there can be
|
|
|
|
no question about it.
|
|
|
|
|
|
|
|
There are a few options you need to know about when you format Linux
|
2022-02-02 05:17:39 +01:00
|
|
|
partitions. First, you'll need to decide whether or not you'd like to
|
|
|
|
check the partition for bad blocks when you do the format. This is
|
|
|
|
usually not necessary unless you know the drive in question has problems.
|
2009-08-26 17:00:38 +02:00
|
|
|
Checking takes quite a while longer than a normal format (and most IDE
|
|
|
|
drives do self-checking anyway), so you'll probably want to just go ahead
|
2022-02-02 05:17:39 +01:00
|
|
|
and use the "Format" menu option to format the drive without checking.
|
2009-08-26 17:00:38 +02:00
|
|
|
If you have drive problems later on (and can't just replace the hard drive
|
|
|
|
with a better one), then you might want to go back and try again using the
|
|
|
|
"Check" option to map out the bad sectors on the drive.
|
|
|
|
|
|
|
|
You'll notice that the partition you just formatted is now listed as "in
|
2022-02-02 05:17:39 +01:00
|
|
|
use." If you made some other partitions for Slackware, you'll need to go
|
2009-08-26 17:00:38 +02:00
|
|
|
through the same process of formatting them, selecting whether or not to
|
2022-02-02 05:17:39 +01:00
|
|
|
check for bad blocks, and setting a reasonable inode density. With these
|
2009-08-26 17:00:38 +02:00
|
|
|
partitions there will be an additional step -- you'll need to select where
|
|
|
|
you'd like to put the partition in your directory tree.
|
|
|
|
|
|
|
|
MS-DOS/Windows assigns a letter such as A:, B:, C:, etc, to each device.
|
|
|
|
Unlike DOS, Linux makes your devices visible somewhere under the root
|
2022-02-02 05:17:39 +01:00
|
|
|
directory (/). You might have /dev/sda1 for your root partition (/) and
|
|
|
|
put /dev/sda2 somewhere underneath it, such as under your /home directory.
|
2009-08-26 17:00:38 +02:00
|
|
|
When prompted for a mount location, just enter a directory such as /home,
|
2022-02-02 05:17:39 +01:00
|
|
|
and hit enter. As you format each additional partition and place it in
|
|
|
|
the filesystem tree, you'll be returned to the partition selection menu.
|
2009-08-26 17:00:38 +02:00
|
|
|
When you've prepared all of your Linux partitions, you'll go on to the
|
|
|
|
SOURCE option.
|
|
|
|
|
|
|
|
|
|
|
|
4.3 The SOURCE option:
|
|
|
|
|
|
|
|
The next menu option is SOURCE, where you select the source from which to
|
|
|
|
install Slackware.
|
|
|
|
|
|
|
|
SOURCE displays a menu offering the choice of installation from CD-ROM, a
|
|
|
|
hard drive partition, NFS, HTTP/FTP, or a directory (mounted manually).
|
2016-06-30 22:26:57 +02:00
|
|
|
You'll want to make sure your Slackware CD-ROM or DVD is in your drive, and
|
2009-08-26 17:00:38 +02:00
|
|
|
select the first option:
|
|
|
|
|
|
|
|
"Install from a Slackware CD-ROM"
|
|
|
|
|
|
|
|
Next, the system will ask you if you'd like to scan for your CD-ROM drive
|
2022-02-02 05:17:39 +01:00
|
|
|
or pick manually from a list. (unless you're trying to show off to your
|
2009-08-26 17:00:38 +02:00
|
|
|
friends, go ahead and let setup scan for the CD-ROM drive automatically).
|
2022-02-02 05:17:39 +01:00
|
|
|
Setup will then try to access the Slackware CD-ROM. If this is
|
2009-08-26 17:00:38 +02:00
|
|
|
successful, setup will tell you that it found and mounted a CD-ROM on a
|
2022-02-02 05:17:39 +01:00
|
|
|
Linux device such as /dev/sr0. If the CD-ROM was successful found, you
|
2009-08-26 17:00:38 +02:00
|
|
|
may skip ahead to the SELECT section below, otherwise read on for some
|
|
|
|
CD-ROM troubleshooting tips.
|
|
|
|
|
|
|
|
If setup is not successful in accessing the CD-ROM drive, you'll need to
|
|
|
|
figure out why before you can go on. The most common reason for this is
|
2022-02-02 05:17:39 +01:00
|
|
|
that you used a kernel that doesn't support the CD-ROM drive. If that's
|
2009-08-26 17:00:38 +02:00
|
|
|
the case, you need to restart the installation CD-ROM and specify a kernel
|
|
|
|
that contains a driver to support your CD-ROM drive (if the drive is
|
|
|
|
connected to a SCSI card, for example, you'll need to use a kernel with
|
2022-02-02 05:17:39 +01:00
|
|
|
support for that card). You can also try switching to a different console
|
2009-08-26 17:00:38 +02:00
|
|
|
with Alt-F2 and mounting the CD-ROM drive manually and then installing
|
|
|
|
from a pre-mounted directory (if you prefer a hands-on approach).
|
|
|
|
|
|
|
|
If you have no idea which device an IDE CD-ROM drive is connected to, you
|
2022-02-02 05:17:39 +01:00
|
|
|
should have the system scan for it. You also can look at the messages
|
2009-08-26 17:00:38 +02:00
|
|
|
generated by the system as it boots -- you should see a message that
|
|
|
|
Slackware detected your CD-ROM drive along with information about what
|
2022-02-02 05:17:39 +01:00
|
|
|
type of drive it is.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
For the network options, you'll need to have a network card that's
|
|
|
|
supported by one of the installer's modules, and preferably a DHCP server
|
2022-02-02 05:17:39 +01:00
|
|
|
running to make the network setup easy. The network install options are
|
2009-08-26 17:00:38 +02:00
|
|
|
to use as your source an NFS server, an FTP server, or an HTTP server
|
2022-02-02 05:17:39 +01:00
|
|
|
(along with an optional port). If you use DHCP to set up, odds are
|
2009-08-26 17:00:38 +02:00
|
|
|
you'll have working name resolution and won't need to enter an IP
|
|
|
|
address to specify the server (but you can if you wish, of course).
|
|
|
|
|
|
|
|
The network installation feature is intended primarily to facilitate
|
2022-02-02 05:17:39 +01:00
|
|
|
installing to many machines on a local network. Please don't use it to
|
2009-08-26 17:00:38 +02:00
|
|
|
bog down the Slackware mirror sites.
|
|
|
|
|
|
|
|
Thanks to Eric Hameleers for finally bringing FTP/HTTP installtion
|
|
|
|
support to the Slackware installer. :-)
|
|
|
|
|
|
|
|
|
|
|
|
4.4 The SELECT option:
|
|
|
|
|
|
|
|
The SELECT option lets you select software to install.
|
|
|
|
|
|
|
|
When you start the SELECT option, you'll see a menu where you can choose
|
|
|
|
which categories of software you're interested in installing. The first
|
|
|
|
series (called the A series) contains the base filesystem structure and
|
2022-02-02 05:17:39 +01:00
|
|
|
binaries that are crucial for your system to boot and run properly. You
|
|
|
|
must install the A series. Make sure that at least the selection for
|
|
|
|
series A has an [X] next to it. Most of the other choices will also have
|
2009-08-26 17:00:38 +02:00
|
|
|
an [X] next to them, and while you can use the cursor keys and the space
|
|
|
|
bar to unselect items to save space (see the space requirements above for
|
|
|
|
details), you're better off with a complete installation if you have the
|
|
|
|
space for it.
|
|
|
|
|
|
|
|
Once you've selected the general categories of software you wish to
|
|
|
|
install, hit enter and you'll go on to the INSTALL option.
|
|
|
|
|
|
|
|
|
|
|
|
4.5 The INSTALL option:
|
|
|
|
|
|
|
|
This option actually installs the selected packages to the hard drive.
|
|
|
|
|
|
|
|
The first question the INSTALL option will ask is what type of prompting
|
2022-02-02 05:17:39 +01:00
|
|
|
you'd like to use during the installation process. A menu will show
|
2016-06-30 22:26:57 +02:00
|
|
|
several options, including "full", "terse", "menu", "expert", "newbie",
|
2022-02-02 05:17:39 +01:00
|
|
|
"custom", "tagpath", and "help". The help option gives detailed
|
2016-06-30 22:26:57 +02:00
|
|
|
information on each of the choices.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Most people will want to use "full" or "terse". Others might want "menu",
|
|
|
|
"expert" or "newbie" mode. We'll cover each of these in detail now.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
The first option to consider is "full". If you select this mode, then
|
2009-08-26 17:00:38 +02:00
|
|
|
setup assumes you want to install all the packages in each selected series
|
2022-02-02 05:17:39 +01:00
|
|
|
and installs them all without further prompting. This is fast and easy.
|
2009-08-26 17:00:38 +02:00
|
|
|
Of course, depending on which software categories you've chosen, this can
|
2022-02-02 05:17:39 +01:00
|
|
|
use a lot of drive space. If you use this option, you should be
|
2016-06-30 22:26:57 +02:00
|
|
|
installing to a partition with at least 9GB free (and hopefully more like
|
2009-08-26 17:00:38 +02:00
|
|
|
20GB or so) to insure that you don't run out of drive space during the
|
2022-02-02 05:17:39 +01:00
|
|
|
installation process. Because Linux allows you to split your installation
|
2009-08-26 17:00:38 +02:00
|
|
|
across multiple partitions, the installer cannot know ahead of time
|
|
|
|
whether the packages you've chosen to install will fit your partitioning
|
2022-02-02 05:17:39 +01:00
|
|
|
scheme. Therefore, it is up to you to make sure that there is enough
|
2009-08-26 17:00:38 +02:00
|
|
|
room.
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
The "terse" option works the same as the "full" option, but instead of
|
|
|
|
displaying a box with a paragraph about the package being installed, it
|
2022-02-02 05:17:39 +01:00
|
|
|
displays a one-line description. Since the boxed paragraphs shown with
|
2016-06-30 22:26:57 +02:00
|
|
|
"full" tend to fly by too quickly to read on a modern computer, it might
|
2022-02-02 05:17:39 +01:00
|
|
|
be easier to follow the installation progress using "terse". The end
|
2016-06-30 22:26:57 +02:00
|
|
|
result will be the same.
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
The "newbie" mode (which was formerly known as "normal" mode) installs all
|
2022-02-02 05:17:39 +01:00
|
|
|
of the required packages in each series. For each of the non-required
|
2009-08-26 17:00:38 +02:00
|
|
|
packages (one by one) you'll get a menu where you can answer YES (install
|
|
|
|
the package), NO (do not install the package), or SKIP (skip ahead to the
|
2022-02-02 05:17:39 +01:00
|
|
|
next series). You'll also see a description of what the package does and
|
2009-08-26 17:00:38 +02:00
|
|
|
how much space it will require to help you decide whether you need it or
|
2022-02-02 05:17:39 +01:00
|
|
|
not. The "newbie" mode is verbose, requires input after each package, and
|
|
|
|
is VERY tedious. It certainly takes a lot longer to install using newbie
|
2009-08-26 17:00:38 +02:00
|
|
|
mode, and (in spite of the name), it is easier to make mistakes in newbie
|
2022-02-02 05:17:39 +01:00
|
|
|
mode than by simply doing a full installation. Still, using it is a good
|
2009-08-26 17:00:38 +02:00
|
|
|
way to get a basic education about what software goes into the system
|
2022-02-02 05:17:39 +01:00
|
|
|
since you actually get a chance to read the package descriptions. With a
|
2009-08-26 17:00:38 +02:00
|
|
|
full installation most of the package descriptions will fly by too quickly
|
|
|
|
to read.
|
|
|
|
|
|
|
|
If you can decide which packages you want from less information, the
|
|
|
|
"menu" or "expert" options are a good choice, and go much faster than a
|
2022-02-02 05:17:39 +01:00
|
|
|
"newbie" mode installation. These options display a menu before
|
2009-08-26 17:00:38 +02:00
|
|
|
installing each series and let you toggle items on or off with the
|
2022-02-02 05:17:39 +01:00
|
|
|
spacebar. In this Slackware release, the "menu" and "expect" install
|
2009-08-26 17:00:38 +02:00
|
|
|
modes act the same, and both options are kept only for consistency.
|
|
|
|
The "expert" mode lets you toggle packages individually, allowing the user
|
|
|
|
to make good or bad decisions, like turning off crucial packages or
|
|
|
|
installing a package that's part of a larger set of software without
|
2022-02-02 05:17:39 +01:00
|
|
|
installing the other parts. If you know exactly what you need, the
|
|
|
|
"expert" mode offers the maximum amount of flexibility. If you don't
|
2009-08-26 17:00:38 +02:00
|
|
|
know what you need, using the "full" mode is strongly suggested.
|
|
|
|
|
|
|
|
The "custom" and "tagpath" options are only used if you've created
|
2022-02-02 05:17:39 +01:00
|
|
|
"tagfiles" for installation. In the first directory of each disk set is a
|
2009-08-26 17:00:38 +02:00
|
|
|
file called "tagfile" containing a list of all the packages in that
|
|
|
|
series, as well as a flag marking whether the package should be installed
|
2022-02-02 05:17:39 +01:00
|
|
|
automatically, skipped, or the user should be prompted to decide. This is
|
2009-08-26 17:00:38 +02:00
|
|
|
useful for situations where you need to install large numbers of machines
|
|
|
|
(such as in a computer lab), but most users will not need to create
|
2022-02-02 05:17:39 +01:00
|
|
|
tagfiles. If you are interested in using them, look at one of the
|
2009-08-26 17:00:38 +02:00
|
|
|
tagfiles with an editor.
|
|
|
|
|
|
|
|
If you're new to Slackware, and you have enough drive space, you'll
|
2016-06-30 22:26:57 +02:00
|
|
|
probably want to select the "full" or "terse" option as the easiest way
|
2022-02-02 05:17:39 +01:00
|
|
|
to install. Otherwise, the "menu" option is another good choice for most
|
|
|
|
beginners. If you think you need (or would just like to see) the extra
|
|
|
|
information offered by the "newbie" mode, go ahead and use that. Don't
|
2016-06-30 22:26:57 +02:00
|
|
|
say you weren't warned about the extra time it requires, though, especially
|
2022-02-02 05:17:39 +01:00
|
|
|
when installing the fragments that make up modular X. Trust us, you'll
|
2016-06-30 22:26:57 +02:00
|
|
|
be better off selecting "full" or "terse".
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Once you have selected a prompting mode, the system begins the
|
2022-02-02 05:17:39 +01:00
|
|
|
installation process. If you've chosen "menu" or "expert" mode, you'll
|
2009-08-26 17:00:38 +02:00
|
|
|
see a menu of software to choose from right away -- use the arrow keys and
|
2022-02-02 05:17:39 +01:00
|
|
|
spacebar to pick what you need, and then hit enter to install it. If
|
2009-08-26 17:00:38 +02:00
|
|
|
you've chosen the "newbie" mode, the installation will begin immediately,
|
2022-02-02 05:17:39 +01:00
|
|
|
continuing until it finds optional packages. You'll get a selection menu
|
|
|
|
for each of these. If you selected "full" or "terse", now it's time to sit
|
2016-06-30 22:26:57 +02:00
|
|
|
back and watch the packages install.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
If you've selected too much software, it's possible that your hard drive
|
2022-02-02 05:17:39 +01:00
|
|
|
may run out of space during installation. If this happens, you'll know it
|
2009-08-26 17:00:38 +02:00
|
|
|
because you'll see error messages on the screen as setup tries to install
|
2022-02-02 05:17:39 +01:00
|
|
|
the packages. In such a case, your only choice is to reinstall selecting
|
|
|
|
less software. You can avoid this problem by choosing a reasonable amount
|
2009-08-26 17:00:38 +02:00
|
|
|
of software to begin with, and installing more software later once your
|
|
|
|
system is running. Installing software on a running Slackware system is as
|
|
|
|
easy as it is during the initial installation -- just type the following
|
|
|
|
command to mount the Slackware CD-ROM:
|
|
|
|
|
|
|
|
mount /dev/cdrom /mnt/cdrom
|
|
|
|
|
|
|
|
Then go to the directory with the packages you want to install, and use
|
|
|
|
the install-packages script:
|
|
|
|
|
|
|
|
cd /mnt/cdrom/slackware/xap
|
|
|
|
sh install-packages
|
|
|
|
|
|
|
|
Other options for installing packages later on include "installpkg" and
|
2022-02-02 05:17:39 +01:00
|
|
|
"pkgtool". For more information about these, see the man pages ("man
|
2009-08-26 17:00:38 +02:00
|
|
|
installpkg", "man pkgtool").
|
|
|
|
|
|
|
|
Once you have installed the software on your system, you'll go on to the
|
|
|
|
CONFIGURE option.
|
|
|
|
|
|
|
|
|
|
|
|
4.6 The CONFIGURE option:
|
|
|
|
|
|
|
|
The setup's CONFIGURE option does the basic configuration your system
|
|
|
|
needs, such as setting up your mouse, setting your timezone, and more.
|
|
|
|
|
|
|
|
The CONFIGURE option will first ensure that you've installed a usable
|
2022-02-02 05:17:39 +01:00
|
|
|
Linux kernel on your hard drive. The installation program should
|
2009-08-26 17:00:38 +02:00
|
|
|
automatically install the kernel used to do the initial installation.
|
|
|
|
If you installed using the speakup.s kernel from CD-ROM, the menu will
|
|
|
|
prompt you to re-insert your installation disc and hit enter, and then
|
|
|
|
setup will copy the kernel from the disc to your hard drive.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
NOTE: If you install a kernel on your system that doesn't boot correctly,
|
2009-08-26 17:00:38 +02:00
|
|
|
you can still boot your system with the CD-ROM. To do this, you need to
|
2022-02-02 05:17:39 +01:00
|
|
|
enter some information on the boot prompt. For example, if your root
|
2016-06-30 22:26:57 +02:00
|
|
|
partition is on /dev/sda1, you'd enter this to boot your system:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
huge.s root=/dev/sda1 initrd= ro
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
The "initrd=" option tells the kernel not to run the /init script on the
|
|
|
|
installer image in RAM, and the "ro" option makes the root partition
|
|
|
|
initially load as read-only so Linux can safely check the filesystem.
|
|
|
|
|
|
|
|
Once you've installed a kernel, you'll be asked if you want to make a
|
2022-02-02 05:17:39 +01:00
|
|
|
USB bootstick for your new system. This is a very good idea if you
|
2009-08-26 17:00:38 +02:00
|
|
|
happen to have a spare USB flash stick that you don't mind having
|
2022-02-02 05:17:39 +01:00
|
|
|
COMPLETELY ERASED. :-), so if you wish to make one, insert a USB
|
2009-08-26 17:00:38 +02:00
|
|
|
flash memory stick when prompted and use the "Create" option to create
|
|
|
|
a USB bootstick for your system.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Next you'll be asked what type of mouse you have. Pick the mouse type from
|
2009-08-26 17:00:38 +02:00
|
|
|
the menu (or hit cancel if you don't have a mouse), and setup will create a
|
2022-02-02 05:17:39 +01:00
|
|
|
/dev/mouse link. Most computers use an imps2 compatible PS/2 mouse, which
|
|
|
|
is the first choice. This is also the correct choice for most USB mice.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
After this, other installation scripts will run depending on which
|
2022-02-02 05:17:39 +01:00
|
|
|
packages you've installed. For instance, if you installed the network-*
|
2009-08-26 17:00:38 +02:00
|
|
|
packages you'll be asked if you want to configure your network.
|
|
|
|
|
|
|
|
|
|
|
|
4.7 LILO
|
|
|
|
|
|
|
|
LILO is the Linux Loader, a program that allows you to boot Linux (and
|
2022-02-02 05:17:39 +01:00
|
|
|
other operating systems) directly from your hard drive. If you installed
|
2009-08-26 17:00:38 +02:00
|
|
|
the LILO package, you now have an opportunity to set it up.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Installing LILO can be dangerous. If you make a mistake it's possible to
|
|
|
|
make your hard drive unbootable. If you're new to Linux, it might be a
|
2009-08-26 17:00:38 +02:00
|
|
|
good idea to skip LILO installation and use the bootdisk to start your
|
2022-02-02 05:17:39 +01:00
|
|
|
system at first. You can install LILO later using the 'liloconfig'
|
2009-08-26 17:00:38 +02:00
|
|
|
command after you've had a chance to read the information about it in
|
2022-02-02 05:17:39 +01:00
|
|
|
/usr/doc/lilo-*. If you do decide to go ahead and install LILO, be sure
|
2009-08-26 17:00:38 +02:00
|
|
|
you have a way to boot all the operating systems on your machine in case
|
2022-02-02 05:17:39 +01:00
|
|
|
something goes wrong. If you can't boot Windows again, use the DOS command
|
|
|
|
"FDISK /MBR" to remove LILO from your master boot record. (You can use
|
2009-08-26 17:00:38 +02:00
|
|
|
a Windows Startup Disk for this)
|
|
|
|
|
|
|
|
The easiest way to set your machine up with LILO is to pick the "simple"
|
2022-02-02 05:17:39 +01:00
|
|
|
choice on the LILO installation menu. This will examine your system and
|
2009-08-26 17:00:38 +02:00
|
|
|
try to set up LILO to be able to boot Windows (DOS) and Linux partitions
|
2016-06-30 22:26:57 +02:00
|
|
|
that it finds.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
The "expert" option gives you much more control over the configuration
|
2022-02-02 05:17:39 +01:00
|
|
|
of LILO. If you decide to use the "expert" option, here's how you do
|
|
|
|
it. LILO uses a configuration file called /etc/lilo.conf to hold the
|
2009-08-26 17:00:38 +02:00
|
|
|
information about your bootable partitions -- the "expert" LILO
|
2022-02-02 05:17:39 +01:00
|
|
|
installation lets you direct the construction of this file. To create
|
2009-08-26 17:00:38 +02:00
|
|
|
the file, first select BEGIN to enter the basic information about
|
2022-02-02 05:17:39 +01:00
|
|
|
where to install LILO. The first menu will ask if you have extra
|
|
|
|
parameters you'd like passed to the Linux kernel at boot time. If you
|
|
|
|
need any extra parameters enter them here.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Then you'll be asked if you wish to use the framebuffer console. I'd
|
2016-06-30 22:26:57 +02:00
|
|
|
recommend not using it, and just going with the "standard" selection, as
|
2022-02-02 05:17:39 +01:00
|
|
|
some video cards will not work well with other choices. The usual reason
|
2016-06-30 22:26:57 +02:00
|
|
|
for wanting the framebuffer console (besides getting Tux logos at boot)
|
|
|
|
was to adjust the size of the console text, but loading one of the
|
|
|
|
Termimus fonts is a better way to handle that.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Next, decide where you want LILO installed. Usually you'll want to
|
|
|
|
install LILO on the boot drive's MBR (master boot record). If you use a
|
2016-06-30 22:26:57 +02:00
|
|
|
different boot manager then you'll want to install LILO on your root Linux
|
|
|
|
partition and then add that partition to the boot manager menu using its
|
|
|
|
configuration tool.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
The next menu lets you set a delay before the system boots into the
|
2022-02-02 05:17:39 +01:00
|
|
|
default operating system. If you're using LILO to boot more than one
|
2009-08-26 17:00:38 +02:00
|
|
|
operating system (such as DOS and Linux) then you'll need to set a delay
|
2022-02-02 05:17:39 +01:00
|
|
|
so you can pick which OS you'd like to boot. If you press the SHIFT key
|
2009-08-26 17:00:38 +02:00
|
|
|
during the delay, LILO will display a prompt where you can type a label
|
2022-02-02 05:17:39 +01:00
|
|
|
(typically Windows or Linux) to select which OS to boot. If you set the
|
2009-08-26 17:00:38 +02:00
|
|
|
delay to 'Forever', the system will display a prompt at boot time and wait
|
|
|
|
for you to enter a choice.
|
|
|
|
|
|
|
|
Next, you need to add entries for each operating system that LILO can
|
2022-02-02 05:17:39 +01:00
|
|
|
boot. The first entry you make will be the machine's default operating
|
|
|
|
system. You can add either a DOS, Linux, or Windows partition first.
|
|
|
|
For example, let's say you select "Linux". The system will display your
|
|
|
|
Linux partitions and ask which one of them you'd like to boot. Enter the
|
|
|
|
name (like /dev/sda1) of your root Linux partition. Then, you'll be
|
|
|
|
prompted to enter a label. This is the name you will enter at the boot
|
|
|
|
time LILO prompt to select which partition you want to boot. A good
|
2009-08-26 17:00:38 +02:00
|
|
|
choice for this is "Linux".
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Adding a DOS or Windows partition is similar. To add a Windows partition
|
|
|
|
to the LILO configuration file, select the Windows option. The system will
|
2009-08-26 17:00:38 +02:00
|
|
|
display your FAT/NTFS partitions and ask which one of them you'd like to
|
2022-02-02 05:17:39 +01:00
|
|
|
boot with LILO. Enter the name of your primary Windows partition. Then
|
|
|
|
enter a label for the partition, like "Windows". Once you've added all of
|
2009-08-26 17:00:38 +02:00
|
|
|
your bootable partitions, install LILO by selecting the "Install" option.
|
|
|
|
|
|
|
|
|
|
|
|
4.8 Networking
|
|
|
|
|
|
|
|
Another configuration menu allows you to configure your machine's
|
2022-02-02 05:17:39 +01:00
|
|
|
networking setup. First, enter a hostname for your machine. The default
|
2009-08-26 17:00:38 +02:00
|
|
|
hostname after installation is "darkstar," but you can enter any name you
|
2022-02-02 05:17:39 +01:00
|
|
|
like. Next, you'll be asked to provide a domain name. If you're running a
|
2009-08-26 17:00:38 +02:00
|
|
|
stand-alone machine (possibly using a dialup link to an Internet Service
|
|
|
|
Provider) then you can pick any name you like. The default domain name is
|
2022-02-02 05:17:39 +01:00
|
|
|
"example.net". If you are going to add the machine to a local network,
|
2009-08-26 17:00:38 +02:00
|
|
|
you'll need to use the same domain name as the rest of the machines on
|
2022-02-02 05:17:39 +01:00
|
|
|
your network. If you're not sure what this is, contact your network
|
|
|
|
administrator for help. Once you've specified the hostname and domain
|
2009-08-26 17:00:38 +02:00
|
|
|
name, you'll be asked which type of setup you would like: "static IP",
|
2016-06-30 22:26:57 +02:00
|
|
|
"DHCP", "NetworkManager", or "loopback".
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Loopback
|
|
|
|
--------
|
|
|
|
|
|
|
|
This is the simplest type of setup, defining only a mechanism for the
|
2022-02-02 05:17:39 +01:00
|
|
|
machine to contact itself. If you do not have an Ethernet card, use this
|
|
|
|
selection. This is also the correct selection if you'll be using a PCMCIA
|
2009-08-26 17:00:38 +02:00
|
|
|
(laptop) Ethernet card and want to set up your networking in
|
2022-02-02 05:17:39 +01:00
|
|
|
/etc/pcmcia/network.opts. (you could also configure a PCMCIA card using
|
2009-08-26 17:00:38 +02:00
|
|
|
the "static IP" or "DHCP" options, but in that case will not be able to
|
2022-02-02 05:17:39 +01:00
|
|
|
"hotplug" the card) Finally, this is the right option to use if you have
|
|
|
|
a modem, and will be connecting via dialout and PPP. You'll select
|
2009-08-26 17:00:38 +02:00
|
|
|
loopback now, and then set up your phone connection later using pppsetup
|
|
|
|
or kppp.
|
|
|
|
|
|
|
|
Static IP
|
|
|
|
---------
|
|
|
|
|
|
|
|
If your machine has an Ethernet card with a static IP address assigned to
|
2022-02-02 05:17:39 +01:00
|
|
|
it, you can use this option to set it up. You'll be prompted to enter
|
2009-08-26 17:00:38 +02:00
|
|
|
your machine's IP address, netmask, the gateway IP address, and the
|
2022-02-02 05:17:39 +01:00
|
|
|
nameserver IP address. If you don't know what numbers you should be
|
|
|
|
using, ask the person in charge of the network to help. After entering
|
2009-08-26 17:00:38 +02:00
|
|
|
your information, you'll be asked if you want to probe for your network
|
2022-02-02 05:17:39 +01:00
|
|
|
card. This is a good idea, so say yes. Confirm that the settings are
|
2009-08-26 17:00:38 +02:00
|
|
|
correct, and your networking will be configured to use a static IP
|
|
|
|
address.
|
|
|
|
|
|
|
|
DHCP
|
|
|
|
----
|
|
|
|
|
|
|
|
DHCP stands for Dynamic Host Configuration Protocol, and is a system where
|
2022-02-02 05:17:39 +01:00
|
|
|
your machine contacts a server to obtain its IP and DNS information.
|
2009-08-26 17:00:38 +02:00
|
|
|
This is the usual way to get an IP address with broadband connections like
|
|
|
|
cable modems (although some more expensive business-class broadband
|
2022-02-02 05:17:39 +01:00
|
|
|
connections may assign static IP addresses). It is very easy to set up a
|
|
|
|
DHCP connection -- just select the option. Some providers will give you a
|
2009-08-26 17:00:38 +02:00
|
|
|
DHCP hostname (Cox is one that does) that you'll also need to enter in
|
2022-02-02 05:17:39 +01:00
|
|
|
order to identify yourself to the network. If you don't have a DHCP
|
2009-08-26 17:00:38 +02:00
|
|
|
hostname, just leave it blank and hit ENTER. After entering your
|
|
|
|
information, you'll be asked if you want to probe for your network card.
|
2022-02-02 05:17:39 +01:00
|
|
|
This is a good idea, so say yes. Confirm that the settings are correct,
|
2009-08-26 17:00:38 +02:00
|
|
|
and your networking will be configured to use DHCP.
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
NetworkManager
|
|
|
|
--------------
|
|
|
|
|
|
|
|
If you will be using wireless (or even a wired interface), you might want
|
|
|
|
to let NetworkManager handle your network connections. When NetworkManager
|
|
|
|
is used to handle connections, a nice interface is provided to scan for
|
|
|
|
wireless access points and make changes to the network configuration.
|
2022-02-02 05:17:39 +01:00
|
|
|
This interface runs automatically with KDE or Xfce. In fluxbox, the
|
2016-06-30 22:26:57 +02:00
|
|
|
nm-applet program will need to be launched.
|
|
|
|
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
Once you've completed all the configuration menus, you can exit setup and
|
2022-02-02 05:17:39 +01:00
|
|
|
reboot your machine. Simply press ctrl-alt-delete and the kernel will
|
2009-08-26 17:00:38 +02:00
|
|
|
kill any programs that are running, unmount your filesystems, and restart
|
|
|
|
the machine.
|
|
|
|
|
|
|
|
|
|
|
|
5. Booting the installed Slackware system
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
Before rebooting, make sure to remove the CD-ROM to avoid booting it, or
|
2009-08-26 17:00:38 +02:00
|
|
|
disable your machine's CD-ROM booting feature in the BIOS settings.
|
|
|
|
|
|
|
|
The kernel will go through the startup process, detecting your hardware,
|
|
|
|
checking your partitions and starting various processes. Eventually you'll
|
|
|
|
be given a login prompt:
|
|
|
|
|
|
|
|
darkstar login:
|
|
|
|
|
|
|
|
Log into the new system as "root".
|
|
|
|
|
2021-04-12 22:07:12 +02:00
|
|
|
Welcome to Linux 5.10.29.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
darkstar login: root
|
2021-04-12 22:07:12 +02:00
|
|
|
Last login: Sun Apr 11 13:52:45 2021 on tty3.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
2021-04-12 22:07:12 +02:00
|
|
|
Linux 5.10.29.
|
2009-08-26 17:00:38 +02:00
|
|
|
You have new mail.
|
|
|
|
|
|
|
|
darkstar: ~#
|
|
|
|
|
|
|
|
|
|
|
|
6. Post-installation configuration
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Once the system is running, most of the work is complete. However, there
|
|
|
|
are still a few programs you'll need to configure. We'll cover the most
|
2009-08-26 17:00:38 +02:00
|
|
|
important of these in this section.
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
6.1 /etc/rc.d/rc.modules.local
|
|
|
|
|
|
|
|
If there are kernel modules that you need to load, then you should add a
|
2022-02-02 05:17:39 +01:00
|
|
|
line to this file for each kernel module that you'd like to load. Note that
|
2016-06-30 22:26:57 +02:00
|
|
|
modern Linux systems include a feature that allows the kernel to load its
|
2022-02-02 05:17:39 +01:00
|
|
|
own modules, called udev. This will load most modules automatically without
|
2016-06-30 22:26:57 +02:00
|
|
|
any need to edit rc.modules, and when using udev (or eudev) it might be better
|
|
|
|
to tell it how to load the modules you want automatically rather than loading
|
2022-02-02 05:17:39 +01:00
|
|
|
them at boot time with rc.modules. This is an advanced topic, and outside
|
2016-06-30 22:26:57 +02:00
|
|
|
the scope of this document. If you're interested in this, "man udev" is a good
|
2022-02-02 05:17:39 +01:00
|
|
|
place to start reading. In any case, it's best to not edit rc.modules.local
|
2009-08-26 17:00:38 +02:00
|
|
|
unless you find that the modules you want to use are not being loaded
|
2022-02-02 05:17:39 +01:00
|
|
|
automatically by udev. You can see a list of the modules that were loaded
|
2016-06-30 22:26:57 +02:00
|
|
|
with the "lsmod" command.
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
There's a lot more information out there about kernel modules, including
|
|
|
|
lists of module names and the cards they support, as well as extra options
|
|
|
|
you can can add to the module lines to configure the hardware in different
|
2022-02-02 05:17:39 +01:00
|
|
|
ways. The kernel's documentation in /usr/src/linux/Documentation has a
|
2009-08-26 17:00:38 +02:00
|
|
|
lot of good information, as does the information shipped with udev (found
|
2016-06-30 22:26:57 +02:00
|
|
|
under /usr/doc/eudev-*).
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
6.2 Configuring the X Window System
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Configuring X can be a complex task. The reason for this is the vast
|
2009-08-26 17:00:38 +02:00
|
|
|
numbers of video cards available for the PC architecture, most of which
|
2022-02-02 05:17:39 +01:00
|
|
|
use different programming interfaces. Luckily, X has come a long way
|
2009-08-26 17:00:38 +02:00
|
|
|
since the early days of X386, where monitor modelines had to be tediously
|
2022-02-02 05:17:39 +01:00
|
|
|
calculated. With most hardware, X can now be run with NO configuration
|
|
|
|
file or additional driver! But you still might want to make a
|
2009-08-26 17:00:38 +02:00
|
|
|
configuration file if you'll be using a third party video driver (the
|
|
|
|
installer for that may offer to make it for you), or if you just want to
|
|
|
|
have greater control over the details of the X configuration.
|
|
|
|
|
|
|
|
To try X without a configuration file, just type "startx" at a command
|
2022-02-02 05:17:39 +01:00
|
|
|
line. If you're satisfied with the result, then you're done. If you
|
2009-08-26 17:00:38 +02:00
|
|
|
would like X to start automatically at boot, see the /etc/inittab file
|
|
|
|
once you've tested "startx" to be sure that X is working.
|
|
|
|
|
|
|
|
If this doesn't work with your card, or if you'd like to take advantage of
|
|
|
|
the high-performance features of your video card such as hardware
|
|
|
|
acceleration or 3-D hardware rendering, then you'll need to reconfigure X.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
To configure X, you'll need to make an /etc/X11/xorg.conf file. This file
|
|
|
|
contains lots of details about your video hardware, mouse, and monitor.
|
2009-08-26 17:00:38 +02:00
|
|
|
It's a very complex configuration file, but fortunately there are several
|
2022-02-02 05:17:39 +01:00
|
|
|
programs to help create one for you. We'll mention a few of them here:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Xorg -configure
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Modern versions of X provide a simple way to create an initial xorg.conf
|
|
|
|
file that often will work without any additional configuration, or, at the
|
2022-02-02 05:17:39 +01:00
|
|
|
very least, provide a good base from which to customize the file. To run
|
2009-08-26 17:00:38 +02:00
|
|
|
this command, enter the following in a root terminal:
|
|
|
|
|
|
|
|
# Xorg -configure
|
|
|
|
|
|
|
|
The X server probes for available hardware and creates an initial
|
2022-02-02 05:17:39 +01:00
|
|
|
xorg.file located in the /root directory. You can then use this initial
|
2009-08-26 17:00:38 +02:00
|
|
|
file to test the configuration by entering the following:
|
|
|
|
|
|
|
|
# Xorg -config /root/xorg.conf.new
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
This will load the initial xorg.conf.new file and run the X server. If
|
2009-08-26 17:00:38 +02:00
|
|
|
you see the default black and gray checkered background with a mouse
|
2022-02-02 05:17:39 +01:00
|
|
|
cursor appear, then the configuration was successful. To exit the X
|
|
|
|
server, just press Ctrl+Alt+Backspace simultaneously. Once back at the
|
2009-08-26 17:00:38 +02:00
|
|
|
command line, you can copy this xorg.conf.new file to /etc/X11/xorg.conf
|
|
|
|
and begin making any manual edits necessary to customize your setup.
|
|
|
|
|
|
|
|
xorgsetup
|
|
|
|
---------
|
|
|
|
|
|
|
|
This is a simple menu driven frontend that's similar in feel to the
|
2022-02-02 05:17:39 +01:00
|
|
|
Slackware installer. It simply tells the X server to take a look at the
|
2009-08-26 17:00:38 +02:00
|
|
|
card, and then set up the best initial configuration file it can make
|
2022-02-02 05:17:39 +01:00
|
|
|
based on the information it gathers. The generated /etc/X11/xorg.conf
|
2009-08-26 17:00:38 +02:00
|
|
|
file should be a good starting point for most systems (and should work
|
|
|
|
without modification).
|
|
|
|
|
|
|
|
|
|
|
|
6.3 Hardware acceleration with X
|
|
|
|
|
|
|
|
If you've used xorgsetup or X -configure to configure for your card, and
|
|
|
|
it's one that can take advantage of X's direct rendering support,
|
2022-02-02 05:17:39 +01:00
|
|
|
you'll certainly want to enable this. Check your /etc/X11/xorg.conf and
|
2009-08-26 17:00:38 +02:00
|
|
|
make sure that the glx module is loaded:
|
|
|
|
|
|
|
|
Load "glx"
|
|
|
|
|
|
|
|
This line will probably already be in place.
|
|
|
|
|
|
|
|
|
|
|
|
6.4 User Accounts
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
You should make a user account for yourself. Using "root" as your
|
2009-08-26 17:00:38 +02:00
|
|
|
everyday account is dangerous, and is considered bad form (at the very
|
|
|
|
least) since you can accidentally damage your system if you mistype a
|
2022-02-02 05:17:39 +01:00
|
|
|
command. If you're logged in as a normal user, the effects of bad
|
|
|
|
commands will be much more limited. Normally you'll only log in as root
|
2009-08-26 17:00:38 +02:00
|
|
|
to perform system administration tasks, such as setting or changing the
|
|
|
|
root password, installing, configuring, or removing system software, and
|
|
|
|
creating or deleting user accounts.
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
To make an account for yourself, use the 'adduser' program. To start it,
|
|
|
|
type 'adduser' at a prompt and follow the instructions. Going with the
|
2009-08-26 17:00:38 +02:00
|
|
|
default selections for user ID, group ID, and shell should be just fine
|
2022-02-02 05:17:39 +01:00
|
|
|
for most users. You'll want to add your user to the cdrom, audio, video
|
2016-06-30 22:26:57 +02:00
|
|
|
plugdev (plugable devices like USB cameras and flash memory), scanner, and
|
|
|
|
lp groups if you have a computer with multimedia peripherals and want to
|
2022-02-02 05:17:39 +01:00
|
|
|
be able to access these. Add these group names at the following prompt:
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Additional groups (comma separated) []:
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
To add the user to all the recommended user groups automatically, hit the
|
|
|
|
up arrow at this prompt to fill them in, and then hit enter.
|
|
|
|
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
Passwords and security
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
When choosing passwords for a Linux system that is connected to a network
|
2022-02-02 05:17:39 +01:00
|
|
|
you should pick a strong password. However, passwords only help protect a
|
|
|
|
system from remote trespassing. It's easy to gain access to a system if
|
2009-08-26 17:00:38 +02:00
|
|
|
someone has physical access to the console.
|
|
|
|
|
|
|
|
If you forget the root password, you can use the install disc to mount
|
|
|
|
your root partition and edit the files containing the password
|
2022-02-02 05:17:39 +01:00
|
|
|
information. If you have a bootable optical drive, you can use the first
|
2009-08-26 17:00:38 +02:00
|
|
|
installation CD-ROM or the DVD as a rescue disk.
|
|
|
|
|
|
|
|
At the prompt, you can manually mount the root Linux partition from your
|
|
|
|
hard drive ("fdisk -l" will give you a list) and remove the root password.
|
2016-06-30 22:26:57 +02:00
|
|
|
For example, if your root linux partition is /dev/sda2, here are the
|
2009-08-26 17:00:38 +02:00
|
|
|
commands to use after logging into the install disc as "root":
|
|
|
|
|
2016-06-30 22:26:57 +02:00
|
|
|
mount /dev/sda2 /mnt
|
2009-08-26 17:00:38 +02:00
|
|
|
cd /mnt/etc
|
|
|
|
|
|
|
|
Next, you'll need to edit the "shadow" file to remove root's password.
|
|
|
|
Editors which might be available include "vi", "emacs", "pico", and "nano".
|
|
|
|
"vi" and "emacs" might be more of an adventure than you need unless you've
|
2022-02-02 05:17:39 +01:00
|
|
|
used them before. The "pico" and "nano" editors are easy for beginners to
|
2009-08-26 17:00:38 +02:00
|
|
|
use.
|
|
|
|
|
|
|
|
pico shadow
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
At the top of the file, you'll see a line starting with root. Right after
|
|
|
|
root, you'll notice the encrypted password information between two colons.
|
2009-08-26 17:00:38 +02:00
|
|
|
Here's how root's line in /etc/shadow might look:
|
|
|
|
|
|
|
|
root:EnCl6vi6y2KjU:10266:0:::::
|
|
|
|
|
|
|
|
To remove root's password, you use the editor to erase the scrambled text
|
|
|
|
between the two colons, leaving a line that looks like this:
|
|
|
|
|
|
|
|
root::10266:0:::::
|
|
|
|
|
|
|
|
Save the file and reboot the machine, and you'll be able to log in as root
|
2022-02-02 05:17:39 +01:00
|
|
|
without a password. The first thing you should do is set a new password
|
2009-08-26 17:00:38 +02:00
|
|
|
for root, especially if your machine is connected to a network.
|
|
|
|
|
|
|
|
|
|
|
|
Here are some pointers on avoiding weak passwords:
|
|
|
|
|
|
|
|
1. Never use your name (or anyone's name), birthdate, license plate,
|
2022-02-02 05:17:39 +01:00
|
|
|
or anything relating to yourself as a password. Someone trying
|
2009-08-26 17:00:38 +02:00
|
|
|
to break into your machine might be able to look these things up.
|
|
|
|
|
|
|
|
2. Don't use a password that is any variation of your login name.
|
|
|
|
|
|
|
|
3. Do not use words from the dictionary (especially not "password" :)
|
|
|
|
or syllables of two different words concatenated together as your
|
2022-02-02 05:17:39 +01:00
|
|
|
password. There are automated programs floating around on the net
|
2009-08-26 17:00:38 +02:00
|
|
|
that can try them all in a short time.
|
|
|
|
|
|
|
|
4. Do not use a number (like 123456) or a password shorter than six
|
|
|
|
characters.
|
|
|
|
|
|
|
|
|
|
|
|
The strongest passwords are a mix of letters, numbers, and symbols.
|
|
|
|
Here are some examples of strong passwords (but don't use these ;-):
|
|
|
|
|
|
|
|
*^5g!:1? ()lsp@@9 i8#6#1*x ++c$!jke *2zt/mn1
|
|
|
|
|
|
|
|
In practice, any password containing one or two words, a number (or two),
|
|
|
|
and a symbol (or two) should be quite secure.
|
|
|
|
|
|
|
|
|
|
|
|
7. For more information
|
|
|
|
|
|
|
|
For more information, visit our web site at http://www.slackware.com
|
|
|
|
|
2022-02-02 05:17:39 +01:00
|
|
|
Slackware relies on user contributions for funding. If you'd like to help,
|
|
|
|
visit one of these links:
|
|
|
|
|
|
|
|
https://www.patreon.com/slackwarelinux
|
|
|
|
https://paypal.me/volkerdi
|
|
|
|
|
|
|
|
Contibutions are not tax deductible. Thanks for your support in any amount!
|
2009-08-26 17:00:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
FTP: ftp://ftp.slackware.com (Updates)
|
|
|
|
WWW: http://www.slackware.com (News)
|
|
|
|
Security issues: security@slackware.com
|
|
|
|
General Hotline: volkerdi@slackware.com
|
|
|
|
|
|
|
|
|
|
|
|
8. Trademarks
|
|
|
|
|
2021-04-12 22:07:12 +02:00
|
|
|
Slackware is a trademark of Patrick Volkerding.
|
2009-08-26 17:00:38 +02:00
|
|
|
Linux is a registered trademark of Linus Torvalds.
|
|
|
|
All trademarks are property of their respective owners.
|