r/Gentoo • • 20h ago

Story Gentoo made me stop distro hopping

Post image
214 Upvotes

I've been using gentoo for over a month now and everytime i use it i learn more and more about linux and that made me realize that i can make gentoo whatever i want it to be! Which helped me to make the perfect linux setup for my laptop. Thank you gentoo linux


r/Gentoo • • 12h ago

Discussion First dip into Gentoo.

Post image
48 Upvotes

Installed Gentoo on my old steam deck as part of my dipping my toes into homelab/tech upcycling.

I've gotta say I am LOVING openrc. While I don't think systemd is awful or anything, I can kinda understand why openrc users glaze it so much.

I'm really tempted to main it. I think I might get a bit more experience before I take the plunge.

The handbook is really well written. Among the best documentation I've come across.


r/Gentoo • • 7h ago

Support Question About eclean-kernel post-remove plugin

5 Upvotes

Hi all Larry's Fansclub here ,
Im new to Gentoo , and have been diving around the Handbook looking around the reference about Kernel Hooks or maybe call it plugin *.install for post-removing the kernel version. Only found the pre-install and post-install available , which the default available for dracut ugrd efistub uki ukify etc , But im using limine as bootloader and creating the .install plugin for when installing / upgrade kernel the plugin will then automatically install the new entry ( im using ukify to build efi image and put that automatically in the limine.conf ) as fallback i USE efistub in installkernel package.use. My Issue is when removing / delete / uninstall kernel using eclean-kernel it doesn't automatically delete the efistub entry & uki image ( which should be handled by default plugin availalble) or trigger to regenerate the limine.conf ( this part , im sure there's something lacking in my script ) and i want to know what else im missing so the removal can trigger the rebuilding limine.conf when doing kernel removal ( which according Handbook should be triggered by the eclean-kernel or kernel-install )?
Thanks in advance moo

Edit : found the issue why 95-efistub-kernel-bootcfg.install not working , im missing the  app-emulation/virt-firmware


r/Gentoo • • 8m ago

Screenshot gentoo termux?

Post image
• Upvotes

r/Gentoo • • 1d ago

Screenshot I kept dreaming of a world I thought I'd never see. And then, one day... I got in! First successful install 😎

Post image
42 Upvotes

Been tinkering with Linux since the early 2000s. Never as my main driver but always had at least one old laptop hanging around with one distro or another on it. Tried installing Gentoo a handful of times, but could never quite get it working.

With every big tech company in town soaking up as much of your personal data as they can, I decided enough was enough and the first step in extricating myself from their evil grasp was to get Bill’s ugly code off my daily driver and replace it with something better. And why not Gentoo?

A couple hours and a rockstar or two later and I now have a running system. A lot of things don’t work - no sound output, Bluetooth doesn’t work, etc. so all I’ve got is a GUI and a terminal app, but I couldn’t be happier to figure out how to fix these things and installing only the exact apps I want.

Once everything is up and running smoothly, the next step is to build my own local LLM. Because while I’m not ashamed to admit that ChatGPT is an incredibly powerful tool that I love using, I’m tired of letting Sam use every character I put in there for who knows what purpose. Not to mention the impact that these massive data centers have on the world we live in. And what better system to build that on then one running the big purple G? 😎

Excited to be one of the cool kids now, even if I’m not a kid anymore and not a soul that I know has a clue what Gentoo is 🤣


r/Gentoo • • 22h ago

Discussion Thank you guys I got everything running

Post image
28 Upvotes

I installed also KDE since it’s what I’m most familiar with, and finally I don’t have bloat in a system. Only installed Firefox and konsole to have a terminal and it’s working fine. Really appreciate the help from yesterday. Maybe one day I’ll overcome the fear and install it as my main system as well.


r/Gentoo • • 15h ago

Support Gentoo / systemd-boot “ TPM extend operation occurred” on boot, system unbootable.

4 Upvotes

Hi, as above, upon selecting the systemd-boot entry for my Gentoo system from the UEFI, the message above floods the screen, rendering the system unbootable.

Selecting a bootloader on another partition works fine.

It looks like it’s coming from shim here: https://github.com/rhboot/shim/blob/main/tpm.c l112

I have a couple of questions:

