LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 06-25-2023, 03:01 AM   #1
Projectile
Member
 
Registered: Jun 2023
Posts: 72
Blog Entries: 1

Rep: Reputation: 13
What kernel would a modern DamnSmallLinux use?


I am asking out of curiosity, I haven't kept up with Linux developments in general, but I do remember reading somewhere that kernel version 2.6 was "too big" for DSL and that some of its improvements were backported into 2.4.

Newest kernel version is 6 and I doubt it would fit within the 50 MB constraints, so if DSL were to come back to life, what (versions of) software do you think it would use?
 
Old 06-25-2023, 04:32 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Modern Linux kernels use initial ramdisk, so kernel images are smaller than they used to be back then.
 
Old 06-25-2023, 05:42 AM   #3
Projectile
Member
 
Registered: Jun 2023
Posts: 72

Original Poster
Blog Entries: 1

Rep: Reputation: 13
Quote:
Originally Posted by shruggy View Post
Modern Linux kernels use initial ramdisk, so kernel images are smaller than they used to be back then.
I thought those were used back then as well.
"linux24" (2.4.31) is 981.6k and "minirt24.gz" is 292.1k in DSL 4.4.9.

Can a modern kernel, version 5 or 6, be stripped down to be as small as that?
 
Old 06-26-2023, 06:44 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,601

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

Candidates for "modern DamnSmallLinux" can be found at: https://distrowatch.com/search.php?isosize=Under+100MB&status=Active

