r/Gentoo

Wayland to X toggle
▲ 7 r/Gentoo

Wayland to X toggle

SOLVED: i had “environment { DISPLAY “:0” }” set in my niri config. Thanks everybody for the help!

Hello everyone!

Background: i’m trying to run ckan (a mod manager for kerbal space program) which unfortunately doesn’t have a build in neither the standard repo or the guru, so i had to download the ckan.exe from github and run it through mono. It requires X to be the display server to run but i’m on wayland (i have both use flags in my make.conf specifically to ensure compatibility and fixability in case something like this happened).

Problem: is there a way to conveniently switch from x to wayland and viceversa?

My first thought went to the plasma login manager, but it requires systemd and i’m on openrc.

Does anyone now of some other easy way of toggling between the two? Maybe a plugin for sddm?

Edit: github for ckan and full error

Edit 2: Both Xwayland and xwayland-satellite are running

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x0047e] in <f0f408c106b34e568005141177d4dfe1>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x0006d] in <f0f408c106b34e568005141177d4dfe1>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <f0f408c106b34e568005141177d4dfe1>:0
at System.Windows.Forms.XplatUI..cctor () [0x000c0] in <f0f408c106b34e568005141177d4dfe1>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in <f0f408c106b34e568005141177d4dfe1>:0
at CKAN.GUI.GUI.Main_ (System.String[] args, System.String userAgent, CKAN.GameInstanceManager manager, System.Boolean showConsole) [0x00028] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.Gui (CKAN.GameInstanceManager manager, CKAN.CmdLine.GuiOptions options, System.String[] args) [0x0003e] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.RunSimpleAction (CKAN.CmdLine.Options cmdline, CKAN.CmdLine.CommonOptions options, System.String[] args, CKAN.IUser user, CKAN.GameInstanceManager manager) [0x00108] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.Execute (CKAN.GameInstanceManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args, CKAN.IUser user) [0x002e1] in <e14f446e063b48ea94c0b0ec41a22fd4>:0
at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x0010b] in <e14f446e063b48ea94c0b0ec41a22fd4>:0

u/OkAlbatross9889 — 17 hours ago
▲ 58 r/Gentoo

Here's what maintaining the kernel looks like these days...

portage elog files located in /var/log/portage/elog

  1. sys-kernel:gentoo-sources-5.10.256-r1:20260518-173304.log
  2. sys-kernel:gentoo-sources-5.15.207-r1:20260518-173556.log
  3. sys-kernel:gentoo-sources-6.1.173-r1:20260518-174015.log
  4. sys-kernel:gentoo-sources-6.6.140-r1:20260518-174321.log
  5. sys-kernel:gentoo-sources-6.12.90-r1:20260518-174527.log
  6. sys-kernel:gentoo-sources-6.18.32-r1:20260518-174939.log
  7. sys-kernel:gentoo-sources-7.0.9-r1:20260518-175345.log
  8. sys-kernel:gentoo-sources-6.6.140:20260519-134551.log
  9. sys-kernel:gentoo-sources-6.1.173:20260519-134604.log
  10. sys-kernel:gentoo-sources-6.18.32:20260519-134619.log
  11. sys-kernel:gentoo-sources-5.10.256:20260519-134631.log
  12. sys-kernel:gentoo-sources-6.12.90:20260519-134644.log
  13. sys-kernel:gentoo-sources-7.0.9:20260519-134700.log
  14. sys-kernel:gentoo-sources-5.15.207:20260519-134712.log
  15. sys-kernel:gentoo-sources-5.10.256-r2:20260519-155421.log
  16. sys-kernel:gentoo-sources-5.15.207-r2:20260519-155646.log
  17. sys-kernel:gentoo-sources-6.1.173-r2:20260519-160023.log
  18. sys-kernel:gentoo-sources-6.6.140-r2:20260519-160236.log
  19. sys-kernel:gentoo-sources-6.12.90-r2:20260519-161122.log
  20. sys-kernel:gentoo-sources-6.18.32-r2:20260519-161148.log
  21. sys-kernel:gentoo-sources-7.0.9-r2:20260519-161501.log
  22. sys-kernel:gentoo-sources-7.0.9-r3:20260519-165618.log
  23. sys-kernel:gentoo-sources-5.10.256-r1:20260519-181705.log
  24. sys-kernel:gentoo-sources-7.0.9-r1:20260519-181720.log
  25. sys-kernel:gentoo-sources-6.6.140-r1:20260519-181732.log
  26. sys-kernel:gentoo-sources-5.15.207-r1:20260519-181744.log
  27. sys-kernel:gentoo-sources-7.0.9-r2:20260519-181758.log
  28. sys-kernel:gentoo-sources-6.12.90-r1:20260519-181811.log
  29. sys-kernel:gentoo-sources-6.1.173-r1:20260519-181824.log
  30. sys-kernel:gentoo-sources-6.18.32-r1:20260519-181839.log
    Please select a file to view by entering the corresponding number.
    (-1 to exit)