1) how do I safely clear the TPM log if this is the issue?

2) how do I prevent this happening again? Is this something I’ve caused?

Thank you!


r/Gentoo • • 1d ago

Tip Quick tip: Building GCC quicker

10 Upvotes

Normally, Gentoo will bootstrap GCC, which involves building GCC multiple times, incrementally using the previous stage's build to build the next, etc. This is not necessary in most cases for (stage3) end-users, so you can add EXTRA_ECONF+="--disable-bootstrap" for sys-devel/gcc to speed up compilation quite a bit.

On my laptop with an Intel Core 2 Duo T7200 microprocessor, GCC went from taking over 12 hours to build with the default config, down to only a couple of hours with bootstrapping disabled.

Happy hacking! ~k


r/Gentoo • • 1d ago

Screenshot Installing Gentoo on a Dell Wyze 3040

8 Upvotes

Ah, of course, no binary packages here!

Edit: as it turns out, 8 gb of storage is not enough for basically anything.... I will try to push it anyway.


r/Gentoo • • 2d ago

Screenshot My daily driver Gentoo on my X220 with XFCE

Post image
171 Upvotes

r/Gentoo • • 1d ago

Support Not sure why I can't get Gentoo working

14 Upvotes

I've only been able to install Gentoo once in my time of using it. So far I'm on try number 5 to get a fully working system with XFCE. Last night I tried twice and first time root and user had no directories and other weird things with fs. I think fstab issues. Then second time last night I ended up not being able to do efi and mount correctly. I'm using an Lenovo from 2016 with a 1tb hdd, 8gb ram and a i5-6400. Does Gentoo just hate it and always finds a way to prevent me from getting a full install? The most I got is it to boot lol


r/Gentoo • • 1d ago

Support Can’t find out how to get around the localhost login

Post image
9 Upvotes

I have installed this system 4 times in the last 3 days following everything the wiki shows, and it even boots up without any problems until it gets to the localhost login. At first I didn’t change the name of the localhost in the file in the installation and just entered “localhost” the default one with the password I set up every single time it would prompt me incorrect even though I had used exactly the information I needed the next two installations I changed the localhost name and went with a longer password to see if anything changed. Same thing doesn’t let me login. Login incorrect. I went today and installed it for the last time, again no errors in the installation and the boot up was also flawless, with the only exception that I didn’t put any root password. And still it asked me for a localhost with a password. I am really at my end here, and the only discussion I found in this sub regarding this problem the person just did a mistake and it was explained to them how to fix it, not even in gentoo forums could I find this issue.

I choose openrc and have grub as the bootloader, again booting is perfectly fine and shows no errors starting up everything just that damn login

I really need help guys I’m gonna go insane if this keeps going on. Pls help


r/Gentoo • • 1d ago

Discussion Question about binaries

8 Upvotes

People who have used gentoo for quite some time, is compilation really that worth it? As a user 1 month in, i still keep on just getting compiled packages, and not binaries. Is it really worth the time wasted?


r/Gentoo • • 2d ago

Screenshot first ever gentoo rice

Thumbnail
gallery
116 Upvotes

recently just installed gentoo for the first time on my t480 and finally finished customizing it.


r/Gentoo • • 2d ago

Support Turnstile problem

6 Upvotes

i want to install gentoo but i want to know some topics so i need your help. i want a zfs file system and dinit system so i have a lots of questins

İ read the wiki and in zfs services section i saw some services that zfs need do i need to convert them to dinit files.

When changing init system to dinit do i need to use some useflags i read the dinit section in the wiki but i dont understand it

Does turnstile needs to be configured manually even in pam file i need it for pipewire.

Does nvidia support is good as archs

Without wayland and systemd how much ram can i save


r/Gentoo • • 2d ago

Story Gentoo Atomic-Musl GCCLLVMSelinux

Thumbnail
gallery
26 Upvotes

Cid GCC baseline434

Shadow Clang baseline 445

JohnSmith Clang baseline 477 KvmHost

← いまここ、boot確認済み

↓ これからJohnRootに+ SELinux

CC="clang" CXX="clang++"

Clang/Clang++ → ユーザースペース主系 GCC/G++ → 共有Kernel build・Clang故障時の復旧 SELinux → Johnだけ

