r/AlpineLinux • • 12d ago

GUI Installer for Alpine Desktop Released

Post image

https://github.com/netrunner01/alpine-desktop-setup

Supports install via WiFi

Includes a very basic package manager.

Alpine Desktop Setup

A graphical installer and three lightweight desktops for Alpine Linux 3.24 (x86_64). Built for computers with little RAM: old PCs, and repurposed or embedded machines whose RAM cannot be upgraded.

Boot the ISO, answer a few questions, and get a working desktop: network icon, sound, removable media, memory compression, Firefox and a small "Software and updates" window. Tested with 2 GiB of RAM.

[!IMPORTANT] On computers with 4 GB of RAM or less:

Without these two settings the browser may glitch or crash.

Why

I often install Alpine Linux on repurposed hardware and very low-RAM computers. I got tired of walking through the installer by hand, then running the desktop setup script, then doing a string of manual steps just to get sound and other basics installed and working. This does all of it in one pass.

The target is 2 GB of RAM on purpose. A lot of working hardware is thrown away because it cannot run a current desktop. With memory compression (zram) and swap, 2 GB is enough for a complete desktop and Firefox with a few tabs open, YouTube included. I want more people to reuse these machines and keep them out of e-waste and landfill.

It is a thin layer over Alpine's own tools (setup-alpine, setup-desktop, apk). It has no partitioning code and never replaces settings it does not own.

Status

Download the ISO from Releases, or build your own (below). Each release lists the SHA-256 of its ISO; compare it before use:

sha256sum alpine-desktop-3.24.4-x86_64.iso

The setup files on a released ISO are signed with this minisign public key:

RWTm2Oj1I9RnHv6ZT3Ltx1ofQ5OnZWttC6jEgknopyP3ITZhbe5sZMjd

Tested mostly in QEMU/KVM guests with 2 and 4 GiB RAM, UEFI and BIOS. All three desktops have had limited testing on real hardware; Wi-Fi was tested there with Openbox Lite. Secure Boot is untested. Back up first.

Maintenance

This is a personal project that I use myself, published as is. Do not expect frequent updates or bug fixes. Issues and comments are welcome, but with everything else I have going on I am unlikely to get to them in any reasonable time. If you need a fix, your best option is to fork it.

Desktops

Profile Idle RAM Login screen Notes
openbox about 300 MiB LightDM Openbox Lite: Openbox, tint2 panel, right-click menu
lxqt about 375 MiB SDDM Alpine's setup-desktop lxqt, completed
xfce about 425 MiB LightDM Alpine's setup-desktop xfce, completed

Idle RAM is memory in use after login, measured in virtual machines. All three come with Firefox.

Build an ISO

On Alpine 3.24 x86_64 (machine, VM or container), as an ordinary user:

sh build/make-iso.sh out

It names the packages to install if any are missing. The ISO is labeled UNOFFICIAL and signed with a key made for the build (out/keys); set SIGNING_KEY and SIGNING_PUBKEY to use your own minisign pair. Packages come from Alpine's repositories at build time. Alpine's four mkimage scripts are downloaded from a pinned commit and checked by SHA-256; they are not in this repository because Alpine states no license for them.

Install

Boot the ISO. A graphical installer asks for keyboard, time zone, network (wired or WPA2/WPA3 Wi-Fi), one disk to erase, a user and a desktop, then runs setup-alpine. The first start finishes the desktop and restarts once.

For dual boot, encryption or a text install, see INSTALL.md.

Use on an installed Alpine

Each profile has one entry point with three actions:

sh setup-xfce.sh inspect eth0     # read-only
sh setup-xfce.sh configure eth0   # as root; then reboot and log in
sh setup-xfce.sh verify eth0      # prints JSON

setup-lxqt.sh and setup-openbox.sh work the same way. eth0 is an example; use your interface name.

Exit code Meaning
0 pass
1 fail
2 usage error
42 deferred: custom settings kept, or a reboot/login is still owed

configure always ends with 42 because a reboot is owed. verify never claims the desktop works; it reports what a script can check.

Network hand-over to NetworkManager is never run remotely. configure prints the one command to run at the computer's own console.

Develop

Python standard library and POSIX shell. No dependencies.

