How to install Slackware 15

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

Slackware is one of the oldest linux distributions active today. Back in my days Slackware was considered “hard” and “difficult” (read that sentence with an old lady voice). But after this article where I’ll show how to install Slackware 15 – with KDE desktop – you’ll judge that by yourself.

The Slackware Philosophy

I’m quoting this from the Slackware website, and highlighted important things:

«Since its first beta release in April of 1993, the Slackware Linux Project has aimed at producing the most “UNIX-like” Linux distribution out there. Slackware complies with the published Linux standards, such as the Linux File System Standard. We have always considered simplicity and stability paramount, and as a result Slackware has become one of the most popular, stable, and friendly distributions available.»

Download

You can get Slackware from one of the mirrors here: https://mirrors.slackware.com/slackware/slackware-iso/

Install

Mount your ISO and boot the computer. On the very first screen of the bootloader, just press enter to boot with the default kernel

how to install slackware 15. booting into slackware
booting into slackware

As with many linux distributions, and many operating systems, choose a keyboard map to use during the installation. If yours is US map, just press enter.

Press enter to keep US, 1 to select another map
Press enter to keep US, 1 to select another map

Mine is a spanish qwerty keyboard:

choose the appropriate for your system
choose the appropriate for your system

Now you have choosen a keyboard map, you can test it ont he next screen. Press ‘1’ to accept the setting or ‘2’ to select a new one

keymap testing time
keymap testing time

Pre-setup tasks

With your keyboard now working as expected pay attention to the message on the following screen:

tl;dr: create your own partitions

tl;dr: You’ll have to do some things by hand. Specifically, you need to partition the disk by yourself before running the setup program. To do this, let’s login as root (without password)

login into slackware
login into slackware

And run cfdisk to create some partitions. If you are new here, create a swap partition of a few Gb and a big data partition with the remaining space.

how to install slackware 15. Working with cfdisk
working with cfdisk

If you aren’t new here, you will know how to distribute your disk space. When you are happy with the partition layout write changes to disk and continue to the next section.

working with cfdisk

Setup

Now that you have your partitions ready, launch the program setup. You will be presented the following menu:

slackware setup program

Here you may read the help before doing anything. Just remember that often a few hours or days of trial-and-error will save you some minutes of reading the documentation. I went straight to the ADDSWAP option.

activating a swap partition

Just hit enter. There is only one swap partition. Next the installer informs what is it doing or about to do:

/etc/fstab information
/etc/fstab information

After the swap activation, the installer didn’t back to the first menu, but continued with the other steps. It showed me the available partitions to use as the system root partition:

select a root partition

The slow format that checks for bad blocks can be really slow, but you should choose that option if your disk aren’t trustworthy.

I’ve selected quick format, now choose the filesystem to use. I’ve went with the ‘traditional’ ext4.

How to install slackware 15. Choosing a filesystem
choosing a filesystem

As with the swap, the installer shows the line it will add to /etc/fstab

how to install slackware 15. /etc/fstab information
/etc/fstab information

With the main partitions mounted, the next step is to choose the source from where to install. I chose the first option ’cause I have the ISO. (on a virtual machine)

source selection
source selection

Press enter on the next screen

how to install slackware 15. scan for cd
just chose auto

Now the installer will list some categories of software to pick. Among others, I’m going to select the KDE Desktop category.

Next to choose the categories to install, the installer let you install everything in that category or to choose individual items.

Select prompting mode
Select prompting mode

The recommended option, if you have enough disk space, is “full”. I have it. I go with “terse” to see whats going on.

how to install slackware 15. this is whats going on
this is whats going on

Next the installer gives you the option to create an usb boot disk. I’ve skipped because I’m working with virtual machines.

Creating an usb boot device. Or not
Creating an usb boot device. Or not

Configuring the bootloader

Grub is the default bootloader on many distros. However, this is Slackware and they still use lilo.

The automatic option works really good. So you should pick that option.

configure lilo

In this screen you can choose a resolution for your text console. For example, I’ve chose 1024×768, but I won’t actually use it. I mean, even when I’m working on a text console, it is something like a xterm.

text console resolution. how to install slackware 15

Here you should add any other extra kernel parameter. Probably you don’t need any, just hit enter in that case.

extra kernel parameters

The final step in lilo bootloader configuration is to choose where to install. If you have another OS with another bootloader you want to use then choose the root partition. Else choose MBR. If you have a floppy unit, maybe slackware would run on your computer but too slow.

where to install lilo

Finally, lilo get installed.

how to install slackware 15. installing lilo

Gpm is an utility to work with the mouse in the text console. I use terminal emulators in a Xorg session. Therefore I set this question to no

(no) enable gpm

Network configuration

Now it’s time to configure the network. Say yes to the first question:

answer yes to configure the network

To configure the network first you need to set the host name:

configure hostname

Second, you need to set the domain name. Maybe you need to ask your local network manager for the domain name. And maybe an appropriate host name.

how to install slackware 15. domain name

Third, if the network manager is still close, ask for the vlan ID. If isn’t close still, and you don’t know what a Vlan is, you probably don’t need it.

how to install slackare 15. configure vlan

Fourth, select a configuration type. Most people should pick DHCP or NetworkManager. Fortunately the setup program gives you enough information to choose the one that suits for you.

configuration type

The last screen in network configuration is a summary. I don’t know why my network card isn’t listed here.

The last settings

With the network configured, the next choice is which services will start at boot time. Disabling the unused ones, besides may improve security, may improve performance as there are less things consuming resources of your computer.

enabling or disabling services

There are some cool fonts for the text console, if you like customization you should visit this option. I like customization, but I didn’t use the text console, so I skip this step.

text console fonts

Now it’s time to set date and time. The hardware clock of this computer is seted with the local time, so I chose no here.

hardware clock is in localtime

Set your timezone.

timezone

Now the instaler lets you set the VI alternative you like. I chose a random option and install nano or the text editor of mc (mcedit).

Another alternative to pick: the default window manager or desktop. KDE it is.

how to install slackware 15. choose wm for x

The very last step and the installation will be over: set the root password to something that is not 123456.

set the root password
set the root password

This is it. Next you will be asked to remove the installation disc and reboot.

how to install slackware 15. Last step

The installer will let you, if you have to, open a shell to do some tasks before reboot.

how to install slackware 15 complete

Post-install

This is what the slackware’s lilo bootloader screen looks like:

bootloader screen

Just press enter to boot into your shiny new OS. During the install, at least two things happened:

  • the installer didn’t asked me to create some non-root user
  • I didn’t pay attention to the services screen, so my system boots with a text console

To create a regular user, just log in as root, run adduser and follow the instructions on the screen.

To enable a graphical session manager edit the file /etc/inittab look for the following lines:

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:

And change the default runlevel to 4:

id:4:initdefault:

Now you may reboot to start in runlevel 4. But you can change the current runlevel as easy as run:

telinit 4

Then you’ll get a graphical login

Also, a graphical login manager isn’t mandatory. You may save a few bytes of ram by running startx after you log in a text console.

how to install slackware 15. System installed

Where to find help

A search engine like google or duckduckgo are good places to start. But the official book is better, heres the link: http://www.slackbook.org/

Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"
Gonzalo Rivero
Gonzalo Rivero
I am Gonzalo, I live in Salta, a city located in the NW of Argentina. I play the guitar and a little harmonica. I also like to bike.

1 COMMENT

  1. It’s important to know that after updates, if the kernel is updated you will need to update your lilo and the init system by using the mkinitrd command generator, found on their wiki in beginner’s guide.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook