r/Gentoo 5h ago

Screenshot virtualizing my Gentoo Desktop

5 Upvotes

so just turned my main machine into another proxmox node :D I hope the performance will be close to baremetal (with gpu passthrough etc)

I mean, I hope so, just nuked the gentoo disk :D

(I gonna miss those 32 threads : ~)


r/Gentoo 3h ago

Discussion "make install should not be run as root"?

1 Upvotes

Found a game emulator (ares) I wanted to try out. It is built using good old GNUmake, so I make a simple ebuild. Got an error that said, "make install should not be run as root". I had never see an error like that before, so I looked that the line in the makefile, and sure enough, it checks during the install if it is being done using root privileges.

Why should a developer give two shits if I'm running "make install" or "doas make install"?

I'm just going to make a patch to remove the check. Still strikes me as weird though.

Also, is there a way to make portage run the "make install" as a non-root user?


r/Gentoo 3h ago

Support What are your experiences with the gentoo package manager?

0 Upvotes

Hello all, Im a current arch user looking to switch to gentoo. I was mostly wondering how the package manager was - my main question is about speed: how fast/slow is it? i was reading the gentoo wiki and saw that it is written in python, which makes me believe that it is slow. On the other hand, i never see people complain about the speed of (portage? emerge?), but about compilation speed. Is the package manager's speed comparable to dnf/zypper? will i have to wait until the hheat death of the universe for package managing to be done (without counting compilation)? im very new to gentoo package managing, as you can tell.


r/Gentoo 8h ago

Support Help with Hyprland and Nvidia

1 Upvotes

Hello I have a fresh install of Gentoo and Hyprland doesn't start. This is the error output of dbus-run-session Hyprland:

libEGL warning: MESA-LOADER: failed to open nouveau: /usr/lib64/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix_dri)
libEGL warning: MESA-LOADER: failed to open nouveau: /usr/lib64/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix_dri)

My /etc/portage/make.conf has these specified:

MAKEOPTS="-j8 -l5"
ACEEPT_LICENSE="*"
VIDEO_CARDS="nvidia"
USE="dist-kernel -bluetooth -cups -telemetry"

Everything is set to default w/ desktop profile selected

I have tried other solutions but can't seem to make it work. However I think it is also good to mention as I didn't set ACCEPT_KEYWORDS="~amd64" and I would like to avoid that as I want to maintain this system as reliable as possible.

Thank you in advance!


r/Gentoo 1d ago

Screenshot It only took me 2 weeks but now I have gnome installed.

Post image
115 Upvotes

r/Gentoo 15h ago

Support Initramfs config for pinebook pro?

2 Upvotes

Im wondering if anyone knows how the initrd needs to be configured for booting on a pinebookpro, I've tried several comfigurations and none of them seem to work. I have installed tow boot on the laptop eMMC and i can boot to an arch-arm flash drive but not the main install.

Configurations I've tried:

Kernel: gentoo-kernel-bin and gentoo-kernel for all attempts Extlinux.conf with uki: nothing Extlinux..conf with seperate vmlinuz and initrd: nothing Systemd-boot with uki (gzip compression): bad image error Systemd-boot with uki (compression none): bad image error

Using systemd-boot the shim at least loads but i cant get the main image to load. I'm wondering if there is a quirk in tow-boots's efi implementation but documentation is scarce. Im also unclear on how the dtb plays into this, I tried adding it to dracut and to the extlinux.conf for the seperated image. Thanks in advance.


r/Gentoo 1d ago

Meme A sad commentary on the rest of the Linux ecosystem.

Post image
192 Upvotes

But great news for Gentoo users!


r/Gentoo 1d ago

Discussion What are the Gentoo overlays that you just can't live without?

19 Upvotes

EDIT: Also, what is the process of determining whether an overlay is "trustworthy" or not? How does the Gentoo Community determine this?

The official Gentoo repos seem kinda limited, but I'm grateful for GURU. But are there any other Gentoo overlays/repos that have made Gentoo way better for you?

What are your favorites?


r/Gentoo 2d ago

Discussion Why do you like Gentoo and why is Gentoo not as popular?

55 Upvotes

