LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.2 "Slacker" live DVD/USB featuring XFCE4, Kernel 4.19.29-xanmod15, and Linux-Live Kit (https://www.linuxquestions.org/questions/slackware-14/slackware-14-2-slacker-live-dvd-usb-featuring-xfce4-kernel-4-19-29-xanmod15-and-linux-live-kit-4175651243/)

linus72 03-31-2019 04:05 PM

Slackware 14.2 "Slacker" live DVD/USB featuring XFCE4, Kernel 4.19.29-xanmod15, and Linux-Live Kit
 
3 Attachment(s)
To start this thread I used to love using Linux-Live Kit aka Slax to build Slackware based distros like MinimalX, NfluxOS in the theme of GoblinX and Wolvix and NimbleX.
Sadly, Tomas M at Slax/Linux-Live Kit has now gone for Debian to use for building distros using Linux-Live Kit.
However, I have successfully modified the newest Kit to make Slackware 14.2/current distros!
It's Alive!
Introducing my spin of Slackware 14.2 pure with SlackBuilds packages, Slapt-get/Gslapt, kernel 4.19.29-xanmod15 LTS, and made using my modified Linux-Live Kit found in the /root folder.
https://xanmod.org/

It's a full Slackware system with an optional .sb module if you want to load the seperate kernel source at boot.
Please see these posts for more info about booting parameters, etc so I dont have to repeat things.

https://www.linuxquestions.org/quest...ng-4175650368/

https://www.linuxquestions.org/quest...sb-4175650800/

https://www.linuxquestions.org/quest...un-4175651204/


Now, this runs like Slax, you have default boot, toram boot, persistence boot, etc.
It will run off any ntfs, fat32, ext2/3/4 usb or hard drive with or without persistence.
It is fully remasterable by you using the Live Kit in /root.
It can also be used as a backup/restore point anytime you want to make a static clone of your system.
It can boot from within a windows or linux filesystem without touching the installed system.
It is all things, a backup, rescue system, installable to hard drive, usb or dvd.
Linux-Live Kit requires aufs, which is why I built the xanmod 4.19.29 kernel from source as it is patched with aufs.
I have tested it on DVD, off my hard drive using grub2, off a 16gb usb using extlinux and fat32 16gb using syslinux, very fast.

Pics are boot screen, user "live" desktop, and root desktop.
Passwords are user live=live, root=root
you are booted to runlevel 3, log in and type startx to start xcfe4!

Please try it and give feedback I have only one computer, a Dell lappy 1545 Inspiron.

The tar.gz contains the dvd 1.3gb iso, md5sum.txt and kernel source .sb, if you want kernel source on your usb/hdd just add it to the folder Slacker/modules and it will load at boot.

You can run persistent from fat32 or ext2/3/4 usb or hard drive and ntfs/windows partitions, its very fast from hdd.

This is not in competition with Alien Bob's Slackware Live.
Would love to have real programmers help on making this for Slackware. Back in the day there were alot of Slackware live based distros, it sucks not so many anymore.

Download Here
https://www.filehosting.org/file/det...ckerRC1.tar.gz

linus72 03-31-2019 07:03 PM

1 Attachment(s)
This is my grub.cfg entry for booting persistent off hard drive, note it boots from the Slacker folder which is within the Slackware install yet theres no contamination between them, see pic.

Code:

menuentry "Slacker Live 14.2 (on /dev/sda5)" --class slackware --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-67b98f0e-9809-4fcc-adec-169a978f4146' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos5' --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  67b98f0e-9809-4fcc-adec-169a978f4146
        else
          search --no-floppy --fs-uuid --set=root 67b98f0e-9809-4fcc-adec-169a978f4146
        fi
        linux /Slacker/vmlinuz vga=788 initrd=/Slacker/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch
        initrd /Slacker/initrfs.img
}

Booting parameters are
Code:

slax.flags=perch,toram,automount
In any order or seperately, perch is persistentce. persistent changes are in Slacker/changes folder

linus72 04-01-2019 01:24 PM

OK today I have uploaded a modified iso with improvements, notably I added gksu so Sboui and Gslapt would work correctly. I also edited /etc/inittab so Slim could run and you will be booted to runlevel 4 and a custom Slim login screen. I have included not only the kernel source as a .sb file but also a "runlevel3.sb" which is simply a etc folder with inittab inside edited for runlevel 3.
To have either load at boot put them in the Slacker folder or in Slacker/modules folder.

