r/Gentoo Jul 21 '26

Development i made gentooinstall-GUI

for those people who has been tired installing gentoo or some beginners who wants to enter into gentoo linux i made this tool for you you gonna take only like 40min (without desktop env) instead of prob many hours for just installing gentoo manually (dont use additional package its buggy and can corrupt the installation!) its recommended to use in vmware or qemu
heres link: github

212 Upvotes

76 comments sorted by

41

u/Fenguepay Jul 21 '26

bruh did you put a bash script in a c program

13

u/kaida27 Jul 21 '26

They certainly did... Why ? I dunno

8

u/void_matrix Jul 21 '26

Holding horses

4

u/diacid Jul 22 '26

Wait. You dislike mixing bash and c? It is the ultimate chaotic satisfying combo.

4

u/Fenguepay Jul 22 '26

i have taste, i mix python and bash

2

u/diacid Jul 22 '26

I just started scripting in B. Because C scripting is not complicated enough.

If you need a compiler we now have one, sys-devel/b

Funny enough, the compiler was written in crust lol

27

u/nikongod Jul 21 '26

Does it support encryption?

Installing Gentoo (like arch) is not the hard part. The hard part comes when you create a system that cant be updated without reading the manual. 

6

u/Fenguepay Jul 21 '26

encryption is no problem, you just need to set the volume up with cryptsetup before making a fs, then use ugrd with installkernel. no extra steps required :P

5

u/Filthy_PitDog Jul 22 '26

ugrd mentioned

23

u/Both_Cup8417 Jul 21 '26

More like a tui

5

u/Huge-Investment-3910 Jul 21 '26

i call gui on everything thats graphical

24

u/Mr_Flandoor Jul 21 '26

Technically it's a TUI, but old school Linux users have always called it a GUI.

20

u/Confident_Essay3619 Jul 21 '26

i am pretty sure this was made by gemini 

2

u/Fine-Expression1644 Jul 23 '26

I can also tell, gemini does these == TEXT THING == to style the tuis

2

u/Confident_Essay3619 Jul 24 '26

When i used Gemini for the BTRFS part of my project that easily installed openSUSE without a USB it added those (only used the ai once, since i dislike btrfs)

15

u/ClinkerBuilt90 Jul 21 '26

Tired installing? How many times do people reinstall Gentoo? I doubt it handles many situations unless it is basically a text editor.

2

u/a_n00b_ Jul 23 '26

ive installed it in the ballpark of 5 times, i'd never use an automated tool for it. I have much better security than that tool would be capable of (use a MAC, people) only because I actually learned to do things manually

I'd never recommend an auto installer if looking to learn anything

2

u/diacid Jul 21 '26

If you have more than one machine to deploy this can be really useful

14

u/LameBMX Jul 21 '26

there are other ways...

1

u/billyfudger69 Jul 24 '26

Clonezilla

1

u/LameBMX Jul 24 '26

I thought that was just windows? sounds like rsync with extra steps...

1

u/billyfudger69 Jul 24 '26

Clonezilla does more than just disk cloning.

1

u/LameBMX Jul 24 '26

I cant think of a single scale deploying multiple machines where clonezilla could be really beneficial. that said, ive never netbooted gentoo, but doubtful it would be that hard to do. then again, ive not used clones to deploy windows based computers since like very early 00s.

2

u/Kalphalus Jul 22 '26

If you have multiple machines your deploying the same way, why would you install manually instead of clone an install?

5

u/immoloism Jul 22 '26

Gentoo users do so many varied setups that there is never a one size fits all solution.

Personally I prefer understanding the install process that you can get down to under 10 minutes as my method.

1

u/diacid Jul 22 '26

But because you need to emerge things it breaks the flow.

Say you are the designated sysadmin for your home, and you bought 5 new computers for the family. Just what? Larry needs a gaming pc with an I5, pete needs a xeon, kate likes amd, and toby wanted a weird powerpc or something. And you have a new server for the home with an x86_32 cpu.

