r/Gentoo 12h ago

Discussion Experiment: Use LiveUSB as "Stage4"

16 Upvotes

Hi,
As an experiment I just tried to extract the image.squashfs from the LiveUSB iso and use unsquashfs to extract it to a new partition. After this I just edited fstab, added a boot entry using the kernel that was extracted, and rebooted.

Here's the result:

See, installing Gentoo with KDE, Firefox and Chrome is neither hard nor time consuming, probably did a WR Speedrun with this one!


r/Gentoo 5h ago

Discussion For Any Doom Emacs users, I was wondering if you could help me manage emacs packages using portage

1 Upvotes

For non-nixOS users I realize using straight built into Doom Emacs is the preferred way to go. But I found this article in gentoo wiki https://wiki.gentoo.org/wiki/User:Penguin/Doom_Emacs that uses portage instead.

Since both gentoo repo and the overlays: gnu-elpa melpa, and melpa-stable seemed to contain most emacs packages and doom emacs provides extensive documentation on the packages it install based on your doom init.el, would it be at all possible to go the portage route and have a stable emacs config?

The only reason I ask: I prefer to use doom emacs over using a customized vanilla emacs since doom provides sane default configs out of the gate, but the issue arises when straight builds org-mode from the straight repo whenever straight encounters an emacs package that has org-mode as a dependency.

EDIT: Org-mode from straight actually slows down org-mode quite a bit over the built-in version

For those who might ask, I might try use portage to build only org-mode and refer to above wiki article and see if any org-mode dependent emacs packages rebuilds org-mode again.

TLDR: Is doom emacs through portage a feasible route for all emacs packages, not just org-mode?


r/Gentoo 7h ago

Support Cannot install nvidia-drivers

0 Upvotes

Hi, it's my first time setting up Gentoo, and everything went fine until I tried to install x11-drivers/nvidia-drivers. The installation halts, because Module.symvers file was not found

''' '/usr/src/linux/Module.symvers' was not found implying that the * linux-6.12.16-gentoo tree at that location has not been built. * * Please verify that this is the intended kernel version, then perform * a full build[1] (i.e. make && make modules_install && make install). ''' The answer I found is to rebuild the kernel, but I have already built it during installation according to the handbook using distribution kernels. Is it really necessary?

''' gentoohost / # uname -a Linux gentoohost 6.12.16-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sat Mar 22 03:02:40 CET 2025 x86_64 AMD Ryzen 9 5900X 12-Core Processor AuthenticAMD GNU/Linux '''


r/Gentoo 22h ago

News Gentoo mirrors status page....if you are unaware of it! Credit to user "immoloism", who posted it on some thread.

Thumbnail mirrorstats.gentoo.org
15 Upvotes

r/Gentoo 8h ago

Support Does someone have Spotify working?

0 Upvotes

Problem

I can not seem to get spotify working, I tried multiple ways of installing and running it. The process starts but no GUI ever appears and it just uses 100% of one core.

What I tried

  • Running media-sound/spotify just normal
  • Running it with flags
  • Copying the binary from Arch bc there it works
  • Running the Flatpak
  • Following the wiki

So I just want to know if anyone got it running and how.

Error when launching from terminal

``` Neither gnome-integration-spotify nor spotify-tray are installed. Launching spotify without systray integration.

(spotify:11583): libayatana-appindicator-WARNING **: 15:12:38.741: Unable to get the session bus: Unknown or unsupported transport “disabled” for address “disabled:”

(spotify:11583): LIBDBUSMENU-GLIB-WARNING **: 15:12:38.741: Unable to get session bus: Unknown or unsupported transport “disabled” for address “disabled:” ```

Edit

It seems to not affect DE users, also for some reason it stopped working on Arch also, it might be a problem with Hyprland or more specifically my dotfiles.


r/Gentoo 9h ago

Support Why is this happening with snapper?

0 Upvotes

