r/Gentoo • • 9h ago

Meme install what?

Post image
113 Upvotes

r/Gentoo • • 11h ago

Support Can I make a GUI for debootstrap to make ISO files?

Thumbnail reddit.com
0 Upvotes

r/Gentoo • • 1d ago

Support Any news about Gentoo and GNU/Hurd? How is the 64-bit project progressing? In my test as an end user, this is how it is displayed on the gnu/hurd link:

7 Upvotes

r/Gentoo • • 10h ago

Story Switching to chimera

Post image
0 Upvotes

I have been using Gentoo for a long time. It was better than most of linux distributions I used. However, I want to explore new ones. This is just a goodbye to all Gentoo users.


r/Gentoo • • 1d ago

Support Update or Reinstall

5 Upvotes

This weekend I’m going to start using a Gentoo machine again that hasn’t been updated in about two months. With how out of date it is, am I better off trying to get it updated or just wiping it and starting from scratch?

I’d previously used AI a lot when setting it up and maintaining it and I’m trying to move away from that as I start using the machine again going into winter break, so my understanding of it is not the absolute greatest, and some stuff (such as with secure boot) is probably a bit scuffed, so that may also play into it. I have a Fedora laptop I’ve been using for school and stuff.

Edit: thank you all for the helpful advice. I’ll go through the update process this weekend now that I’m back home. The reason my laptop is on Fedora was so that I had a Linux that wasn’t as hard to maintain. I’m going to keep it on Fedora until I feel good about maintaining Gentoo and understanding it.

I want to use Gentoo and get good at it and understand it. I’m graduating with a CS degree this year and I’d like to start contributing to more open source projects and possibly a linux distro (without AI), and I think Gentoo is a good place to do that. I’m still pretty new to Linux (maybe 7 months daily driving it with about a year of WSL before that), but I want to get better.

Edit 2: just started the world update, 519 packages. I already updated systems beforehand, but the only big change I needed to make was targeting python 3.13. Thank you all for the advice and support.


r/Gentoo • • 2d ago

Screenshot rose-pine but darker

Thumbnail
gallery
115 Upvotes

r/Gentoo • • 1d ago

Support Sould i use Gentoo

0 Upvotes

>Hi (sorry for bad English)

>I had use GNU/Linux for over 3+ years so im not a noob

>Last week i use fedora GNU/Linux

>i hate atomic and want to move to something else

>found gentoo on YouTube

>basically here is what i want form a disto:

>1 Stablliy: i kanna can maniten it, I know enough about GNU/Linux to fix problems but i dont want it to be my second hobby

>2 bragging right: I flex i use gentoo btw and make the arch user mad at me

>3 gaming: i want to play videos games on steam

>4 freedom: i can do whatever i want without any resction

>5: aslo i like compiling software (something)

>what do you think sould i try it (btw I use Rx 9060 xt)


r/Gentoo • • 2d ago

Screenshot [mango] first gentoo install (no, its not caelestia shell)

10 Upvotes

r/Gentoo • • 2d ago

Story i started using gentoo after falling for the meme

35 Upvotes

pretty good distro though, i see what the glaze on tiktok is about!


r/Gentoo • • 1d ago

Discussion Gentoo or FreeBSD for long-term usage and security

0 Upvotes

