Live data from Hacker News

Alpine Linux 3.15

alpinelinux.org

41–50 of 91 posts

Re: Alpine Linux 3.15

#41

Earlier quoted context omitted.

Smaller, less features, ideally less vulnerabilities.

Although it is annoyingly and quite critically missing a replacement for `sudo -e` / sudoedit (or was last time I checked).

alias suedit=‘doas …’

Re: Alpine Linux 3.15

#42
post #32

Earlier quoted context omitted.

>cat /etc/doas.conf permit persist :wheel Now all the users belonging to wheel can run stuff as root. Done.

Sure this is a nice and concise (yet somewhat trite) example, but this can be done easily with 1 line in sudoers as well (and is usually configured like this by default anyway). Not that doas isn't great, but this particular reason isn't that compelling (to me).

That's the entire configuration. It does not need documentation that starts with a quick introduction to EBNF, the whole thing it's about as simple as you could possibly make it. Granted, if you're just doing small edits to existing sudo config it might not matter too much, but I find it appealing to be able to read and understand the entire configuration file and add new configuration easily.

Re: Alpine Linux 3.15

#43
post #28

Earlier quoted context omitted.

If you care, just install the `coreutils` package and it'll overwrite the default symlinks and you'll get GNU coreutils by default.

Oh thanks, that's good to know they're available.

Yep:) If you found that useful, I'd suggest looking over all of https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_w...

Re: Alpine Linux 3.15

#44

Earlier quoted context omitted.

Smaller, less features, ideally less vulnerabilities.

Although it is annoyingly and quite critically missing a replacement for `sudo -e` / sudoedit (or was last time I checked).

What is wrong with `sudo vim /etc/foo`? I feel that it's better than `sudo -e`, but would love to see an example where `sudo -e` is better.

Re: Alpine Linux 3.15

#45
post #36

Does anyone know where there are screenshots of this on the website? I like to see how a desktop looks before I try a new distro. Seems absent on the site

Alpine is more of a command-line distro. It's compact design and lack of many dependencies make it ideal for virtual servers and containers. Personally I've been eyeing it for an install on a small ARM board as a music streaming server, which it seems quite suitable for. In this case I would still connect to it over the network, still with no GUI or desktop.

Re: Alpine Linux 3.15

#46

Earlier quoted context omitted.

Although it is annoyingly and quite critically missing a replacement for `sudo -e` / sudoedit (or was last time I checked).

What is wrong with `sudo vim /etc/foo`? I feel that it's better than `sudo -e`, but would love to see an example where `sudo -e` is better.

`sudo vim` will not load your user's vimrc, sudoedit will

Re: Alpine Linux 3.15

#48

Earlier quoted context omitted.

What is wrong with `sudo vim /etc/foo`? I feel that it's better than `sudo -e`, but would love to see an example where `sudo -e` is better.

`sudo vim` will not load your user's vimrc, sudoedit will

It will also run your entire editor as root, which may not be something you want.

Re: Alpine Linux 3.15

#49

Earlier quoted context omitted.

Although it is annoyingly and quite critically missing a replacement for `sudo -e` / sudoedit (or was last time I checked).

What is wrong with `sudo vim /etc/foo`? I feel that it's better than `sudo -e`, but would love to see an example where `sudo -e` is better.

> What is wrong with `sudo vim /etc/foo`?

Aside from forcing vim onto innocent users?

> I feel that it's better than `sudo -e`, but would love to see an example where `sudo -e` is better.

It is way worse than `sudo -e`, because it runs the entire editor as root, whereas `sudo -e` runs a few file copies / move as root. So `sudo -e` has a significantly lower amount of stuff in the "secure zone", and thus, much in the same way `doas` is more secure than `sudo`, `sudo -e` is a lot more secure than running the entire editor.

It also works with anything you can set as $EDITOR.

Some editors (like vscode) will outright refuse to run as root by default.

Re: Alpine Linux 3.15

#50
post #3

I'm familiar with Alpine in container scenarios, but is there any mileage to using it as a day-to-day desktop distro?

Not really. It's not designed for that. It's designed to be as lightweight as possible. also, instead of Glibc, it uses musl, which although is supposed to be binary-compatible, does have some gotchas, so the larger the system, with more apps and libraries running on it expecting glibc, will have issues.

It is designed for desktop use, actually. Many of Alpine's developers use it as their primary PC distro :)
Post reply on HN