Also there are 4 scripts in /usr/bin named "slax", "dir2sb", "sb2dir" and "savechanges", these are from Slax. Read my other posts for info.

Use download link in 1st post. Md5sum is in the Slacker.tar.gz along with the 1.3GB DVD and modules.

Note- this can also be used to test upgrades, especially if upgrading to current- no need to break your own system- and you cant break a read-only non-persistent DVD/USB :)

If running persistent and you break something just delete contents of Slacker/changes folder and start over!

Besides burning to DVD you can run from a fat32 or ext2/3/4 usb- just mount iso and copy contents to your usb then use syslinux to make it boot- make sure your boot flag is on in usb
Code:

syslinux -sf /dev/sdxx
Where sdxx is your usb, sdb1, etc.

If using a ext2/3/4 usb use extlinux
Code:

extlinux -i mount_point_of_usb
So if your usb is mounted on /run/media/live/usb then it'd be
Code:

extlinux -i /run/media/live/usb
Frugal install to hard drive is similar- place the boot folder inside the Slacker folder and copy to a partition, empty or with another system already there- it will boot off of fat32/ntfs and ext2/3/4 partitions easy and is fastest from there. See above for example Grub.cfg.

You can do a full install to hard drive manually but most probably wont do that- you gotta explode the Slacker.sb, create a initrd, edit /etc/fstab and lilo.conf etc I'll explain it anyone is interested.

Boot Cheatcodes- Not sure if all of these work but I know "noload=module_name" works, slax.flags=perch (persistence), slax.flags=toram (copy to ram), slax.flags=automount (automounts all partitions at boot)
So for example if you have the "runlevel3.sb" in your modules folder but you want to boot to runlevel 4 just hit TAB button in dvd/usb boot menu for entry your booting and add "noload=runlevel3.sb", same goes for the kernel source module also.
See here https://www.pendrivelinux.com/slax-cheatcodes/

linus72 04-05-2019 06:12 PM

Right now I've patched the official Slackware 4.4.172 source with aufs4.4 and used Generic .config and building kernel now...hopefully it works.
Next I'll make available the aufs-patched kernel so any Slacker can create their own Slackware based distro using Linux-Live Kit + 4.4.172 Generic kernel.
I would like to make it as a Slackware package but I've forgotten how to do it so I got some reading to do- lol

linus72 04-06-2019 05:13 PM

OK I've successfully patched the kernel source with aufs4.4 and made the live kernel-source, kernel-modules, and kernel-generic packages.

kernel-generic-4.4.172l-x86_64-1.txz Live kernel compiled from slackware kernel source patched with aufs4.4- only thing I changed in the default slackware generic config was for aufs support as module under miscellaneous filesystems.

kernel-modules-4.4.172l-x86_64-1.txz Live kernel modules

kernel-source-4.4.172-noarch-1l.txz optional aufs patched kernel source.

So, to make your own Live Slackware distro 1st download Linux-Live Kit here
https://linux-live.org/#home

Then download here my pkgs for live kernel- you need at least the kernel and module packages to make a live distro
https://www.filehosting.org/file/det....4.172l.tar.gz

linus72 04-14-2019 07:00 AM

3 Attachment(s)
This weekend I have created a LXDE (from Ponce) flavor of live Slackware 14.2 "Slacker" using aforementioned live generic kernel 4.4.172l, added linux_logo and got rid of the XFCE4 stuff except for xfburn.
Most importantly I wrote a readme file for installation to usb/usb-hdd and hard drive as either frugal or full install.

Download link for tar.gz compressed dvd iso
https://www.filehosting.org/file/det...-x86_64.tar.gz


Here is the readme located in /home/live/Desktop

#################################################################################################### #####################
Introducing Slackerware 14.2 + Linux-Live Kit + Aufs patched Generic Kernel

About- This is my attempt at making a Slackware based Live distro that is able to be persistent off usb or hard drive, installable to hard drive in "frugal" mode or full install to hard drive or play live in either default or toram mode with/without persistence and without mounting or changing any hard drive partitions, etc.

General Info:

Install to USB/USB-HDD or frugal install to HDD-