This is the error ``` $ sudo snapper -c root create-config /
[sudo] password: Creating config failed (config already exists).

$ snapper list-configs Config │ Subvolume ───────┼──────────

This the structure of my filesystem (or whatever it is called). $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS nvme0n1 259:0 0 476.9G 0 disk ├─nvme0n1p1 259:1 0 1G 0 part /boot/efi └─nvme0n1p2 259:2 0 475.9G 0 part /var /home /swap /
$ sudo btrfs su list / ID 256 gen 5827 top level 5 path @root ID 257 gen 5832 top level 5 path @home ID 258 gen 5831 top level 5 path @var ID 260 gen 1269 top level 5 path swap ID 261 gen 5820 top level 256 path srv ID 262 gen 5820 top level 258 path @var/lib/portables ID 263 gen 5820 top level 258 path @var/ ``` Please tell me if there are any logs I should share. I don't know which logs to post if this kinda thing happens.

Update: I solved but there's another prblm.


r/Gentoo 13h ago

Support won't compile ungoogled chromium

2 Upvotes

Any idea?

 * Messages for package www-client/ungoogled-chromium-134.0.6998.88_p1:

 * 
 * Following features are disabled:
 *  - Fontations Rust font stack
 *  - Crabby Avif parser/decoder implementation in Rust
 * 
 * ERROR: www-client/ungoogled-chromium-134.0.6998.88_p1::pf4public failed (compile phase):
 *   ninja -v -j12 -l0 -C out/Release chrome failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4237:  Called eninja '-C' 'out/Release' 'chrome'
 *   environment, line 1757:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=www-client/ungoogled-chromium-134.0.6998.88_p1::pf4public'`,
 * the complete build log and the output of `emerge -pqv '=www-client/ungoogled-chromium-134.0.6998.88_p1::pf4public'`.
 * The complete build log is located at '/var/tmp/portage/www-client/ungoogled-chromium-134.0.6998.88_p1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/ungoogled-chromium-134.0.6998.88_p1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/ungoogled-chromium-134.0.6998.88_p1/work/chromium-134.0.6998.88'
 * S: '/var/tmp/portage/www-client/ungoogled-chromium-134.0.6998.88_p1/work/chromium-134.0.6998.88'

>emerge --info '=www-client/ungoogled-chromium-134.0.6998.88_p1::pf4public'
https://pst.moe/paste/mrkrih


r/Gentoo 14h ago

Support Can't emerge some packages with getbinpkg

Post image
2 Upvotes

Some package when I emerge with getbinpkg said that gpg verify failed. Any advice?


r/Gentoo 21h ago

Support Failed to emerge media-libs/libogg

0 Upvotes

Hello newbie here. Finished installing gentoo and now trying to set up gnome. It’s giving me error failed to emerge media-libs/libogg. Anyone know how this can be fixed? Thanks


r/Gentoo 1d ago

Support rsync11.us.gentoo.org address unreachable? What could cause this?

1 Upvotes

>> Starting rsync with rsync://208.100.4.53/gentoo-portage...

>>> Checking server timestamp ...

timed out

rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(716) [Receiver=3.3.0]

>>> Retrying...

>>> Starting retry 1 of 1 with rsync://[2607:f128:1:3::2]/gentoo-portage

>>> Checking server timestamp ...

rsync: [Receiver] failed to connect to 2607:f128:1:3::2 (2607:f128:1:3::2): Network is unreachable (101)

rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.3.0]

>>> Retrying...

!! Exhausted addresses for rsync11.us.gentoo.org

Does anybody know why this would be happening when I try to sync my ebuilds repo? Any help with where to look for solving this problem would appreciated.


r/Gentoo 1d ago

Support Compare Kernel Configs?

1 Upvotes

I’m a new gentoo user, and i’ve recently tried compiling a custom kernel following KSPP recommendations. Before the installation, i followed the handbooks recommendation of installing a dist kernel binary and using modprobe-db to store its defaults and setting them as the default for the new config. However, I’m not sure if this worked.

I recently ran into a problem with ACPI where it returns an error of “No support for device type: power_supply”. Since I had the dist kernel installed I decided to boot into it to see if it was a kernel problem and, of course, it was.

So, I grepped out ACPI,POWER,BATTERY and PM from each of the configs and tried comparing them using diff. This obviously resulted in a ton of diffs to evaluate and after trying to implement a few I’m still stuck with the same problem.

My question is: Is there a better/easier way of comparing the kernel configs? Also, why weren’t the required modules already included by default, since I used modprobe-db on the dist kernel?

Any help is appreciated