bozeman #

reddit.com
u/mgpagano — 1 day ago
▲ 6 r/Gentoo

Arbor update (local web UI for Portage): Added systemd support, CLI-based root approval and a new UI/UX

For reference: https://www.reddit.com/r/Gentoo/comments/1tg4xza/update_i_just_opensourced_arbor_the_local_web_gui/

Quick update on Arbor, about 3 days since the first post.

Got systemd support in place, though I still need to actually test it since I don't run systemd myself. If anyone wants to give it a shot and see if it breaks, let me know.

I really didn't like the idea of dangerous root actions running straight from a browser click, so I’m building a CLI-based approval flow. The web UI triggers the job, but you have to approve it from your terminal. Also did a UI rework, added a deeper USE flags view to check overrides and mismatches at a glance, and threw an info dashboard on the homepage.

Repos:

sources: https://github.com/gorecodes/arbor

overlay: https://github.com/gorecodes/arbor-overlay

Only tested on my machine so far. If you hit any install issues or weird bugs, drop a comment or open an issue and I'll look into it.

reddit.com
u/goregasm_ — 1 day ago
▲ 85 r/Gentoo

Gentoo News: Copy Fail, Dirty Frag, and Fragnesia kernel vulnerabilities

The Linux kernel has recently been facing a series of discovered privilege escalation vulnerabilities, starting with the Copy Fail vulnerability and followed by subsequent vulnerabilities in the same spirit (Dirty Frag, Fragnesia). This development is part of a general trend where vulnerabilities are being found - and disclosed - faster than before. We expect it to continue, at least for the short-term.

The Gentoo Linux Kernel and Distribution Kernel teams are doing their best to keep Gentoo kernels secure. This includes both packaging the latest upstream releases as soon as possible, and backporting additional vulnerability fixes or mitigations whenever they become available. As example, while upstream kernel releases are still vulnerable to Fragnesia, the respective Gentoo kernels feature fixes from day one. At the time of writing, all supported Gentoo kernels feature the latest Fragnesia v5 patch. Please expect more updates. We recommend exploring ways to automate upgrading your kernel.

Please note that only sys-kernel/gentoo-kernel, sys-kernel/gentoo-kernel-bin and sys-kernel/gentoo-sources packages are security-supported. The vanilla kernel packages are vulnerable at the moment. Other kernel packages may carry fixes, but they usually are slower to be updated. Additionally, we recommend running the latest kernel version (~arch or latest stable LTS), as upstream does not reliably backport security fixes to older versions.

gentoo.org
u/dilfridge — 2 days ago
▲ 240 r/Gentoo+1 crossposts

Installing Gentoo literally saved my life, cured my male-pattern baldness, and fixed the global economy

