Skip to main content
Topic: Brand new runit install - and packages aren't creating system accounts (Read 107 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Brand new runit install - and packages aren't creating system accounts

Hey everyone, I'm new to Artix and have been *somewhat* successfully installing it on several systems. The number one issue that I'm running into, on every system, is that system accounts aren't created for the programs that require them during installation - this has happened for avahi, lightdm (if I recall correctly), colord, mlocate, and gdm, and I suspect it happens for many other packages. Having to diagnose problems for many of the packages I'm installing is excruciating; I can't believe this has gone unnoticed by the entire community for so long, it has to be an issue with something that I'm doing.

I think the number one thing that could be screwing me up is missing something in the install process (though it would make no sense to affect account creation, it's the only thing that I've actually done to the system). To be frank, I don't like using the installers packaged by Artix; I prefer installing an Arch system using the Arch ISO and following the Artix migration guide to keep the system as minimal as possible (a virtue that isn't followed very well by Artix, which seems ironic that they'd add more stuff when they were trying to remove systemd bloat, but I digress). I don't strictly follow the migration guide either - here's what I skip out on, for complete context/reproducability:

- "Download the Artix packages" / "Install OpenRC" - I omit runit-system and runit-world from this (which would replace openrc-system and openrc-world in the provided command) because I don't need 90% of those scripts.
- "Install init scripts" / "Enable services" - Once again, I opt out.
- "Configure networking" - Not applicable to me because I have runit; I use dhcpcd for desktop wired devices or NetworkManager for mobile/wireless ones (and their init scripts). Typically manual dhcpcd works just fine during installation/setup process.
- "Tweak /etc/rc/rc.conf" - Once again, not applicable to runit.
- "Prepare a desktop environment" - Omitted because I don't generally do that until later; I'm completely comfortable setting up a system on the terminal.

At this point I reboot and begin installing more things. The system boots fine; I don't need to install or enable any special init scripts except the ones packaged with runit (elogind and dbus if I recall correctly) and agetty to access the terminal. However, when I begin installing other programs, I run into the issue I described above. This leads to two questions:

1. Is this what Artix is supposed to do?

2. If not, what is going wrong?

I hope someone else can help me find the answers. Thanks so much for your time.

~tokumei

Re: Brand new runit install - and packages aren't creating system accounts

Reply #1
I don't understand why you are keeping runit but also installing openrc, or is it a typo?
Then you say you do not install X or a dm, just minimal console system, but then complain about lightdm user not added to groups.

Did you use the latest runit iso for the installation?  With basestrap you can install your minimal (prescribed as minimal) artix, openrc or runit. 

Why do you want to run dhcpd manually?  Are there situations where you boot up and want no networking?  Is it an exercise in extreme minimalism or running a specific server out  of it?

I've never noticed what you say about system users, I know when I install sddm an sddm user and group are created.

Re: Brand new runit install - and packages aren't creating system accounts

Reply #2
Apologies for the misunderstandings.

I don't understand why you are keeping runit but also installing openrc, or is it a typo?
Then you say you do not install X or a dm, just minimal console system, but then complain about lightdm user not added to groups.

I do not also install openrc. As I have said, I was following the migration guide, as I have linked, which has instructions only specifically for OpenRC. I would be *replacing* those commands with appropriate runit ones.

I did not say that  I never *ever* install a dm, I just say that I defer that process - I am noting that the guide wants me to do it *now*, and I do it *later*. After first reboot, I did eventually install lightdm, and it had issues with the lightdm user missing. I also tried gdm with similar (but more vague) errors that I believe were caused by the lack of a gdm user.

Quote
Did you use the latest runit iso for the installation?  With basestrap you can install your minimal (prescribed as minimal) artix, openrc or runit. 

No. I'll be honest and say I haven't tried every installer ISO, but they generally don't work on cloud servers, which was one of the ones I was having trouble with. I'm most familiar with Arch installation -> Artix migration strategy because Linode has Arch Linux base images available. I may give the official installers another try to see if the problem disappears, then maybe compare packages with a base install from my own strategy to see what's different.

Quote
Why do you want to run dhcpd manually?  Are there situations where you boot up and want no networking?  Is it an exercise in extreme minimalism or running a specific server out  of it?

I don't know what to say, honestly,  it may be better to install and use NetworkManager right out of the box. I just don't feel like I need to  run a full-featured network manager if I don't need to manage anything more than a single ethernet port. Part of it may be minimalism, like you suggest, as I am here to get rid of unnecessary extra software packages ;)


And a small update - Pacman does *eventually* properly handle user creation - I've been installing software to my fresh Artix workstation today, and somewhere along the line, it began working. So I definitely think there's something that I'm missing from my installation process, but I'm not sure what it is.

Re: Brand new runit install - and packages aren't creating system accounts

Reply #3
Aahh Ok, now I understand what I misunderstood.  If you make the image locally and upload it to cloud, would it work?  I have no cloud experience.  I don't use networkmanager either, ever since I figured out how runit works dhcp is sufficient.
I think it is worth your time to try the iso.  Something doesn't sound right with what you say about users/groups.  I use to have the reverse problem of using simple -R and having users and groups left around as ghosts.  Just actually looked and found lxdm (user/group) and it must be more than 6 months I tried lxdm.

The procedure for migration is old, so be careful.  Did you install artix-sysvcompat?

Unrelated to artix:  Have you tried alpine for what you want to do?

Re: Brand new runit install - and packages aren't creating system accounts

Reply #4
Its likely, our wiki entry is a bit outdated.

Code: [Select]
basestrap -cGM base openrc

or

Code: [Select]
basestrap -cGM base runit

will install a base cli system.