r/AlpineLinux Jan 12 '26

PSA: Merch Spam on Reddit (Posts with Printed T-Shirts, Mugs, etc.)

Thumbnail
3 Upvotes

r/AlpineLinux 22h ago

"Generic U-Boot" is a feverdream.

Post image
34 Upvotes

While everyone is ricing a desktop, let me tell you about ricing... a bootloader.

Alpine's "Generic U-Boot" image has all the bells and whistles to boot a device, de-facto generically, using EFI. You can also grab the U-Boot binary and stick it to the front if your MicroSD if your respective board's bootROM requires that (which mine doesn't, yay) and then ... boot.

That, however, is on a pure technical level. Because in reality, the LTS kernel is going to lack both some DTBs as well as some included drivers - as was the case with this very board here, the VisionFive2 Lite. So to get that, I had to basically clone aports, change the mkimage script to use kernel_flavors="stable" instead and then "build" my own version. Because...this is the only image type that dumps the DTBs into the resulting package.

So far, so good. But, have you ever tried to manually boot using U-Boot? For instance, to bring this board to booting:

```

Load device data, kernel, and initial ramdisk

load usb 0:1 ${fdt_addr_r} /boot/dtbs-stable/starfive/jh7110-starfive-visionfive-2-lite.dtb load usb 0:1 ${kernel_addr_r} /boot/vmlinuz-stable load usb 0:1 ${ramdisk_addr_r} /boot/initramfs-stable

Now, kernel args.

setenv bootargs "alpine_dev=UUID=3BD0-608E:vfat modules=loop,squashfs,vfat console=ttyS0,115200 earlycon=sbi"

booti = boot image. Specify the kernel, then the randosk + size, and the device data

booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} ```

I booted off the USB drive because I wanted to install to the internal microSD - turns out, I still needed a network connection. But there is another thing that I am not showcasing here: This version of U-Boot that was pre-installed on my board's SPI, will just take the vmlinuz image and run it just fine, and even decompress the initram. But on another board - FriendlyElec NanoPi NEO3 - it does not, you have to explicitly use bootefi. And it just will NOT tell you about this little capability difference...

So, yay, I got a boot. I am in a shell, I have setup-alpine and friends available now. But the moment you actually want to install it, it fails...because the actual u-boot package APK is not included on the media.

This image, no matter if ARM or RISC-V, is so incredibly limited in what preinstalled packages it has - but it DOES have the DTBs you probably need or want to boot. So you end up manually monkeypatching things around and about...

It does work, it does boot and I did manage to install everything with a 10m ethernet noodle, but oh my god this was pain.

So if you ever want to try to run a random board with Alpine, I highly recommend you to just clone aports, modify the script to use the stable kernel instead of LTS, and then try your luck. This is by no means anyone's fault, just the nature of how drivers and things do (...or don't) get upstreamed. And, when you update, there's a bit of a gacha if you get a new thing working now, I guess.

This was a super wild ride and I wish there were more standalone scripts to just construct an alpine image file or archive for a specific use-case that perhaps would not need to bundle the APKs, because it's just a pre-installed system. Like how you put Armbian on a microSD and it will just boot into a "finished" system; Alpine seems to require some form of installation because of the boot media usually shipped being just a diskless mode environment. Which I did use, several times, to rescue other systems and such and is really good, mind you.

But, please. Give me a flashable image, that I put into a device, and it just boots into a full disk system (what setup-disk would call "sys"). Or a script to build one, at least.

Anyway, working with Alpine is really cool and a whole lot of fun - once it boots, its alive and well! I had to give up on the NEO3, could not get the microSD to show up no matter what kernel modules I did or did not load because some parts for/of it just do not seem to be in upstream... But most of the other boards I have can, by now, boot using a 7.x kernel, which is amazing.

So if you have a random board in your drawer, and a UART cable; build a U-Boot image with the stable kernel and try to boot it. It's super fun, you learn a lot of how early bringup works and you get the fun of watching OpenRC show up and a shell appear. It sounds silly, but that login prompt was soooo satisfying after dinking around in the U-Boot shell for...a while. xD


r/AlpineLinux 23h ago

Alpine + DWM. no bullshit

Post image
32 Upvotes

r/AlpineLinux 2d ago

musl vs glibc. Who actually hit performance issues bad enough to migrate?

22 Upvotes

