You are not logged in.
Hey so to get right to the point, I did some stupid shit with /sbin/init and ended up reinstalled systemd with pacman -S systemd. It seems this has removed most of my services and now I have no audio.
Is there an 'easy' way to just get the default services for my installed packages without breaking too much?
Thanks in advance ✌️
Edit:
Turns out I was stupid and did chmod 744 on the /sbin/init link, fixed by chmod 755 /usr/lib/systemd/systemd
Last edited by Sebastian H. (2024-12-06 02:43:48)
Offline
It's much more likely that the "stupid shit" you mention caused the loss of services and audio, and not "pacman -S systemd", since that command by itself will not alter your configuration. So you'll have to post your actual commands you performed prior to pacman -S systemd for us to see what could have caused that.
Offline
I wanted to link zsh to init which I did with:
cd /sbin
cp init init.bak
ln -s /bin/zsh init
rebootThis failed and dropped me in a recovery environment with rootfs because the filesystem is mounted at "new_root" in the late stages of the boot process so it should have been "ln -s /new_root/bin/zsh".
Didn't know any of this at the time and just moved init.bak back which wasn't a symlink anymore but a copy of systemd.
mv init.bak initIt worked and I tried recreating the symlink with
ln -s /usr/lib/systemd/systemdwhich didnt work for the same reason so I decided to just reinstall systemd with
pacman -S systemd hoping it would fix itself.
This didn't help and I started reading up on how everything actually works and recreated the link with
ln -s ../lib/systemd/systemdNow I have no sound and pactl is reporting
$ pactl info
Connection failure: Connection refused
pa_context_connect() failed: Connection refusedLast edited by Sebastian H. (2024-12-06 02:20:29)
Offline
Hmm running systemctl --failed I get:
$ systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user@1000.service loaded failed failed User Manager for UID 1000
● user@972.service loaded failed failed User Manager for UID 972I will investigate further...
Edit:
Turns out chmod on a link changes the permissions of the linked file...
But thank you for taking the time to help, hope you have a great day :)
Last edited by Sebastian H. (2024-12-06 02:42:57)
Offline