[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
slackware:liveslak [2018/02/12 18:47 (UTC)] – [Scripts and tools] Typo fix. alienbob | slackware:liveslak [2020/05/13 18:54 (UTC)] – Slackware can be installed to harddisk from the X Desktop Environment. alienbob | ||
---|---|---|---|
Line 46: | Line 46: | ||
Common download locations are: | Common download locations are: | ||
- | * Primary site: http://bear.alienbase.nl/mirrors/ | + | * Primary site: http://slackware.nl/ |
* Darren' | * Darren' | ||
* Willy' | * Willy' | ||
- | * Ryan's https:// | ||
* Shasta' | * Shasta' | ||
Line 146: | Line 145: | ||
You might have noticed that the " | You might have noticed that the " | ||
+ | |||
+ | |||
+ | ==== Using the Live OS to install Slackware to hard disk ==== | ||
+ | |||
+ | |||
+ | All variants of Slackware Live Edition with the exception of the XFCE variant contain a script " | ||
+ | |||
==== Updating the kernel (and more) on a USB stick ==== | ==== Updating the kernel (and more) on a USB stick ==== | ||
Line 185: | Line 191: | ||
# ./upslak.sh -d | # ./upslak.sh -d | ||
* Updating kernel and modules, providing two packages as input and assuming the USB stick is known as /dev/sdX: | * Updating kernel and modules, providing two packages as input and assuming the USB stick is known as /dev/sdX: | ||
- | # ./upslak.sh -o /dev/sdX -m kernel-modules-4.9.50-x86_64-1.txz -k kernel-generic-4.9.50-x86_64-1.txz | + | # ./upslak.sh -o /dev/sdX -m kernel-modules-4.19.0-x86_64-1.txz -k kernel-generic-4.19.0-x86_64-1.txz |
* Restore the previous kernel and modules after a failed update, and let the script scan your computer for the insertion of your USB stick: | * Restore the previous kernel and modules after a failed update, and let the script scan your computer for the insertion of your USB stick: | ||
# ./upslak.sh -s -r | # ./upslak.sh -s -r | ||
Line 338: | Line 344: | ||
=== Media tweaks === | === Media tweaks === | ||
+ | |||
+ | cfg=[skip|write] => | ||
+ | Specify ' | ||
+ | OS parameters; or specify ' | ||
+ | to disk. | ||
hostname=your_custom_hostname[, | hostname=your_custom_hostname[, | ||
Line 448: | Line 459: | ||
* The script reads a package sequence for the Live variant and installs all packages in this sequence to subdirectories of a temporary directory tree. | * The script reads a package sequence for the Live variant and installs all packages in this sequence to subdirectories of a temporary directory tree. | ||
- | * Every Slackware package set (a, ap, d, ... , y) or package list (min, xbase, xapbase, ...) is installed into a separate ' | + | * Every Slackware package set (a, ap, d, ... , y) or package list (min, noxbase, x_base, xapbase, ...) is installed into a separate ' |
* Each of those root directories is " | * Each of those root directories is " | ||
* These module files are subsequently loop-mounted and then combined together into a single read-only directory structure using an " | * These module files are subsequently loop-mounted and then combined together into a single read-only directory structure using an " | ||
Line 503: | Line 514: | ||
This section explains how the script modifies the ISO for the enhanced USB functionality. | This section explains how the script modifies the ISO for the enhanced USB functionality. | ||
+ | |||
+ | == Layout of the USB stick == | ||
+ | |||
+ | The " | ||
+ | |||
+ | * First partition: a small (1 MB in size) FAT partition which is not used for Slackware Live Edition. | ||
+ | * Second partition: a 100 MB VFAT partition containing the kernel, initrd and all the other stuff required by syslinux and grub2 to boot Slackware Live Edition. | ||
+ | * Third partition: a Linux partition taking up all of the remaining space. It contains the actual liveslak modules, the persistent live storage and optionally your encrypted homedirectory. You can use the remainder of this Linux //ext4// filesystem' | ||
+ | |||
+ | Note that this script is the only supported method of transfering the liveslak ISO content to a USB stick and make that USB stick into a persistent live OS. Several 3rd party tools (like multibootusb, | ||
== Mounting a filesystem in an encrypted container == | == Mounting a filesystem in an encrypted container == | ||
Line 654: | Line 675: | ||
* locale = the locale used in the country | * locale = the locale used in the country | ||
* xkb = optional custom X keyboard variant for the language | * xkb = optional custom X keyboard variant for the language | ||
- | * liveinit - this is the " | + | * liveinit.tpl - this is the template for the " |
* make_slackware_live.conf - the configuration file for the " | * make_slackware_live.conf - the configuration file for the " | ||
* make_slackware_live.sh - the script that generates the Live ISO. | * make_slackware_live.sh - the script that generates the Live ISO. | ||
* makemod - this script creates a squashfs module out of a Slackware package (or out of a directory tree). | * makemod - this script creates a squashfs module out of a Slackware package (or out of a directory tree). | ||
* menu.tpl - template which is used to generate the syslinux boot menu for BIOS computers. | * menu.tpl - template which is used to generate the syslinux boot menu for BIOS computers. | ||
- | * pxeserver - the script that starts a PXE server allowing other computers to boot Slackware Live over the network. | + | * pxeserver.tpl - template to generate |
- | * setup2hd - the script you use to install your Slackware Live to a harddisk. | + | * setup2hd.tpl |
* setup2hd.local - here a developer of a custom Live OS can override the default post-installation routine by (re-)defining the function " | * setup2hd.local - here a developer of a custom Live OS can override the default post-installation routine by (re-)defining the function " | ||
Line 672: | Line 693: | ||
-a arch Machine architecture (default: x86_64). | -a arch Machine architecture (default: x86_64). | ||
Use i586 for a 32bit ISO, x86_64 for 64bit. | Use i586 for a 32bit ISO, x86_64 for 64bit. | ||
+ | -c comp Squashfs compression (default: xz). | ||
+ | Can be any of 'gzip lzma lzo xz zstd'. | ||
-d desktoptype | -d desktoptype | ||
XFCE (basic XFCE), PLASMA5 (KDE Plasma5 replaces KDE4), | XFCE (basic XFCE), PLASMA5 (KDE Plasma5 replaces KDE4), | ||
MATE (Gnome2 fork replaces KDE4), CINNAMON (fork of Gnome3 | MATE (Gnome2 fork replaces KDE4), CINNAMON (fork of Gnome3 | ||
- | Shell replaces KDE4). | + | Shell replaces KDE4), DLACK (adds Gnome3, PAM and systemd). |
| | ||
where the ISO won't boot otherwise (default: 4). | where the ISO won't boot otherwise (default: 4). | ||
| | ||
custom configurations and new initrd.img. | custom configurations and new initrd.img. | ||
+ | -l < | ||
+ | (script-default is ' | ||
-m pkglst[, | -m pkglst[, | ||
-r series[, | -r series[, | ||
Line 695: | Line 720: | ||
The script uses package repositories to create a Live ISO. The packages will be installed into a temporary directory. | The script uses package repositories to create a Live ISO. The packages will be installed into a temporary directory. | ||
- | In order to create a Live ISO for any of these variants, the package repositories that are required must be available as a local directory (this can be a network-mounted directory). | + | In order to create a Live ISO for any of these variants, the package repositories that are required must be available as a local directory (this can be a network-mounted directory). |
When all pre-reqs are met, you issue a single command to generate the ISO. The following example will create a pure Slackware Live Edition: | When all pre-reqs are met, you issue a single command to generate the ISO. The following example will create a pure Slackware Live Edition: | ||
Line 731: | Line 756: | ||
# and " | # and " | ||
# respectively): | # respectively): | ||
- | # | + | # |
# OPTIONAL: | # OPTIONAL: | ||
Line 825: | Line 850: | ||
0000 = contains the Slackware /boot directory | 0000 = contains the Slackware /boot directory | ||
0010-0019 = packages installed from a Slackware tagfile (a,ap,d, ... , y series) | 0010-0019 = packages installed from a Slackware tagfile (a,ap,d, ... , y series) | ||
- | 0020-0029 = packages installed from a package list as found in the ./pkglists subdirectory of the liveslak sources (min, xbase, xapbase, xfcebase etc) | + | 0020-0029 = packages installed from a package list as found in the ./pkglists subdirectory of the liveslak sources (min, noxbase, x_base, xapbase, xfcebase etc) |
0030-0039 = a ' | 0030-0039 = a ' | ||
0099 = liveslak configuration module (contaning all the customizations that change the installed packages into a usable Live OS) </ | 0099 = liveslak configuration module (contaning all the customizations that change the installed packages into a usable Live OS) </ | ||
Line 879: | Line 904: | ||
Website: http:// | Website: http:// | ||
- | A website offering Live versions based on many regular Linux distributions. | + | A website offering Live versions based on many regular Linux distributions. |
Line 887: | Line 912: | ||
Slackware Live Edition is created by the ' | Slackware Live Edition is created by the ' | ||
- | * Git repository: %%git://bear.alienbase.nl/ | + | * Git repository: %%git://slackware.nl/ |
- | * Git repository (browsable): | + | * Git repository (browsable): |
* Download mirror: http:// | * Download mirror: http:// | ||
Line 894: | Line 919: | ||
====== Sources ====== | ====== Sources ====== | ||
<!-- If you copy information from another source, then specify that source --> | <!-- If you copy information from another source, then specify that source --> | ||
- | * Original source: [[http://bear.alienbase.nl/cgit/ | + | * Original source: [[https://git.slackware.nl/ |
+ | * Project landing page: [[https:// | ||
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> | ||
* Originally written by [[wiki: | * Originally written by [[wiki: | ||
- | <!-- * Contrbutions | + | <!-- * Contributions |
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must also remove the tag-word " | <!-- You must also remove the tag-word " | ||
{{tag> | {{tag> |