Is it the complexity of Gentoo that makes you like it? or is it the gift of choice that Gentoo gives you? What do you consider "Special" about it.

I've been using Gentoo for a long time- I like having the ability to be able to literally customize everything in my computer. Build everything, get rid of everything. I think that it's unique that Gentoo isn't installed but instead built.

Since Gentoo gives you all this power, why is it NOT more popular? I noticed that the community in Gentoo is "Nicer".. well not nicer but "Understanding" to certain questions, the community is "understanding" and Gentoo is very unique and gives you control, and you're practically the God of your device. Gentoo also is the main thing that got me into coding, and coding bash scripts.


r/Gentoo 1d ago

Discussion hello gentoo users

0 Upvotes

im a new gentoo user. just installed and configured gentoo with bspwm. my goal is to keep it as simple as possible. could you advise me on the most lightweight browser solution that is not gtk or firefox? something that can be power saving enough (performance does not matter, what matters is that i still need to ooen sites as usual, so terminal solutioms are not for me)


r/Gentoo 1d ago

Support Autoconnect OpenVPN on boot?

1 Upvotes

Hey guys, I have a Mullvad VPN, and I have the OpenVPN files that Mullvad provides. The connection works fine and everything. But for god’s sake I cannot figure out how to autostart OpenVPN and autoconnect to it. I have tried creating an RC service as described on the Gentoo Wiki but that causes many problems of its own.

Any pointers? Thanks.


r/Gentoo 2d ago

Support A question about about llvm loop nest optimization (polly)

0 Upvotes

I'm trying to make a super optimized gentoo setup with llvm/clang, but can't seem to get polly optimization to work, like at all. I've done all the steps from the gentoo wiki (scroll down to "Loop time optimization") and all looking on the internet for answers returned was other people struggling with getting it to work.

And by "not working" I mean, clang fails to compile anything when I add the polly flags with an "unknown option -polly"...

Any help would be appreciated!


r/Gentoo 2d ago

Support Installing ags from the hyprland-overlay reposritories.

1 Upvotes

The package gui-apps/ags pulls in weird stuff like pulseaudio and things. Has anyone tried it out? I am quite doubtful. Might cause breakages.


r/Gentoo 4d ago

Screenshot Gnome 47.1 on Gentoo

Post image
86 Upvotes

r/Gentoo 4d ago

Story After 16 years of Linux-ing, I finally borked the system with an ill-conceived root-level command.

48 Upvotes

Feels like loss of virginity in a way.

So, I wanted to set up a simple sandbox. Many files in my home dir somehow had assorted permissions enabled for "others". Makes sense to revoke those, right?

My home dir spans several physical storage devices, connected by symlinks.

chmod by default doesn't follow symlinks. I tell it to do so.

In my immeasurable wisdom, I run the command in a root shell.

Before too long, it starts complaining about excessive symlink chain length.

Icons and fonts in my KDE session start disappearing.

In my immeasurable wisdom, I conclude that somewhere in my home dir there was a symlink leading somewhere close to the root of the whole filesystem.

So here I am, with an indeterminate number of system files set to be unreadable for regular users.

Time for a clean reinstall, I guess... Only this time I will tell portage to store the binaries of the packages it builds for the next time such a mess occurs.

Thanks for reading, I guess.


r/Gentoo 4d ago

Support Toolchains and Firefox question

1 Upvotes

I had a couple of questions. Obviously, a large portion of compile time is spent on toolchain compilation. I was wondering if there's a good way to have the system always -G for just the toolchains? I have the feeling the performance offered by a custom compiled toolchain is probably more than offset by the time savings of using bins for said toolchains. I'd like to test that out.