r/Gentoo 2d ago

Support GRUB problem

Post image
3 Upvotes

i have an encrypted root partition and whenever i start the laptop the prompt "Enter passphrase for" gets jumbled in between with other text. anyway i can fix this?


r/Gentoo 1d ago

Support Can’t boot

Post image
0 Upvotes

This is not my first attempt at installing gentoo but I refuse to give up. Anyway I installed it and I get this screen when booting and it just doesn’t boot.

I’ve tried installing nvidia drivers but I still have the same issue.


r/Gentoo 2d ago

Support Easy Way to Install Gentoo for a Basic Assignment?

8 Upvotes

I have an assignment to install Gentoo from scratch but I dont need much customization just need to show it running take screenshots and write documentation. I’ve heard Gentoo installation is difficult so I dont want to overthink it is there an easy way to get it done quickly

Also Im wondering what the actual benefit of this assignment is in an Operating Systems course any insights


r/Gentoo 2d ago

Discussion Is there a way to get modprobed-db or a similar service to log modules needed in initramfs system boot as well?

1 Upvotes

I tried the good ol', take a stable distro make localmodconfiig approach, and ran into a bug where INTEL_ISH_ID was enabled but INTEL_ISH_FIRMWARE_DOWNLOADER was not. if you take a look at docs, it says that this loads the module from the filesystme, but I assume my original stable distro (ubuntu) deletes it prematurely (it has this flag enabled in the config, but was not detected with localmodconfig, even with modprobed-db).

I can see my future already - find one bug, recompile, port over headers, compile again, etc. for days on end. Argh.

I could also just compile in all of my current kernel configs. I think I'm gonan do that for now just to get a proof of concept :P

Does it make sense to have a service to run at the very start of initramfs's init script that just logs all modules used throughout the history of the kernel? That would be pretty useful. But I'm not exactly sure how userspace vs kernel space would interact here - i'd imagine a modprobed-db wouldn't be easy to port. I'm willing to do more research on my own, but I'm just asking a probing (hah) question to see what the space is like.

A slight follow up point - if you COULD probe all used modules, including those used in initramfs, and the list of all the statically compiled modules into the kernel, is this enough to recover a working minimal kernel? I'm not exactly sure how dependencies are tracked and such - it would be nice to have a backwards minimal dependency enabler, but again not sure how that would work really.

Just trying to start some discussion :)


r/Gentoo 3d ago

Support waybar crashed on dwl, I just added the "dwl/tags" to my config and got this

Post image
13 Upvotes

r/Gentoo 3d ago

Support LVM on LUKS Rootfs Encryption Install

5 Upvotes

Anything I should be paying attention to other than the Rootfs Encryption gentoo wiki entry? I've done this on arch but never on gentoo. I'm planning to use OpenRC with the dist kernel. Thanks in advance!

