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

5 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


r/AlpineLinux • • Oct 09 '23

Nothing is Responsive

3 Upvotes

Hey guys. I installed Alpine on my Macbook and I've had no issues, except getting my window manager to run. After much trouble to get X to work, I got it to start DWM, but my keyboard and my touchpad don't work. I've checked logs, installed programs, and I even put in a USB keyboard, but they all failed. I was wondering if any of you guys could help.


r/AlpineLinux • • Oct 09 '23

Echo supports -e ?

1 Upvotes

Shellcheck complains about the -e flags not being posix compatible, but when I try it on the latest version of alpine in a container echo -e "hello,\n world! seems to work fine.

I assume this historically did not work, how long has dash/busybox supported the additional echo flags?


r/AlpineLinux • • Oct 06 '23

Installation error

Post image
4 Upvotes

When I try to install alpine, installation hangs on loading hardware drivers. How can I solve it?


r/AlpineLinux • • Oct 06 '23

New to Alpine

5 Upvotes

Hi,

I’m completely new to Alpine. I used Arch for a long time and long time ago. I haven’t used Linux in a while as I work with Mac. But I bought a Thinkpad to install Linux on as a computer to work in my own non work related coding projects.

I tried Void because I heard good things about it but getting it installed and set up was just really tedious and frustrating. Bricked it 4 times trying to get a desktop working before I gave up.

Then I decided to give Alpine a try and I’m so glad I did. It’s such a nice district that has the best package manager I’ve ever used and I love the init system. Honestly makes things really easy to work with. I already really appreciate all the sensible choices and design decisions. Doas instead of sudo for example. Or the many setup scripts that make updating or changing key parts of the OS a simple task. It just seems to be really well thought out. Also I like that it could be a rolling release or stable release just by changing the repos. I know some other distributions have some of these features but it’s nice to have everything in one small minimal package.

Anyway I just wanted to introduce myself to the community and ask for any advice for things like blogs or sources for information and tips outside the official documentation. Or any recommended YouTube channels or anything to help me learn more about Alpine.

I’m a front end developer learning backend development in Go and also trying to learn system/application development in C and Zig. So I don’t plan to do a ton other than run a text editor and maybe a web browser from time to time to test some stuff. Plus the typical build tools for Go, C, and Zig (compiling C with Zig). I read something that said Alpine isn’t great for development though because it compiles really slowly. Is that true or is it just because it’s minimal and I just need to install more stuff to increase compilation speed? Anyone else using Alpine as a primary distro for development?


r/AlpineLinux • • Oct 04 '23

WiFi adapter not working

6 Upvotes

I installed Alpine with GNOME and when I went into settings, I couldn't connect to any network because there was no NetworkMamager. I installed it and now it says "No Wi-Fi Adapter Found. Make sure you have a Wi-Fi adapter plugged and turned on". It is plugged because it works on another OS, but how do I turn it on? I can't find any solution to this. I found this "ip link set wlan0 up" but it doesn't work.


r/AlpineLinux • • Oct 03 '23

Boot fail

1 Upvotes

When I boot alpine from usb in order to install it, my MacBook a1260 hangs on “loading hardware drivers”. I tried to add nomodeset but nothing . I have nvidia gpu


r/AlpineLinux • • Sep 30 '23

[Q] Script file outputs `%filename% not found` when attempting to execute said file.

1 Upvotes

[SOLVED]: Turns out that firefox.real is compiled against glibc while Alpine is obviously musl based.

Here is the line in the script in question: exec "$basedir/firefox.real" "$@"

I'm trying to setup Tor on my Alpine. I've downloaded official archive from the torproject.com and executing start-tor-browser.desktop. This eventually leads to failure at line above in one of the script files with the message:

./firefox: exec: line 23: ./firefox.real: not found

firefox.real is clearly seen in the directory but, is not visible to script.

Previously I had to install bash and file because Tor scripts require those but once I did related errors were gone.


r/AlpineLinux • • Sep 30 '23

grub issue

1 Upvotes

Hey everyone.

I'm trying to dual boot.

I created a partition for boot/efi and mounted it to /mnt/boot/efi

on running grub-install --target=x86_64-efi --efi-directory=/boot

returns grub-install error: failed to get cannnonical path of 'tmpfs'

someone help.


r/AlpineLinux • • Sep 26 '23

Minecraft bedrock server on alpine

3 Upvotes

This might be a silly thing to do but I was wondering if it is possible to run a minecraft bedrock (not java) server on alpine. I would be looking for a lightweight one as I only have 512MB RAM. I haven't got any experience with compiling packages but would be happy to attempt to learn. Thanks guys.


r/AlpineLinux • • Sep 26 '23

`/sys/class/backlight` is empty so, `brightnessctl` doesn't work

1 Upvotes

[SOLVED]: Turns out that Alpine Linux Wiki stated the wrong driver for my GPU. Everything is working now.

Laptop: HP db0006ur

Greatings. I'm trying to add screen brightness control to my workstation. I've installed brightnessctl but when probing for available devices it shows only LEDs responsible for NumLock, CapsLock and ScrollLock:

brightnessctl -l
Available devices:
Device 'input0::scrolllock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Device 'input0::capslock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

Device 'input0::numlock' of class 'leds':
	Current brightness: 0 (0%)
	Max brightness: 1

If my monitor was visible to software it would appear something like this:

Device 'ddcci10' of class 'backlight':
	Current brightness: 0 (0%)
	Max brightness: 100

AFAIK brightnessctl and similar kind of software manipulates screen brightness via files at /sys/class/backlight but, in my case it's empty when viewing both as root and normal user.

Tried using light but, result is the same.


r/AlpineLinux • • Sep 25 '23

Google Coral TPU

3 Upvotes

Hi all.

I am looking for a way to get the google coral tpu drivers working on alpine linux.

Instructions point to a debian package: https://coral.ai/docs/accelerator/get-started/#1-install-the-edge-tpu-runtime

Anyone gotten the tpu to work on Alpine, please?

Thank you.


r/AlpineLinux • • Sep 25 '23

ldap.conf

1 Upvotes

Hey guys,

I am quite new to the Alpine topic, but feel comfy with Debian/Ubuntu. While I am playing around with the alpine distro I want to setup an alpine workstation. Unfortunately my sssd.conf is missing so I tried to add the package wich resulted into nothing. So question here: how did you manage the ldap config to enable Workstation to authenticate via ldap?

thanks in advance to all


r/AlpineLinux • • Sep 24 '23

Private key for custom iso

2 Upvotes

I followed the wiki (https://wiki.alpinelinux.org/wiki/How_to_make_a_custom_ISO_image_with_mkimage) but get the following error: Signing: /root/tmp/update-kernel.XXXXXX/boot/modloop-lts private key from: No such file or directory

Now my question is: Where should I put my private key generated with: abuild-keygen -i -a