You can use /boot/bootinst.bat (windows) or /boot/bootinst.sh (linux) to install to usb but you must edit them for paths. Or use a utility like Unetbootin, available through sboui, or do it manually as I'll show you here-
You must be booted from a slackware/debian/ubuntu system or livecd/usb to do this, preferably a 14.2/-current distro.

In whatever linux system you're in, mount the Slacker iso anywhere you want, copy the files/folders to your usb or hard drive for frugal mode (straight hard drive install explained below), then install syslinux (fat32), extlinux (usb/usb-hdd), or grub (usb-hdd/hdd), then reboot and boot from new Slacker.

Frugal install means it runs as a livecd/usb with or without persistence, such as Slax, etc. You can install it in a already installed system such as Linux or Windows without touching, changing or harming the other systems.
In frugal mode you can boot from any fat32/ntfs or ext2/3/4 filesystem on usb/usb-hdd or hdd.

Examples:

Manual frugal install to fat32 or ext2/3/4 usb/usb-hdd/hdd
First mount your usb as root or if you have permission as your user, then mount the Slacker iso, then copy the contents of iso to usb/usb-hdd/hdd, then install the bootloader (syslinux/extlinux/grub/lilo), then reboot into your new system.
In this example, your usb/usb-hdd or hdd partition you're going to install Slacker to is /dev/sda1, please note in your system your usb may be sdb1, sdc1, etc. Please use fdisk -l as root in terminal to find out device name for your usb/hdd partition/drive.

You may edit the below text and copy/paste it into terminal for ease. example supposes your mounting the burned DVD or iso on hard drive, that iso was downloaded to /home/live/Downloads.

As root, in terminal, for DVD mounted from file manager in slackware as /dev/sr0, may be /dev/cdrom in others.

