===== Get acquainted with Slackware =====
==== Introduction ====
This document is intended to allow people who have already used another "Unix-like" system to get quickly acquainted with
Slackware. We assume that the reader:
* knows the main Unix commands and the associated concepts,
* knows how-to edit a text file (such as a configuration file)
* can read a simple shell script.
==== Resources ====
=== Slackware's website ===
The website [[http://slackware.com|slackware.com]] is an entry point to
following resources:
* [[https://www.patreon.com/slackwarelinux/overview|The official Patreon page]] to financially support Slackware,
* [[http://mirrors.slackware.com/slackware/slackware-iso/|ISO images]], a [[http://mirrors.slackware.com/|mirrors list]], [[http://www.slackware.com/getslack/torrents.php|torrents]] to get the distribution,
* [[http://mirrors.slackware.com/slackware/|Files trees]] from version 1.01,
* The [[http://packages.slackware.com/|Packages browser]] allows to find packages for all versions since Slackware 8.1
=== Directories and documents at the root of the distribution's file trees ===
These documents are also available at the root of each of the
[[http://mirrors.slackware.com/slackware/slackware-iso/|ISO images]]
Here is an incomplete list of the main directories and documents useful to
Slackware newcomers.
.
|-- CHANGES_AND_HINTS.TXT See the end: OTHER NOTABLE CHANGES AND HINTS
|-- README.TXT présentation of the version, including the packages series
|-- README.initrd how-to create an "initrd" to start the system[1]
|-- Slackware-HOWTO requirements, installation and configuration
|-- EFI/ installer for UEFI 64-bit from version 14.1
|-- extra/ additional packages and sources
|-- isolinux/ installer
|-- kernels/ kernels
|-- pasture/ obsolete packages and sources
|-- patches/ packages and sources updated after a release
|-- slackware/ base packages (if 32-bit)
|-- slackware64/ base packages (if 64-bit)
|-- testing/ packages intended for adventurous
`-- usb-and-pxe-installers/ alternate installation methods
[1] See also /usr/share/mkinitrd/mkinitrd_command_generator.sh after
installation.
The names of the other documents with the TXT extension give a clue about
their content.
=== Other information sources ===
The aim of community website [[http://docs.slackware.com|SlackDocs]] is to be
the main information source about Slackware. Visit it priority to deepen the
topics covered in this document.
Slackware newcomers (and others) have their
[[http://www.linuxquestions.org/questions/slackware-14/|Slackware forum]] on
the website LinuxQuestions.org, often abbreviated LQ.
You can find other sources of information following the
[[http://wiki.linuxquestions.org/wiki/Slackware-Links|Slackware-Links]]
proposed by onebuck from LQ.
After installation, read the email from Patrick Volkerding, it contains
additional information: just type ''mail'' as root, or read the file
/var/spool/mail/root with ''less''.
==== Installation, configuration, startup ====
=== Installation ===
The installation media can be obtained on Slackware's website (see above).
Slackware provides a text installer, the document Slackware-HOWTO presents
the installation process.
The genuine installer is only available in English but the project
[[http://slint.fr|Slint]] offers [[http://slint.fr/installer.html|polyglot
installers]], which also complement the system configuration: choosing the
language, the keyboard layout and creating ordinary users. A
[[http://slint.fr/package.html|Slint package]], also installed, provides
polyglot versions of the main administration tools and/or their manual
pages. Since version 14.1 the Slint installers can be controlled by a
Braille terminal, that can also be used to control the installed system.
=== Configuration post-installation ===
The tasks of configuration and administration must be carried out as
root. If you are logged in as a normal user, type ''su'' (to obtain root
privileges) or ''su -'' (to become root). The ''sudo command'', although
available, is rarely used to administer Slackware.
* To create "ordinary" users, type ''adduser''
* To change the font for the console type ''setconsolefont''
* To change the console keymap edit /etc/rc.d/rc.keymap and make it executable
* To change the LANG edit /etc/profile.d/lang.sh and case occurring /etc/profile.d/lang.csh. Note: in Slackware /bin/sh is a symlink to /bin/bash.
* To modify the keyboard settings for X (in graphical mode), copy usr/share/X11/xorg.conf.d/90-keyboard-layout.conf to /etc/X11/xorg.conf.d, hen edit the copy. The file /etc/X11/xkb/rules/evdev.lst lists all known alues for XkbModel, XkbLayout, XkbVariant and XkbOptions under the respective headings ''! model'', ''! layout'', ''! variant'' and ''! option''
* You can re-run the setup scripts (already used at the end of installation) using the command ''pkgtool'', menu entry ''Setup''.
Slackware includes the main text editors such as pico, nano, elvis and vim
and file managers mc and thunar and, of course, all common utilities and
shells, useful to configure and administer the system.
In general, Slackware does not prejudge how the system will be used. It is up
to the administrator to customize it for its intended usage by editing the
configuration files located in /etc or its sub-directories. It helps to read the comments
in scripts for management of services located in /etc/rc.d as well as in the
configuration files.
=== Startup ===
At first startup after installation your system will be in "console" mode,
without a GUI. If you prefer to start in graphical mode, replace
"id:3:initdefault:" with "id:4:initdefault:" (runlevel 4 instead of 3) in
the file /etc/inittab
Otherwise, to switch from console to graphical mode, choose first your
window manager or desktop by default through command ''xwmconfig'' either as
root (for all) or as ordinary user (for that user). Then type ''startx'' to
start this window manager or desktop from the console after system startup.
In Slackware the run levels configured in /etc/inittab are:
* 0: shutdown
* 1: single user
* 3: multi user (default level)
* 4: idem 3, but with a sessions manager for X
* 7: reboot
At these levels correspond scripts in /etc/rc.d:
* rc.S runs at startup, it initializes the system, checks then mount the file systems.
* rc.M in multi user mode starts most services (daemons launched by scripts in /etc/rc.d if executable).
* rc.K goes into single user mode (run level 1 or S).
* rc.4 starts a session manager: gdm, kdm or xdm, others can be added editing that script.
* rc.0 shuts down the system (symlink to rc.6).
* rc.6 reboots or shuts down (if called as rc.0) the system cleanly.
Note. The administrator can add services scripts (daemons manager) in
/etc/rc.d. Place the ''start'' of the demons in /etc/rc.d/rc.local and the
''stop'' in /etc/rc.d/rc.local_shutdown. /etc/rc.d/rc.local is run by
/etc/rc.d/rc.M, /etc/rc.d/rc.local_shutdown by /etc/rc.d/rc.6
In addition Slackware includes a structure for managing services by run
level in a ''sysvinit'' fashion for the software not included in the
distribution (commercial ones, noticeably) that need it.
The management of services to be launched at startup can be done:
* manually making executable: (''chmod 755