this post was submitted on 26 Jul 2023
295 points (97.7% liked)

Linux

48069 readers
772 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

It's not really a big deal, but I am currently writing this using a linux kernel I compiled from source, which certainly feels like an accomplishment. The Arch Wiki has made the process fairly easy to follow. I just took the stock Arch Linux configuration without changes for now.

The most important part of this is of course that I have the option to do that, to take the source code of this incredible project and build my own kernel binary.

top 41 comments
sorted by: hot top controversial new old
[–] BelPolaris@pawb.social 43 points 1 year ago

That we can make software unique to our needs is one of these best parts of software freedom. Good for you!

[–] muddybulldog@mylemmy.win 26 points 1 year ago (1 children)
[–] happyhippo@feddit.it 7 points 1 year ago

8MB for an entire thing running a web server.

Mind: blown

[–] melroy@kbin.melroy.org 22 points 1 year ago

Maybe it's not a big deal.. But I still remember the first time I compiled the Linux kernel. It feels good. Well done!!

[–] Frederic@beehaw.org 19 points 1 year ago (2 children)

I often did this for years, using -march=corei7 and -mtune=skylake or whatever was the best option for my cpu, patching with brainfuck scheduler, etc.

Now I don't care really 😑

It's always cool to tinker with kernel and config, congrats 🎉

[–] Deebster@lemmy.ml 30 points 1 year ago (1 children)

As a student I wasted so much time mucking around with flags and settings in Gentoo. It definitely wasn't pointless since I learned so much, but I didn't need to sit there and watch it compile as much as I did.

It was pleasing to watch though, just like defrag in Windows.

[–] melroy@kbin.melroy.org 14 points 1 year ago (1 children)

just like defrag in Windows

That felt more a horror for me.

[–] vd1n@lemmy.ml 16 points 1 year ago (1 children)

Defrag all night and wake up to the sound of the hard drive failing.

[–] arthur@lemmy.zip 8 points 1 year ago (1 children)
[–] melroy@kbin.melroy.org 2 points 1 year ago

You have backups. Right. Right??

[–] melroy@kbin.melroy.org 4 points 1 year ago* (last edited 1 year ago)

ahh what a shame. I have: https://kernel.melroy.org/.

But I also didn't had the time to create new kernels. My PC is too slow at the moment. hahaha. Just wait.. maybe I will get the latest threadripper. Instead of the first -gen i7 from 2008.

[–] floofloof@lemmy.ca 15 points 1 year ago (1 children)

How long did it take to compile?

[–] Gobbel2000@feddit.de 21 points 1 year ago (2 children)

I didn't really keep track, but I would estimate around 10-15 minutes on a Ryzen 5800X.

[–] shadesdk@lemmy.world 18 points 1 year ago

I compiled my first Linux kernel back in the mid 90s, mostly on 386 and Dec Alpha hardware, interesting enough both were not that much slower than what you mentioned, I think the alpha (a measly 21066) took about 40 minutes. If you had asked me back then, I’d probably have imagined a minute or two, 30 years later. Guess it says something about how much larger the Linux kernel has become.

[–] db2@lemmy.one 4 points 1 year ago

Last time I compiled a kernel it was on a bus-overclocked K6-3/500 (higher bus, lower multiplier).

[–] oo1@kbin.social 12 points 1 year ago
[–] FartsWithAnAccent@lemmy.world 11 points 1 year ago* (last edited 1 year ago)

Congratulations on being awesome. ^Keep^ ^that^ ^shit^ ^up.^

[–] fmstrat@lemmy.nowsci.com 8 points 1 year ago (1 children)

Congrats! Keep this kind of mindset if you can, even later in life. It will continue to take you farther in life than you would imagine.

[–] min_fapper@iusearchlinux.fyi 3 points 1 year ago

Yep. The mindset will take you much further than the kernel itself.

[–] Borgzilla@lemmy.ca 5 points 1 year ago
[–] GenBlob@lemmy.world 4 points 1 year ago

Nice! After the first time you get the hang of it but keep in mind, If you do make your own config you will have to recompile your kernel for any hardware that isn't automatically enabled in the config like graphics, touchpad, tablets, and other peripherals you will plug into your computer. Reading up on what hardware you have helps a lot but I still manage to forget something when I have to create my own config. Thankfully you can just transfer your config to the next kernel instead of creating it all over again.

[–] snor10@lemm.ee 4 points 1 year ago

Now this is what gives a man the feeling of power.

[–] demesisx@infosec.pub 3 points 1 year ago* (last edited 1 year ago)

Surely this is a feat of engineering on Arch. But in NixOS, this is just Monday. 😉

[–] mtchristo@lemm.ee 2 points 1 year ago (1 children)

Can I ask what are your pc specs , and how long did it take? + do you have a degree in computer science or prior knowledge of compiling code?

[–] Gobbel2000@feddit.de 2 points 1 year ago

It took roughly 10-15 minutes on a Ryzen 5800X with 32GB RAM. I have compiled other programs before, but none nearly as large and notable as the kernel. I am in fact very close to getting a computer science degree, but that is in no way required to be able to do this. If you are able to follow the wiki-page I linked, you can do it too.

[–] AlmightySnoo@lemmy.world 2 points 1 year ago

The Arch Build System also makes it very easy to apply patches. This allows you for example to try fixes before they get merged.

[–] atomic@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Nice job! Now you begin the journey of refining and perfecting your kernel config over time, to suit you. A new world awaits.

[–] waspentalive@lemmy.one 2 points 1 year ago

A feat I have yet to achieve, and I have been using Linux since Yiggdrasil.

[–] banazir@lemmy.ml 1 points 1 year ago (1 children)

Nice! I also compiled the kernel multiple times when I used Gentoo back in mid 00's. It may not be a big deal as such, but I feel kind of good being able to say I've done it.

Next challenge: write your own kernel.

[–] tony@lemmy.hoyle.me.uk 0 points 1 year ago

I installed gentoo from stage 1 or maybe 2 back in the day... it compiles to compiler to compile the rest of the build process and then compiles the kernel and base... quite fascinating but it took about 3 hours on the hardware I was using.

[–] housepanther@lemmy.goblackcat.com 1 points 1 year ago (1 children)

That's certainly nothing to shake a stick, OP! Very well done. The last time I compiled a kernel was back in 1999 with Slackware. If I remember correctly it was a version previous to 7.

[–] Shadow@lemmy.ca 4 points 1 year ago* (last edited 1 year ago)

I have vague memories around that time of doing it, I think it took 3 days to compile IIRC.

Or maybe I'm thinking of early Gentoo installs...

[–] rbos@lemmy.ca 1 points 1 year ago

Wow, well done. I haven't done that in like 20 years!

[–] GeekyOnion@beehaw.org 1 points 1 year ago

I used to do this with Gentoo, and it was always a blast! Glad that you’re having fun “rolling your own!”

[–] yoz@aussie.zone -2 points 1 year ago

Please contribute to Pine64. As a consumer I really want Linux phones to go mainstream.

[–] abieNathanTheyThem@lemmy.ml -3 points 1 year ago

I hope it was in an airgapped environment.

load more comments
view more: next ›