昨日ShadowRoot444PackageClangを再マージ

今日ShadowからJohnにrsync、いまからSelinux導入

eselect profile show44→set50musl/hardend/selinux

+ Total: 71 packages 32 new 39 reinstalls downloads: 19049 KiB

sec-policy/selinux-xserver sec-policy/selinux-qemu sec-policy/selinux-openrc sec-policy/selinux-dracut sec-policy/selinux-gpg ...

Shadow 約445 packages John 約445 + 32 ≒ 477 packages

これが完成してやっとVm構想行けると

Cid = musl + GCC baseline / rescue

Shadow = musl + Clang userspace

JohnSmith = musl + Clang + hardened + SELinux

当初は3Rootともかなり近い内容で、世代切替・rollback寄りの設計だったのに、今は完全に役割分担が変わってる。

Cid musl + GCC 既知正常 / rescue / Kernel基準

Shadow musl + Clang/LLVM toolchain比較・実験

John Smith musl + Clang/LLVM + hardened + SELinux security、testing

L0 Gentoo host

→ L1 hardened / SELinux boundary

→ L2 hardened / SELinux boundary Browser VM

→ L3 disposable

「公式にmusl+LLVM+SELinux全部入りprofileあるやろ」と思ったら無くて、実際にJohnでやったのは musl/hardened/selinux profile + CC=clang CXX=clang++ + GCC fallback の自前合成。 しかもそれで477 packages、SELinux permissive起動まで通ったから、John Smithはもう公式profile選択の範囲を一段越えてる。 モブ名なのに一番特殊構成になってるのが酷いw

注意点 この投稿はSoruesOnlyです♡

John Smithですわ草。当初寄り随分構成変更してるけど果たして

ちなみに、AtomicGlibcVersionは保管中↓ https://www.reddit.com/r/Gentoo/s/IoBgEQXioC

補足しとく。 以下バイナリ派用

バイナリ前提でもProfile Set自体はかなり重要。ただし、Profileが「実際にその条件で再ビルドする設計図」から「どの完成済みbinpkgが適合するかを判定する制約」に近づく感じやな。 たとえば今回のJohnで musl ↓ musl/hardened/selinux へprofileを変えると、source運用では profile変更 → USE/defaults/@system/maskが変化 → 71 packages差分 → その条件で再build になる。 でもbinpkg前提だと、 profile変更 → Portage上の要求条件は変わる → そのUSE/profile条件に合うbinpkgを探す になる。 ここで配布側に対応binpkgがあればそのまま交換できるけど、無ければ source buildへ落ちる か、--usepkgonly 的な運用なら 該当binaryが無いので進めない になる。 つまりProfileは依然として、 @system USE defaults package.mask / unmask package.use ABI/CHOST周辺 hardened / SELinux方針 を決めるから重要。でも そのProfileを実体化する能力を自分のcompilerが持つのか、binhostが持つのか が違う。 source Gentooなら、 Profile = OSの製造仕様 にかなり近い。 binary Gentooなら、 Profile = 欲しい完成品の互換条件・選択条件 に寄る。 だから今回の musl/hardened/selinux みたいな大きなProfile変更は、source前提だと「同じRootをその場で別仕様へ再生成」できるけど、binpkg前提だと配布側がそのProfile向けのbinary集合を用意してるかにかなり左右される。 この差は結構大きい。Profileそのものは残るけど、Profile変更の自由度を誰が持ってるかが、自分→binpkg供給側へ移る感じ。


r/Gentoo • • 1d ago

Meme beautiful AI-generated wallpapers

Thumbnail
gallery
0 Upvotes

r/Gentoo • • 1d ago

News my gpu broke today

0 Upvotes

Apparently its not wise to plug a display port in and out while your pc is on. I'm really glad i use gentoo honestly, troubleshooting was so easy. atleast i have my make.conf to make things lighter on my integrated gpu🤧


r/Gentoo • • 1d ago

Support Can i fix weird /efi with no pain

1 Upvotes

I have a weird efi location, its at /mnt/gentoo/boot/efi. Is there an easy way to replace it with something like /boot/efi


r/Gentoo • • 1d ago

Discussion I am in such a dillema

0 Upvotes

I talked around in the debian community, and i fell like i can only find 3 things why i should stay on gentoo. im too lazy, the logo is peak and the system is super lean. but overall i feel like debian might be the better choice. i can still debloat it and stuff, and do i rlly need all the hassles and the rolling release of gentoo ( i use ~amd64 so its rolling ). what should i really do.


r/Gentoo • • 3d ago

Discussion Do you have to compile all these packages in order to get steam working ?

Post image
78 Upvotes

Can steam work without some packages of the list in the Gentoo wiki ? Have you tried it, and if yes, do recent games not requiring 32libs work ?

https://wiki.gentoo.org/wiki/Steam


r/Gentoo • • 3d ago

Story This OS is awesome!

36 Upvotes

I recently moved to daily driving Gentoo from using openSUSE for a couple of years because I wasn't keen on the codec/NVIDIA solution, and I have to say my experience so far with Gentoo has been awesome!

The one thing I have left to do (that I'm putting off a bit) is SELinux, I have it set up in Permissive but actually getting it enforcing seems a bit overwhelming. I'm also trialling Arch Linux with AppArmor but I think I prefer compiling things locally, I know it doesn't make a huge difference but I like all the optimizations available.

But Gentoo has taught me a lot about Linux so far, I learned how to chroot, which makes me confident enough to fix my system should something break horrifically, and I set up BTRFS with snapper on a previous install which helped me learn about LUKS2, setting up secure boot, and subvolumes. I decided to use it on my laptop as well and I used my home server to build a systemd-nspawn binhost with caddy so I don't have to compile everything locally, which runs overnight so I can sync up whenever I need.

I like to run KDE Plasma with tuigreet instead of Plasma-Login-Manager/SDDM, and setting that up was very easy. I noticed that the ebuild is out of date, and I found a comprehensive wiki page showing how to bump versions in a local repo, which I got working (but I'm getting compile errors because the Cargo list changed, so I need to work out how to do that later) - Being able to do that is really cool.

I really hope I can get the SELinux situation sorted out (I'm running unconfined / MCS so nothing *too* hardcore) because I'd love to stick with this OS as it ticks all of my boxes (Aside from a strong MAC out of the box). One other thing I wanted to investigate was updating in A/B partitions and switching them using btrfs set-default if the build exits successfully, I think snapshots are a bit overkill in most situations and having a last good boot is all I'd really need.


r/Gentoo • • 4d ago

Discussion (plz explain meme) what's wrong with KDE?

Post image
406 Upvotes

just in the future, when I will really learn Linux through books and YT tutorials, I'm thinking about using Gentoo, NixOS, Linux from Scratch or Void Linux(at the moment I need an OS, which "just works", and I find Debian-based ones the best for that). Speaking of DE, I really like KDE, bcz it gives way more options to do anything I want, and I'd like to install KDE on Gentoo too, bcz why not? After seeing this meme and how many likes it got, now I wonder if I should rethink my decision or not. Just if not KDE, then I'd choose Hyprland, bcz GNOME is ugly to me.

So, shortly: what's wrong with KDE+Gentoo?


r/Gentoo • • 3d ago

Screenshot God of War on Gentoo :)

Post image
43 Upvotes

Yes, I know the CPU temp is high


r/Gentoo • • 3d ago

Discussion Fun projects to set up on Gentoo

13 Upvotes

Hello everybody! I've been running Gentoo for a little while now, open-rc system with Niri as WM. So far things are running smoothly, there are few to none package blockers, I've set up some cron jobs for easy maintenance and untangled some knots here and there with dbus-run-session and such.

What I want to know is if anyone have got any fun suggestions for things to set up on Gentoo? I realize this is sort of vague and that's unfortunately inherent to my reason for even asking, as had I known what to aim for I would have been on the job already as opposed to making a thread on here.

Basically I'm wondering if there are things that are handled automatically on other distros (I use Ubuntu Studio and Debian on some other laptops I have) that require more manual tinkering here to set up. Sort of looking for a digital "home improvement" project if you will. Or just other fun projects to set up.

I'm grateful for any and all suggestions as there aren't really any "wrong" answers here. Also feel free to derail the thread if you discover something interesting to talk about.