View previous topic :: View next topic |
Author |
Message |
deno Guru


Joined: 13 Sep 2006 Posts: 411
|
Posted: Tue Dec 19, 2023 12:07 am Post subject: Kernel config file |
|
|
Considering coming back to Gentoo after... Don't know, maybe 10 years? After something had happened to my last install I switched to Ubuntu because I didn't have time.
Then life happened. Because gaming and work I crossed over to the dark side lol.
Anyhow, I'm on vaccation now and building my new PC first time (for myself) in like 13 years. I think I will be able to spend maybe two days on the install and configurtion (Hopefully enough. If not, there's still Ubuntu.).
I would like to have a 'tuned', custom kernel, not generic one with all modules and stuff I don't need. I guess I need module support enabled, becuase of the NVidia GPU, HP printer drivers and VirtualBox (Or Qemu or whatever)?
Is there a place where I could find already pre-configured config file for a system like/similar to mine (E.g. AMD CPU, MSI mainboard, NVidia GPU)? It would be great if I had a template to try or start with, to save some time... |
|
Back to top |
|
 |
CaptainBlood Advocate


Joined: 24 Jan 2010 Posts: 4113
|
Posted: Tue Dec 19, 2023 1:46 am Post subject: |
|
|
Unless you provide full description of your hardware stack, I hardly imagine how someone could effectively help you...
Even under such conditions I'd hardly expect provided support to be matching your use case 100%.
When I start on a new hardware, I use a default kernel configuration, which I will carefully slim down little by little...
This would max chances for hardware to be properly working.
Security wise some settings may be added to...
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
 |
rfx Apprentice

Joined: 19 Apr 2023 Posts: 171 Location: de-by
|
Posted: Tue Dec 19, 2023 6:04 am Post subject: |
|
|
The easiest way would be to use the preconfigured distribution kernel gentoo-kernel(-bin) to get an executable system on which everything usually works.
This provides time and freedom to subsequently switch to a self-configured kernel, e.g. gentoo-sources, with an existing system and the persistent desire, and to quickly and easily reboot to the working distribution kernel using grub, for example, even in the event of a kernel panic make further adjustments. |
|
Back to top |
|
 |
CaptainBlood Advocate


Joined: 24 Jan 2010 Posts: 4113
|
Posted: Tue Dec 19, 2023 10:01 am Post subject: |
|
|
@rfx,
Yeah, I've forgot to mention multiple kernel boot capabilities is mostly required comfort wise.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Tue Dec 19, 2023 11:34 am; edited 1 time in total |
|
Back to top |
|
 |
deno Guru


Joined: 13 Sep 2006 Posts: 411
|
Posted: Tue Dec 19, 2023 10:08 am Post subject: |
|
|
rfx wrote: | The easiest way would be to use the preconfigured distribution kernel gentoo-kernel(-bin) to get an executable system on which everything usually works.
This provides time and freedom to subsequently switch to a self-configured kernel, e.g. gentoo-sources, with an existing system and the persistent desire, and to quickly and easily reboot to the working distribution kernel using grub, for example, even in the event of a kernel panic make further adjustments. |
Yeah, I'm aware of that, that is what I meant with 'generic' kernel, like other distributions have. Considering my new setup and that I will have to rely on modules, it's not that big of a difference any more, but still I prefer features I don't need deactivated.
@CaptainBlood providing the info wouldn't be an issue for me. The GPU etc I mentioned was just an 'example'. No need to clutter the post with lspci output and details if such 'thing' (E.g. place where people share config files) doesn't exist. |
|
Back to top |
|
 |
CaptainBlood Advocate


Joined: 24 Jan 2010 Posts: 4113
|
Posted: Tue Dec 19, 2023 11:36 am Post subject: |
|
|
Maybe gentoo live iso 's .config could help...
Iso can be tested prior to implementation.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5917 Location: Bavaria
|
|
Back to top |
|
 |
CaptainBlood Advocate


Joined: 24 Jan 2010 Posts: 4113
|
Posted: Tue Dec 19, 2023 12:20 pm Post subject: |
|
|
Gentoo has a learning curve...
Custom kernel too!
Cope or die!
Thks 4 ur attention, interest & support _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
 |
deno Guru


Joined: 13 Sep 2006 Posts: 411
|
Posted: Tue Dec 19, 2023 12:21 pm Post subject: |
|
|
Thanks. I have done it quite a few times, so I have an idea about how much effort it may take (Not recent kernels but I doubt much has changes during my absence).
I was looking for a 'better', more tuned, closer to my hardware template than the config file used by distros and bin kernel (Where almost everything is enabled.).
Eventually I will probably go with the bin kernel... I will have ~two days for this, but during this time I would like to have a complete setup (DE, dev env, Virtualization, basic Windows VM nonsense I'll need for work etc.).
Thus the idea. Otherwise I would simply take time as I usually do. Or... I'll continue using my old system then waste weeks instead. Lol. |
|
Back to top |
|
 |
pietinger Moderator

Joined: 17 Oct 2006 Posts: 5917 Location: Bavaria
|
Posted: Tue Dec 19, 2023 12:30 pm Post subject: |
|
|
deno wrote: | [...] Otherwise I would simply take time as I usually do. Or... I'll continue using my old system then waste weeks instead. Lol. |
... or you go both ways: Start with our bin-kernel and have a running system .. and if you have time again make your own kernel later ... (+ you already have a backup kernel == the bin-kernel)  _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55437 Location: 56N 3W
|
Posted: Tue Dec 19, 2023 12:31 pm Post subject: |
|
|
deno,
Welcome back :)
The kerenel about doubles in size every 10 years, the method has not changed but there are a lot more knobs now.
You don't need to cross this chasm in one jump though as you can have several kernels installed and choose at boot time.
Go for a ready made kernel to get you going, then add your own kernel under the install.
When its broken ... it will be ... boot into the ready made kernel to fix it.
This gets you the fastest use of your new hardware and lets you do a custom kernel in complete safety. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
deno Guru


Joined: 13 Sep 2006 Posts: 411
|
Posted: Sat Dec 23, 2023 11:45 pm Post subject: |
|
|
NeddySeagoon wrote: | deno,
Welcome back
The kerenel about doubles in size every 10 years, the method has not changed but there are a lot more knobs now.
You don't need to cross this chasm in one jump though as you can have several kernels installed and choose at boot time.
Go for a ready made kernel to get you going, then add your own kernel under the install.
When its broken ... it will be ... boot into the ready made kernel to fix it.
This gets you the fastest use of your new hardware and lets you do a custom kernel in complete safety. |
Hi Ned, very glad to see you're still around!
Yes, I'm going to start with the binary kernel. It's been a while since I last compiled one. One of the main reasons I used to compile was to disable loading of kernel modules.
This time I have an Nvidia card and HP printer... So yeah. There are other reason to mess with it, but it's not going to be a priority. |
|
Back to top |
|
 |
|