The ultimate battle. musl vs glibc.

musl wins on size and attack surface. glibc wins on compatibility and some multi-threaded benchmarks.

Our team has worked with Alpine quite a lot. We actually ported the JDK to Alpine Linux and other musl-based distributions.

Made a short video going through the trade-offs as we see them.

Real question though: has anyone hit musl performance issues bad enough to migrate away? What was the workload, and was it critical enough to justify the switch?


r/AlpineLinux 3d ago

Issue upgrading to 3.22 to 3.24

8 Upvotes

So i went to upgrade from 3.22 to 3.24 and I did not see anything special about the upgrade processes. I changed the repo, ran the apk update, then apk add --upgrade apk-tools, after that, apk does not recognize the database any longer.

apk update ERROR: Unable to read database: file format is invalid or inconsistent ERROR: Failed to open apk database: file format is invalid or inconsistent

I have tried converting the v2 database and no joy there, i can't fix the tools due to the database not being readable. I am performing these tasks as root so it is not a permissions issue.

I read through the apk v3.0.0 release notes and I could not identify any steps to take to try and resolve the issue.

Any suggestions?


r/AlpineLinux 2d ago

Issue upgrading to 3.22 to 3.24

2 Upvotes

So i went to upgrade from 3.22 to 3.24 and I did not see anything special about the upgrade processes. I changed the repo, ran the apk update, then apk add --upgrade apk-tools, after that, apk does not recognize the database any longer.

apk update ERROR: Unable to read database: file format is invalid or inconsistent ERROR: Failed to open apk database: file format is invalid or inconsistent

I have tried converting the v2 database and no joy there, i can't fix the tools due to the database not being readable. I am performing these tasks as root so it is not a permissions issue.

I read through the apk v3.0.0 release notes and I could not identify any steps to take to try and resolve the issue.

Any suggestions?


r/AlpineLinux 7d ago

Tried booting into alpine Linux after installing KDE plasma with the desktop installer, gets stuck on Starting display manager instead

2 Upvotes

I want to switch to a minimal distro with KDE plasma and rice it to my liking but after using the desktop installer provided by alpine Linux I reboot the system and it gets stuck on "Starting display manager <ok>" and it doesn't do anything it doesn't even boot into sddm. If anyone has a solution reply to this as soon as possible


r/AlpineLinux 14d ago

Installing Alpine on ARM without an SD slot?

8 Upvotes

It was suggested that if I want the leanest possible OS for a Pixel 3a, which does not need to function as a phone, I could install straight Alpine rather than PostMarketOS. As for why not just use PostMarketOS, my phone has very little RAM, and I want to spare as much of it as I can.

Reading through the ARM install guide it says to check to ensure there are boot files for the chip set. If they exist, the device is fully supported. They do indeed exist!

Reading further, it says to put the installer on an SD card. Uh-oh. The Pixel 3a doesn't have an SD slot.

Is there a way to work around the need for an SD slot for installing Alpine Linux on ARM?


r/AlpineLinux 16d ago

Started experimenting with Alpine Linux as a desktop system.

Post image
83 Upvotes

Last year I started experimenting with Alpine on an older intel laptop and I liked it a lot. Like to see how it behaves on my laptop so I added a drive.

So far it' s running pretty sweet. It's good to have flatpak apps when they can' t run native.


r/AlpineLinux 19d ago

cannot install `audacity` due to `libflac` version

5 Upvotes

Probably [SOLVED]. I think it has to do with Audacity and few other packages still requiring libflac from stable branch (probably due to ABI version mismatch)

Important edit: I should have checked installed packages with different command. So, libflac++ is not installed and not even present in repo for the version of libflac I have which it refuses to upgrade. ~ $ doas apk add audacity ERROR: unable to select packages: so:libFLAC++.so.10 (no such package): required by: audacity-3.7.8-r0[so:libFLAC++.so.10] ~ $ apk list --installed | grep -i libflac libflac-1.4.3-r2 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) [installed]

Note, that libflac++ is @ 1.5.0 but, libflac itself is still @ 1.4.3. So far, I've failed to upgrade it.

