Tips For Customizing Your Linux Kernel

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

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

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

    #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?

  • @guyinacage
    @guyinacage 2 года назад +67

    i dont even use linux but Winry was in the thumbnail

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

      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 3 месяца назад

      BASED

    • @guyinacage
      @guyinacage 3 месяца назад +3

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

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

    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.

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

    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

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

    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!

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

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

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

    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.

  • @user-yi4ef2gk1o
    @user-yi4ef2gk1o 4 месяца назад +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 3 месяца назад

      communist detected on american soil

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

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

  • @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

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

    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 👍👍

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

      Enemy of the western civilisation

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

      @Onésimo Ortega Mexican?

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

    finally its here. how to customize my linux kernel

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

      Lmfao, well played

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

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

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

    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.

  • @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

  • @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

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

    Based Winry in thumbnail

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

    good mornng sirs

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

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

  • @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!

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

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

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

    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

  • @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...

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

    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

  • @Interpause
    @Interpause Год назад +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

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

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

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

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

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

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

  • @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.

  • @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)

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

    Winry Rockbell, Rosie the Riveter flex thumbnail

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

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

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

    Arch BTW

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

    Thanks drake

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

    As always, this is awesome Kenny!

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

    i love how you put winry in the thumbnail

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

    Based Fullmetal Alchemist thumbnail

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

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

  • @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.

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

    I just love this community.

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

    Your thumbnails are great. Specially the anime pics.

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

    Amazing, we need videos like this.

  • @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 Год назад

      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.

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

    thank you sir

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

    'make nconfig' is even better

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

    Good video

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

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

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

      systemd 🤢

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

      IDTS

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

      @@toastybread_ch 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

  • @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.

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

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

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

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

  • @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

  • @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

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

    👍👍

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

    Thanks for sharing

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

    Only clicked bc Winry is on the Thumbnail

  • @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

  • @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

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

    Im finna bust with all this content you keep dropping

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

    first

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

      matter of opinion

  • @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...)

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

    Fellow Winrychad here

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

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

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

    I want a fully customized kernel. Just for fun!

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

    Watching this while my gentoo is compiling :~)

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

    What dwm bar are you using? Looks really nice!

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

    FMA thumbnail

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

    fullmetal alchemist
    really cool

  • @DevotedGamer1
    @DevotedGamer1 9 месяцев назад +1

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

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

    Luke how do you make the voice sound so realistic on the deepfake?

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

      Probably just changes the treble or something, not by much.

  • @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

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

    Why using menuconfig when nconfig exists?

  • @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.

  • @mercster
    @mercster 10 месяцев назад

    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.

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

    Sean Jean baby boi!!!

  • @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.

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

    👍

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

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

  • @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.

  • @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. 😉

  • @andrewlankford9634
    @andrewlankford9634 10 месяцев назад

    #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.

  • @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.

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

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

  • @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.

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

    full video tutorial of you customizing your kernel?

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

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

  • @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...

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

    And why would I want to poke around in the kernel?

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

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

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

    Thank you!

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

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

  • @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.

  • @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

  • @netizenz7182
    @netizenz7182 Месяц назад

    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.

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

    KVM mess up nvidia driver don't know why.

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

    Winry

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

    Valid valid real talk

  • @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?

  • @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) :(

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

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