I don't know what chosing between Gentoo or FreeBSD. I'm looking an OS for basic task, gaming ( just few 2D games I've bought on GOG), without age verification and a secure OS.


r/Gentoo • • 3d ago

Screenshot Pushing the limits of 90s hardware.

Thumbnail
gallery
640 Upvotes

Squeezing as much capability as I can from this 31 year old system, for fun.


r/Gentoo • • 3d ago

Screenshot Joining the club

Post image
42 Upvotes

I just installed Gentoo on my spare Lenovo G50-80 laptop for first time. Took me like 16 hours to compile the base system lol. And probably another 16 hours to set it up properly.

I never installed Gentoo Linux before, so this experience was very exiting for me. Teaches me patience , that`s for sure.

So far , runs surprisingly well, even on this laptop.


r/Gentoo • • 3d ago

Story My journey: installing Gentoo (from an Ubuntu image) in a Oracle VPS, ARM64 architecture

9 Upvotes

This will be my first post here, I will try not to be messy, the story is a bit long.

Well, since the first days of October I am delving into the self-hosting world.
I am not new to Linux or managing things, but I never delved into networking, self-hosting services and managing data, with backups, replication and stuff (meaning: data that cannot be lost, since other people rely on me for not losing their stuff).

The first experience I had was hosting my minecraft server, a lot of years ago, then I did it again with more limitations (no open ports, mobile internet) and used a VPS of a friend with FRP to tunnel everything.

I saw the opportunity to have a free VPS... I took it, also arm64... hmm, interesting.

I choose Ubuntu as image, but fast-forward to two weeks later everything exploded somehow, the VPS became slow as hell, I had to re-create it.
I didn't lose anything because I spent 24 hours migrating manually datas, databses... my first disaster-recovery hahaha!

This happened because of lack of control essentially: taking 20 minutes to wait for the VPS to reboot and waiting 5 more minutes to SSH into it, because a service started on boot and it's hogging its CPU, is bad... since I never set a service to start that thing (I just installed a package).

"How could I install gentoo here? This hardware could really take advantage of native compilation" I wondered... and I found this guide and half-followed it: some things are outdated, redundant or they lacked crucial informations (one day I will contribute to it).

----------
Replacing Ubuntu with Gentoo and configuration
----------
The easy part!

Essentially I created /mnt/gentoo and downloaded the systemd-stage3 archive (no desktop, it's a VPS) and extracted it using the given command.

Chroot into /mnt/gentoo, copy everything (overwriting it) from it to /, then chroot into / again (using the procedure which I will also improve: it could be one command with a for loop.

Well, technically everything should be ok... too bad that before rebooting it's best to:

  • sync portage

  • rebuild gcc (so it will compile better and faster everything else... way faster)

  • rebuild everything after setting make.conf: I used -O3 -march=native -mtune=native and as personal recommendation i emerged cpuid2cpuflags so I populated, in make.conf, CPU_FLAGS_ARM with the output it gives (for the maximum optimization/usage of all the possible functions). In this case CPU_FLAGS_ARM="edsp neon neon-fp16 thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 asimd asimddp asimdhp v4 v5 v6 v7 v8 thumb2"

  • set internet: extremely important. About this, essentially you have to enable systemd-networkd and confiure a dhcp service. Maybe now it will work anyway (because we're still using the ubuntu kernel) but later everything will be more manual.

Now technically everything should be done, right?

You could reboot, delete finally /mnt/gentoo and enjoy your newly super-optimized system... I actually did only after doing an emerge -ave --exclude gcc @world (because gcc was already re-compiled by me).

Though... do a sudo fdisk -l and, dear reader, you will see that:

  • there's the / partition

  • there's an extended boot partition (~900MB)

  • there's an EFI partition (~100MB)

That's not good because... I didn't want grub, but systemd-boot or direct efi booting (I failed at direct EFI booting, so I resorted to systemd-boot, also useful for future regressions in the kernel, or problems).

----------
Installing systemd-boot, replacing the kernel and unifying the /efi partition
----------
This was truly a mess: I broke the boot multiple times, fortunately I had a backup.

Now I know how to do it more easily.

Essentially, to unify the partitions of /efi (/dev/sda15) and /boot (/dev/sda13) you would need to do it live... but then the kernel will not accept the new layout right away: mounting the newly unified /efi partition (1GB when you do) will cause the system to still see the old files and it's "holy desync".

Before this, you would need to:

  • set USEFLAGs dracut and systemd-boot in the sys-kernel/installkernel package

  • of course trigger a recompilation of @world

Now, the "messy" part.

The trick I used was:

  • creating a backup of the boot disk pre-repartitioning

  • creating a second arm64 VPS and using the restored backup (you need to click on "restore" and give a name to the restored backup, since you're creating a new disk from the backup, you cannot work directly from the backup) as boot image.

  • shuttind down the first original VPS, DETACHED the boot disk and powered-on the second VPS

  • attached the original boot disk to the second VPS as BLOCK DISK (it's like when you plug-in an external HDD)

  • ran a sudo cfdisk /dev/sdb (/dev/sdb because we're working on the aux disk mounted from the ORIGINAL VPS) and delete the two partitions, then created a new partition as EFI type.

  • installed sys-fs/dosfstools because I forgot I needed the mkfs.vfat command, then while I pondered in shame, I prepared the next command: sudo mkfs.vfat /dev/sdb2 (or whatever the newly unified partition is called)

  • sudo mkdir /mnt/gentoo-boot && sudo mount /dev/sdb2 /mnt/gentoo-boot

  • sudo bootctl --esp-path /mnt/gentoo-boot install (if it fails, run it without install, then sudo bootctl install

  • installed the kernel so installkernel can do its job and put everything to the esp path

Since by doing this passage, in a different way, I nuked the BIOS too (the VPS wouldn't do anything), I causally understood that, after inspecting the original 100MB partition of /dev/sda15, I found the folder BOOT, which is exactly the BIOS.

  • sudo mount /dev/sda15 /efi && sudo rsync -avc /efi/BOOT /mnt/gentoo-boot/ will fix the mess

HAPPINESS, finally I could detach the block volume, reattach it to the original VPS, start the original VPS and enjoy!

This is the result of all this huge mess:

The final boot time will be of about 20 seconds, instead of almost 1/2 minutes with the ubuntu image.


r/Gentoo • • 3d ago

Support Issue with black screen after enabling wifi support

Thumbnail reddit.com
0 Upvotes

r/Gentoo • • 4d ago

Screenshot Two machines, both running Gentoo – my desk setup (niri)

Thumbnail
gallery
69 Upvotes

Finally happy with how my desk looks, so here it is. Both the desktop and the

laptop run Gentoo, everything built from source.

Desktop

- CPU: Intel i5-12400F

- GPU: AMD RX 6600

- Monitors: MSI G27C7 (27" curved, 165 Hz) + Hanchang M27E in portrait

- Kernel: custom 7.3.4 (gentoo-sources), signed, Secure Boot + lockdown

- WM: niri | Shell: fish | Editor: Neovim

Laptop

- ThinkPad l14 gen4 , also Gentoo + niri

- Offloads compiles to the desktop with distcc

Keyboard: GK61 · Mouse: Logitech G305

Happy to share configs if anyone's interested.


r/Gentoo • • 4d ago

Screenshot Gentoo on 2015 Macbook

Post image
85 Upvotes

r/Gentoo • • 5d ago

Story GentooAtomicGlibc rc3

Thumbnail
gallery
24 Upvotes

.


r/Gentoo • • 5d ago

Story Switched for good this time!

Thumbnail
gallery
126 Upvotes

Figured I'd post here while I wait for emerge --emptytree @world to finish, since I've moved to clang with -flto systemwide plus patches to various software that I use. (ad-free Telegram is nice!).

Gentoo's been pretty fun for the past seven days that I've been using it, and I'm learning something new I can do with it pretty much every hour. It always gets me thinking: "why didn't I switch earlier?" But better late than never, I guess. Never thought an OS could feel this elegant and correct...

Oh and did I mention how easy it is to write OpenRC services?


r/Gentoo • • 4d ago

Support is there an easy way to make a portable gentoo copy after compiling?

4 Upvotes

Is there a way to bundle my compiled binary onto a usb drive or convert them into an ISO file ?

i want a quick and easy way to reinstall my system or migrate to a new drive without having to recompile everything from scratch.


r/Gentoo • • 4d ago

Support systemd-vconsole-setup failed but boots fine

Thumbnail reddit.com
2 Upvotes

r/Gentoo • • 5d ago

Support Building flatpaks

8 Upvotes

I've found myself using less and less flatpaks on gentoo but i still need them for things such as obsidian, Brave, Minecraft Bedrock launcher, Anki, Zapzap and a few others.

Now that i think about it theres a lot. I'm not sure how to build these from source. How do you find a make from source? Or even if something can be built from source?


r/Gentoo • • 5d ago

Tip Web browsers for Gentoo

23 Upvotes

Hi everyone. I’m wondering what kind of web browsers you’re all using on your Gentoo systems? I'm looking for something lightweight with a minimal compile time, and preferably with some sort of built-in adblocker. The adblocker is optional, though, as my traffic is routed through a server with Pi-hole anyway.

P.S. Before anyone mentions it: yes, I know how to use a internet search engine! In this case I'm just looking for something off the beaten track – maybe some obscure or niche projects. Cheers!

UPDATE: Thanks for the answers, folks. Personally, I prefer not to use Firefox as it's full of bloat, random telemetry, and other 'modern stuff'. I'll check out some of your suggestions, cheers!


r/Gentoo • • 4d ago

Story Gentoo on virtualbox!

0 Upvotes

Well triying to install gentoo on virtualbox is quite painful and also time consuming. I failed multiple Times in my life and i tried to install again and i followed the handbook for the first time. I’m currently installing kde/plasma on it. And also i’m a 12 y/o WHO enjoys pain. Also installed nixos on my main machine. GOODBYE! :)


r/Gentoo • • 6d ago

Tip Tip: Improving Glibc performance

71 Upvotes

By default, Gentoo compiles Glibc with --enable-kernel=3.2.0 (the minimum kernel version required for Glibc). This means that Glibc will use many (often slower) workarounds for features that are not supported in the older kernels.

To compile Glibc against the current Linux headers you have installed on your system, you can add the following environment variable in your package.env or a portage bashrc script:

EXTRA_ECONF+="--enable-kernel=$(qlist -Iv|grep \^sys-kernel/linux-headers|sed s/sys-kernel\\/linux-headers-//)"

linux-headers should already be installed on just about any Gentoo system, but if it isn't, you can install it.

Note: This is also good for those who are security-conscious and like to strip out unused features in their Gentoo system, since your compiled Glibc binaries will no longer contain the legacy 3.2.x+ workaround code.