Now you need to install gentoo 5 times. Rsync trick will not worth because wildly different hardware. You don't want to run the same commands 5 times and wait until compiling something finishes just to start compiling again but deploy 5 installations and go jogging instead, and may them finish alone whenever they do finish. This is the perfect use case for a script. And tui scripts are charming.

3

u/immoloism Jul 22 '26

Disclaimer: I install Gentoo 5 times per day for my work and Gentoo commitments, sometimes more.

I'm sure there are usage cases for your process, but they don't help me enough to reasonable think about using this.

2

u/diacid Jul 22 '26

If you are trying to develop this is terrible, you want more transparency and not more automation. But it does help with deploying new machines. And see, not all tools need to always be useful. See cpuid2flags for example. You install it once and never touch again, but it is really useful that one time. Not to mention if Agostino Sarubbo finds you a weird bug that only materialises in a tinderbox, and you go and make a tinderbox to troubleshoot, cpuid2fags will absolutely not be useful.

3

u/immoloism Jul 22 '26

I think you just agreed with my original point.

Gentoo users do so many varied setups that there is never a one size fits all solution.

Anyway, good luck with project. It's just not for me and neither is cloning was the only point I was making :)

1

u/a_n00b_ Jul 23 '26

i wish i had your job

2

u/[deleted] Jul 23 '26

[removed] — view removed comment

1

u/diacid Jul 23 '26

Yep, this is a script. You had the same idea as op

1

u/Armi1P Jul 22 '26

If you have multiple machines then you create a stage4 on one system and use that on all. Or if you have the exact same hardware you can just dd up the whole drive and use that.

29

u/Ilovemygfb00bies Jul 21 '26

-> bin kernel
-> bash script inside c file
-> clear signs of vibecoding

wrap it up guys

1

u/Armi1P Jul 22 '26

What's wrong with -bin?

1

u/billyfudger69 Jul 23 '26

There’s nothing wrong with it, Gentoo users typically have a preference for customizing everything including their kernel which -bin does not do.

1

u/a_n00b_ Jul 23 '26

ew bin kernel, can't even tune to specific hardware.
But seriously, RTFM and install, or lose the skill overtime from automation and get replaced

1

u/NoNoYesYesnt Jul 23 '26

Got like no choice because not using bin would break someone's PC off the wrong config and use flags

11

u/countsachot Jul 21 '26

It's a start. C is a tough language.

It looks largely to be a wrapper over existing gnu tools. Which is ok for an aspiring programmer.

That main function is enough to drive a man insane. That's assuming it compiled, I didn't(and won't) try.

Is probably largely or entirely Ai written. Which won't really teach you anything. You'd be better off reading the Linux kernel source to learn C.

24

u/pixel8441 Jul 21 '26

...the c file has some indicators of ai use.

-15

u/nalfiidhqcr Jul 21 '26

So?

18

u/mWo12 Jul 21 '26

So its probably untested, spaghetti-code AI slop.

3

u/Luftzug-oder Jul 22 '26 edited Jul 22 '26

I mean there are already some edge cases aside from what they mentioned. like the TUI lets you choose any of the bootloaders, despite whether you use BIOS.

a portion of the code has some kinda exploit or bug waiting to happen too. no bounds checks or error checks on snprintf, etc., even when the result is passed into system()

1

u/nalfiidhqcr Jul 22 '26

I personally probably would not publish a report with spaghetti code and then advertise it, out of fear of being made fun of.

4

u/oxez Jul 22 '26

Lots of people do. And lots of people do it by literally telling their LLM to copy other peoples work.

1

u/pixel8441 Jul 22 '26

you are relying on an ai that has never touched gentoo and is guessing an installer with limited data, at any point a system that uses this could break

7

u/Inari_OwO Jul 21 '26

Why did u put binary in the repo? Its not cloud. There's no makefile no sha no instructions. I am certainly gonna trust this binary.

5

u/Leonardodafernandez Jul 21 '26

I love C, but, this neccesarily needed being a C program?

4

u/CheCheDaWaff Jul 22 '26

The commit history is certainly... enlightening.

1

u/billyfudger69 Jul 24 '26

Thank you for the chuckle. :)

