Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel config file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 411

PostPosted: Tue Dec 19, 2023 12:07 am    Post subject: Kernel config file Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4113

PostPosted: Tue Dec 19, 2023 1:46 am    Post subject: Reply with quote

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
View user's profile Send private message
rfx
Apprentice
Apprentice


Joined: 19 Apr 2023
Posts: 171
Location: de-by

PostPosted: Tue Dec 19, 2023 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4113

PostPosted: Tue Dec 19, 2023 10:01 am    Post subject: Reply with quote

@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
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 411

PostPosted: Tue Dec 19, 2023 10:08 am    Post subject: Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4113

PostPosted: Tue Dec 19, 2023 11:36 am    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5917
Location: Bavaria

PostPosted: Tue Dec 19, 2023 11:55 am    Post subject: Reply with quote

Take a look to decide whether it is too much effort for you:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 4113

PostPosted: Tue Dec 19, 2023 12:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 411

PostPosted: Tue Dec 19, 2023 12:21 pm    Post subject: Reply with quote

pietinger wrote:
Take a look to decide whether it is too much effort for you:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6


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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5917
Location: Bavaria

PostPosted: Tue Dec 19, 2023 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55437
Location: 56N 3W

PostPosted: Tue Dec 19, 2023 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 411

PostPosted: Sat Dec 23, 2023 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum