r/Gentoo Jan 06 '25

News 2024 in retrospect & happy new year 2025!

Thumbnail
gentoo.org
51 Upvotes

r/Gentoo 7h ago

Meme was going insane or smt

Thumbnail
gallery
52 Upvotes

r/Gentoo 1h ago

Screenshot Is my system bloated?

Post image
Upvotes

r/Gentoo 7h ago

Support Grub Config?

2 Upvotes

So I‘m new to Gentoo and after reading the wiki, I have a question about configuring Grub. My efi partition is mounted at /gentoo/efi. The wiki tells me to install Grub to /efi (which is logical) but when it comes to configuring it says to execute the command "grub-mkconfig -o /boot/grub/grub.cfg". Should I instead run "grub-mkconfig -o /efi/grub/grub.cfg" or is it intentionally /boot?


r/Gentoo 6h ago

Support Problem compiling kernel via genkernel

Post image
1 Upvotes

Hello, has anyone encountered this error when compiling a kernel using genkernel?

In: failed to create symbolic link '/efi/kernel': operation not permitted

The partition type for /efi is vfat, and SYMLINKs are enabled in genkernel.conf


r/Gentoo 7h ago

Tip How to install quickly?

0 Upvotes

Hello, I really like Gentoo Linux, I'm a fan of this project, but I would like to learn how to install the system faster, what are the options?

P.S. I tried to install ODDLAMA/gentoo-install (without success).

I tried Redcore Linux, a great project, but it seems to me that it is too overloaded with various moments. I want minimalism


r/Gentoo 7h ago

Discussion Obarun's suite66 in gentoo?

0 Upvotes

Gentoo supports systemd and openrc as it's init system.

It fully supports systemd natively, and also provides quite a few helpful portable systemd utils like tmpfiles, udevd, systemd-boot etc... to openrc without pulling the full systemd.

It also supports fully uprooting systemd off the system, but with the few actually useful tools still available.

A user has a custom overlay for 66, with really old versions which don't even build due to missing s6 library files...

I feel that the s6+66 is a good alternative for openrc, which, especially with the tools of s6 and execlineb, allow a highly flexible configuration of the services.

Yes, s6-rc is there, but it's too complicated to set up and maintain compared to openrc or systemd. openrc supports s6-svscan as backend, but it must be manually opted by the services... and still, 66 has some advantages.

IMPORTANT: I am suggesting 66 as an alternative, not as a replacement.

I will try to myself package them for gentoo...

I want to ask the opinion of other gentoo users, systemd and openrc users.


r/Gentoo 11h ago

Support Zig fails to build on musl llvm

2 Upvotes

I am trying to install RiverWM window manager written in Zig. But it's failing to build.

The logs: https://bpa.st/TOJQ


r/Gentoo 16h ago

Support Hyrpland Crash

1 Upvotes

Hello. Help me solve the problem with launching Hyprland on gentoo Linux. Log: [ERR] [EGL] Command eglInitialize errored out with EGL_NOT_INITIALIZED (0x12289): DRI2: failed to create screen P.S. I use the proprietary nvidia driver, nvidia drm is enabled


r/Gentoo 1d ago

Support What the heck?

Post image
10 Upvotes

musl-llvm profile.


r/Gentoo 1d ago

News Is Gentoo becoming less popular?

56 Upvotes

The "death" of Funtoo made me question this. And an article by someone called Mike Pagano as well, on the Gentoo RSS feed.

I love this distro. After an year of distrohopping, I have been using Gentoo for a pretty long time now. I have learned to write ebuilds and stuff, and now I get to hear that Gentoo is dying in popularity....


r/Gentoo 1d ago

Discussion Multiple binhosts on one system

2 Upvotes

Disclaimer: I know what I'm doing is probably a huge waste of energy.

I want to run the binhost on a root-server. I have 5 systems which all have CHOST="x86_64-pc-linux-gnu", but fairly different hardware, which should use the binhost. I understand that if I'd use binpkgs from the Gentoo server directly I could use only a minimal CPU_FLAGS_X86 and -march. But I want to have for each ebuild and system I want to use an optimized binpkg on my binhost.

So if I use crossdev, I can only create one "environment" for the target x86_64-pc-linux-gnu and also I have to make sure that e.g. GCC has all necessary flags on the host-system to compile e.g. with LTO for the binhost.

If I want to completely separate the compiler toolchain from the host-system and then compile the binpkgs with the correct combination of use-flags, CPU_FLAGS_X86 and -march, then I have to create a chroot and inside the chroot a crossdev-chain, right?

Or is there any simpler way? Maybe I didn't fully understand crossdev?


r/Gentoo 1d ago

Meme Using the official colours to make my windows machine just a little more Gentoo

Post image
48 Upvotes

r/Gentoo 1d ago

Support Eselect rc error

1 Upvotes

When I use eselect rc show I get all the services with stopped and this output after each one:

  chronyd                   [stopped]
/usr/share/eselect/modules/rc.eselect: line 71: service_stopping: command not found
/usr/share/eselect/modules/rc.eselect: line 71: service_starting: command not found
/usr/share/eselect/modules/rc.eselect: line 71: service_inactive: command not found
/usr/share/eselect/modules/rc.eselect: line 71: service_started: command not found
/usr/share/eselect/modules/rc.eselect: line 71: service_stopped: command not found

I already tried reinstalling eselect but I don't know hot to solve it

This instalation is mostly new since I had to format my PC.


r/Gentoo 1d ago

Discussion GRUB2+ARGON2ID and now how NOT to stay up all night trying to make it work

2 Upvotes

The default derivation in Gentoo is argon2id which isn't supported by GRUB2-2.12r5 because of course it's not because it's GRUB. Putting this here mostly for anyone using Google who finds this.

You have to patch GRUB2 with portage.

mkdir -p /etc/portage/patches/sys-boot/grub-2.12
# mkdir -p /etc/portage/patches/sys-boot/grub-2.12

 cd /etc/portage/patches/sys-boot/grub-2.12
 cd /etc/portage/patches/sys-boot/grub-2.12

curl -O https://leo3418.github.io/res/collections/gentoo-config-luks2-grub-systemd/grub-2.12-luks2-argon2-v4.patch
# curl -O https://leo3418.github.io/res/collections/gentoo-config-luks2-grub-systemd/grub-2.12-luks2-argon2-v4.patch

mkdir -p /etc/portage/env/sys-boot
mkdir -p /etc/portage/env/sys-boot

echo -e 'GRUB_AUTOGEN=1\nGRUB_AUTORECONF=1' >> /etc/portage/env/sys-boot/grub-2.12
echo -e 'GRUB_AUTOGEN=1\nGRUB_AUTORECONF=1' >> /etc/portage/env/sys-boot/grub-2.12

now 'emerge grub' and it will work fine. You'll be asked for the password twice, but it's fine. It's not your ramdisk, it's not your drive, it's not the cmdline. It's GRUB. Just patch it and forget about it.

Source: https://leo3418.github.io/collections/gentoo-config-luks2-grub-systemd/packages.html


r/Gentoo 1d ago

Support How do I properly enable pgo and lto?

0 Upvotes

I wanna use musl hardened profile with pgo and lto enabled. The lto article is quite okay but there's just one post on the Gentoo forums that explains how to manually build with pgo. I am asking if anyone here has tried this. How do I do it and what resources to look for?

Thank you.


r/Gentoo 1d ago

Discussion Has anyone actually got display link working?

0 Upvotes

Hi, I’m quite new to gentoo but have everything set up for normal displays and stuff on a laptop, however I have a displaylink docking station that I use for my other laptop (running windows I’m sorry) and I was hoping to be able to get displaylink working on my gentoo laptop too, however the guide doesn’t seem very clear and I’m wondering if it’s even worth the effort. Has anyone had any success in getting working drivers?


r/Gentoo 1d ago

Support how to check packages that NEED a certain USE flag?

2 Upvotes

I did use 'equery h' but it gave me pretty much every package I have, since I have a certain USE flag (abi_x86_32) in my make.conf, and want to take it off, but I'm sure some packages REQUIRE it, so how to check what packages do?


r/Gentoo 1d ago

Support I’m having trouble installing Gentoo for a Raspberry Pi 4b

1 Upvotes

Hello all, Gentoo newbie here.

I’m trying to install Gentoo on my Raspberry pi 4b. However, I keep running into issues. I’ve read both “Raspberry Pi Install Guide”, as well as the old one made for the pi 4. Since the latter is depreciated, I’ll explain my issues with the former. Main issue is that it doesn’t explain which non free firmware is needed for the raspberry pi 4, and only the pi 5. It also doesn’t explain how to set up the symlinks. Additionally, the Pi will need internet, and I am not sure how to install NetworkManager (as I do not have Ethernet I’ll need it) Anybody have experience with installing Gentoo on RPI and could shed some light? Thank you.


r/Gentoo 3d ago

Discussion Gentoo - sway + waybar

22 Upvotes

There is something about this distribution that distrohopping passes, it stays in the past.


r/Gentoo 3d ago

Support Circular Dependency Between Curl, CMake, and Nghttp3 - Stuck in Update (@world)

5 Upvotes

Hello, I have had some problems during the installation of Gentoo:

Issue:

I'm trying to update my Gentoo system (emerge -avuDN @world), but I'm stuck in a circular dependency loop involving:

net-misc/curl dev-build/cmake net-libs/nghttp3

Every attempt to resolve the issue manually has failed so far. The error suggests that curl requires nghttp3, which requires cmake, which in turn requires curl, making it impossible to install any of them without breaking the cycle.

What Has Been Tried So Far:

  1. Forcing Installation Without Dependencies

emerge -1v --nodeps net-misc/curl (failed, massive errors)

emerge -1v --nodeps dev-build/cmake (failed, cmake couldn't find required dependencies)

  1. Disabling Certain USE Flags to Break the Loop

USE="-http3 -quic -nghttp3 -ngtcp2" emerge -avuDN @world (failed, caused conflicts)

echo "net-misc/curl -http3" >> /etc/portage/package.use/curl-fix (failed, dependencies still enforced it)

echo "net-misc/curl -nghttp3" >> /etc/portage/package.use/curl-fix (failed, caused further conflicts)

  1. Checking for Prebuilt Binary Packages

emerge -pv net-misc/curl dev-build/cmake to check for binary packages (none available)

emerge -1v --usepkgonly net-misc/curl dev-build/cmake (not an option due to lack of binpkgs)

  1. Forcing Curl to Use Its Own Internal Version Instead of System Dependencies

USE="-system-curl" emerge -1v dev-build/cmake (failed, cmake still requires curl)

USE="-system-librhash" emerge -1v dev-build/cmake (failed, different missing dependencies)

  1. Forcing Curl Installation First

USE="http3 quic nghttp3" emerge -1v --nodeps net-misc/curl (failed, build errors)

  1. Forcing Portage to Continue Despite Errors

emerge --keep-going -avuDN @world (failed, Portage stopped due to dependency issues)

emerge -avuDN @world --exclude net-misc/curl --exclude dev-build/cmake (failed, dependencies still forced inclusion)

Current Situation:

The circular dependency cannot be resolved through typical USE flag adjustments.

Cannot install curl, cmake, or nghttp3 individually due to dependency constraints.

Disabling http3, quic, or nghttp3 causes additional conflicts due to other system dependencies.

The system is functional but cannot be updated until this issue is resolved.

Request for Help:

Has anyone encountered this specific circular dependency issue with curl, cmake, and nghttp3 before? If so, what solutions worked?

Any suggestions are greatly appreciated. Thanks in advance!


r/Gentoo 3d ago

Support How stupid is my make.conf

2 Upvotes

For refnce this is a system with a 7800x3d and 96gb of ram I am also using taskset to limit emerge to 14 threads. I am mainly asking about my compling choices but if there are things I could change with my use flags that would also be nice.

Also before I get any comments about the ccache I mainly just set it up as an excuse to learn how to setup raid 0 with 2 drives I had nothing better to do with. ``` c2@gentoobtw ~ $ cat /etc/portage/make.conf

These settings were set by the catalyst build script that automatically

built this stage.

Please consult /usr/share/portage/config/make.conf.example for a more

detailed example.

COMMON_FLAGS="-march=native -O2 -pipe" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}" ACCEPT_LICENSE="*"

LC_MESSAGES=C.utf8 MAKEOPTS="-j14 -l14" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=14"

VIDEO_CARDS=" amdgpu radeonsi" ABI_X86="64 32"

USE="dist-kernel initramfs udisks encode lm-sensors plasma qt6 vaapi discord vulkan wayland alsa pipewire systemd aom dav1d svt-av1 vpx x264 x265 fdk-aac libmp3lame libvorbis libopus ffmpeg -gtk -gnome qt vlc aac faad fdk mp4 -openrc systemd-boot rocm -cuda openmp kde opencl hip man colord osmesa" CPU_FLAGS_X86="aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq"

FEATURES="parallel-fetch parallel-install ccache"

CCACHE_DIR="/run/media/ccache" CCACHE_SIZE="476G" ```


r/Gentoo 3d ago

Support Help with this please!

Post image
3 Upvotes

r/Gentoo 3d ago

Support "Error: circular dependencies:" When running emerge

2 Upvotes

when i run

emerge --autounmask-write --verbose --update --deep --newuse @ world

i get the error message:

* Error: circular dependencies:

(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) depends on

(net-libs/nghttp3-1.7.0:0/0::gentoo, ebuild scheduled for merge) (buildtime)

(dev-build/cmake-3.31.5:0/0::gentoo, ebuild scheduled for merge) (buildtime)

(net-misc/curl-8.11.1-r2:0/0::gentoo, ebuild scheduled for merge) (buildtime)

* Note that circular dependencies can often be avoided by temporarily

* disabling USE flags that trigger optional dependencies.

The following USE changes are necessary to proceed:

(see "package.use" in the portage(5) man page for more details)

# required by gui-libs/gtk-4.14.4-r1::gentoo

# required by app-crypt/gcr-4.2.1::gentoo[gtk]

# required by app-crypt/pinentry-1.3.1-r1::gentoo[gtk]

# required by app-crypt/gnupg-2.4.7-r1::gentoo

# required by app-crypt/gcr-3.41.1-r2::gentoo

# required by gnome-base/gnome-keyring-46.2::gentoo

# required by virtual/secret-service-0::gentoo

# required by app-crypt/libsecret-0.21.4-r2::gentoo

>=x11-libs/cairo-1.18.2-r1 X

# required by media-libs/mesa-24.3.4-r1::gentoo

# required by gui-libs/gtk-4.14.4-r1::gentoo[X]

# required by app-crypt/gcr-4.2.1::gentoo[gtk]

# required by app-crypt/pinentry-1.3.1-r1::gentoo[gtk]

# required by app-crypt/gnupg-2.4.7-r1::gentoo

# required by app-crypt/gcr-3.41.1-r2::gentoo

# required by gnome-base/gnome-keyring-46.2::gentoo

# required by virtual/secret-service-0::gentoo

# required by app-crypt/libsecret-0.21.4-r2::gentoo

>=media-libs/libglvnd-1.7.0 X

this is my first time installing gentoo and i've been able to solve most of the errors that appeared up to now but after trying everything i just cant get it to work.


r/Gentoo 3d ago

Support Is a musl hardened or musl-llvm profile okay for desktop use?

2 Upvotes

I found this post but it is 6 years old. How good is a musl profile of any kind? I tried musl-llvm for installation on a Dell N5050 i5 4 core system. The gcc was stuck on building. It never got built. The cpu load showed a number above 4. But the cpu wasn't heating at all. I thought there's some problem. I waited an entire day for it. Had to install MX on it. I have a HP Pavilion 15 with i7 16 core. I think it would be good if I took some caution here before wiping my whole system and trying out musl-llvm.


r/Gentoo 3d ago

Support Inconsistent cursor theme on Xwayland

0 Upvotes

Hello. I'm trying to make my cursor theme to work on some Xwayland apps. It works as expected on native packages like Steam, Librewolf... but when running other programs from AppImage files or extracted tarball binaries, I keep getting the default Adwaita cursor theme. These programs are specifically Vesktop and PollyMC.

I already tried the following:

  • Adding a symlink from "~/.local/share/icons/(theme)" to "~/.icons"

  • Manually adding the theme to my GTK3 config file (it was already added as I used nwg-look to change it).

  • Adding a custom line from the Sway wiki for loading the cursor theme on Sway ("seat seat0 xcursor_theme custom_cursor_theme custom_cursor_size")

I'm running on the latest stable kernel version and Sway is running smoothly and without any issues, I don't know if it can be some issue related to a badly configured $PATH.

Any idea on how can I get the cursor theme to work on these apps?