For years, my life was a disaster. I was working a dead-end job, my girlfriend left me for a guy who uses Arch (ugh, bloat), my credit score was a 420, and I couldn't even grow proper facial hair. I was a broken man running Ubuntu but it all changed when I decided to make the switch to Gentoo.

As emerge --sync completed, my receding hairline aggressively reversed. I now have a luscious, flowing mane of hair and a beard that smells faintly of thermal paste and triumph. I took a deep breath and realized my asthma was entirely gone. My lungs are now optimized for maximum throughput.

While compiling sys-devel/gcc, I got a phone call. It was a Wall Street hedge fund. They said they noticed an anomaly in the global data streams—a level of efficiency they had never seen before. They traced it to my IP address. Long story short, I am now the Chief Optimization Officer of a Fortune 500 company. My credit score is now an unprecedented 900.

My ex-girlfriend saw me at a coffee shop yesterday. I didn't even have to say anything. She saw the rolling terminal output of @world compiling on my ThinkPad, wept openly at the sheer beauty of a system free of systemd, and begged for my forgiveness. I told her I don’t have time for relationships right now; I am currently tweaking my USE flags for x11-base/xorg-server.

To anyone out there struggling with depression, anxiety, financial ruin, or just general life dissatisfaction: stop wasting your time with therapy or self-help books. What you need is to install Gentoo.

reddit.com
u/Zeonist- — 3 days ago
▲ 8 r/Gentoo

Migrating from ccache to sccache, anything I should know?

Right now I'm using ccache, but I also want to cache stuff for rust, mainly because I compile web browsers with custom patches often (Firefox and Chromium). I know that Portage doesn't have proper sccache support, but is there anything I should know before I try? How is your experience with it?

reddit.com
u/cometomypartyyy — 2 days ago
▲ 5 r/Gentoo

Best setup on thinkpad t400/r400

I'm repairing a ThinkPad R400, and to test it I install Antix Linux, but when I buy a new SSD I think I'll install Gentoo for the first time with an i3 or similar. I welcome any recommendations.

reddit.com
u/flipps123 — 3 days ago
▲ 103 r/Gentoo

Dota 2 gentoo guild

I don’t know if anyone else here plays dota 2 but I made a gentoo guild! Would love to get some gentoo gamers too join! It’s open to join but i can also invite if anyone wants to message me.
Love u guys

u/livingfreeDAO — 4 days ago
▲ 15 r/Gentoo

Motherboard changing boot order

On boot my laptop seems to change the boot order to windows. This irritating behavior paused for like a week randomly, today it decided to show up again. Before that I had to use ventoy to chainload refind to even boot linux.

My secure boot is off. Is hp *protecting* me from linux?

(The second efibootmgr command is from history. I typed it last thing on the previous boot. I have not booted windows in between)

u/fr000gs — 4 days ago
▲ 25 r/Gentoo

3 weeks into Gentoo.

I have tried Linux Mint, Debian, Fedora, Ubuntu and they have all broken on me. Gentoo has broken on me years ago due to my own fault, but I am way more cautious and knowledgeable now. I have run my eclean, dispatch-conf, needrestart, qcheck, rkhunter etc. and everything checks out. So far I have updated my kernel 5 times now with no issues.

I think grub is the most important thing to make absolutely sure you have correct when you first install Gentoo. It can be confusing and I have messed it up a couple of times years ago. This time around I didn't make any major grub mistake.

My biggest headache happened 1 week after installing. I had everything squeaky clean, but needrestart kept saying my microcode was out of date after rebooting. I tried about 5 different things. What worked for me was updating my motherboard firmware. Downside of doing that was that it wiped my grub config. For some reason when I went into chroot in to remount and reconfigure grub, it said I didn't have permission. So I decided to reinstall from nothing again. After reinstalling with updated motherboard firmware, my cpu microcode was up to date.

My eselect profile is default/linux/amd64/23.0/desktop/gnome (stable.) and my major packages include; gnome-light, firefox, libreoffice, gimp, steam, nvidia-drivers. I haven't had any issue or errors with these packages.

