r/AlpineLinux • • Jan 12 '26

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

Thumbnail reddit.com
3 Upvotes

r/AlpineLinux • • 14h ago

Switched to Alpine 3.24 from Chimera Linux

6 Upvotes

Hello, after seeing people showing their Alpine desktops, I decided to plunge in and wiped Chimera. Chimera is not bad but it doesn't have different branches for packages like Alpine has. Chimera had just one branch and it is similar to Alpine's edge. And these updates introduce new bugs.

Installing Alpine was very fast and smooth. It wasn't even difficult to setup the Alpine for desktop though I got some service or package related problems. For example, I couldn't install Flatpak applications because I didn't had umount package. I didn't had WiFi because I didn't had the service running. Same thing happened with Bluetooth as well.

Alpine Linux will come as bare linux and you must configure it for your needs. There isn't really any bloat. It's way easier to configure from "stratch" than cleaning all kind of stuff system doesn't need. When installing Alpine for first time, it might take time because some things might come as surprise. It's not out-of-box experience, but it's very easy to get into Alpine and OpenRC, APK. This wasn't my first time with Alpine btw. I use Alpine as container in work and Raspberry Pies are running Alpine as diskless mode.

RAM usage? It is 730 MB after startup. And I need to check the edge repo too! How do I install rust from edge?


r/AlpineLinux • • 1d ago

LaynOS: My custom desktop environment & Alpine-based distro running Wayland (labwc) under 1GB RAM

Post image
60 Upvotes

Hey everyone! I've been building **LaynOS**, a custom Linux distribution based on **Alpine Linux** (musl + OpenRC) designed to combine a clean, modern desktop experience with minimal resource usage.

**Current stack:**

* **Base:** Alpine Linux (6.18 LTS kernel, `apk`)

* **Wayland Compositor:** `labwc`

* **Terminal:** `foot`

* **Custom UI:** Built a custom floating bottom panel, a centered app launcher, and a native "Sensory Comfort" module for quick visual/audio adjustments.

* **Compatibility:** Integrated a Debian container/chroot layer right into the launcher so I can run `glibc` desktop apps (like Blender or Audacity) seamlessly alongside native `musl` packages.

Even with a full Wayland session running, idle RAM usage sits right around **975 MiB** (and around ~512 MiB without background services/apps).

Would love to hear your thoughts or tips on optimizing Wayland + musl setups even further!


r/AlpineLinux • • 2d ago

Cant assess The wiki

Post image
7 Upvotes

the wiki is done is it just me?

edit:ITS BACK YAY


r/AlpineLinux • • 2d ago

RPI main branch kernel still 6.18.60, may be vulnerable to NoisyTCP

9 Upvotes

CVE-2026-99288 is fixed on 6.18.63 , which is currently only for edge channel. when can we expect it in main branch?


r/AlpineLinux • • 3d ago

Running Alpine compiled in WebAssembly (literally running Linux INSIDE a browser)

Post image
89 Upvotes

Here's a link for anyone who wants to run it: https://unkernel.dev/

Link do projeto: https://github.com/pithings/unkernel


r/AlpineLinux • • 3d ago

Alpine Linux on an iPhone: apk and networking work in my RISC-V emulator

6 Upvotes

I’ve been testing Alpine Linux inside Hartbox, a RISC-V system emulator that runs locally on iOS. The guest has persistent storage and networking, and I got `apk update` working on my iPhone 17e.

I originally hit DNS failures, so getting package installs working was a good milestone. Has anyone here tried Alpine under other emulators? What packages or boot behavior would be useful to test next?

Source and setup: https://github.com/u6420771547-hash/hartbox

The iOS IPA is unsigned and needs signing before installation. The latest release is v1.1.0: https://github.com/u6420771547-hash/hartbox/releases/download/v1.1.0/Hartbox.ipa


r/AlpineLinux • • 4d ago

Possibly Wayland broken after latest Edge updates?

4 Upvotes

Not sure who or how to inform but I've but running Alpine Linux (Edge) on a couple of old Thinkpads and noticed the latest Edge updates seem to have broken Wayland.

Both machines were configured to run KDE/Plasma but following the last Edge updates on boot, the laptops remain stuck on OpenRC when the display manager (sddm) starts.

I am however able to get a terminal.

As a temporary workaround I have installed Xfce/X11 with lightdm display manager and that boots and starts up fine.

On one machine I experimented by installing Gnome using the setup-desktop script and Wayland also refuses to launch (as does a Gnome/X11 session weirdly).

As yet I haven't tried a fresh install. And I haven't tried as yet starting a Wayland session without a display manager.

I appreciate there are risks running an edge release and this is to some extent to be expected, but its been fine working as a rolling release and this is the only real issue I've encountered over the last six months of running Alpine on my laptops.


r/AlpineLinux • • 9d ago

A $20 retro game stick running Alpine Linux 3.23 as an always on node with Tailscale and a TV dashboard

Thumbnail gallery
14 Upvotes

