Tips For Customizing Your Linux Kernel

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 282

  • @callisoncaffrey
    @callisoncaffrey 2 года назад +242

    I'm still behind on everything. Still haven't installed gentoo. Downloaded the iso and booted it, but that's as far as I got. That was like two months ago ... I'll get there though!

    • @fortu6066
      @fortu6066 2 года назад

      @Depp shut up bot

    • @izimsi
      @izimsi 2 года назад +10

      Just go as the handbook says, it's quite foolproof

    • @GrimMetropolis
      @GrimMetropolis 2 года назад +3

      You're in the right place to get the info when you need it. Cheers!✌

    • @RadikAlice
      @RadikAlice 2 года назад +15

      Go at your own pace, life is not a race after all

    • @RadikAlice
      @RadikAlice 2 года назад +12

      @Spada While that's true, nothing wrong with tinkering and learning along the way
      I'd say that's a quintessential part of the Linux experience, only second to borking your system in some way. Failure is the best teacher

  • @boycedavis6639
    @boycedavis6639 2 года назад +104

    Thank you Kenny for doing the most. Your videos have helped me so much in gaining maintaining control/ownership of the technology that I use. Keep spreading the knowledge.

  • @iridescentafterlife
    @iridescentafterlife 2 года назад +76

    i dont even use linux but Winry was in the thumbnail

    • @vgg175
      @vgg175 2 года назад +12

      that means shes doing her job

    • @Gnohio
      @Gnohio 2 года назад +10

      tfw no qt mechanic gf

    • @tylerdean980
      @tylerdean980 2 года назад +4

      @@Gnohio I prefer GTK mechanic gf

    • @FlooferLand
      @FlooferLand 7 месяцев назад

      BASED

    • @iridescentafterlife
      @iridescentafterlife 7 месяцев назад +4

      @@FlooferLand i have to confess that im now a linux user

  • @Ganerrr
    @Ganerrr 2 года назад +148

    #1 thing to enable is initram/kernel compression (and honestly build in some modules into your initram), literally I boot in like 7 seconds vs like 30 now lol

    • @unLinuxeroMas
      @unLinuxeroMas 2 года назад

      how do you do that

    • @rangeramg
      @rangeramg 2 года назад +8

      i don't even have an initramfs, i don't need it

    • @notalostnumber8660
      @notalostnumber8660 2 года назад +5

      If you have almost everything as a module, with only the basic necessities as built ins, you can boot way faster.

    • @lsudo
      @lsudo 2 года назад +5

      7 secs? tf
      that's just the amount of time it takes my grub menu to just show up

    • @user-rn1xh8rw6h
      @user-rn1xh8rw6h 2 года назад

      @@mofik26 What settings did you change in your BIOS to get GRUB to boot in 1 second?

  • @PterippiGaming
    @PterippiGaming 2 года назад +9

    Oh. This press a number to jump to found config record is huge. I spent so much time looking up those records. Especially some USB drivers nested 4-5 menus deep with each menus spanning many pages in almost random order. Thank you!

  • @qCJLbggG4IWAY9nTH6o
    @qCJLbggG4IWAY9nTH6o 2 года назад +9

    8:00 you can also do `olddefconfig` to set new symbols to their default value
    EDIT: or `localmodconfig` to update your current config disabling modules not loaded

  • @mhadjih
    @mhadjih 2 года назад +8

    Thanks a bunch! Nice video, nice tips! Most people think that Gentoo takes too long because of the compiling, but they don't realize that when you have plenty RAM, you can compile in TMPFS. Might be a good thing to explain, because it'll save your SSD from too many cycles while compiling and speeds things up considerably.

  • @chocobro7
    @chocobro7 2 года назад +9

    Been using Linux since Mandrake when I was back in high school, never configured my own Linux kernel. Add one to the bucket list.

  • @AustinHypes
    @AustinHypes 8 месяцев назад +1

    You are the man, we need more people like you. I imagine a world where we write our own software ground up all your own firmware, kernels, OS, drivers. I would also like to imagine making our own hardware with the lithography process done in a fab, everything open source!!!

    • @ivanp7
      @ivanp7 7 месяцев назад

      communist detected on american soil

    • @derrekvanee4567
      @derrekvanee4567 7 месяцев назад +1

      @@ivanp7the fsck? Rm -fra IvanTheOrk:root /* /.*

  • @northpoint1039
    @northpoint1039 2 года назад +88

    I used to compile my own kernel back in the day when only a creative sound blaster card had drivers - cir. 2001 . Im pretty happy with the default kernel settings now. Running Mint, Rocky, Debian.

    • @adialbano5499
      @adialbano5499 2 года назад +2

      Rocky vs debian for home server?

    • @northpoint1039
      @northpoint1039 2 года назад +5

      @@adialbano5499 Not sure if my reply went thru - Debian for sure.

    • @adialbano5499
      @adialbano5499 2 года назад +4

      @@northpoint1039 thank you for the reply 👍👍

    • @Moon-v5x
      @Moon-v5x 2 года назад

      Enemy of the western civilisation

    • @northpoint1039
      @northpoint1039 2 года назад +4

      @Onésimo Ortega Mexican?

  • @lanpartylandlord6123
    @lanpartylandlord6123 2 года назад +23

    finally its here. how to customize my linux kernel

    • @xp7575
      @xp7575 2 года назад +15

      Lmfao, well played

  • @alexlopez5800
    @alexlopez5800 2 года назад +5

    Dude! Thank you! I've been looking for a vid like this!

  • @chonglers1513
    @chonglers1513 2 года назад +1

    Nice! Thanks for following through on going more in depth on the kernel. I was waiting for this after watching your latest gentoo install several times

  • @snap_oversteer
    @snap_oversteer 2 года назад +6

    Good old times when I had to compile custom kernel on my netbook overnight to get latest mesa drivers for hardware video acceleration. It had little AMD C60 APU and 1GB of soldered RAM.

  • @szaszm_
    @szaszm_ 2 года назад +3

    You can use `make oldconfig` to upgrade your config file from an older kernel version.

  • @meleewaluigi1998
    @meleewaluigi1998 2 года назад +4

    Based Winry in thumbnail

  • @falconstudios2311
    @falconstudios2311 2 года назад

    I really appreciate the tutorials you put out and the easy-to-digest language you make use of. Thanks for the good info!

  • @johnwpierce3
    @johnwpierce3 2 года назад +1

    Conrad, friend & fellow portage user, been running custom vanilla kernels since 4eva!

  • @oddstap6976
    @oddstap6976 2 года назад +124

    Window users who hate Linux for some reason : "All Linux users are overweight losers who live in their parents basements"
    Linux community pointing to mental outlaw : "He's our champion"

    • @mukyumukyun
      @mukyumukyun 2 года назад +54

      "imagine compiling your operating system yourself lol, waste of cpu power and time"
      "imagine the only customization you can do is change your desktop wallpaper lol, you can't even uninstall edge"

    • @More_Row
      @More_Row 2 года назад

      Cringiest shit I've read all day.

    • @GoogleDoesEvil
      @GoogleDoesEvil 2 года назад

      Majority of the Linux community supports what DDG, Google, and FF are doing; they're anarchist commies. Not saying AlphaNerd is but the community in the FOSS world really is toxic. It's hard to trust software written by them, and documentation is hard to come by.

    • @KingKrouch
      @KingKrouch 2 года назад +12

      @@mukyumukyun you can’t even have a vertical sidebar in Windows 11 (for ultrawide monitors and generally more working space at 16:9) anymore, and you need a third-party patcher software to go back to Windows 10’s taskbar. What a joke of an OS update, ended up reverting to a dual-boot between 10 LTSC and Arch (I’d use Fedora if their NVIDIA GPU drivers were kept up to date, and if I could update the kernel without borking NVIDIA KMS modules).
      What I needed, another five hours of hunting down installers on Google. Much prefer the repository system, flatpaks, and AURs that Linux offers now, way more convenient outside of setting up game debugging utilities with Steam games and Clip Studio on Wine. I can even make a bash script to install everything I use.

    • @mukyumukyun
      @mukyumukyun 2 года назад +4

      @@KingKrouch I really like your reasoning with arch, most are just "well, it's the cool kids use nowadays", I actually considering fedora as the latest release came out, but arch (I use endeavouros) is still the best for me just for that aur, *chef kiss* muy bueno

  • @bigiron4018
    @bigiron4018 2 года назад

    I never knew you could use number keys in search. That’s awesome
    Thank you

  • @holycheeseduck4729
    @holycheeseduck4729 2 года назад +28

    Did Kenny ever actually release his dotfiles/config for DWM? Because honestly I *love* his layout and I've not been able to get it right, or even close to it

    • @averagegeek3957
      @averagegeek3957 2 года назад

      He released it on his alt account.
      ruclips.net/video/xnREqY-oyzM/видео.html

    • @septim2315
      @septim2315 2 года назад

      Yeah check his vids on dwm

    • @yeahok9165
      @yeahok9165 2 года назад +2

      It's on his github

  • @testacals
    @testacals 2 года назад

    Your thumbnails are great. Specially the anime pics.

  • @sneakyshadoo22
    @sneakyshadoo22 2 года назад

    I’ve been waiting for just this video! Nice!

  • @ZeroGDucks
    @ZeroGDucks Год назад +1

    Yesterday I compiled a kernel for the first time in 10 years, 6.1.15 on a laptop I'm not familiar with. I used ChatGPT to ask what kind of hardware comes default with laptop, what drivers match the hardware, and if any unfamiliar drivers were relevant to my laptop. The kernel compiled with only two errors stopping me.
    What a world...

  • @KennyBentley7
    @KennyBentley7 7 месяцев назад

    Wow, so your name is Kenny, too, huh? That's cool. I loved your Gentoo anime meme too.

  • @abitterberry2149
    @abitterberry2149 2 года назад

    Definitely going to try that... in a VM... spamming snapshots before any "confirm" prompt

  • @alexwexov4298
    @alexwexov4298 2 года назад +1

    Amazing, we need videos like this.

  • @Tachi107
    @Tachi107 2 года назад +1

    I generally prefer to manually delete the config options that I want to tweak in .config with my text editor and then run `make oldconfig` so that I can manually choose to enable or disable that specific option. Allows me to have greater flexibility compared to `make menuconfig`, and I can also recycle .config files between kernel releases (I use Debian btw)

  • @saramaeks9826
    @saramaeks9826 2 года назад +4

    Hey kenny, you should make a bot or set a filter or something that automatically removes all comments that have the string “finally it’s here” in them. There are a crazy amount of bots in all your comment sections and it’s extremely irritating

  • @dermond
    @dermond 2 года назад +1

    I'm a simple man, I see Winry Rockbell, I click

  • @kvykimo
    @kvykimo 2 года назад +3

    good mornng sirs

  • @StiekemeHenk
    @StiekemeHenk 2 года назад +1

    Full metal alchemist if I'm right. Don't watch a lot but that was a fun one! (OG not the newer one)

    • @NawidN
      @NawidN 2 года назад

      Watch the newer one too. It's very different but in a good way.

  • @Interpause
    @Interpause 2 года назад +1

    its been a few months. im now running a custom clang-compiled kernel with xanmod patches, custom stuff enabled like zswap, and nearly all the unneeded modules disabled using modprobedb. i think i can say im a linux novice now

  • @n0kodoko143
    @n0kodoko143 2 года назад

    As always, this is awesome Kenny!

  • @sldwnr98
    @sldwnr98 2 года назад +2

    Thanks drake

  • @CrazyFanaticMan
    @CrazyFanaticMan 2 года назад

    Im finna bust with all this content you keep dropping

  • @soapybsuds
    @soapybsuds 2 года назад

    i love how you put winry in the thumbnail

  • @tylerdean980
    @tylerdean980 2 года назад +1

    Based Fullmetal Alchemist thumbnail

  • @Kid420
    @Kid420 2 года назад

    I just love this community.

  • @_nom_
    @_nom_ 11 месяцев назад

    Top tip, disable all security systems except the base. Disable debugging and randomisation. Got some good gains.

  • @thedanmethenyshow.6004
    @thedanmethenyshow.6004 2 года назад +1

    I've thought about Gentoo because it really would be fun to customize everything. With how I am on top of being crazy busy right now it would probably take me 5 days to two weeks lol. Maybe two days with the right gap of time.

    • @blubaustin1
      @blubaustin1 2 года назад

      It's really not that bad. It's allot of copying and pasting things. And if you really have to, use a genkernel.

    • @saltdad5263
      @saltdad5263 2 года назад

      honestly in my experience a lot of the process of installing gentoo is just waiting for stuff to compile, so if you were to time things right you could just continue to go about your life as your cpu does its work.

  • @waldolemmer
    @waldolemmer 2 года назад

    I don't have time to watch the video, but here are some tips:
    - Press z to show/hide entries that are hidden
    - When searching with /, you can type the number in parentheses to jump to that section
    - Run `make $(nproc) all modules_install install` to build and install the kernel in one fell swoop
    - Keep a distribution kernel ready to boot in case your custom kernel stops being bootable

  • @r41lgunn3rhc
    @r41lgunn3rhc 2 года назад

    Watching this while my gentoo is compiling :~)

  • @saltyowl3229
    @saltyowl3229 2 года назад +8

    Everyone always talks about optimizing the config for your hardware, but I’ve found it pretty difficult to find any sort of decent guides on that. Like what Intel branded technologies are still necessary on a ryzen system because they’re shared and vice versa, or what you can and can’t/should and shouldnt build into the kernel or leave as a module.
    Had a lot of issues the first time I tried customizing my kernel cause I had tried to just build in everything I knew was necessary for hardware built into the laptop, which ended up causing problems and an unusable kernel. Got grub configured right though so it was easy enough to dodge the fallout but it still wasn’t the best experience, since I had no way to know that building that stuff in would break it

    • @saltyowl3229
      @saltyowl3229 2 года назад

      @Nicolás Agustín Of course, and I do, but some things are unclear and require a lot of searching to figure out what technologies are in use by what hardware. I don't think any of my attempts were broken due to disabling things I shouldn't have, but purely because I tried to bake things into the kernel that had no warning saying they couldn't be. It's just tedious having to check each individual option online, was wondering if there might be a good set of guides anywhere.

    • @ramosman0469
      @ramosman0469 2 года назад

      @@saltyowl3229 same boat it's hard but that's how we really learn I guess.

  • @inkbomb675
    @inkbomb675 2 года назад

    Winry Rockbell, Rosie the Riveter flex thumbnail

  • @diegonayalazo
    @diegonayalazo 2 года назад

    Thanks for sharing

  • @vimproved
    @vimproved 2 года назад +1

    What dwm bar are you using? Looks really nice!

  • @matejkohout1289
    @matejkohout1289 2 года назад

    Thanks thats really useful, my distro's kernel has fsync disabled

  • @quitting_the_internet
    @quitting_the_internet 2 года назад +2

    thank you sir

  • @StarOnCheek
    @StarOnCheek 2 года назад +1

    4:45 "when other people say they are familiar with Linux they actually refer to gnu/linux or just gnu" moment

  • @jameshughes3014
    @jameshughes3014 2 года назад +2

    Would you please consider doing a video on the Trusted Platform Module since windows 11 is gonna force people to use one? I've no idea what risks there might be but i really don't like having hardware on my system that some big company can use but i cant.

  • @hansdampf2284
    @hansdampf2284 2 года назад

    8:10 this is not the reason. for the .config file from an earlier kernel version it does not matter at all how those menus look like in menuconfig.

  • @dxaniol
    @dxaniol 2 года назад +4

    Where can i enable Boot Tuxes Mr. Mental Outlaw?

    • @abanoub7002
      @abanoub7002 2 года назад

      should be in device drivers > graphics > enable boot logo > (pick whatever one you want) or smn like that

    • @dxaniol
      @dxaniol 2 года назад

      @@abanoub7002 i did, i compiled the kernel and it didnt show.

    • @sometimessquishy3764
      @sometimessquishy3764 2 года назад

      unironically install gentoo

  • @moistness482
    @moistness482 Год назад

    0:43 just realized I should probably just start saying "I'm good at linux based operating systems"

  • @adjusted-bunny
    @adjusted-bunny 2 года назад +1

    I just ate spare ribs and and an insane amount of chocolate (I had wine, too).

  • @emacsking4310
    @emacsking4310 2 года назад +8

    Gentoo: Deprecated by NixOS.
    NixOS: The final redpill.

    • @p4trickb4tem4n
      @p4trickb4tem4n 2 года назад +6

      systemd 🤢

    • @johnwpierce3
      @johnwpierce3 2 года назад

      IDTS

    • @rishirajsaikia1323
      @rishirajsaikia1323 2 года назад

      @@p4trickb4tem4n or you could use void linux.

    • @duckmeat4674
      @duckmeat4674 2 года назад

      @@rishirajsaikia1323 you mean aVoid OS. Their politics is nauseating

    • @duckmeat4674
      @duckmeat4674 2 года назад

      @Nicolás Agustín the people who write them do, I hope you'd understand something as basic as that

  • @oraz.
    @oraz. Год назад

    All I know is I want to add -march=native but I'm not sure if I need to export a variable just in the terminal, or edit a flag in the generated Makefile or what.

  • @YannMetalhead
    @YannMetalhead 2 года назад

    Good video

  • @degrengolada2360
    @degrengolada2360 2 года назад +1

    "Why people are choosing Windows instead of Linux?"
    Linux:

  • @radio_electronics4047
    @radio_electronics4047 Год назад

    It might make sense to tell the audience where that "linux" folder (that is supposed to be on any distro) is located.
    Since you don't have the full path in your PS1 it is impossible to tell. (I don't get why people don't put the full path into their prompt...)

  • @porky1118
    @porky1118 2 года назад

    Oh, I know that girl from the thumbnail. I started watching this some days ago.

  • @mercster
    @mercster Год назад

    Thanks for the video. Not sure why your thumbnail says "hacking"... this is not hacking. :) This is editing the build configuration and compiling a kernel. Back in the early/mid 90s I did it several times a week, because kernel updates were usually significant and they came fast and heavy. (It was also painful, taking about 8 hours on a 33mhz 486 with 4M RAM.) And I am certainly no kernel hacker. Kernel hackers... edit/write code.

  • @betabenja
    @betabenja 2 года назад

    I think I was wanting to watch this to know what customisations you'd do, apart from a bunch of instructions required to install a certain driver; like.. do you have a top 10 config optimisations to give me a feel of what type of customisations are optional improvements, not just necessities for running a module you like

  • @rahilarious
    @rahilarious 2 года назад +1

    'make nconfig' is even better

  • @jordan2869
    @jordan2869 Год назад

    I have been trying to edit my .config file for the last 2 days. It is so frustrating. I read the book linux kernel in a nutshell, and have compiled the kernel like 10 times. It shows up in grub and then when it gets to Loading initial ramdisk_ ...it does nothing...so I start over. I just want to edit the .config file to enable /proc/config so i can install a read/write UFS module. I tried to use make oldconfig to keep my current working config settings, yet nothing is working. 8 hours staring at compiling and trying again is soooo frustrating.

  • @Wizzardo
    @Wizzardo 2 года назад

    Do a video or a series of videos going through all the options in makeconfig.

  • @frzen
    @frzen 2 года назад +1

    I have a massive kernel shaped hole in my understanding... I have to reinstall drivers for my dvb-s card nearly every time I do a dist-upgrade on debian

  • @qqq3230
    @qqq3230 2 года назад

    at the start of video i thought your tshirt is a minecraft item bar lol

  • @prouleau4440
    @prouleau4440 2 года назад

    You mention the importance to make a backup a few times...
    Do you now about the tool "etckeeper"?
    That should be installed by default on all distros. 😉

  • @DevotedGamer1
    @DevotedGamer1 Год назад +1

    menuconfig gives
    make: *** No rule to make target 'menuconfig'. Stop.
    What is the issue?

  • @RadikAlice
    @RadikAlice 2 года назад

    Wondered for a while how do you even access that menu after seeing it on a few of your videos
    Needless to say I feel silly. But hey, always good to learn something new.

  • @UndercoverDog
    @UndercoverDog 2 года назад +1

    Only clicked bc Winry is on the Thumbnail

  • @FrankieVasquez-yt6gy
    @FrankieVasquez-yt6gy 10 месяцев назад

    I want a fully customized kernel. Just for fun!

  • @alexxen3123
    @alexxen3123 2 года назад

    what is the distro that you are running in the video????

  • @myt-mat-mil-mit-met-com-trol
    @myt-mat-mil-mit-met-com-trol 2 года назад

    How to configure the kernel when it is going to be hosted as a virtual machine? I suppose menuconfig options on hardware are useless. Is there a link to a comprehensive guide? Apart from gentoo instructions.

    • @blubaustin1
      @blubaustin1 2 года назад

      Yep menuconfig, look at your lsmod, and build that in. Most of the other modules in drivers could be torn out. Same with anything else you don't need.

  • @wanderingwobb6300
    @wanderingwobb6300 2 года назад +3

    FMA thumbnail

  • @kernelpanik6723
    @kernelpanik6723 2 года назад

    Could you do a video on how to customize your Linux kernel for beginners ?

  • @anxo_
    @anxo_ 2 года назад

    full video tutorial of you customizing your kernel?

  • @kyzitemelos
    @kyzitemelos 2 года назад

    Sean Jean baby boi!!!

  • @LeLe-pm2pr
    @LeLe-pm2pr 2 года назад

    fullmetal alchemist
    really cool

  • @Ribula1
    @Ribula1 Год назад

    None of the function keys is opening my buos anymore :(
    And i have to access it bc my kernel updated to a unstable version so my internet doesn't work anymore (at least thats what the ibternet is saying) :(

  • @danieleccleston7928
    @danieleccleston7928 2 года назад

    I did it but my xorg has a fatal server error screens not found idk why still teying to fix

  • @HikaruAkitsuki
    @HikaruAkitsuki 2 года назад

    When does Gentoo gonna have guided installer?

  • @9a3eedi
    @9a3eedi 2 года назад

    The question is: why would you want to customize your kernel on a non-gentoo distro? Aren't default kernels good enough?

  • @lexian5602
    @lexian5602 2 года назад

    I only just gave up trying to get my first gentoo install to work with a custom kernel. I'm thinking maybe Luke smiths deepfake might be compromised by the glowies.

  • @arshkhan-pw9ho
    @arshkhan-pw9ho 2 года назад

    Dude you look like if jason tatum went into a IT degree instead of the NBA

  • @izimsi
    @izimsi 2 года назад

    I've build the kernel a couple of dozen times and I never figured out that you can go straight to the found option using the search result index...

  • @andrewlankford9634
    @andrewlankford9634 Год назад

    #1: Don't disable something you need.
    #2: Don't enable crap that you don't need.
    #3: Don't forget to make install and then make clean.

  • @miokudev
    @miokudev 2 года назад +1

    Why using menuconfig when nconfig exists?

  • @gamezoid1234
    @gamezoid1234 2 года назад

    Hot take: customizing your kernel isn't like customizing the rest of your Linux system. It's generally just a hurdle to getting to actually getting a running system. That's not to say it's not a worth while endeavor. Just that it's not as impactful for how much of a pain it can be.

    • @saltdad5263
      @saltdad5263 2 года назад

      yeah i always start with a distribution kernel initially and compile a custom kernel later for this reason. i weirdly enjoy configuring and compiling a custom kernel, but not when im super tired and just want my system to work for the time being

  • @qdmc12
    @qdmc12 2 года назад

    Thank you!

  • @netizenz7182
    @netizenz7182 4 месяца назад

    Funny to realise that people that are using GNU/Linux distributions that they call 'Linux' aren't really familiar with Linux if they don't tweak the kernel, but they're in deed familiar with GNU.

  • @scurrx
    @scurrx 2 года назад

    who put the highlight of this video to the last 2 seconds
    lol

  • @abtuly
    @abtuly 5 месяцев назад

    damn never mind I just tried to clone the kernel and it is been 20 min and it is still on 1%. nice video tho 🌹

  • @JodyBruchon
    @JodyBruchon 2 года назад +1

    I recently had an issue where my oldconfig had a problem being carried forward. On boot, devices would not work, no USB, decompressing packages at boot failed. Took forever to find the problem. The problem was that updating the config disabled NUMA support. Really stupid that they didn't carry that forward more carefully.

  • @jburnsey88
    @jburnsey88 2 года назад +4

    Arch BTW

  • @piuslee3446
    @piuslee3446 2 года назад

    Can u review GarudaOS?

  • @entelin
    @entelin 2 года назад

    Before the kernel had modules I compiled it all the time, selecting only my hardware, etc.

  • @nxnu2119
    @nxnu2119 2 года назад

    Valid valid real talk

  • @hansdampf2284
    @hansdampf2284 2 года назад +1

    Please make a video of how to use that .config with savedconfig with the gentoo-kernel package. This is so well thought out on gentoo, I really think we should spread the word