I had an issue with setting up ufw, but after tinkering around for a while I eventually figured out which linux kernel .config options to enable, (it said which ones in the message after emerging ufw LOL.)

Bluetooth is giving me some headaches right now.

I am very happy with Gentoo. On my system it takes about 2 minutes to compile the kernel, less than a minute to rebuild modules. I don't remember how long it took for firefox to compile. I think it couldn't have been much longer than 10 minutes. I could go out and buy 32 more gigs of ram, but honestly I don't feel the need to buy more ram to speed up compile times.

https://preview.redd.it/1ri3t136jz1h1.png?width=2560&format=png&auto=webp&s=fb27812ccaf9a391d55cef51381a53f42f037ce1

reddit.com
u/Illustrious-Field-93 — 3 days ago
▲ 3 r/Gentoo

InvalidBdepend when using zig.eclass

I can't emerge my ebuild I made: gui-apps/mepo-1.3.4::finephone (masked by: ~arm64 keyword, invalid: BDEPEND: Invalid atom (dev-lang/zig:), token 3)

This only happens when I add: inherit zig to my ebuild.

When I used pkgcheck scan I got this: InvalidBdepend: version 1.3.4: failed parsing BDEPEND: '|| ( dev-lang/zig: dev-lang/zig-bin: ) virtual/pkgconfig' is unparseable: flagged token- invalid package atom: 'dev-lang/zig:'

I have >=dev-lang/zig-bin-16.0::gentoo installed and I also have dev-lang/zig in RDEPENDS. I tried adding it instead to BDEPEND but that didn't fix it.

reddit.com
u/padaru1 — 3 days ago
▲ 5 r/Gentoo

Crossdev is complex

Heellooooo, so I try to install gentoo on a PowerMac G5. This computer has a very low capacity (CPU with 1 core at 1,8 GHz and 1Go of RAM) and I thought it was a good moment to learn how to use crossdev, i read the doc and i did what they say like 10 times. But i'm stuck again and again with this error when i try to merge package :

* Messages for package virtual/libintl-0-r2 merged to /usr/powerpc64-unknown-linux-gnu/:

* Your profile is of type merged-usr, but your directories

* on-disk are of type split-usr.

* Please switch back to your last valid profile setting and

* read the documentation about merged-usr and profile changes.

* ERROR: virtual/libintl-0-r2::gentoo failed (setup phase):

* ERROR: 23.0 merged-usr profile, but disk is split-usr

in the error message it say to include this so here it is :

miniGentoo /usr/powerpc64-unknown-linux-gnu # emerge-powerpc64-unknown-linux-gnu --info '=virtual/libintl-0-r2::gentoo'

Portage 3.0.77 (python 3.13.13-final-0, default/linux/ppc64/23.0/desktop, gcc-15, unavailable, 6.18.30-p1-gentoo-dist x86_64)

=================================================================

System Settings

=================================================================

System uname: Linux-6.18.30-p1-gentoo-dist-x86_64-Intel-R-_Core-TM-_i3-6100U_CPU_@_2.30GHz-with-glibc2.42

KiB Mem: 8006892 total, 3081976 free

KiB Swap: 10485756 total, 10485756 free

Timestamp of repository gentoo: Mon, 18 May 2026 18:15:00 +0000

Head commit of repository gentoo: 125f9161e1aa1c02764f514a4aee4cd6aa96a863

sh bash 5.3_p9-r1

ld GNU ld (Gentoo 2.46.0 p1) 2.46.0

sys-apps/baselayout: 2.18-r1::gentoo

sys-kernel/linux-headers: 6.19::gentoo (virtual/os-headers)

sys-libs/glibc: 2.43-r2::gentoo

Repositories:

gentoo

location: /var/db/repos/gentoo

sync-type: rsync

sync-uri: rsync://rsync.gentoo.org/gentoo-portage

priority: -1000