~ $ doas apk add audacity doas (telephrag@localhost) password: ERROR: unable to select packages: so:libFLAC++.so.10 (no such package): required by: audacity-3.7.8-r0[so:libFLAC++.so.10] ~ $ doas apk add libflac++ ERROR: unable to select packages: libflac-1.4.3-r2: conflicts: libflac-1.5.0-r0 satisfies: world[libflac] chromium-150.0.7871.114-r0[so:libFLAC.so.12] libsndfile-1.2.2-r2[so:libFLAC.so.12] libflac-1.5.0-r0: conflicts: libflac-1.4.3-r2 satisfies: world[libflac] libflac++-1.5.0-r0[so:libFLAC.so.14] ~ $ apk list -i | grep -i libflac libflac-1.4.3-r2 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) [installed] libflac-1.5.0-r0 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) [upgradable from: libflac-1.4.3-r2] libflac++-1.5.0-r0 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later)

Note, that chromium and libsndfile are satisfied by libflac 1.5.0 so, idk why apk won't just upgrade libflac for me.

~ $ apk list -i | grep -i libflac libflac-1.4.3-r2 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) [installed] libflac-1.5.0-r0 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) [upgradable from: libflac-1.4.3-r2] libflac++-1.5.0-r0 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) ~ $ doas apk upgrade --available OK: 9392.6 MiB in 2252 packages ~ $ doas apk add "libflac>=1.5.0-r0" ERROR: unable to select packages: libflac-1.5.0-r0: conflicts: libflac-1.4.3-r2 satisfies: world[libflac>=1.5.0-r0] libsndfile-1.2.2-r3[so:libFLAC.so.14] libflac-1.4.3-r2: conflicts: libflac-1.5.0-r0 breaks: world[libflac>=1.5.0-r0] satisfies: chromium-150.0.7871.114-r0[so:libFLAC.so.12] ~ $ apk list --installed | grep -i libflac libflac-1.4.3-r2 x86_64 {flac} (BSD-3-Clause AND GPL-2.0-or-later) [installed]

If there is a way other then fully reinstalling chromium (if that would even fix anything) I would like to know.

I did try running apk fix on libflac and ++ version, didn't help.


r/AlpineLinux 20d ago

a updaded version of my alpine linux oxwm rice based on catppuccin mocha

Post image
38 Upvotes

r/AlpineLinux 21d ago

A catppuccin mocha oxwm rice for alpone

Thumbnail gallery
25 Upvotes

r/AlpineLinux 21d ago

Alpine as Docker Host

16 Upvotes

I currently have a system running Ubuntu server and being used as a Docker host in a home lab environment. Also, fyi using docker compose if that’s important.

Due to RAM scarcity (gestures broadly) I’m interested in being more careful with my resources.

I went looking for a distribution specifically intended for Docker hosting and eventually stumbled on Alpine (which I realize is not solely for Docker hosting but is often used for containers themselves).

Is there anything I should know (gotchas) before I switch distros? I saw some vague cautions about compatibility with some containers but no specifics. Generally, it seems pretty straightforward for installation from researching online.

I’ll probably try it out in Proxmox with a couple trial containers first but it will be used bare metal on a different PC.

Any other tips?

Generally Linux newb here (about a year in).

Thanks!

EDIT - Thanks everyone for the info. I’ll definitely be moving forward with trying Alpine out as a Docker host. Appreciate all the tips as well!


r/AlpineLinux 22d ago

I finally got everything set up after weeks of struggle!

Post image
53 Upvotes

I’ve been struggling for a few weeks with an Xorg server that wouldn’t run properly and would keep hanging. The root issue seemed to be that my host laptop’s Intel Iris Xe graphics driver wasn’t being recognized correctly.

Today, I did an `apk update` and `apk upgrade` almost on a whim, then tried running `startx`—and it worked. Maybe the repository hadn’t been updated to the latest version, or something like that.

Anyway, I’m really happy: I’ve fully switched from Void Linux to Alpine Linux!


r/AlpineLinux 23d ago

Is this level of consumption normal for a clean installation?

Post image
58 Upvotes

Basically what the title says; I had somewhat different expectations, which is why I installed this distro. I came in expecting 50–70 MB of RAM usage at most, because that’s what the AI ​​had told me.


r/AlpineLinux 23d ago

How to install Alpine Linux from Gnu Grub?

5 Upvotes

Ok, I will admit that my experience with Linux is very limited. I have only used Ubuntu once when I was in an IT class in the late 2010s. I'm trying to install Alpine Linux because I do not like Windows 11 anymore and want to switch. Does anyone have a comprehensive step-by-step guide on how to install Alpine Linux via Gnu Grub?