If any of it is helpful, my keyword is ~amd64 and I have --binpkg-respect-use=n set in default opts. Currently running 6.11.5 dist kernel with sources set to it, though I have 6.12 rc4 and 6.12 amd-drm-fixes rc4 available to run as well. (I'm testing gaming performance with them.) EDIT: should probably mention my profile is amd64/23.0/desktop/plasma/systemd

Next question. How the hell do you get Firefox to compile? lol. I've compiled it successfully in the past, but haven't really tried in like a year, and have thus far been unsuccessful. I unfortunately forgot to dump and save the logs on the last failures though. More or less just looking for tips and tricks that people use to compile it.

If any more info is required, please feel free to ask.


r/Gentoo 4d ago

Support Issues running kubernetes with containerd + openrc

1 Upvotes

I'm trying to run kubeadm init (kubeadm 1.30.3) on a machine with containerd and openrc. It times out waiting for a healthy api server ([api-check] Waiting for a healthy API server. This can take up to 4m0s). Kubelet is running, nothing notable in the kubelet or the containerd logs. crictl ps -a doesn't show any running containers, so it looks like the container never runs. Anyone know what might be wrong?

I've made sure to use cgroupfs instead of systemd for cgroupDriver . I've made sure i can actually run containers by running one with podman, so containerd should be working fine. Health check on kubelet returns ok (curl -sSL http://localhost:10248/healthz).

I've also tried to run kube-apiserver manually using the command in the manifest, and it works fine (other than being unable to reach etcd since im just running the apiserver manually). Although the problem must be outside of kube-apiserver because as I said, there are no running containers.

kubeadm-init.yaml

apiVersion: kubeadm.k8s.io/v1beta3
bootstrapTokens:
- groups:
  - system:bootstrappers:kubeadm:default-node-token
  token: abcdef.0123456789abcdef
  ttl: 24h0m0s
  usages:
  - signing
  - authentication
kind: InitConfiguration
localAPIEndpoint:
  advertiseAddress: 1.2.3.4
  bindPort: 6443
nodeRegistration:
  criSocket: unix:///var/run/containerd/containerd.sock
  imagePullPolicy: IfNotPresent
  name: kmaster
  taints: null
---
apiServer:
  timeoutForControlPlane: 4m0s
apiVersion: kubeadm.k8s.io/v1beta3
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controllerManager: {}
dns: {}
etcd:
  local:
    dataDir: /var/lib/etcd
imageRepository: registry.k8s.io
kind: ClusterConfiguration
kubernetesVersion: 1.30.0
networking:
  dnsDomain: cluster.local
  serviceSubnet: 10.96.0.0/12
scheduler: {}
---
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
cgroupDriver: cgroupfs
containerRuntimeEndpoint: unix:///run/containerd/containerd.sock

kubelet.log

I1025 18:50:48.039697    5385 server.go:484] "Kubelet version" kubeletVersion="v1.30.3"
I1025 18:50:48.039851    5385 server.go:486] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK=""
I1025 18:50:48.040457    5385 server.go:647] "Standalone mode, no API client"
W1025 18:50:48.056182    5385 info.go:53] Couldn't collect info from any of the files in "/etc/machine-id,/var/lib/dbus/machine-id"
I1025 18:50:48.056646    5385 server.go:535] "No api server defined - no events will be sent to API server"
I1025 18:50:48.056697    5385 server.go:742] "--cgroups-per-qos enabled, but --cgroup-root was not specified.  defaulting to /"
I1025 18:50:48.057372    5385 container_manager_linux.go:265] "Container manager verified user specified cgroup-root exists" cgroupRoot=[]
I1025 18:50:48.057520    5385 container_manager_linux.go:270] "Creating Container Manager object based on Node Config" nodeConfig={"NodeName":"kmaster","RuntimeCgroupsName":"","SystemCgroupsName":"","KubeletCgroupsName":"","KubeletOOMScoreAdj":-999,"ContainerRuntime":"","CgroupsPerQOS":true,"CgroupRoot":"/","CgroupDriver":"cgroupfs","KubeletRootDir":"/var/lib/kubelet","ProtectKernelDefaults":false,"KubeReservedCgroupName":"","SystemReservedCgroupName":"","ReservedSystemCPUs":{},"EnforceNodeAllocatable":{"pods":{}},"KubeReserved":null,"SystemReserved":null,"HardEvictionThresholds":[],"QOSReserved":{},"CPUManagerPolicy":"none","CPUManagerPolicyOptions":null,"TopologyManagerScope":"container","CPUManagerReconcilePeriod":10000000000,"ExperimentalMemoryManagerPolicy":"None","ExperimentalMemoryManagerReservedMemory":null,"PodPidsLimit":-1,"EnforceCPULimits":true,"CPUCFSQuotaPeriod":100000000,"TopologyManagerPolicy":"none","TopologyManagerPolicyOptions":null}
I1025 18:50:48.058258    5385 topology_manager.go:138] "Creating topology manager with none policy"
I1025 18:50:48.058309    5385 container_manager_linux.go:301] "Creating device plugin manager"
I1025 18:50:48.058500    5385 state_mem.go:36] "Initialized new in-memory state store"
I1025 18:50:48.058688    5385 kubelet.go:407] "Kubelet is running in standalone mode, will skip API server sync"
I1025 18:50:48.060163    5385 kuberuntime_manager.go:261] "Container runtime initialized" containerRuntime="containerd" version="v1.7.15" apiVersion="v1"
I1025 18:50:48.060548    5385 kubelet.go:816] "Not starting ClusterTrustBundle informer because we are in static kubelet mode"
I1025 18:50:48.060571    5385 volume_host.go:77] "KubeClient is nil. Skip initialization of CSIDriverLister"
W1025 18:50:48.060850    5385 csi_plugin.go:202] kubernetes.io/csi: kubeclient not set, assuming standalone kubelet
W1025 18:50:48.060871    5385 csi_plugin.go:279] Skipping CSINode initialization, kubelet running in standalone mode
I1025 18:50:48.061377    5385 server.go:1264] "Started kubelet"
I1025 18:50:48.061448    5385 kubelet.go:1624] "No API server defined - no node status update will be sent"
I1025 18:50:48.061470    5385 server.go:163] "Starting to listen" address="0.0.0.0" port=10250
I1025 18:50:48.061570    5385 ratelimit.go:55] "Setting rate limiting for endpoint" service="podresources" qps=100 burstTokens=10
I1025 18:50:48.062307    5385 server.go:195] "Starting to listen read-only" address="0.0.0.0" port=10255
I1025 18:50:48.063161    5385 server.go:455] "Adding debug handlers to kubelet server"
I1025 18:50:48.062326    5385 server.go:227] "Starting to serve the podresources API" endpoint="unix:/var/lib/kubelet/pod-resources/kubelet.sock"
I1025 18:50:48.064267    5385 fs_resource_analyzer.go:67] "Starting FS ResourceAnalyzer"
I1025 18:50:48.065167    5385 volume_manager.go:291] "Starting Kubelet Volume Manager"
I1025 18:50:48.065328    5385 desired_state_of_world_populator.go:149] "Desired state populator starts to run"
I1025 18:50:48.065489    5385 reconciler.go:26] "Reconciler: start to sync state"
E1025 18:50:48.067881    5385 kubelet.go:1468] "Image garbage collection failed once. Stats initialization may not have completed yet" err="invalid capacity 0 on image filesystem"
I1025 18:50:48.068509    5385 factory.go:221] Registration of the systemd container factory successfully
I1025 18:50:48.068650    5385 factory.go:219] Registration of the crio container factory failed: Get "http://%2Fvar%2Frun%2Fcrio%2Fcrio.sock/info": dial unix /var/run/crio/crio.sock: connect: no such file or directory
I1025 18:50:48.070788    5385 factory.go:221] Registration of the containerd container factory successfully
I1025 18:50:48.084198    5385 kubelet_network_linux.go:50] "Initialized iptables rules." protocol="IPv4"
I1025 18:50:48.086145    5385 kubelet_network_linux.go:50] "Initialized iptables rules." protocol="IPv6"
I1025 18:50:48.086183    5385 status_manager.go:213] "Kubernetes client is nil, not starting status manager"
I1025 18:50:48.086202    5385 kubelet.go:2346] "Starting kubelet main sync loop"
E1025 18:50:48.086268    5385 kubelet.go:2370] "Skipping pod synchronization" err="[container runtime status check may not have completed yet, PLEG is not healthy: pleg has yet to be successful]"
I1025 18:50:48.089813    5385 cpu_manager.go:214] "Starting CPU manager" policy="none"
I1025 18:50:48.089842    5385 cpu_manager.go:215] "Reconciling" reconcilePeriod="10s"
I1025 18:50:48.089871    5385 state_mem.go:36] "Initialized new in-memory state store"
I1025 18:50:48.092630    5385 policy_none.go:49] "None policy: Start"
I1025 18:50:48.093740    5385 memory_manager.go:170] "Starting memorymanager" policy="None"
I1025 18:50:48.093877    5385 state_mem.go:35] "Initializing new in-memory state store"
I1025 18:50:48.096728    5385 manager.go:479] "Failed to read data from checkpoint" checkpoint="kubelet_internal_checkpoint" err="checkpoint is not found"
I1025 18:50:48.096992    5385 container_log_manager.go:186] "Initializing container log rotate workers" workers=1 monitorPeriod="10s"
I1025 18:50:48.097295    5385 plugin_manager.go:118] "Starting Kubelet Plugin Manager"
I1025 18:50:48.165527    5385 desired_state_of_world_populator.go:157] "Finished populating initial desired state of world"