sh tests/check.sh                                     # everything CI runs
python3 -m unittest tests.test_network_module -v      # one test file

check.sh needs Linux (or WSL), python3 and shellcheck.

Layout

Path What
setup-*.sh, modules/ code that runs on the Alpine machine
bootstrap.py signed-delivery entry point; a template filled in at build time
iso/ graphical installer and inputs for Alpine's mkimage
build/ make-iso.sh and the release tools it uses
tests/ unit tests; they never touch the host system

License

MIT, see LICENSE.

46 Upvotes

22 comments sorted by

10

u/Artistic_Crazy_7120 12d ago

I have tested this and it's awesome. I know that the install process is holding some people back and you solve this with this installer. Have you tried to work with the Alpine project?

5

u/NietzscheWasOptimist 12d ago

I am very passionate about saving old computers. Anyone, no matter how poor, should be able to have a repurposed computer that meets their basic needs. People should not just throw away old computers. They should be reused. Install Alpine, LibreOffice, a few other apps. Sell at cost, a small profit or donate. Make the world a better place than you found it.

2

u/Artistic_Crazy_7120 12d ago

I appreciate what you are doing and what better system to use for this than Alpine which is very light. I wish you success with this.

4

u/NietzscheWasOptimist 12d ago

Thanks! I haven't. Just a personal project.

2

u/7777dk7777 12d ago

I wish there was a 32 bit version

1

u/NietzscheWasOptimist 5d ago

If I add 32 bit, which DE do you want? I have to manually test everything myself, so I would only add one DE.

1

u/7777dk7777 2d ago

Honestly, LXDE or LXQT would be great. Pls, do not add XFCE, it's lightweight enough, and lxde looks nice and it's really fast. Also, sorry if I missed that, but does it install drivers automatically?

1

u/NietzscheWasOptimist 2d ago

All driver installation is handled by the native Alpine installer. With very few exceptions, the GUI installer is just a UI wrapper that feeds your choices to the native text installer via answer files.

1

u/NietzscheWasOptimist 2d ago

I will look into possibly doing a LXQt 32 bit version. No promises. I have no help with the project. So, adding a new 32 bit project is a significant burden. Alpine doesn't have LXDE implemented, so I will have to use LXQt.

1

u/NietzscheWasOptimist 1d ago edited 21h ago

Please send me a DM. I can't message you for some reason. I need to give you a 32-bit test iso. Thanks.

2

u/ViriatoPRT 12d ago

maybe instead of lxqt, icewm?

2

u/NietzscheWasOptimist 12d ago

Thanks for the suggestion. Please explain.

2

u/ViriatoPRT 10d ago

icewm as an option for a WM, instead of lxqt

2

u/GenericFoodService 11d ago

No screenshots? :(

3

u/NietzscheWasOptimist 11d ago

Can't upload them in a comment or edit the post's picture

1

u/GenericFoodService 7d ago

Why not in the README of the repo?

2

u/SnowBoy_00 11d ago

cool! Does it also include a SELinux or AppArmor setup out of the box? People often don't realize it, but it's a pretty important piece of security for desktop apps, and afaik it's missing in a standard Alpine config.

2

u/NietzscheWasOptimist 11d ago

No. The intent is to handle the bare minimum to get a usable desktop installed. You would need to follow the wiki instructions for setting up apparmor. A very astute question, certainly.

2

u/SnowBoy_00 11d ago

Astute? It was a genuine one, I was on the go and didn't have time to check the codebase. I see the point in making the bare minimum amount of changes to get a usable desktop. I just thought that, from a user perspective, it would be great to automate the setup of some basic hardening that all other desktop distro already ship with. Something to consider for a future release maybe, or maybe not. Nevertheless, cool project

2

u/NietzscheWasOptimist 11d ago

Based on your comment, I did look into it. The apparmor profiles that Alpine ships don't constrain anything on the desktop apps. They are essentially placeholders. A user would have to manually modify them to add hardening. It looks like the only ones that ship with prefab constraints are for some daemons.

4

u/fazelesswhite 12d ago

Very cool! A suggestion: a simple quick video/screenshot in the README would be nice

3

u/lproven 12d ago

This sounds very interesting. One question: was it made with or by an LLM? For something new your README and announcement are suspiciously long and heavily formatted...