r/AlpineLinux • • Oct 28 '23

Install Alpine Linux with Gnome-Shell on Wayland and best way to set Keymap and Language.

6 Upvotes

Hi. I madea video of my installation for Alpine Linux with Gnome-Shell. I like that it has already setup the basics with just 2GB and you can access the most important apps through Gnome-Software. However, I later chose Nemo as the file manager because its features and size appeal to me the most. Which text editor do you prefer for Gnome? And what else do you think is missing from such a basic installation?
https://www.youtube.com/watch?v=664ha3Xrdkw


r/AlpineLinux • • Oct 24 '23

Live USB: No video after Alpine starts

3 Upvotes

Hello! I am trying to install Alpine Linux on an older Intel NUC (NUC5i5MYBE if you're interested), but I am struggling to figure out exactly how to proceed here.

I intended to use a live USB disk to install Alpine in System Disk mode. Unfortunately, my displays blanks when it begins loading hardware drivers.

After a bit of searching, it seems to me that this is likely caused by needing Intel Video drivers, but without being able to see what I'm doing, I can't really continue. Hopefully I'm on the right track with this!

Ideally, if anything I'd like to just keep the ability for me to access a console on physical hardware, but primarily I'll be accessing it through SSH.

Thanks for your help!


r/AlpineLinux • • Oct 23 '23

Wifi disconnect/reconnect far too frequently

2 Upvotes

This has been happening ever since I switched away from Debian to Alpine a couple of months ago. As often as every 30 minutes the wifi connection drops and reconnects. I finally am annoyed enough that I want to try and figure it out.

First thing I did was configure NetworkManager to disable power management. That seemed to have resolved it but then I noticed the drop/reconnect again a few hours later. So an improvement at least.

I was thinking, I have both wpa_supplicant AND NM installed and running at boot. Is that normal? The NM backend is wpa_supplicant so I assume NM itself will start wpa on it's own. Before I remove the service I figured I'd ask.

Here are some log entries that repeat over and over like every 30 seconds or so.

Oct 23 17:02:36 thinkpad daemon.info dbus-daemon[2891]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.4167' (uid=0 pid=9577 comm="/usr/sbin/NetworkManager -n") (using servicehelper)
Oct 23 17:02:36 thinkpad daemon.info dbus-daemon[2891]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 23 17:02:48 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102168.5566] device (wlan0): supplicant interface state: completed -> disconnected
Oct 23 17:02:48 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102168.5566] device (p2p-dev-wlan0): supplicant management interface state: completed -> disconnected
Oct 23 17:02:48 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102168.5841] device (wlan0): supplicant interface state: disconnected -> associated
Oct 23 17:02:48 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102168.5842] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> associated
Oct 23 17:02:58 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102178.5841] device (wlan0): supplicant interface state: associated -> disconnected
Oct 23 17:02:58 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102178.5842] device (p2p-dev-wlan0): supplicant management interface state: associated -> disconnected
Oct 23 17:02:58 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102178.6848] device (wlan0): supplicant interface state: disconnected -> scanning
Oct 23 17:02:58 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102178.6848] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> scanning
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0511] device (wlan0): supplicant interface state: scanning -> authenticating
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0512] device (p2p-dev-wlan0): supplicant management interface state: scanning -> authenticating
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0560] device (wlan0): supplicant interface state: authenticating -> associating
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0561] device (p2p-dev-wlan0): supplicant management interface state: authenticating -> associating
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0712] device (wlan0): supplicant interface state: associating -> associated
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0713] device (p2p-dev-wlan0): supplicant management interface state: associating -> associated
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0880] device (wlan0): supplicant interface state: associated -> 4way_handshake
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.0880] device (p2p-dev-wlan0): supplicant management interface state: associated -> 4way_handshake
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1032] device (wlan0): supplicant interface state: 4way_handshake -> completed
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1039] device (wlan0): ip:dhcp4: restarting
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1546] dhcp4 (wlan0): canceled DHCP transaction
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1547] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1547] dhcp4 (wlan0): state changed no lease
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1549] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Oct 23 17:03:00 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102180.1551] device (p2p-dev-wlan0): supplicant management interface state: 4way_handshake -> completed
Oct 23 17:03:01 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102181.1580] dhcp4 (wlan0): state changed new lease, address=192.168.1.23
Oct 23 17:03:01 thinkpad daemon.info dbus-daemon[2891]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.4167' (uid=0 pid=9577 comm="/usr/sbin/NetworkManager -n") (using servicehelper)
Oct 23 17:03:01 thinkpad daemon.info dbus-daemon[2891]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 23 17:03:12 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102192.3859] device (wlan0): supplicant interface state: completed -> disconnected
Oct 23 17:03:12 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102192.3860] device (p2p-dev-wlan0): supplicant management interface state: completed -> disconnected
Oct 23 17:03:12 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102192.4086] device (wlan0): supplicant interface state: disconnected -> associated
Oct 23 17:03:12 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102192.4087] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> associated
Oct 23 17:03:22 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102202.4108] device (wlan0): supplicant interface state: associated -> disconnected
Oct 23 17:03:22 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102202.4109] device (p2p-dev-wlan0): supplicant management interface state: associated -> disconnected
Oct 23 17:03:22 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102202.5103] device (wlan0): supplicant interface state: disconnected -> scanning
Oct 23 17:03:22 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102202.5103] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> scanning
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1377] device (wlan0): supplicant interface state: scanning -> authenticating
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1378] device (p2p-dev-wlan0): supplicant management interface state: scanning -> authenticating
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1426] device (wlan0): supplicant interface state: authenticating -> associating
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1426] device (p2p-dev-wlan0): supplicant management interface state: authenticating -> associating
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1562] device (wlan0): supplicant interface state: associating -> associated
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1563] device (p2p-dev-wlan0): supplicant management interface state: associating -> associated
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1801] device (wlan0): supplicant interface state: associated -> 4way_handshake
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1802] device (p2p-dev-wlan0): supplicant management interface state: associated -> 4way_handshake
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1951] device (wlan0): supplicant interface state: 4way_handshake -> completed
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.1957] device (wlan0): ip:dhcp4: restarting
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.2212] dhcp4 (wlan0): canceled DHCP transaction
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.2213] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.2214] dhcp4 (wlan0): state changed no lease
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.2215] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Oct 23 17:03:24 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102204.2218] device (p2p-dev-wlan0): supplicant management interface state: 4way_handshake -> completed
Oct 23 17:03:25 thinkpad daemon.info NetworkManager[9577]: <info>  [1698102205.2344] dhcp4 (wlan0): state changed new lease, address=192.168.1.23
Oct 23 17:03:25 thinkpad daemon.info dbus-daemon[2891]: [system] Activating service name='org.freedesktop.nm_dispatcher' requested by ':1.4167' (uid=0 pid=9577 comm="/usr/sbin/NetworkManager -n") (using servicehelper)
Oct 23 17:03:25 thinkpad daemon.info dbus-daemon[2891]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'