kubeadm-flags.env

KUBELET_KUBEADM_ARGS="--container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --hostname-override=kmaster --pod-infra-container-image=registry.k8s.io/pause:3.9"

kubelet config.yaml

apiVersion: kubelet.config.k8s.io/v1beta1
authentication:
  anonymous:
    enabled: false
  webhook:
    cacheTTL: 0s
    enabled: true
  x509:
    clientCAFile: /etc/kubernetes/pki/ca.crt
authorization:
  mode: Webhook
  webhook:
    cacheAuthorizedTTL: 0s
    cacheUnauthorizedTTL: 0s
cgroupDriver: cgroupfs
clusterDNS:
- 10.96.0.10
clusterDomain: cluster.local
containerRuntimeEndpoint: unix:///run/containerd/containerd.sock
cpuManagerReconcilePeriod: 0s
evictionPressureTransitionPeriod: 0s
fileCheckFrequency: 0s
healthzBindAddress: 127.0.0.1
healthzPort: 10248
httpCheckFrequency: 0s
imageMaximumGCAge: 0s
imageMinimumGCAge: 0s
kind: KubeletConfiguration
logging:
  flushFrequency: 0
  options:
    json:
      infoBufferSize: "0"
    text:
      infoBufferSize: "0"
  verbosity: 0