mkdir /mnt/usb
mkdir /mnt/iso
mount -o loop /dev/sr0 /mnt/iso
mount /dev/sda1 /mnt/usb
cp -r /mnt/iso/* /mnt/usb

from downloaded iso

mkdir /mnt/usb
mkdir /mnt/iso
mount -o loop /home/live/Downloads/Slacker-041419-x86_64.iso /mnt/iso
mount /dev/sda1 /mnt/usb
cp -r /mnt/iso/* /mnt/usb

After it finishes copying install syslinux, extlinux, or grub

For fat32 usb/usb-hdd

syslinux -s /dev/sda1

For ext2, ext3 or ext4 usb/usb-hdd

extlinux -i /mnt/usb

If install grub2 to usb/usb-hdd/hdd

grub-install /dev/sda
grub-mkconfig -grub-mkconfig -o /boot/grub/grub.cfg

* Make sure your boot flag is set also, use Gparted to do this or in console.

If you already have a Linux bootloader installed just edit your syslinux.cfg/grub.cfg for Slacker, see /boot/syslinux.cfg

Full Install to Hard Drive or USB-HDD- using Lilo or Grub2

*You need to be booted from a Slacker dvd/usb frugal install to do this!

A manual full install is relatively easy too.
In short- we're gonna do a full install to a hard drive partition from usb/hdd/dvd and the resulting install will function exactly as a full slackware install to hard drive.

First, in this example we're booting from dvd or usb premounted at /mnt/usb (mount -o loop /dev/sr0 /mnt/usb) or usb (mount /dev/sdb1 /mnt/usb) and installing to /dev/sda1 hard drive partition.

Now, we're gonna decompress the Slacker/Slacker.sb from a squashfs file into the partition using sb2dir, this will populate the partition with the folders bin, etc, home, lib, lib64, opt, root, sbin, usr, and var. Then we're gonna make the other empty folders for a linux system.

mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
cd /mnt/usb/Slacker
sb2dir Slacker.sb /mnt/sda1

After it finishes do

cd /mnt/sda1
mkdir boot
mkdir dev
mkdir media
mkdir mnt
mkdir proc
mkdir run
mkdir srv
mkdir sys
mkdir tmp

Now you gotta copy the contents of boot/hdkernel to your /mnt/sda1/boot folder

cp -r /mnt/usb/boot/hdkernel/* /mnt/sda1/boot

Now edit /etc/fstab and /etc/lilo.conf using nano or a gui app like Leafpad.

Fstab should look like this

/dev/sda2 swap swap defaults 0 0
/dev/sda1 / ext4 defaults 1 1
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

lilo.conf like this

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda1

#compact # faster, but won't work on all systems.

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255
# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Append any additional kernel parameters:
append=" vt.default_utf8=0"
prompt
timeout = 50
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrdl.gz
root = /dev/sda1
label = slackware
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

Now we have to make a initrd for the generic live kernel to boot, using /usr/share/mkinitrd/mkinitrd_command_generator.sh

just copy/paste this into terminal, adjust for drive and kernel

mkinitrd -c -k 4.4.172l -f ext4 -r /dev/sda1 -m usb-storage:ums-realtek:ehci-hcd:ehci-pci:uhci-hcd:jbd2:mbcache:ext4:aufs -u -o /mnt/sda1/boot/initrdl.gz

Now install lilo or grub to /dev/sda

If installing Grub

grub-install /dev/sda
grub-mkconfig -grub-mkconfig -o /boot/grub/grub.cfg

If Lilo

use pkgtool/rerun slackware install scripts as root to install lilo to /dev/sda

Now reboot into your new system!

Remastering-

You can remaster this distro anytime using the live kit found in /root/Tomas-M-linux-live-d27460d
Edit the configs inside notably build and config for your distro name, etc.

You can do it from persistent/non-persistent live session or hard drive install. You must have a aufs-patched kernel.

as root
cd Tomas-M-linux-live-d27460d
./build

Have fun!

Any questions please ask :)
Pics are at console login, live desktop and root desktop

linus72 04-18-2019 08:27 PM

OK I've started a sourceforge project for my respins of Slackware, Debian and multidistro usb's
I'll be adding readme's and instructions during the weekend
https://sourceforge.net/projects/lin...-slack-debian/

linus72 04-20-2019 07:24 PM

OK I've uploaded a new and improved Slacker 042019 which features a dual kernel setup 4.4.172l Generic and the Xanmod 4.19.29-xanmod15 LTS kernel. You can boot from either kernel at bootup and full kernel sources are included. Both kernels were built on my 14.2 system and I didnt change the configs for either kernel, just added aufs support into the Slackware 14.2 Generic kernel 4.4.172.
see here
https://sourceforge.net/projects/lin...files/Slacker/

linus72 04-22-2019 09:05 PM

Ok this update is for those running Slacker/Stretch/Buster live and want to install/upgrade with a new kernel (aufs patched) in live persistent mode, in this example you install new kernel and make new initramfs/initrfs.img for either of those distros.

In this scenario you have booted from a persistent live session and need or want to upgrade your kernel or install a different one.
For the Live system to work it must be a aufs patched kernel or it will not boot!
You can get aufs patched kernel sources from xanmod.org if using a Slackware based system, choose one of my pre-made kernels or if using the Debian Stretch/Buster versions just search synaptic for "aufs" and install aufs-dkms and aufs-tools and whatever debian kernel you select will have aufs in it. Additionally you can get premade Xanmod kernels thru the Xanmod repositories for Debian.

Ok, so in either /root/Linux-live-2.1/initramfs or /root/Tomas-M-linux-live-d27460d/initramfs you'll find the script initramfs_create and in the tools folder 2 scripts- initramfs_repack and initramfs_unpack.

First you need to install your new kernel and kernel modules.

Then, you need to open your file manager and go into /root/Tomas-M-linux-live-d27460d/ or /root/Linux-live-2.1/ and edit the config for your new kernel as the script initramfs/initramfs_create will go off the config file for looking for new kernel modules, etc.

Example: we're gonna install my 5.0.8-xanmod5 kernel into one of my Slacker Live distros, install the kernel and modules packages.
Now, edit the config so it says this

VMLINUZ=/boot/vmlinuz-5.0.8-xanmod5

KERNEL=5.0.8-xanmod5

Now go into the initramfs folder, open a terminal there or cd there "cd /root//Tomas-M-linux-live-d27460d/initramfs and invoke the initramfs_create
like so
./initramfs_create and it will create a new initrfs.img in /tmp named for example Slacker-initramfs-8257.img, whatever it's name for your distro, copy it to /run/initramfs/memory/data/Slacker and either rename it initrfs.img or initrfs2.img if you want to keep your original initrfs.img.
cp -r /tmp/Slacker-initramfs-8257.img /run/initramfs/memory/data/Slacker

Now copy the kernel vmlinuz-5.0.8-xanmod5 from /boot to /run/initramfs/memory/data/Slacker
cp -r /boot/vmlinuz-5.0.8-xanmod5 /run/initramfs/memory/data/Slacker

Now edit your syslinux.cfg or grub.cfg if booting persistent off hard drive.
Now reboot into your new kernel/initrfs.img

linus72 04-27-2019 07:55 PM

I have made a Slackware 15.0/current snapshot Live DVD today ready for download.

The Slackware 15.0/current iso dvd is a Live snapshot of Slackware -current 04/27/2019 with the Xanmod 4.19.29-xanmod15 kernel plus source and is a FULL install of the mirror_slackware_current.sh DVD iso and features everything on the install DVD (except sources) plus Wicd from /extra.
It plays Live, etc just like all the other isos, although at 2.6gb plus I wouldn't recommend using "toram" mode on systems with less than 4GB of RAM.

Only user is root, password is root
default desktop is KDE

It features KDE, XFCE4, and whatever other desktops come in the full DVD install.
It runs as a just-installed -current install I didn't change anything except the kernel,modules,source.

I plan to make a Live kernel for the 4.19.36 Generic kernel also tonight.

Everything runs error-free as far as I've tested (Thank you Slackware!)
Get it here
https://sourceforge.net/projects/lin...files/Slacker/

linus72 05-02-2019 05:54 AM

1 Attachment(s)
Just uploaded newest Slackerc -current Live DVD this time with customized KDE/XFCE4 desktops, some SlackBuilds, kernel 4.19.37-xanmod19 and updated to 05/01/2019. Slackerc-050119-x86_64.iso screenshot KDE, only user is root, password root. 2.3GB iso of full Slackware -current install.

https://sourceforge.net/projects/lin...files/Slacker/

linus72 05-07-2019 05:52 PM

OK I'm switching from multidistro/debian/slack to concentrating solely on Slacker-Live 14.2/current projects.
My new site is here, still in the works, everything is updated to today about 3pm est.

https://sourceforge.net/projects/slacker-live/

The other site is here devoted to many distros
https://sourceforge.net/projects/lin...-slack-debian/

linus72 05-12-2019 08:30 PM

2 Attachment(s)
I made a preliminary Slackware based Rescue/Recovery version

1.46GB DVD iso

Quote:

SlackerR 051219 is a live DVD/USB featuring the 4.4.172l generic kernel, LXDE desktop, RazorQT desktop and rescue/recovery tools
like ddrescue-gui, lshw, testdisk/photorec, LuckyBackup, Grsync, libvshadow, chntpw, linuxconsoletools, P7zip, safecopy, Phoronix-test-suite, deb2tgz, partimage, alien, chrootkit, encryptfs-utils, inxi and many other tools already built into Slackware and from SlackBuilds.
The SlackerR iso is also a isohybrid, it can be installed to iso in read-only mode, like a dvd, but it boots very fast.

dd if=SlackerR-051219-x86_64.iso bs=2048 of=/dev/sdc

PLEASE read about dd'ing a iso to usb if you dont know how to do this or you may overwrite your hard drive!
Not sure if dd option should be default 512, 1024. 2048 or 4M?
If anyone knows please comment?

I plan to also add efi booting and the default slackware iso kernel/initrd and scripts etc in next version

Get it here under slacker-14.2/
https://sourceforge.net/projects/slacker-live/files/

linus72 05-13-2019 07:53 AM

OK Ive updated all 3 iso's to isohybrid status

Slacker 050719 (Slackware 14.2)

SlackerR 051219 (Slackware 14.2 Rescue/Recovery)

Slackerc 050719 (Slackware current)

Links are below in signature

igadoter 05-13-2019 10:37 AM

I downloaded using link from your first post. But there is empty readme.txt file. Does it correct? It would be nice to be able to run Slackware from fat32 filesystem - then I could keep some other files along Slackware.

Edit: I forgot to add this file is contained in iso image. I mounted image and there is at top directory empty readme.txt

Edit Ok. I realized the link to download from your first post is dead end. I should use sourceforge repository instead.


All times are GMT -5. The time now is 05:43 PM.