The top entry is Tiny Core Linux (http://www.tinycorelinux.net), and as per DistroWatch's Tiny Core Linux info page, the recently released v14 uses Linux 6.1 (confirmed by the Tiny Core v14.0 release notes).

The default/recommended TinyCore download is 23MB, and within that ISO there is a 5.1MB /boot/vmlinuz file.

 
Old 01-13-2024, 05:10 AM   #5
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by Projectile View Post
Can a modern kernel, version 5 or 6, be stripped down to be as small as that?
I don't use any distro, not even DSL. I just track Linux, 6.6 stable (6.6.11 as of recent). I build that
Code:
K=6.6.11
wget http://kernel.org/pub/linux/kernel/v6.x/linux-${K}.tar.xz
mkdir bootfiles
tar -xvf linux-${K}.tar.xz
cd linux-${K}
cp ../DOTconfig .config
N=`nproc`
N=`expr $N + 1`
yes "" | make oldconfig
make menuconfig
yes "" | make -j$N
cp arch/x86/boot/bzImage ../bootfiles/vmlinuz
with all firmware/modules for my laptop built in, set to boot to vesa framebuffer (very portable - my usb/system for instance boots to desktop just as well on a AMD/Radeon laptop as it does on a i5/nvidia). I also build initramfs into that kernel, overall end result is a 16MB (xz compressed) vmlinuz filesize. Within the initramfs I build busybox, alsa/sndio (sound), ssh/ssl, framebuffer vnc, and a few other odds-and-bods (framebuffer battery and clocks ...etc).

With that I boot with vga=ask, for instance selecting a 1366x768x16 vesa resolution (my laptops res) and that drops into a framebuffer cli. dd if=/dev/random >/dev/fb0 for instance will fill the screen with random colored pixels.

Typically I wifi net connect, use ssh to set up tunnels for vnc, or even overlayfs mount a full desktop sfs file that is headless and set to serve out to vnc, that I'll use fbvnc (vnc viewer) to connect to ... for a full gui desktop, and where that's all running in the framebuffer (if I ran dd if=/dev/random >/dev/fb0 that screen would be covered with random colored pixels).

I have vnc servers running on a fast hard-wired i5, that I use to build the kernel (typically in around 5 minutes) and also can serve as a browser with fast rendering and fast download speeds (I see 1750 fps when glxgears and internet speed tests indicate 140Mbs download speed - not bad for a wifi net connected old laptop 'desktop' system ), another on my phone so I can vnc into that for a otter browser and internet connection for my laptop whilst out and about. ...etc. vnc is very common, most devices can usually run it.

A nice feature is that if I'm vnc'd into a graphical desktop on ctrl-alt-F2, that's running chrome playing a youtube, then that will bleed through to other tty's, so without freezing screen updates before switching to ctrl-alt-F4 or whatever, then on ctrl-alt-F4 the video will still be seen/heard.

As its purely for personal use/single user, I have /bin dedicated to just busybox, and have sym linked /sbin /usr/bin ...etc all into just /usr/bin, as have I merged all LIBS.

So my full desktop experience boots from a 16MB single file (vmlinuz) boots quickly, more often I just sym link in a sfs that is set to be headless and serve via vnc, set that up as a overlayfs, into which I use fbvnc viewer. That linking/setup is also very quick.
Attached Thumbnails
Click image for larger version

Name:	snap3.png
Views:	7
Size:	15.6 KB
ID:	42386   Click image for larger version

Name:	snap4.png
Views:	6
Size:	16.7 KB
ID:	42387   Click image for larger version

Name:	snap1.png
Views:	7
Size:	198.0 KB
ID:	42388   Click image for larger version

Name:	snap2.png
Views:	6
Size:	132.4 KB
ID:	42389  
 
Old 01-13-2024, 05:40 AM   #6
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by Projectile View Post
I thought those were used back then as well.
"linux24" (2.4.31) is 981.6k and "minirt24.gz" is 292.1k in DSL 4.4.9.

Can a modern kernel, version 5 or 6, be stripped down to be as small as that?
292K in days of 512K ram, versus 16MB in 8GB ram days, and in that context systems are a lot smaller than they used to be And proportionately take up a lot less space on your HDD/SSD.
 
Old 01-13-2024, 06:46 AM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
I don't think anyone needs to worry about a 50MB limit these days, as no one I know uses the media this was originally made for.

Most people these days will use a pendrive, & the smallest is usually a 1GB, so many distros will fit on & run from these.
 
Old 02-05-2024, 02:33 AM   #8
pyjujiop
LQ Newbie
 
Registered: Mar 2022
Location: Sanford, NC, USA
Distribution: PCLinuxOS, Mint, Q4OS
Posts: 5

Rep: Reputation: 2
A new release of DSL from the original developer came out a few days ago. https://www.damnsmalllinux.org/

It's based on antiX and targets a 700 MB size now, enough to boot off a CD on computers not capable of booting off a USB key.

To answer your question, it ships with kernel 5.10.188.
 
1 members found this post helpful.
Old 02-05-2024, 03:32 AM   #9
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Damn Small Linux 2024 is being released to keep those old 32bit computers running, now that a lot of distros are dropping it, & being made to fit onto a CD.
 
Old 02-05-2024, 11:20 AM   #10
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Damn Small Linux 2024 is being released to keep those old 32bit computers running, now that a lot of distros are dropping it, & being made to fit onto a CD.
But its new incarnation is hardly small. Is larger than Fatdog with less in it.

There's a 666MB of high (xz) compressed filesystem, that extracted totals around 3GB. Fatdog's is around 460MB by comparison and includes Libre Office ...etc.

Would have been nicer to see it focused more on the actual small side, as the arena its actually targeted is already saturated.
 
Old 02-05-2024, 11:49 AM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
I think you are missing the point - it is a 32bit distro for CD - a new release of DSL from the original developer - & Fatdog is only available as 64bit - but there are other 32bit systems, (Tiny Core, SliTaz, AntiX, etc), but they are in a minority these days.

The original DSL was designed to fit the 50MB mini CDs of the time, this is designed to fit a regular CD, which is what a lot of old machines have.

Last edited by fatmac; 02-05-2024 at 11:54 AM.
 
1 members found this post helpful.
Old 02-05-2024, 02:57 PM   #12
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
My understanding is its using antix's i486 kernel.
 
  


Reply



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
[SOLVED] Would low/medium spec modern NUC far outperform my 5 yo Desktop? linustalman Linux - Hardware 3 09-01-2018 09:09 AM
I would like to know of any alternative, modern Linux Distributions thePHPdev Linux - Distributions 17 10-23-2013 02:17 AM

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

All times are GMT -5. The time now is 06:57 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
Open Source Consulting | Domain Registration