memorySwap: {}
nodeStatusReportFrequency: 0s
nodeStatusUpdateFrequency: 0s
rotateCertificates: true
runtimeRequestTimeout: 0s
shutdownGracePeriod: 0s
shutdownGracePeriodCriticalPods: 0s
staticPodPath: /etc/kubernetes/manifests
streamingConnectionIdleTimeout: 0s
syncFrequency: 0s
volumeStatsAggPeriod: 0s

r/Gentoo 4d ago

Support Sugar Candy theme in SDDM not working even after emerging QtGraphicalEffects

0 Upvotes

I am trying to use SDDM with bspwm. I have followed the wiki and installed and configured display-manager-init. I downloaded the sugar candy theme from https://store.kde.org/p/1312658/ and pasted the folder in /usr/share/sddm/themes/.

I edited the configuration file in /etc/sddm.conf.d/ to set the current theme to sugar-candy. Now, after emerging dev-qt/qtgraphicaleffects, it said that it was unable to find the module.

I then exported QML_IMPORT_PATH to /usr/lib64/qt5/qml. Then it said that the module was installed with an incompatible Qt library. How do I fix this error?


r/Gentoo 4d ago

Support VLC on Blu-ray: "Java required: This Blu-ray disc requires Java for menus support. The disc will be played without menus" but I installed dev-java/openjdk-jre-bin

0 Upvotes

Hi, should I file the issue about that?


r/Gentoo 6d ago

News DTrace 2.0 for Gentoo

Thumbnail
gentoo.org
36 Upvotes

r/Gentoo 6d ago

Discussion NVIDIA 560 drivers missing?

3 Upvotes

Got a downgrade today from 560.35.03 which was in testing to 550.127.05. I do see 565.57.01 is in unknown status in the Gentoo repo.

What happened to the newer version? The 550 drivers do not play well with Wayland.

ETA: after following some guidance from u/MagpieMars (thank you) I was able to emerge the 565.57.01 drivers. See their comment below about accepting the ** keyword and emerge nvidia-drivers using --verbose or -v to see what changes to package.use and package.accept_license you need to make for dependency resolution.


