LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-24-2019, 12:36 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Announcing Linux-Live-Kit x86_64 Debian Stretch Live XFCE MultiDistro Remasterable/Persistent HDD/USB


First there's really nothing new about this flavor of Debian except that persistency is easier and faster than a debian persistent usb and unlike debian it can be frugally installed to a usb or hdd and boot from ext2/3/4 and fat32 partitions (I couldn't get Debian Live to boot from ext2/3/4 hhd/usb), it's also smaller than most Debian isos.

It includes Plop bootmanager which can boot computers from cd/usb even without bios support
https://www.plop.at/en/bootmanager/intro.html

It also includes NetBootCD for net installing distros
https://www.lakora.us/netbootcd/

And TinyCore Pure64
https://distro.ibiblio.org/tinycorelinux/

It's built using a modified (by me) Linux-Live Kit (Slax)
https://www.linux-live.org/

I used Linux-Live Kit plus Netbootcd (to install debian), and aufs-dkms from debian repsoitories, so basically it's a Debian/Slax flavor with a customized desktop.
You have access to both Root and user Live desktops
Passwords-
Root=root
User "Live"=live
Installation from cd/usb/hdd is available but is a manual process of copying the live filesystem (/) to hdd.
Installation to usb is also manually done but much easier or you can use Unetbootin, and most usb install GUI's like in AntiX, Arcolinux, Ubuntu, etc. There are 2 scripts in the boot folder; bootinst.bat for windows and bootinst.sh for linux, these are Slax scripts for install to fat32 usb.
To manually install from running system simply mount the iso, copy the contents to usb, then install syslinux (fat32), or extlinux/grub if using ext2/3/4 formatted usb/hdd
mount iso somewhere, make a folder in /mnt, then use cp to copy to hdd partition or usb.
Code:
mkdir /mnt/usb
mkdir /mnt/iso
mount -o loop Stretch-RC1-x86_64.iso /mnt/iso
mount /dev/sdxx /mnt/usb (where sdxx is your hdd partition or usb, example sdb1 for usb, sda1 for hdd)
cp -avf /mnt/iso/* /mnt/usb
syslinux -s /dev/sdxx
extlinux -i /dev/sdxx or extlinux -i /mnt/usb
or install grub
Additionally it comes with 4 scripts sourced from Linux-Live kit- dir2sb, sb2dir, savechanges and a slax script which enables/disables module loading and saving changes. dir2sb turns any folder into a .sb file which can be put in /Stretch/modules directory and it will load at boot. sb2dir does the opposite.
their output
Code:
root@debian:~# slax
Usage: /usr/bin/slax [ activate | deactivate | list ] [ file.sb ]

root@debian:~# savechanges

savechanges - save all changed files in a compressed filesystem bundle
            - excluding some predefined files such as /etc/mtab,
              temp & log files, empty directories, apt cache, and such

Usage:
        /usr/bin/savechanges [ target_file.sb ] [ changes_directory ]

If changes_directory is not specified, /run/initramfs/memory/changes is used.

root@debian:~# dir2sb
Usage: /usr/bin/dir2sb [source_directory] [target_file.sb] [ -d 

root@debian:~# sb2dir

Convert .sb compressed module into directory tree
usage: /usr/bin/sb2dir source_file.sb existing_output_directory
Boot parameters are slax.flags=toram slax.flags=perch (persistent) and slax.flags=automount. There are others as well.
So if you wanted to boot persistent, toram, and automount all aprtitions it would be slax.flags=toram,perch,automount in any order

It uses the default Stretch kernel with aufs-dkms added to work with Linux-Live Kit.

Notable apps include Firefox, Gparted, Synaptic, Audacious, Isomaster, Midnight Commander, Leafpad, Gimp, WICD, Pulseaudio, Xfburn, Abiword, Gaiksaurus, Bleachbit, Gdebi, Grub Cusomizer and of course everything that comes with XFCE like Thunar.

Remastering- simply add or remove whatever you want then become root and cd into root/linux-live-2.1 and invoke the build script
./build and in no time you have your own flavor! It makes a folder in / called livecd which is where it will put the finished live distro and a script for creating iso.
Also if you want to change the name of your distro you need to edit the config and build script.

I have not tried any of the Debian boot cheatcodes yet.

The unaltered Linux-Live-2.1.tar.gz is also in the /root folder.

It should run well on most older computers also. It was built on a Dell Inspiron 1545 with 3GB RAM.

Primarily I'm looking for feedback from anyone who wishes to try it, as I love remastering and making live distros!
I also have a variation for Slackware 14.2 using the Xanmod 4.19.29 aufs patched kernel.
Attached pics are boot screen, user "live" desktop and root desktop.

If I left anything out I'll edit post.
Thanks for looking!

Here's download link, it's tar.gz with the iso and md5sum text contained within.

https://www.filehosting.org/file/det...etchRC1.tar.gz
Attached Thumbnails
Click image for larger version

Name:	20190324_131534.jpg
Views:	27
Size:	244.0 KB
ID:	30179   Click image for larger version

Name:	Screenshot_2019-03-24_04-31-31.jpg
Views:	25
Size:	105.6 KB
ID:	30180   Click image for larger version

Name:	Screenshot_2019-03-24_04-32-16.jpg
Views:	22
Size:	68.8 KB
ID:	30181  

Last edited by linus72; 03-24-2019 at 01:45 PM. Reason: forgot to add x86_64
 
Old 03-26-2019, 05:25 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
OK I have uploaded a updated RC2 iso and added Gnome-system-tools and changed some things for easier booting and desktop management.
Everything else is same except changed wallpapers for root and live.
The md5sum.txt is in the tar.gz with the iso, just burn it to cdrom or copy to usb and install syslinux or extlinux/grub if using ext2/3/4 usb or hdd.

https://www.filehosting.org/file/det...etchRC2.tar.gz
 
Old 03-26-2019, 08:01 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Running from frugal install to hdd taking up 650mb of hard drive space in "toram,persistent" mode the user "live" desktop with firefox running and the root desktop after logging out from user, pretty low ram yeah?
Note you can install the folder it plays out of right on another existing install wont bother it.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-03-26_20-57-19.jpg
Views:	10
Size:	124.1 KB
ID:	30190   Click image for larger version

Name:	Screenshot_2019-03-26_20-58-03.jpg
Views:	11
Size:	62.0 KB
ID:	30191  

Last edited by linus72; 03-26-2019 at 08:03 PM.
 
Old 03-26-2019, 08:08 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Running off frugal hd install no toram, just persistent even lower ram

Here's my grub.cfg entry

Code:
menuentry "StretchRC2 Live Debian GNU/Linux (on /dev/sda5)" --class debian --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 /StretchRC2/vmlinuz vga=788 initrd=/StretchRC2/initrfs.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 slax.flags=perch
	initrd /StretchRC2/initrfs.img
}
Contents of /dev/sda5
Code:
live@debian:/run/initramfs/memory/data$ ls
boot  BusterRC6  BusterRC7  cde  lost+found  StretchRC2
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2019-03-26_21-05-37.jpg
Views:	9
Size:	126.2 KB
ID:	30192  

Last edited by linus72; 03-26-2019 at 08:11 PM.
 
Old 04-18-2019, 08:27 PM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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/
 
Old 04-20-2019, 07:25 PM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Just uploaded the newest CD 042019 iso with readme in /home/live/Desktop
https://sourceforge.net/projects/lin...files/Stretch/
 
Old 04-22-2019, 09:05 PM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,427

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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 Stretch 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 Stretch-initramfs-8257.img, whatever it's name for your distro, copy it to /run/initramfs/memory/data/Stretch and either rename it initrfs.img or initrfs2.img if you want to keep your original initrfs.img.
cp -r /tmp/Stretch-initramfs-8257.img /run/initramfs/memory/data/Stretch

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

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

Last edited by linus72; 04-22-2019 at 09:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Just installed Debian xfce (9 I think, Stretch). How to get xfce background? baggister Linux - Newbie 3 07-21-2017 06:44 PM
Persistent persistent Persistent Going Nuts Here Fcukinyahoo Linux - Newbie 6 11-17-2011 09:56 PM
Will Deleting 70-persistent-cd.rules and 70-persistent-net.rules Work As a "Live USB" Konphine Linux - General 1 10-09-2011 03:55 PM
Clonezilla/DSL like: Is Multidistro - Live usb/cd a revolution? frenchn00b Linux - Distributions 1 11-08-2009 04:35 AM
New Release- Multidistro.com Official Rescue-Install-Kit for CD/USB/HD linus72 Linux - General 1 07-13-2009 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration