ian / New Slackware Install

Last active 1 month ago

Like 0

Do not run as script, extension is for syntax highlighting only

ian revised this gist 1 month ago · b324dd4

1 file changed, 3 insertions, 1 deletion

new-slackware-install.sh
@@ -1,6 +1,6 @@
1 1 # install Slackware from usb
2 2
3 - # configure slackpkg mirror.
3 + # configure slackpkg mirror in /etc/slackpkg/mirrors
4 4
5 5 # make user
6 6 groupadd sudo
@@ -28,6 +28,8 @@ startx
28 28
29 29 # confirm kde works
30 30
31 + # fix clock
32 +
31 33 # start installing software
32 34
33 35 sqg -p <package>

ian revised this gist 1 month ago · 6f845f8

2 files changed, 35 insertions, 71 deletions

new-slackware-install (file deleted)
@@ -1,71 +0,0 @@
1 - FRESH SLACKWARE INSTALL / UPDATE RUNBOOK
2 -
3 - 1. Install Slackware normally.
4 - - UEFI
5 - - ELILO
6 - - Full package install
7 - - Do NOT add random removable devices to fstab.
8 -
9 - 2. Boot the stock installation FIRST.
10 - Verify:
11 - uname -r
12 - startx
13 -
14 - Create normal user and verify KDE works BEFORE upgrading.
15 -
16 - 3. Configure slackpkg mirror.
17 -
18 - 4. Upgrade:
19 - su -
20 - slackpkg update gpg
21 - slackpkg update
22 - slackpkg install-new
23 - slackpkg upgrade-all
24 -
25 - On a fresh install:
26 - config files -> OVERWRITE
27 -
28 - DO NOT REBOOT.
29 -
30 - 5. Determine the NEW kernel version:
31 -
32 - ls /lib/modules
33 -
34 - Confirm the new version exists, e.g.:
35 - /lib/modules/5.15.209
36 -
37 - 6. BUILD A NEW INITRD FOR THAT EXACT KERNEL.
38 -
39 - /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.209
40 -
41 - Run the mkinitrd command it prints.
42 -
43 - Then VERIFY:
44 - ls -lh /boot/initrd.gz
45 - ls /lib/modules/5.15.209
46 -
47 - 7. Update ELILO:
48 -
49 - eliloconfig
50 -
51 - This should copy BOTH the kernel and the newly generated
52 - initrd into the EFI System Partition.
53 -
54 - 8. VERIFY THE ACTUAL EFI FILES BEFORE REBOOTING:
55 -
56 - file /boot/efi/EFI/Slackware/vmlinuz
57 - ls -lh /boot/efi/EFI/Slackware/initrd.gz
58 - cat /boot/efi/EFI/Slackware/elilo.conf
59 -
60 - `file .../vmlinuz` MUST report the new kernel version.
61 -
62 - 9. ONLY NOW REBOOT.
63 -
64 - 10. After boot:
65 -
66 - uname -r
67 -
68 - It MUST match the version used with mkinitrd.
69 -
70 - Then test:
71 - startx
new-slackware-install.sh (file created)
@@ -0,0 +1,35 @@
1 + # install Slackware from usb
2 +
3 + # configure slackpkg mirror.
4 +
5 + # make user
6 + groupadd sudo
7 + adduser green
8 + usermod -aG sudo,wheel,audio,video,netdev,cdrom green
9 +
10 + # upgrade base system packages
11 + su -
12 +
13 + slackpkg update gpg
14 + slackpkg update
15 + slackpkg install-new
16 + slackpkg upgrade-all # select 'overwrite' when prompted
17 +
18 + geninitrd
19 + eliloconfig
20 +
21 + Reboot
22 +
23 + # copy xinitrc for kde from /etc/X11/startx.kde to /home/green/.xinitrc
24 +
25 + # login as user
26 +
27 + startx
28 +
29 + # confirm kde works
30 +
31 + # start installing software
32 +
33 + sqg -p <package>
34 +
35 + # load packages from queue and install

ian revised this gist 1 month ago · 61d0ebd

2 files changed, 71 insertions, 19 deletions