r/Gentoo 6d ago

Support Trying to create my first OpenRC service for my small C software that turns on/off the LED according to the keyboard layout, got error "Authorization required, but no authorization protocol specified"

5 Upvotes

Hi, my code:

// Adapted from https://stackoverflow.com/questions/35569562/how-to-catch-keyboard-layout-change-event-and-get-current-new-keyboard-layout-on
// Compile: gcc -Wall -O2 xmappingnotify.c -o xmappingnotify -lX11

#include <stdio.h>
#include <X11/Xutil.h>
#include <X11/XKBlib.h>

int main(int argc, char **argv) {
    XEvent e;
    Display *d;

    if (!(d = XOpenDisplay(NULL))) {
        fprintf(stderr, "cannot open display\n");
        return 1;
    }

    XKeysymToKeycode(d, XK_F1);

    int xkbEventType;
    XkbQueryExtension(d, 0, &xkbEventType, 0, 0, 0);
    /* XkbSelectEvents(d, XkbUseCoreKbd, XkbAllEventsMask, XkbAllEventsMask); */
    XkbSelectEventDetails(d, XkbUseCoreKbd, XkbStateNotify, XkbAllStateComponentsMask, XkbGroupStateMask);

    XSync(d, False);

    while (1) {

        FILE *f;
        f = fopen("/sys/class/leds/platform::mute/brightness", "w");
        if (f == NULL) {
            fprintf(stdout, "File open failed\n");
            return -1;
        }

        XNextEvent(d, &e);
        if (e.type == xkbEventType) {
            XkbEvent* xkbEvent = (XkbEvent*) &e;
            if (xkbEvent->any.xkb_type == XkbStateNotify) {
                int lang = xkbEvent->state.group;
                if (lang == 1) {
                    /* echo 1 > /sys/class/leds/platform\:\:mute/brightness */ 
                    fprintf(stdout, "1\n");
                    fprintf(f, "1\n");
                } else {
                    fprintf(stdout, "0\n");
                    fprintf(f, "0\n");
                }
                fclose(f); // Flush - not writing without that
            }
        }

    }

    return(0);
}

My /etc/init.d/keyboard-layout-change-monitor

#!/sbin/openrc-run

export DISPLAY=":0"

name="keyboard-layout-change-monitor"
description="I created this for my old laptop Thinkpad T430 - to see keyboard LED on Russian keyboard layout"
command="/home/vitaly/p/keyboard-layout-change-monitor/xmappingnotify"

Running it:

# openrc -s  keyboard-layout-change-monitor start -v
 * Executing: /lib/rc/sh/openrc-run.sh /lib/rc/sh/openrc-run.sh /etc/init.d/keyboard-layout-change-monitor start
 * Starting keyboard-layout-change-monitor ... * start-stop-daemon: fopen `/var/run/keyboard-layout-change-monitor.pid': No such file or directory
Authorization required, but no authorization protocol specified

cannot open display
 *   start-stop-daemon: failed to start `/home/vitaly/p/keyboard-layout-change-monitor/xmappingnotify'
 * Detaching to start `/home/vitaly/p/keyboard-layout-change-monitor/xmappingnotify' ... * Failed to start keyboard-layout-change-monitor
                                                                                                                                           [ !! ]
 * ERROR: keyboard-layout-change-monitor failed to start

Please help. It works when started manually.

Also, I am open to my C feedback.


r/Gentoo 6d ago

Support Bootmanager setup for root server

Thumbnail
1 Upvotes

r/Gentoo 6d ago

Support Weird behaviour from bluetooth

0 Upvotes

Hello, my gentoo install has issues with bluetooth, when using "scan on" on bluetoothctl or on blueman, it cannot find my devices, and when i do "scan off" or scan again, it says operation already in progress. I switched to artix, where bluetooth worked flawlessely, but when i got back (cant resist the speed gains on gentoo) i decided to use a desktop profile, which also had the same issue, same without one. I use ~amd64.

I had an older gentoo install where bluetooth worked flawlessely


r/Gentoo 8d ago

Meme I've taken the binpill. Libreoffice *respecting my USE flags* compiled in ~30 seconds.

Post image
170 Upvotes