/r/Gentoo

Photograph via snooOG

The place to find relevant information on Gentoo Linux

The place to find relevant information on the wonder that is Gentoo, and (among other things):

  • Portage

  • ebuilds
  • errors
  • package management
  • Forks/Side Projects

  • Major Project Developments

  • Important GLSA's for high profile/common applications

  • Articles and References of General interest to the Gentoo community

  • Interesting uses of Gentoo

  • For support or general updates check out the official support resources.


    If your post is blocked, chances are that it was the spam filter and not moderator action. So please contact us rather than just letting your post rot in the spam folder.


    Projects related to Gentoo Linux:

    Know of a good Gentoo-related project you think should be listed? Message the moderators and let us know. Project must have some specific relation to Gentoo Linux to be included.

    /r/Gentoo

    27,632 Subscribers

    11

    Anyone got this cool Gentoo wallpaper on a higher resolution?

    Good evening to everyone.

    I was customizing my install and I wanted to use one of my favorite Gentoo themed wallpapers, "Abducted", as I find it minimalist and funny: https://www.gentoo.org/assets/img/wallpaper/abducted/gentoo-abducted-1680x1050.png

    Unfortunately, the highest resolution for it is 1680x1050, and I use a 2560x1440 monitor. Does anyone have the wallpaper on this res or in a higher one, like 4K?

    Thanks in advance.

    (I found this cool 3D rendered version of the original wallpaper, credits to @LittleAd1974: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2F6vstdxm9mbfb1.png)

    6 Comments
    2024/11/08
    23:04 UTC

    1

    zram problem

    on my gentoo openrc 8gb ram, I installed zram Fa btrfs the configuration file is this:

    num_devices=2

    type0=/var/tmp/portage flag0=btrfs size0= 8192 mlim0= # no hard memory limit back0= # no backup device opts0="noatime,nosuid,nodev" # e.g. "relatime" or "strictatime" are also reasonable choices mode0=1777 owgr0= # No reason to change the default "root:root" notr0= # keep the default on linux-3.15 or newer maxs0=4 algo0=zstd labl0=portage_dir uuid0= args0=

    type1=/var/tmp/special flag1=btrfs size1= 8192 mlim1= # no hard memory limit back1= # no backup device opts1="noatime,nosuid,nodev" # e.g. "relatime" or "strictatime" are also reasonable choices mode1=1777 owgr1= # No reason to change the default "root:root" notr1= # keep the default on linux-3.15 or newer maxs1=4 algo1=zstd labl1=special_dir uuid1= args1=

    upon startup I get this message:

    Create Volatile Files and Directories ••• etc/init.d/../conf.d/zran-init: riga 5: 8192: comando non trovato 'etcinit.de./conf.d/zram-init: riga 20: 8192: comando non trovato INIT: Entering runlevel: 3

    Could you tell me how to solve it?

    2 Comments
    2024/11/08
    21:47 UTC

    7

    distorted X11 apps on Raspberry Pi5

    I installed gentoo on a raspberry pi 5 on a ssd, So far things work out ok. audio , 3d acceleration, plasma (kde 6) + wayland, wlan, bluetooth etc. I am using raspberry pi sources version 6.11.x (using precompiled 6.6 kernel gets the same result) glxinfo or glxgears show that direct rendering is active. resolution is 3840x2160@60hz

    One thing that I do not seem to get fixed or find a solution on the net is running x11 applications. On the screenshot you can see Gimp and eduke32. Every x11 application is just colored lines.

    Anyone seen this pattern before?

    8 Comments
    2024/11/08
    20:20 UTC

    3

    Is a musl llvm hardened selinux profile possible?

    Please forgive me if this is a stupid question I'm fairly new to working with gentoo, but is it possible to build a gentoo install with hardening and selinux that uses musl and llvm instead of gcc? After seeing this post on the gentoo forums, it seemed like something that should be possible, but they didn’t note any particular method beyond which stage3 to start with. I tried building a custom profile inheriting from musl/llvm and musl/hardened/selinux but I noticed that gcc still got built. Running equery depends gcc showed that app-crypt/libb2, app-portage/portage-utils,sys-devel/clang-common,sys-devel/gcc, and sys-libs/libcxx all depended on gcc. Is there some way to remove this dependency, or am I just stuck with having gcc on my system. Thanks!

    3 Comments
    2024/11/08
    16:28 UTC

    0

    Is there a way to list all masked packages upon which an ebuild depends?

    I periodically need to build Haskell-based packages. The default behavior of the emerge command is to stop whenever a masked package is encountered. This makes sense, but it has the effect of requiring me to unmask one package, attempt the install, unmask the next one it complains about, etc. in a loop until it works.

    Is there an easy way to get emerge to give me the full list of maksed packages for a given ebuild upfront so that I can handle them all in one go?

    2 Comments
    2024/11/08
    14:23 UTC

    59

    So, Mesa started compiling

    See you later, guys, (it's a 15watt CPU, so I am guessing it will take forever)

    22 Comments
    2024/11/08
    05:01 UTC

    12

    Some trivialities 😜

    7 Comments
    2024/11/07
    23:25 UTC

    19

    Hey Gentoo Reddit, watchu working on?

    Just got really curious as to what the Gentoo Community has been up to today/this week/month.

    What fun projects have your attention right now? And fun tech news you're keeping your eye on that excites you?

    40 Comments
    2024/11/07
    17:48 UTC

    2

    Issues running fish after login

    So, I set:

    [ -x /bin/fish ] && SHELL=/bin/fish exec fish[ -x /bin/fish ] && SHELL=/bin/fish exec fish

    in my .bashrc, but whenever I login to awesomewm or any other DE it just hangs with the cursor the only thing I can access.

    fish works fine if I use tty or if I login and then open a terminal then run the fish command, but whenever I try logging in with fish set to execute in my .bashrc there just seems to cause the DE to bork.

    Anyone know how I can fix this?

    13 Comments
    2024/11/07
    02:42 UTC

    7

    Issues with Wine, Winetricks, and Protontricks (newbie help)

    [SOLVED CHECK MY COMMENT]

    I am on gentoo now with steam up. I mod fallout new vegas, skyrim, and fallout 4 using mod organizer 2 for linux. It requires wine, winetricks, and protontricks.

    I can only use them all as flatpaks, or regular emerge packages. as they only all exist on emerge at the same time, I choose the repo. I have used chatgpt and asked it for help sometimes, and when installing wine, it said to go emerge app-emulation/wine.

    Except, when installing app-emulation/wine or the simular word, it says there is no ebuilds to satisfy it. any other way when using the gentoo manual wiki, it gives no useful way of installing wine and making sure it is downloaded. I am new to gentoo and find this very wierd. I know most things, how to resolve blocked packages, and masked ones too, but no ebuilds? I have no clue

    19 Comments
    2024/11/07
    01:51 UTC

    2

    Can't launch systemsettings when window decoration themed applied after upgrading to QT 6.7.3

    3 Comments
    2024/11/06
    21:01 UTC

    0

    I don't want to use online git repositories as source location for emacs

    I would like to host the sources from packages on my machine (maybe in a local git repository or maybe something that is not version controlled). and not from sites as github, gitlab, bitbucket. First, I don't trust companies such as microsoft nor condone them in any way and second, with bans going and blocking to urls happening at the will of sanctioners I don't want to rely on my packages pulling data automatically from a server whenever some non verified by me update happens.

    What I want to know is how I can do it so I download packages first time, then modify the ebuilds to just use cached sources and never ever again the ones downloaded from remote server

    6 Comments
    2024/11/06
    17:32 UTC

    4

    Mirroring portage git repo on a non-gentoo system

    Hello everybody,

    I have several gentoo machines, I have a binhost, and I want to mirror the ebuild repos on my home server, so that every machine, binhost and clients, are in sync and I don't use more bandwidth than needed. What I call my "home server" used to be an old raspberry running freebsd. I have a new server, running gentoo for now, but I want to go back to freebsd - for zfs, jails, stability, low maintenance...

    In my experience, when simply cloning the git repos on the pi, without any change on my side, portage on the clients would more often than not complain that signatures don't match. I had to disable the "verify signature" feature. I wonder if it was due to write errors on the poor old pi, though. I never had this issue when using portage directly to download and update the repos then distributing them via git-daemon.

    Would it be allright to mirror the repos via plain git - aka. clone then pull once a week - on freebsd? Will portage on the clients complain again? Can I verify the signature with a simple script, without using portage? Or should I set up a VM just to use "eselect repo" and "emaint sync -a" ?

    14 Comments
    2024/11/06
    09:15 UTC

    3

    Personal workflows

    Hello! I just want to ask about your personal workflows with gentoo. I personally like segregating my workflows, such as different Window managers, for different task i.e. Hyprland for everyday usage, Swayfx for development work. Another is using Neovim for programming, then Emacs for note taking.

    It's easier for me to be focused when my environment is something I associate with the task. How about you guys?

    5 Comments
    2024/11/06
    07:03 UTC

    2

    Portage git config

    Hey folks,

    while trying to write an ebuild for pwvucontrol, I ran into the same issue described in this forum post: https://forums.gentoo.org/viewtopic-t-1134891-start-0.html

    Linked in it was a github issue for rust itself that suggested that ~/.gitconfig may be responsible. And sure enough, after applying the suggested tweak I was able to get the ebuild to compile with the ebuild command.

    However, it still won't work when actually trying to merge the package, because portage builds the package using the portage user, which has no home folder or .gitconfig file.

    How can I configure portage's git to fix this without disabling userpriv or the network sandbox?

    Thanks!

    5 Comments
    2024/11/06
    02:30 UTC

    0

    Enjoying Gentoo!

    1 Comment
    2024/11/05
    19:02 UTC

    14

    first time user wondering why the handbook is not consistent between /efi and /boot?

    I noticed this during my install. It would be nice if there were seperate wiki pages for the different boot types ngl, probaly a good reason why there isnt though. But has anyone else noticed this?

    12 Comments
    2024/11/05
    18:43 UTC

    1

    No tinygo compiler?

    Hello! I recently bought arduino Uno and decided to have fun with it, but not found tinygo compiler in official repos nor guru. Anybody have overlay with it? Or I should follow official build instruction? (This option kinda suck, because I'll should manage all dependencies myself). Have a nice day!

    2 Comments
    2024/11/05
    16:46 UTC

    3

    Question about installation

    Every once in a while i attempt installing Gentoo on my machine, always have failed. I plan to try it again tonight, again with binaries for the big packages (kernel, xorg, Xfce), again meticulously reading the damned handbook. God, the nightmares.

    My question is, what steps exactly are the necessary, non-optional ones? I want to first get a functioning, unpolished system and go slowly polishing and learning as i use it, so i first just want to do what's necessary and do everything that is optional post-install.

    14 Comments
    2024/11/05
    13:20 UTC

    0

    How do I emerge JDK 23?

    I need access to the Foreign Function and Memory API. It was stabalized in JDK 22.

    emerge tells me that dev-java/openjdk-bin-23.0.1_p11::gentoo (masked by: missing keyword). I checked the ebuild file and there wasn't any mention of a keyword.

    I tried adding the package under package.unmask. I also added openjdk-bin-23 ** to accept_keywords. But I think the issue is that the package doesn't have any keywords defined.

    Thanks!

    11 Comments
    2024/11/05
    10:45 UTC

    1

    Can't launch Spectacle from a key shortcut (KDE Plasma 6)

    I switched from GNOME to KDE Plasma 6 after a few months hoping that some stuff would get fixed, well it seems that this very thing didn't.

    When trying to launch Spectacle by pressing the Print Screen key, I get the following:

    Launching Spectacle (Failed)
    No such method 'Activate' in interface 'org.freedesktop.Application' at object path '/org/kde/spectacle' (signature ")

    However, if I enter spectacle on the command line, it works just fine.

    All my packages are in ~amd64 by the way, and Plasma is running on X11.

    Searching for that exact error message didn't provide any results, maybe I'm missing a USE flag so it's only broken to me?

    EDIT: just discovered that I can't launch it even from the app menu. Clicking on it gives the exact same error message.

    2 Comments
    2024/11/05
    09:57 UTC

    0

    Installing Gentoo from scratch in a docker ?

    EDIT : my title should've rather been "Installing Gentoo from scratch in a container".. my bad!

    hello everyone :)

    i wanted to try gentoo out, and would like to install it from scratch to have the "full experience" and learn more about Linux in general, as well as have control over what i want on the system. doing a dualboot would be nice, but i admit i'm a bit apprehensive of it if anything would happen to break (if, for example, i were to screw up a step of the install). but then maybe my fear of that is unfounded...

    so i thought of virtual machines, but it would be hard to gauge the actual performance of Gentoo inside one, and i feel compile times would be absurdly high in a VM when that's one of the main things i'd like to try out.

    so i thought of trying out Docker/Distrobox, and perhaps building Gentoo from scratch there.

    is that possible? i saw some things related to Gentoo and Docker on some github pages (here's such an example), but as a complete outsider to Gentoo systems with surface level knowledge, i wanted to be sure of if it was possible to do the same kind of from-scratch install one would do on bare metal, but just in a containerized environment in order to be closer to actual hardware performance and still have an isolated environment if stuff goes wrong.

    that's all, cheers!

    10 Comments
    2024/11/05
    06:12 UTC

    1

    How to set a different font and keymap on installation media?

    I need to use cyrillic and spanish and as I have a Spanish keyboard I typically type loadkeys es however I also need some cyrilic font to read SSIDs and a keymap to type them when connecting via wpa_supplicant.

    On arch linux I'd typically edit /etc/vconsole.conf and set keymap=es,ru and font=latarcyrheb-sun16 then press AltGr_Lock to begin typing in cyrillic but that's used with systemd.

    2 Comments
    2024/11/04
    18:40 UTC

    0

    Tencent QQ messenger - has anyone got it to work ?

    Tencent's QQ might be crappily coded app, but it's immensely popular in China.

    So much so that manufacturers don't give a shit if their contact e-mail stops working, but their ID numbers of QQ chatrooms work fine.

    So I've been trying to get it to work, but so far, without success.

    Original app can be downloaded from Tencent's page as rpm, deb, or Appimage.

    I tried running the appimage and program fails as it can't seem to be able to access some resource files. So I unpacked it and tried to run it that way. After that, I tried loop-mounting appimage file and running the app there. Same result.

    Then I tried installing flatpak. It installs but fails to run, nagging about missing installer.

    Then I tried net-im/tencent-qq in "zugaina" overlay.

    I get it to install, but when I run it, it opens the window, I get 2D QR-code over what seem to be blue sky in the background and then ... nothing.

    In terminal I get:

    [quote] app_build_version :26909 [preload] succeeded. /opt/QQ/resources/app/major.node [67:1104/120626.549152:ERROR:check.cc(376)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry! [67:1104/120626.581573:ERROR:check.cc(376)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry! Error occurred in handler for 'get-remote-win': Error: No handler registered for 'get-remote-win' at WebContents.<anonymous> (node:electron/js2c/browser_init:2:82968) at WebContents.emit (node:events:519:28) 12:06:36.541 › [hot update] setLauncherCounts suc 0 [/quote]

    Has anyone here managed to get it to work ? 🙄

    2 Comments
    2024/11/04
    12:52 UTC

    6

    Can't post to Gentoo forums

    Posting there doesn't work for me. I can login, I can browse, but whenever I try to post, I get "server error" response.

    Is it something on the server end or is it about my account? 🙄

    2 Comments
    2024/11/04
    12:51 UTC

    0

    What to do if package versions get removed?

    I am running zfs as root fs in version 2.2.6 with the gentoo-kernel 6.10.12 (due to hardware requirements). I've therefore added entries in the portage.accept_keywords file containing the exact versions and thought I could check from time to time if both packages reach stable version so I could upgrade again and wait out the updates along the way.

    Well, after the update last weekend docker does not seem to start properly anymore. It misses the ip_table kernel module. Normally I would check the kernel configuration and try to recompile it but it seems the gentoo-kernel 6.10.12 is gone from the repository and 2.2.6 seems to be only compatible with 6.10.

    Is my workflow wrong? Should I copy all ebuilds in my local repository in case they get removed in the official one?

    8 Comments
    2024/11/04
    11:52 UTC

    10

    Openrc vs Systemd (question for my future install)

    Hello gentooers!

    I have gained more and more experience and knowledge with gentoo, feeling more and more confident. But there is something I am curious about. The init system. This is what I know about each of them:

    Systemd is what I heard is more than an init system and is kinda complex to some people. I see it as the norm, but also as a little annoying. I know how services work under them, and I have not really a problem with it, except it has acted up once or twice in the 6 months of me using linux. feel free to correct me on this if incorrect

    Openrc is what I heard a popular alternative that appearantly is part of the rebel distro known as artix. I have never used it before, I have had to either copy paste from the manual or from the internet what I need to do, when playing around in my vm with gentoo, but it's simplicity is what I think makes it work. I have yet to paste a rc init instruction that has yet to get an error. And from the looks of it, the manual and wiki might have everything prepared for what I need. Feel free to correct me on this if incorrect.

    You may notice that I kinda like openrc a little, although I on arch currently use systemd, but since I heard that it is kept as just an init system, do I need anything else to replace something systemd covers? This is kind of a new beginner question, but better prepared and ready. Less tears of fustration.

    25 Comments
    2024/11/04
    02:29 UTC

    4

    Docker to Podman migration

    After long time using docker as my lazy container engine I decided to do the switch to Podman. Anyone experience issues with the cgroupv2? I always get the warnings cgroupv2 user session not available. Running the container rootless won't work. ATM migration worked out but only when running as root. I know, the containers ran as root in docker, too. But doing the switch to Podman may enhance security too, when running rootless.

    6 Comments
    2024/11/03
    21:45 UTC

    Back To Top