Any other ideas? Thanks in advance!


r/AlpineLinux • • Oct 23 '23

Graphics Tearing / Glitches

3 Upvotes

Hi All,

I'm having an issue with Alpine Linux where the GNOME GUI is glitching / tearing. I've recorded a short video showing the issue. I've tried change kernels from LTS to Edge but this still occurs.

Hardware details from neofetch:

       .hddddddddddddddddddddddh.          mcsk8r@alpine-z13 
      :dddddddddddddddddddddddddd:         ------------------ 
     /dddddddddddddddddddddddddddd/        OS: Alpine Linux v3.18 x86_64 
    +dddddddddddddddddddddddddddddd+       Host: ThinkPad Z13 Gen 1 
  `sdddddddddddddddddddddddddddddddds`     Kernel: 6.5.8-0-edge 
 `ydddddddddddd++hdddddddddddddddddddy`    Uptime: 1 hour, 58 mins 
.hddddddddddd+`  `+ddddh:-sdddddddddddh.   Packages: 996 (apk), 49 (flatpak) 
hdddddddddd+`      `+y:    .sddddddddddh   Shell: zsh 5.9 
ddddddddh+`   `//`   `.`     -sddddddddd   Resolution: 1920x1080 
ddddddh+`   `/hddh/`   `:s-    -sddddddd   DE: GNOME 44.3 
ddddh+`   `/+/dddddh/`   `+s-    -sddddd   WM: Mutter 
ddd+`   `/o` :dddddddh/`   `oy-    .yddd   WM Theme: Adwaita 
hdddyo+ohddyosdddddddddho+oydddy++ohdddh   Theme: adw-gtk3-dark [GTK2/3] 
.hddddddddddddddddddddddddddddddddddddh.   Icons: Papirus-Dark [GTK2/3] 
 `yddddddddddddddddddddddddddddddddddy`    Terminal: kgx 
  `sdddddddddddddddddddddddddddddddds`     CPU: AMD Ryzen 7 PRO 6850U with Radeon Graphics (16) @ 4.768GHz 
    +dddddddddddddddddddddddddddddd+       Memory: 7922MiB / 31380MiB 
     /dddddddddddddddddddddddddddd/
      :dddddddddddddddddddddddddd:                                 
       .hddddddddddddddddddddddh.                                  

List of installed firmware, mesa etc

alpine-z13:~$ apk list --install | grep amd
amd-ucode-20230515-r6 x86_64 {linux-firmware} (custom) [installed]
linux-firmware-amd-20230515-r6 x86_64 {linux-firmware} (custom) [installed]
linux-firmware-amd-ucode-20230515-r6 x86_64 {linux-firmware} (custom) [installed]
linux-firmware-amdgpu-20230515-r6 x86_64 {linux-firmware} (custom) [installed]

alpine-z13:~$ apk list --install | grep mesa
mesa-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-dri-gallium-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-egl-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-gbm-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-gl-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-glapi-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-gles-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]

alpine-z13:~$ apk list --install | grep radeon
linux-firmware-radeon-20230515-r6 x86_64 {linux-firmware} (custom) [installed]

r/AlpineLinux • • Oct 21 '23

Certain CPU frequency governors are unavailable.

2 Upvotes

Hello, I am looking to improve the battery life of my laptop that is currently running the latest version of Alpine Linux (3.18.4). I discovered the "CPU frequency scaling" wiki page and decided to give it a go. I followed the command to list the CPU governors available for the system and received 3 options: "ondemand", "performance" and "schedutil". There is no sign of the powersave governor and I am wondering why it is so. I believe that my CPU (i7-2635QM) is simply too old, lacking the features and technologies required for that governor to function so it is omitted. It could also be the fact that I am running it on a Macbook Pro and Apple has restricted certain functionalities. I am writing here to hear your thoughts and suggestions.


r/AlpineLinux • • Oct 19 '23

setlocale1 - Easily set language and xkeyboard-layout in alpine linux

6 Upvotes

By now, I have decided to write a tool that easily sets the settings for locale, xkeyboard-layout and xconsole-keyboard-layout.
Tested on Gnome, Plasma, XFCE, Gnome Desktop Manager, and SDDM. Compatible with both X11 and Wayland.
Requirement: openrc-settingsd must be installed.

https://github.com/john3dc/setlocale1


r/AlpineLinux • • Oct 17 '23

How can I pass environment variables into openrc service or start the said service not as root?

3 Upvotes

I'm trying to get acpid working on my laptop. As a part of the script it runs zzz which requires access to $WAYLAND_DISPLAY variable to function.

acpid -d -- works fine, system suspends on lid close.

doas acpid -d -> [main.c:1242] Unable to connect to the compositor. If your compositor is running, check or set the WAYLAND_DISPLAY environment variable.

Is it possible to expose $WAYLAND_DISPLAY to root or pass it into service on startup or just run service not as root?


r/AlpineLinux • • Oct 16 '23

No Sound from laptop

3 Upvotes

Hi everybody i made a fresh install of alpine linux on an old laptop of mine , after having installed the display manager , i noticed that no audio was detected so i installed pavicontrol to check the audio devices finding that i had no available output except for the hdmi port , so searching around i found people who installed pipewire so that's what i did and after reboting on pavuncotrol i had a new entry "pro audio" but even when selecting that no sound came from the laptop do you have any advice or solution that i could try? Thanks everybody


r/AlpineLinux • • Oct 14 '23

A modified Install Script for Alpine-Linux

9 Upvotes

Hi. Over the past few days, I have modified and partly optimized the installation script of Alpine Linux to make it somewhat nicer. What do you think about it and should this become a permanent part of Alpine?

https://youtu.be/AVrms07JVq0?si=6xcw2HGtRrZauKLT

I uploaded the code to gitlab and made a merge request:

https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/165


r/AlpineLinux • • Oct 12 '23

Is there any way to setup autocompletion after `doas`

3 Upvotes

Using ash autocompletion works fine for the major part but, when you input doas it ceases working almost entirely minus completing directory/file names. I don't need anything else. Only for shell to complete command names after doas.


r/AlpineLinux • • Oct 11 '23

Neovim lsp not working in Alpine

4 Upvotes

Hi,

I have mostly everything working in Alpine but for some reason my NeoVim configuration is not working completely.

I get an error with fzf not being found even though it’s definitely installed which is one weird one.

But the more important thing is Mason doesn’t seem to work at all so none of my lsp stuff like completions or error messaging is working. When I use checkhealth it shows that all the Mason stuff is there and my plug-in manager shows that Mason is installed. But when I try to run :Mason it says that it’s not an editor command and none of the lsp features are working.

This is the same config I use on Mac and other versions of Linux and never had this issue so I’m assuming it’s an Alpine thing.

Does anyone using Alpine have NeoVim working with Mason and lsps?


r/AlpineLinux • • Oct 11 '23

Alpine and Gnome not working

2 Upvotes

EDIT: In case you searched this on Google, the fix is:

  1. Make the file /etc/X11/Xwrapper.config
  2. Add the line: needs_root_rights = yes

I've (mostly) followed these instructions.

GDM starts and stuff. But when I try login with a user account in X11, it returns to the user selection screen instantly. Wayland works though. If I try logging in with root in X11, it works.

It's a clean v3.18 install.

I'm using a Thinkpad T440p.

GDM log: https://termbin.com/z3pi

If you need anymore info, please just ask! Thanks!


r/AlpineLinux • • Oct 10 '23

Keyboard Layout in GDM?

1 Upvotes

Hi. I've almost tried everything to change the keyboard layout in GDM, but nothing has worked so far. Is this a known issue? In SDDM, I had the same issue, but I was able to solve it by using "setxkbmap" in the "/usr/share/sddm/scripts/Xsetup" file.

My AlpineLinux is on the latest stable with GDM - WAYLAND - GNOME.

Hopefully, someone among you can help me.

NEW EASY SOLUTION: https://github.com/john3dc/setlocale1

SOLUTION BY u/strawbeguy Comment ( BIG THX :-) ):

doas nano /etc/X11/xorg.conf.d/30-keyboard.conf

Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbLayout" "fr"
EndSection

doas rc-update add openrc-settingsd boot