volatile: False

sync-rsync-extra-opts:

sync-rsync-verify-max-age: 3

sync-rsync-verify-jobs: 1

sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="ppc64 ~ppc64"

ACCEPT_LICENSE="@FREE"

CBUILD="x86_64-pc-linux-gnu"

CFLAGS="-mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -flto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"

CHOST="powerpc64-unknown-linux-gnu"

CONFIG_PROTECT="/etc /usr/share/config"

CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"

CXXFLAGS="-mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -flto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"

DISTDIR="/var/cache/distfiles"

ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"

FCFLAGS="-mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -flto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"

FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compress-index config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"

FFLAGS="-mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -flto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"

GENTOO_MIRRORS="http://distfiles.gentoo.org"

LANG="C.UTF-8"

LDFLAGS="-Wl,-z,now -Wl,-z,relro -Wl,-O2 -Wl,--as-needed"

LEX="flex"

PKGDIR="/usr/powerpc64-unknown-linux-gnu/var/cache/binpkgs/"

PORTAGE_COMPRESS="bzip2"

PORTAGE_CONFIGROOT="/usr/powerpc64-unknown-linux-gnu/"

PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"

PORTAGE_TMPDIR="/usr/powerpc64-unknown-linux-gnu/tmp/"

RUSTFLAGS=" -C target-cpu=970"

SHELL="/bin/bash"

USE="X a52 aac acl alsa asm avif bash-completion big-endian branding bzip2 cairo cdda cdr crypt css dri dts dvd dvdr elogind encode examples exif flac fortran gdbm gif gpm graphite gui ibm iconv icu ipv6 jpeg lcms libnotify lm-sensors lto mad man minimal mng mp3 mp4 mpeg ncurses nls ogg openal openmp pam pango pcre pdf pgo pipewire png policykit ppc64 ppds pulseaudio qml readline sdl seccomp sound spell ssl startup-notification svg telemetry test-rust tiff truetype udev udisks unicode upower usb vcd vorbis vulkan webp wxwidgets x264 xattr xcb xft xml xv zlib" ADA_TARGET="gcc_15" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_PPC="altivec" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oncore skytraq superstar2 tsip tripmate tnt" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="PowerPC" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" QEMU_SOFTMMU_TARGETS="ppc64 ppc" RUBY_TARGETS="ruby33" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"

Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

Please if someone know something, tell me. thanks in advance !!

reddit.com
u/O_Esdras_o — 3 days ago
▲ 17 r/Gentoo

Building a local web GUI for Portage. Should I open-source it?

I’m fairly new to Gentoo and built this tool to learn how Portage works under the hood.

It’s a local web UI + root daemon. The goal isn't to hide Portage's complexity, but to make deep dependency trees and USE flags easier to visualize without losing granular control.

You can also search a package and trigger the installations from it: it doesn't do anything blindly, it prompts you just like the CLI does and streams the actual shell output.

It's running fine locally. If you guys are interested, I'll clean up the code and open-source it on GitHub.

Thoughts?

reddit.com
u/goregasm_ — 4 days ago
▲ 11 r/Gentoo

openrc-init

Is there an exact reason OpenRC uses sysvinit instead of relying on openrc-init alone? Is there anything wrong with openrc-init? The wiki only explains how to migrate to it, but makes no remarks about anything basically.

man openrc-init says:

BUGS
       This  was  first released as part of OpenRC 0.25.  I do not know of any specific issues. However, since this
       is the first release of openrc-init, please test and report any issues you find.

We are on OpenRC 0.63.1

reddit.com
u/Armi1P — 4 days ago
▲ 5 r/Gentoo

First time on athlon 2

Any tips for me readibg the handbook allready any tips for early amd_64 hw to make it performant. its a athlon 2 era desktop with DVI output over gpu ps/2 quite acient can i lighten up here just got usb 2.0 to my knowlege

reddit.com
u/JG_2006_C — 4 days ago