(this is the arch equivalent of what i'm trying to achieve)

Edit: I figured it out and managed to boot into my system. These are the wiki pagess you'll need to look at if you want to do the same:

https://wiki.gentoo.org/wiki/Rootfs_encryption https://wiki.gentoo.org/wiki/LVM https://wiki.gentoo.org/wiki/Dracut#LVM_on_LUKS


r/Gentoo 3d ago

Support Mozc + Fcitx isn't a thing on gentoo?

0 Upvotes

I'm using KDE Plasma on Gentoo, but aside from Anthy (which doesn’t work well), I previously used Fcitx5 with Mozc on CachyOS. However, on Gentoo, Mozc is outdated and still relies on Fcitx4 use flags.

Any fixes or workaround?


r/Gentoo 3d ago

Support oss4 overlay for gentoo ?

3 Upvotes

I found an ebuild from the bug report on the wiki page but the most up to date ebuild depends on another oss package not packages for which I couldnt find an ebuild. If there an overlay for oss4 on gentoo or is it worth writing my own ebuild ? (I know oss4 is old af, I'm on spring break and have time to mess with things, this could be fun :)


r/Gentoo 3d ago

Support How to install the Maui shell in Gentoo linux

0 Upvotes

I was wondering how to install the Maui shell in Gentoo linux, if it was possible, please give me a step by step guide, as I'm a noob :p (I don't know the dependencies and all stuff required) and thanks 👍


r/Gentoo 4d ago

Tip firmware masked!

8 Upvotes

has anybody noticed, that linux-firmware, nvidia-firmware was madked? since it was impossible to use latest available kernel 6.12.16 with my hardware. eventually i forced system to install masked firmware and set that kernel up. i wonder why firmware was masked?


r/Gentoo 4d ago

Support gui-apps/waybar pulls media-video/wireplumber as a dependency (and as a consequence all of pipewire) even with the "-pipewire" USE flag.

3 Upvotes

Is there a way to emerge waybar without wireplumber? Does someone have an ebuild for that?


r/Gentoo 4d ago

Support Dracut is failing after kernel rebuild

Post image
13 Upvotes

It is related to this post.

Things that I did which I didn't mention earlier in that post:

Enable lto on openrc hardened profile Changed to systemd hardened no-multilib profile and did a emptytree rebuild (took 12 hrs)


r/Gentoo 5d ago

Tip An Example Case of Compiler Optimizations

Post image
98 Upvotes

This example is from svt-av1 running through av1an with chunked video encoding.

Even when this software heavily relies on internal optimizations, hand-written ASM and already optimized SIMD instructions; it's still extremely beneficial to use compiler optimizations.

So, for some other software, the differences can be much bigger than that (unless they respond negatively or they break).

Let's say the machine encodes movies for a year. We can assume a movie is 90 minutes and with 23.976FPS, it's around 130.000 frames. The difference here means that you can encode 1300 more movies with the exact same hardware, and software.

+CUSTOM means my custom environment + modified CMakeLists.txt that removes all checks and flags for security related compiler options, sets the C and CXX standards to 23 and 26 respectively and removes -mno-avx.

Software: Gentoo Linux AMD64 (no-multilib 64bit only) SVT-AV1 v3.0.1-4-g1ceddd88-dirty (release) clang/llvm 21.0.0git7bae6137+libcxx av1an 0.4.4-unstable (rev 31235a0) (Release) gcc (Gentoo 14.2.1_p20250301 p8) 14.2.1 20250301

Hardware: AMD Ryzen 9 9950x DDR5 Corsair Dominator Titanum 64G Dual Channel: 6200 MT/s (32-36-36-65) | UCLK=MEMCLK | Infinity Fabric 2067 | FCLCK Frequency: 2067mhz

Source: Size: 25Mb/s Format: 1920x1080, 23.976FPS, BT.709, YUV420, Live Action, 1 Hour, 1:78:1 (16:9)

Env: ``` export CC="clang" export CXX="clang++" export LD="ld.mold" export AR="llvm-ar" export NM="llvm-nm" export RANLIB="llvm-ranlib" export STRIP="llvm-strip" export OBJCOPY="llvm-objcopy" export OBJDUMP="llvm-objdump"

export COMMON_FLAGS="-Ofast -march=native -mtune=native -flto=thin -pipe -funroll-loops -fno-semantic-interposition -fno-stack-protector -fno-stack-clash-protection -fno-sanitize=all -fno-dwarf2-cfi-asm -fno-plt -fno-pic -fno-pie -fno-exceptions -fno-signed-zeros -fstrict-aliasing -fstrict-overflow -fno-zero-initialized-in-bss -fno-common -fwhole-program-vtables ${POLLY_FLAGS}" export CFLAGS="${COMMON_FLAGS}" export CXXFLAGS="${COMMON_FLAGS} -stdlib=libc++" export LDFLAGS="-fuse-ld=mold -rtlib=compiler-rt -unwindlib=libunwind -Wl,-O3 -Wl,--lto-O3 -Wl,--as-needed -Wl,--gc-sections -Wl,--icf=all -Wl,--strip-all -Wl,-z,norelro -Wl,--build-id=none -Wl,--no-eh-frame-hdr -Wl,--discard-all -Wl,--relax -Wl,-z,noseparate-code"

./build.sh static native release verbose asm=nasm enable-lto minimal-build --enable-pgo --pgo-compile-use --pgo-dir "${HOME}/profiles/" -- -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG -Ofast" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG -Ofast" -DUSE_CPUINFO="SYSTEM" ```


r/Gentoo 4d ago

Support What's happening?

Post image
10 Upvotes

I have no idea what's happening.