The original post describes using the stock vendor kernel, a switch_root launcher, and a USB network bridge to run Alpine 3.23 on the device.


r/AlpineLinux • • 13d ago

after 4y on debian+xfce I'm switching to alpine+lxqt

Thumbnail reddit.com
3 Upvotes

r/AlpineLinux • • 14d ago

Weird internet issue

5 Upvotes

Edit: My internet now works, I chrooted into my PC and did setup-interfaces and set up WiFi. ps: I deleted the /etc/network/interfaces before running it. I still would test if the usb0 interface would work.

I have an issue with Internet.

This is how I connect to the internet, I use a USB C - C cable to connect my phone to my Laptop, then pick USB Tethering from my phone. On my PC, I use dwl, so I open the terminal and type the ip link to see if the usb0 is showing, I put it up and use udhcpc -i usb0 to connect to the internet.

After doing the step above, I do ping google, which works but the issue is the network is unstable in the sense that, I've been trying to download libreoffice office I just get transient error, I will cancel and reping, I might get bad address. If I disconnect and reconnect, it works, when I open Firefox, it doesn't wanna connect to the internet.

I honestly don't know what is going on, I have tried setting a dns of 1.1.1.1 and 8.8.8.8 instead of letting my phone giving it a nameserver, I still have the same issue.

Please, how do I fix this? and what could possibly be happening?


r/AlpineLinux • • 16d ago

*sshhole primarily impacts Alpine's aws/azure images, not hosts installed with setup-alpine or Alpine Docker containers

22 Upvotes

I want to first emphasize that it is a real bug and may deserve critical severity for Alpine AWS/Azure images. Also, the https://sshhole.com/ is very good at showing the history of this problem and also explaining how and why the flaw can be exploited.

My company has some Alpine exposure, so I looked into this. We only have Alpine VMs installed using the extended image's setup-alpine script. In addition, we use some containers that are based on Alpine images. The conclusion of my analysis is relieving, so I wanted to share this.

Alpine in VMs (installed with setup-alpine)

Tested: Alpine 3.20.3 (2024) and Alpine 3.16 (2016)

  1. The setup-alpine script asks for a password for root. You can enter an empty password but it will put a real hash in /etc/shadow, not *. So, the root account is not affected unless you manually change it to *, probably also if you entered a password longer than 256 characters when creating the account (unlikely).
  2. A seperate ordinary user can be created too but this is non-default and empty passwords produce real hashes just as before.
  3. By default, the openssh server is installed and starts at boot with password logins enabled, but the default configuration contains PermitRootLogin prohibit-password which protects root.
  4. Adding another user without assigning a password with adduser -D puts a ! not a * in /etc/shadow.

TL;DR: The setup-alpine script does not create users with * in /etc/shadow and root is additionally protected by PermitRootLogin prohibit-password. If you created users without passwords manually, you should check anyway.

Alpine in Docker containers

Tested: alpine:3.16, alpine:3.20.3, alpine:3.21.1

  1. These images have root:*::0::::: in /etc/shadow, so the root account could be attacked.
  2. No ssh daemon is installed in these images by default.
  3. Installing openssh with apk add openssh does not start or enable the ssh daemon.
  4. You cannot start sshd by accident because rc-update isn't there and /etc/init.d/sshd doesn't run because openrc-run isn't there, and starting sshd by itself fails with no hostkeys available. Normally, the init service would take care of that.
  5. Openssh's PermitRootLogin prohibit-password setting was already the default with alpine 3.16. Even if you manage to start sshd, the root account is protected.
  6. Remote access is only possible if you forward port 22.

TL;DR: A lot must go wrong before an alpine container is impacted. If you created users without passwords manually and expose an ssh server in an alpine container, you should check anyway.

Conclusion

In conclusion, VMs installed with setup-alpine lack the asterisk in the shadow file needed by this exploit and alpine images lack the ssh server. They have the potentially unsafe root user config in the shadow file but ssh root logins are by default blocked by PermitRootLogin prohibit-password.

The website itself says almost at the end:

on alpine's official aws and azure images that's the default alpine user, and it has passwordless doas. so it's root

I didn't test these images because we don't have aws or azure. But it makes clear what is needed to exploit this:

  • The flaw in default config and musl (bug)...
  • together with a seperate (non-root) user with no password grants RCE,
  • and together with passwordless doas it grants RCE with elevated privileges.

While this is a real security flaw, especially in the aws and azure images, my opinion is that this is a setup that is very unlikely to be reached in a host/VM installed with setup-alpine or in a docker container if you follow basic security principles.

I just noticed I always wrote "VMs" but this obviously also applies when installing Alpine bare metal.

Have you found any real-world impact outside the aws/azure images?

cheers

Edit: most of what I listed is also in Alpine's security advisory (check it out!), so I should've checked that source before writing all this. I mostly got my info from the sshhole website and one or two other news sites. They have a nice "Who is not affected?" list:

Who is not affected?
* Docker and other container users that do not run sshd in the container.
* Systems with PasswordAuthentication no.
* Systems using openssh-server-pam with UsePAM yes (with UsePAM no you are affected).
* Locked accounts: those with ! as the password field in /etc/shadow (a line starting user:!:). They cannot log in with a password or a key.
* Systems where no account has a $-style password hash.
* Cloud images configured through cloud-init, which writes PasswordAuthentication no.

The root user being protected by prohibit-password is missing on that list but they mention it earlier.


r/AlpineLinux • • 16d ago

OpenSSH 10.6p2: Critical Password Bypass on Alpine/musl Linux

40 Upvotes

Here is what is actually going on under the hood with the new OpenSSH bypass on Alpine/musl systems:

  • The Logic Bug: When an account has no password set (like key-only users or default cloud accounts), Linux stores an asterisk (*) in /etc/shadow to block password logins.
  • The musl Quirk: When musl’s crypt() function receives an oversized password (over 256 bytes), it fails and returns a single *.
  • The Bypass: If an attacker sends a 257+ byte password to a passwordless account, OpenSSH checks the returned string against /etc/shadow. Both are *—the string comparison matches, and SSH grants access without needing the actual key or password.
  • Requirements to Reproduce:

    • System runs on musl libc without PAM (like Alpine Linux).
    • PasswordAuthentication is enabled.
    • There is an account with a disabled password (* in shadow) and at least one other account with a standard password hash.
  • The Fix in 10.6p2: OpenSSH now explicitly rejects stored hashes that are too short to be valid, stopping the * == * match entirely.

r/AlpineLinux • • 16d ago

International Cyber Digest on X: "The bug is like a joke. On Alpine Linux, type 257 to 1024 characters of anything and you get root. 💀" / X

Thumbnail x.com
7 Upvotes

r/AlpineLinux • • 18d ago

I can't get pipewire to work (virtuabox)

4 Upvotes

I'm running alpine linux on a virtual machine with a virtual machine iso from the download page. whenever i start up the xorg runlevel in terminal, it fails whenever it gets to starting pipewire.

~ $ rc-service -U pipewire start

* Starting Login Message Bug ... [ ok ]

* Starting wireplumber ... [ ok ]

* Starting pipewire ...

* failed to start pipewire ... [ !! ]

* ERROR: pipewire failed to start


r/AlpineLinux • • 20d ago

Flatpak not showing received files

5 Upvotes

I sent an iso file on Alpine through localsend I downloaded using flatpak but the iso file isnt showing in download.

I tried to send from my PC to my Phone and picked file but it is not working and I also picked folder but it show the iso file but greyed out.

On Thunar, it doesn't show the iso file. I hope you guys get the issue, how do I fix this? I feel it has something to do with permissions, I could be wrong.


r/AlpineLinux • • 22d ago

Got genuine Alpine Linux running on a Samsung Galaxy A21s using my custom uni-loader build!

Post image
47 Upvotes

Hey Reddit!

I wanted to share my recent progress: I’ve successfully managed to boot a genuine Alpine Linux kernel on a Samsung Galaxy A21s using my own custom build of uni-loader.

Current Status & Debugging (as seen in the photo):

The uni-loader initializes perfectly, and the Linux kernel successfully kicks in and starts scanning the internal partition blocks (mmcblk0pX).

Right now, it drops into an emergency shell because it's struggling to mount the Alpine rootfs. It's currently throwing Magic Mismatch and failed to recognize exfat type errors across the blocks while searching for the root filesystem.

Essentially, the kernel itself boots flawlessly, but I still need to fix the partition table mapping, format the target block correctly, or ensure the rootfs.tar.gz is properly placed so the init script can mount it.

Once the rootfs mount issue is resolved, I'll move on to fixing drivers and getting the rest of the hardware working. Let me know what you think, or if you have any questions about the uni-loader compilation process!

Device Specs & Details:

• Device: Samsung Galaxy A21s (SM-A217F) — 3GB RAM variant

• OS: Alpine Linux

• Boot Method: Custom-compiled uni-loader build

• Current State: Kernel boots successfully into initramfs / emergency shell; rootfs mounting is WIP.


r/AlpineLinux • • 23d ago

Este eeepc vuela con alpine linux xfce !!!

Post image
55 Upvotes

El orto día encontre en un cajón un asus eeepc 1005HA con un atom n280 2gb ddr2 y un hdd de 80gb.

le metí una sd de 64gb a 200mb/s y le instalé alpine linux xfce.

si teneís un viejo equipo como este, os recomiendo probar alpine por que es buenísimo.

sitio de alpine: https://alpinelinux.org

si lo vais ha probar, os recomiendo un tutorial


r/AlpineLinux • • 24d ago

alpine on thinkpad with a sway wm

Post image
6 Upvotes

what do you think?


r/AlpineLinux • • 27d ago

iPhone 11 is opgestart met Alpine Linux

Post image
36 Upvotes

r/AlpineLinux • • 27d ago

Alpine encryption

1 Upvotes

How can i right encrypt with cryptsetup diskless Alpine with persistence?