new-slackware-install (file created)
@@ -0,0 +1,71 @@
1 + FRESH SLACKWARE INSTALL / UPDATE RUNBOOK
2 +
3 + 1. Install Slackware normally.
4 + - UEFI
5 + - ELILO
6 + - Full package install
7 + - Do NOT add random removable devices to fstab.
8 +
9 + 2. Boot the stock installation FIRST.
10 + Verify:
11 + uname -r
12 + startx
13 +
14 + Create normal user and verify KDE works BEFORE upgrading.
15 +
16 + 3. Configure slackpkg mirror.
17 +
18 + 4. Upgrade:
19 + su -
20 + slackpkg update gpg
21 + slackpkg update
22 + slackpkg install-new
23 + slackpkg upgrade-all
24 +
25 + On a fresh install:
26 + config files -> OVERWRITE
27 +
28 + DO NOT REBOOT.
29 +
30 + 5. Determine the NEW kernel version:
31 +
32 + ls /lib/modules
33 +
34 + Confirm the new version exists, e.g.:
35 + /lib/modules/5.15.209
36 +
37 + 6. BUILD A NEW INITRD FOR THAT EXACT KERNEL.
38 +
39 + /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.209
40 +
41 + Run the mkinitrd command it prints.
42 +
43 + Then VERIFY:
44 + ls -lh /boot/initrd.gz
45 + ls /lib/modules/5.15.209
46 +
47 + 7. Update ELILO:
48 +
49 + eliloconfig
50 +
51 + This should copy BOTH the kernel and the newly generated
52 + initrd into the EFI System Partition.
53 +
54 + 8. VERIFY THE ACTUAL EFI FILES BEFORE REBOOTING:
55 +
56 + file /boot/efi/EFI/Slackware/vmlinuz
57 + ls -lh /boot/efi/EFI/Slackware/initrd.gz
58 + cat /boot/efi/EFI/Slackware/elilo.conf
59 +
60 + `file .../vmlinuz` MUST report the new kernel version.
61 +
62 + 9. ONLY NOW REBOOT.
63 +
64 + 10. After boot:
65 +
66 + uname -r
67 +
68 + It MUST match the version used with mkinitrd.
69 +
70 + Then test:
71 + startx
new-slackware-install.sh (file deleted)
@@ -1,19 +0,0 @@
1 - # edit mirrors file first to uncomment your mirror
2 -
3 - slackpkg update gpg
4 - slackpkg update
5 - slackpkg install-new
6 - slackpkg upgrade-all
7 - slackpkg clean-system
8 -
9 - eliloconfig # if kernel updated
10 -
11 - sqg -p <package> (for packages requiring dependencies)
12 -
13 - # make sure you installed the shell for your user and probably gnu pass
14 -
15 - adduser
16 -
17 - cp /etc/X11/xinit/xinitrc.kde /home/<user>/.xinitrc
18 -
19 - # maybe usermod -aG wheel,audio,video,cdrom,plugdev,lp,scanner youruser

ian revised this gist 1 month ago · 2cd0d24

1 file changed, 2 insertions

new-slackware-install.sh
@@ -6,6 +6,8 @@ slackpkg install-new
6 6 slackpkg upgrade-all
7 7 slackpkg clean-system
8 8
9 + eliloconfig # if kernel updated
10 +
9 11 sqg -p <package> (for packages requiring dependencies)
10 12
11 13 # make sure you installed the shell for your user and probably gnu pass

ian revised this gist 1 month ago · 5d80c95

1 file changed, 1 insertion

new-slackware-install.sh
@@ -1,5 +1,6 @@
1 1 # edit mirrors file first to uncomment your mirror
2 2
3 + slackpkg update gpg
3 4 slackpkg update
4 5 slackpkg install-new
5 6 slackpkg upgrade-all

ian revised this gist 1 month ago · 46b0cee

1 file changed, 4 insertions, 1 deletion

new-slackware-install.sh
@@ -1,6 +1,9 @@
1 1 # edit mirrors file first to uncomment your mirror
2 2
3 - slackpkg update && slackpkg upgrade-all
3 + slackpkg update
4 + slackpkg install-new
5 + slackpkg upgrade-all
6 + slackpkg clean-system
4 7
5 8 sqg -p <package> (for packages requiring dependencies)
6 9

ian revised this gist 1 month ago · 69a15a7

1 file changed, 7 insertions

new-slackware-install.sh
@@ -4,3 +4,10 @@ slackpkg update && slackpkg upgrade-all
4 4
5 5 sqg -p <package> (for packages requiring dependencies)
6 6
7 + # make sure you installed the shell for your user and probably gnu pass
8 +
9 + adduser
10 +
11 + cp /etc/X11/xinit/xinitrc.kde /home/<user>/.xinitrc
12 +
13 + # maybe usermod -aG wheel,audio,video,cdrom,plugdev,lp,scanner youruser

ian revised this gist 1 month ago · dd5698a

1 file changed, 3 insertions, 1 deletion

new-slackware-install.sh
@@ -1,4 +1,6 @@
1 - slackpkg update && slackpgk upgrade-all
1 + # edit mirrors file first to uncomment your mirror
2 +
3 + slackpkg update && slackpkg upgrade-all
2 4
3 5 sqg -p <package> (for packages requiring dependencies)
4 6

ian revised this gist 1 month ago · bce531a

1 file changed, 3 insertions

new-slackware-install.sh
@@ -1 +1,4 @@
1 1 slackpkg update && slackpgk upgrade-all
2 +
3 + sqg -p <package> (for packages requiring dependencies)
4 +

ian revised this gist 1 month ago · c55fa46

1 file changed, 1 insertion

new-slackware-install.sh (file created)
@@ -0,0 +1 @@
1 + slackpkg update && slackpgk upgrade-all