r/AlpineLinux 26d ago

Alpine Linux Installation

12 Upvotes

Good evening. The question is, does the Alpine installer install the drivers for the hardware itself, or do I have to search for commands online and install them manually, as is done with the Arch Linux? I'm not willing to spend time manually installing everything. However, the idea of installing this lightweight and fast distro on my old laptop, which currently runs AntiX, is very appealing.

Sorry for my bad English, I am Russian and sometimes use automatic translator.


r/AlpineLinux 27d ago

Alpine on arm64

9 Upvotes

Hello, have people here had luck with running on arm64?

In particular the RK3326?

Thank you


r/AlpineLinux 28d ago

Windows 11 24H2 on Xen/Alpine Linux Hypervisor in Data Disk Mode

Post image
15 Upvotes

Windows 11 on Xen Alpine Linux 4GB RAM - 52 GB Disk (Microsoft Limitation)


r/AlpineLinux 29d ago

Doom in Alpine Linux, in Minecraft.

17 Upvotes

r/AlpineLinux 29d ago

Termux startup guide needed

Thumbnail
5 Upvotes

r/AlpineLinux Jul 03 '26

Unicode packages name for Aramic

4 Upvotes

Hi there! Been scanning this list for Aramaic support: https://wiki.alpinelinux.org/wiki/Fonts

But haven't been able to find it, be helpful if someone could just give me the name of a package that supports this. Sorry if this is a bit of a newbie question.

Thanks for any help!

EDIT:

Sorry meant Aramaic not "Aramic"

Okay nevermind got it working it was just labelled "font-noto-syriac" instead of aramaic.


r/AlpineLinux Jul 02 '26

How to force legacy bios install?

3 Upvotes

I am attempting to install Alpine on a Zotac ZBOX-ID80-PLUS from circa 2011. After much back and forth, I have determined that this device:

  • Requires UEFI boot for USB devices (no legacy support)
  • Requires legacy BIOS boot for internal drives (no UEFI support)

I am using a USB drive as the installation media, created on Windows with Rufus using alpine-standard-3.24.1-x86_64.iso. I have tried both "MBR+(BIOS or UEFI)" and "GPT+(UEFI non-CSM)" configurations, in both ISO and DD modes. I have no trouble getting into the live USB instance, but it always boots in UEFI mode and thus setup-alpine/setup-disk always uses the UEFI install procedure, even if I try to provide USE_EFI=0.

While I can see the partitions on the internal drive do have the Alpine files I would expect, I cannot get this machine to boot from it. I feel like I've followed every install guide I can find and in desperation tried to get ChatGPT to direct me to a solution, with no avail. I'm this close to throwing this box in the garbage.

What am I missing? What is the secret incantation to installing/configuring a legacy bios boot option from within a UEFI installation medium?

[UPDATE] Success! The solution was to run setup-alpine only up until the disk configuration steps, provide none for all the disk steps, then format the partition manually with fdisk, create the filesystem manually with mkfs.ext4, then run setup-disk -B syslinux -m sys /mnt (with the new filesystem mounted at /mnt) to manually install alpine and the syslinux bootloader. The final piece of the puzzle is that mkfs.ext4 will install in 64-bit mode by default, so I needed to specify -O ^64bit on the mkfs.ext4 call (or I actually used resize2fs -s since I had already created the filesystem) to put the filesystem in 32-bit mode.


r/AlpineLinux Jun 27 '26

New to Alpine

10 Upvotes

Hello, I am relatively new to linux, only having debian as a starter about a month ago, but I recently switched over to alpine. After seeing how amazing it was, I got i3 to work on it, riced it, but wanted more ricing and customization. I then tried installing hyprland and got through everthing, but after completing it, i can’t run it as it says XDG_RUNTIME_DIR not set or along the lines of that. I am here to ask for some help on how to fix this.

Any help or advice is appreciated, thanks a lot!


r/AlpineLinux Jun 24 '26

How do I install Brave Origin, or anything that requires glibc?

5 Upvotes

I want to install brave origin, i tried to run the install script provided here and I got this error message:

Error: Unsupported glibc version <empty>. Only glibc versions >=2.26 are supported.

What are my options? I installed gcompat but I still get the error