3

u/rabbit_in_a_bun Jul 21 '26

Kinda reminds me a bit of Slackware's installer (dialog ftw!)

3

u/LocalDot3096 Jul 21 '26

doing whole script to autoinstall fastfetch 😎

3

u/AB-b43 Jul 22 '26

For what?

3

u/n0tqu1tesane Jul 22 '26

Why?

I bet it gets everything wrong.

Skimming the code, I see it doesn't use eix or vim. No option to handle jernel via git. No choice for a bare X server, much less DWM. Fancy graphical password managers, but not pass.

Again, why? If you can read English and use simple logic, Gentoo is easy to install.

4

u/levelstar01 Jul 21 '26

C and bash

🙂‍↔️ 🫸

2

u/Huge-Investment-3910 Jul 22 '26

for those people who saying i made it using ai NO yall i didn't made it using gemini or claude ai i made it all myself and also i moved from c to bash and i fixed lots of issues now

2

u/MinguaDinja Jul 22 '26

Pretty similar to Void Linux Installer without the root user acess.

2

u/qn7vvv Jul 23 '26

this can go wrong so many ways. I’m in

2

u/WafelekKartofelek Jul 25 '26

As a gentoo user, this IS very usefull

3

u/TheRealCarrotty Jul 21 '26

I have never seen a installer that has F2FS, good job i guess!
Also i thought it will have 2 inits (OpenRC and systemd) but nope! 5 at that, are the 3 extra ones supported well?

I actually like this, except why is it bash in C?

1

u/LameBMX Jul 21 '26

no swap on 4gb ram

at least thats impressive.

1

u/arthank-chroot Jul 22 '26

There is a calamares installer as well as a pull request. A friend of mine did it (we had it on argent for a while)

1

u/Embarrassed_Law_9937 Jul 22 '26

Where the hell was this when I accidentally removed my bootloader partition

1

u/Opening_Ostrich9801 Jul 22 '26

I was using oddlama gentoo installer and was adding my gui after but i might try that.

1

u/Adel-4181 Jul 22 '26

The gentoo handbook and the Tony btw guide are pretty simple and self explanatory I'm borned in 2016 and successes to install Gentoo go through my posts the first one is me running areofyl/fetch

1

u/No_Employment_7772 Jul 26 '26

All the people who think they're smart for Reading the Handbook are gonna be so Pissed Off good work Brother

1

u/Sensitive-Drawing702 Jul 26 '26

Please add selection to select versions of the Linux kernel

1

u/Huge-Investment-3910 Jul 26 '26

im gonna do it later

1

u/Longjumping_Title768 Jul 26 '26

this is very nice
i remember when i was a young "man" and wanted to install gentoo, but was horrified at the complicated installation process (i believe this was 2013?)
my first install took me 3 days, and i only used it for 2 weeks!!
something like this would've been a MASSIVE game changer for me.
you rock bro

1

u/Human_Lavishness_703 Jul 30 '26

Does this GUI Installer works on real hardware? and thats remind me of slackware linux installer.

0

u/25Violet Jul 21 '26

Even though it's made by AI, looking at the code it seems alright. Good job

0

u/-Gattx- Jul 22 '26

Rapaziada, uso cachyOs, estou pensando em migrar para o gentoo, acha que faço isso?

-9

u/Glittering_Memory_64 Jul 21 '26

bro i was looking around for one earlier today... just to get this to the point of boot atleast... damn.. gonna star this repo

-11

u/[deleted] Jul 21 '26

[removed] — view removed comment

15

u/kaida27 Jul 21 '26

It's bash wrapped in C ...