The officially official Devuan Forum!

You are not logged in.

#1 Re: Off-topic » What other distro are you using (besides devuan)? » 2020-07-19 00:04:11

Head_on_a_Stick wrote:

I've switched to Alpine Linux for my daily driver — the musl libc base ensures a fundamental incompatibility with systemd that I'm sure will be appreciated by the community here smile

omg!! You're my favorite guy from now on! I wanted to run sway inside Alpine a few months ago. My target was almost the same, to avoid bloat and to see if I can fit it inside a below 512 MB flash drive (very old drive, hence the size). But forgot to try it because I got busy on other projects.

Do you have a guide/blog post describing how you did all these? I would love to read something like that.

btw... I have

- Arch
- Parabola
- Trisquel
- Sparky Linux
- Void Linux (love it!! my daily driver!)
- Artix
- Also use Slax, Puppy, Tiny Core, Slitaz on some of my flash drives when I need to rescue a machine

#2 Re: Other Issues » [SOLVED] How do I install Kodi on Devuan? » 2020-07-18 23:48:43

bgstack15 wrote:
Head_on_a_Stick wrote:

Yes, Guix is very nice. All the cool kids use Nix but that isn't free (as in speech). There's also pkgsrc.

For my edification, please elaborate! I did a brief Internet search for "nix not free software" but of course the results are polluted with items unrelated to your statement. I would like to understand Nix (and maybe NixOS) better from your side. And yeah, I do know a hipster at work who uses Nix and loves it...

Guix is from GNU. So it values the 4 essential freedoms of the Free Software Movement/FSF. There are many projects that are open source but not Free software because it does not completely have those 4 freedoms.

Linux is open source but not Free software

Open source ≠ Free Software.

Linux is open source but not Free software - because it has some closed source binary blobs for some drivers - you can't change binary code and redistribute changed copies of it so it disqualifies as being Free. So to make it fully Free software, some people started Linux-Libre which is Free software. Linux libre is basically Linux but has all those binary blobs removed. I use it too with my Devuan and I love it. But I have setup my hardware to support linux libre, otherwise everything may not work as expected (i.e. I changed or removed hardware that needs binary blobs to function).

Guix doesn't have semi-Free software. It only has pure, libre software. Hence it's different. There are many other distros that are 100% libre and have Linux Libre as default kernel and their repos are free from semi-Free software.

Head_on_a_Stick wrote:

Guix is a fork of Nix.

I see. That explains a lot.

#3 Re: DIY » [HowTo] runit-init as PID1 » 2020-07-18 23:26:31

Well, previously tried runit on Beowulf. It also froze up like Chimaera. The difference is that it asked a question when installing. Otherwise everything else was the same.

It's OK. I think I found a solution to these problems. No new threads necessary. I installed slim dm and then started slim service, rebooted. Before rebooting I reverted the changes. And then after reboot when I logged in with slim, everything worked fine. Mouse and keyboard was working, nm openvpn connection was working. It even fixed a pavucontrol issue that was showing "Connection to PulseAudio failed. Automatic retry in 5s". I didn't need slim on sysvinit. So I guess using a dm is a must when switching to runit (to avoid problems that needs manual changes otherwise). But I had a good adventure tbh!

#4 Re: DIY » [HowTo] runit-init as PID1 » 2020-07-18 09:52:35

Head_on_a_Stick wrote:
john2009w wrote:

I had to add needs_root_rights = yes on /etc/X11/Xwrapper.config.

That is no longer needed, elogind should allow rootless X without xserver-xorg-legacy.

Thanks for the hint. Unfortunately having elogind did not work for me. I looked into a failed xorg log when mouse was not working. It had entries like:

(EE) xf86OpenSerial: Cannot open device /dev/input/event1

I searched around and found that adding the user to "input" group should solve the issue without needing to set `needs_root_rights=yes`. So removed the line from Xwrapper.config, ran sudo dpkg-reconfigure xserver-xorg-legacy command, then:

sudo usermod -aG input $USER

Then found out there was another problem. I wasn't able to connect to openvpn connections. It said `Error: Connection activation failed: Not authorized to control networking.` So I made sure I added myself to sudo usermod -aG netdev $USER, then put the code below on /etc/polkit-1/localauthority/50-local.d/80-networkmanager.pkla:

[network manager allow users]

Then rebooted to apply the group changes. Now everything's fine. (so far at least)

I think there should be some wiki or doc somewhere about these things. This is way past installing just a package.

Head_on_a_Stick wrote:
john2009w wrote:

But I need to change to other desktops/wms sometimes

For Devuan ~/.xsession should be used instead of ~/.xinitrc. And you don't need to prepend openbox-session with dbus-launch.

That's interesting. I've never used that. How do I change the desktop/wm then?

john2009w wrote:

when I tried `sudo sv restart network-manager` it didn't work

The service management is performed through wrapper functions so you just treat the box as if it was running sysvinit.

That's great. cool Then it becomes easier than I thought.

xinomilo wrote:

runit for debian is far for complete.. tried runit (& s6) in artix and indeed, a very different experience there.

I don't mind it, at least the way it's on Devuan. Artix/Parabola OpenRC also has some issues which need manual intervention during setup. But what really helps is  a doc/wiki page guiding through this process. Artix has good guides on switching to and installing runit. Having something similar would be helpful.

#5 Re: DIY » [HowTo] runit-init as PID1 » 2020-07-17 22:09:47

Head_on_a_Stick wrote:

It's called "testing" for a reason wink

Haha. You said it right. Living on Artix/Void has made me used to it. I think I found a solution. I remember I got this problem once on Artix/Parabola OpenRC. I had to add needs_root_rights = yes on /etc/X11/Xwrapper.config. So my steps are:

  • Install runit-init package

sudo -s
apt install runit-init
  • If it asks for a question answer it

  • Add the line below to /etc/X11/Xwrapper.config

needs_root_rights = yes
  • Then as the config file suggests, run this to keep the changes intact across upgrades:

dkpg-reconfigure xserver-xorg-legacy

When it prompts, default selection (console) is fine then press enter

  • Then run `reboot`

  • When asked to enter root password, enter it. Then again `reboot`

Head_on_a_Stick wrote:

You shouldn't need dbus-launch or ~/.xinitrc.


rm ~/.xinitrc
# update-alternatives --set x-session-manager /usr/bin/openbox-session

But I need to change to other desktops/wms sometimes, so startx is easier for me. It's more Unixy this way. Everything is a file, you just edit and it works.

EDIT: I have a question though... I have `runit` returned on `cat /proc/1/comm`. But when I tried `sudo sv restart network-manager` it didn't work. I have to restart network manager through `sudo service network-manager restart`. Why it that?

#6 Re: Other Issues » [SOLVED] How do I install Kodi on Devuan? » 2020-07-17 21:54:34

Didn't know about Nix. Seems similar to Guix:

Nix stores packages in the Nix store, usually the directory /nix/store ... You can have multiple versions or variants of a package installed at the same time. This is especially important when different applications have dependencies on different versions of the same package — it prevents the “DLL hell”.

I want packages like IceCat also. Nix doesn't have that so it wouldn't be a thing for me. But good to know it exists.

#7 Re: DIY » [HowTo] runit-init as PID1 » 2020-07-17 20:25:20

My mouse cursor freezes under runit and I have no choice but to shutdown with power button. I'm on Chimaera/testing. I use `exec dbus-launch openbox-session &` with ~/.xinitrc

When I ran `# apt install runit-init`, it said:

dpkg: sysvinit-core: dependency problems, but removing anyway as you requested:
 init depends on sysvinit-core | runit-init: however:
  Package sysvinit-core is to be removed.
  Package runit-init is not installed.
Unpacking runit-init (2.1.2-36) ...
Setting up runit-init (2.1.2-36) ...

And there was no question asked like, "To continue type in the phrase" etc. Is this normal?

However I ran `reboot` and it said at the end:

Will now restart.
Give root password for maintenance
(or press Control-D to continue):

Pressing Ctrl+D says `sulogin: cannot read /dev/tty1: Operation not permitted`, then asks for root password again. If I enter root password it logins to a root prompt. I run `reboot` there and it finally rebooted.

After the reboot when I login on tty1 and run startx, it shows tint2 panel and everything, but I can't move the mouse cursor, can't do anything with keyboard and the machine freezes!! Please help!

#8 Re: Other Issues » [SOLVED] How do I install Kodi on Devuan? » 2020-07-17 16:45:09

Head_on_a_Stick wrote:

That's an interesting approach, does Guix also install the packages that are needed for hardware video acceleration?

Guix pulled down a version of mesa from its repository when I installed Kodi. So I guess yes.

You can also check out their available package list. It's not bad. Lots of packages to install.

#9 Re: Other Issues » [SOLVED] How do I install Kodi on Devuan? » 2020-07-16 15:04:27

No problem, I used Guix to install Kodi:

cd /tmp
wget -O gpgkey
gpg --import gpgkey
chmod +x
sudo ./
# when asked "Permit downloading pre-built package binaries", entered "yes"

echo 'export PATH=~/.guix-profile/bin:$PATH'>> ~/.bashrc

# To run the guix daemon on non-systemd environment like in Devuan:
sudo setsid /root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild &

guix install kodi

And since Python 2 is still there on repo, I can probably build form source too.

Guix pulls down a lot of dependencies (and did I mention it's painfully slow?) So advanced users may want to build it from source to keep things light. But otherwise Guix can help to get the latest version of packages without the hassle of configuring and building or upgrading. And it can work on top of any Linux distro, not only Devuan. I kind of like the idea.

#10 Other Issues » [SOLVED] How do I install Kodi on Devuan? » 2020-07-15 17:44:24

Replies: 11

I see Kodi is not available on Devuan repos.

I found some instructions but it doesn't work for Devuan. For a start it says to add this to `/etc/apt/sources.list`:

deb jessie-backports main

But it doesn't work, since there is no `jessie-backports` dir on I was going to try bullseye, then got nervous about mixing repos. Can I get only Kodi from debian repos? Is there any special config to do this?

I'm on Chimaera/testing.

#11 Re: Other Issues » Can't mount LUKS VG LVMs - Failed to activate device: File exists » 2020-07-14 19:00:43

Install libpam-elogind to satisfy the dependency on libpam-systemd. network-manager works in beowulf.

Thanks, it worked. Also installed `network-manager-gnome` for nm-applet. Working as expected.

OK, so I reached a temporary workaround. I reinstalled Chimaera/testing this time and did not install Xfce to test everything from ground up. I have installed thunar, thunar-volman, gvfs, ran `update-initramfs -u -k all` just in case. I use `exec dbus-launch openbox-session` as before.

Typically, when unlocking an encrypted VG, it asks for LUKS password, then user password. I was looking for a config to skip the user password. I had many failed attempts but luckily found this answer. It said that if the output of pkaction --version is less than `0.106`, then policykit's .rules files won't work. Devuan is still at `0.105`, so .pkla file should be used. I created /etc/polkit-1/localauthority/50-local.d/60-udisks.pkla with:


For this to work I had to make sure I was in `plugdev` group: sudo usermod -aG plugdev $USER and then reboot for it to take effect.
Now we should be able to mount things without entering our user password. I could probably setup a polkit agent, but this is easier for me now to test around.

I used `lvscan` and found that my VG+LVMs were active already, but they weren't showing up on sidebar, even the external ones (like I reported before, external VGs are affected in Devuan v3 and above but not v2, and VGs booted from are affected in v2-4). Surprizingly when I ran vgchange -ay <vg name>, they came up on sidebar!

But activating the VG I'm currently running Devuan from caused an error telling me that 2 of the lvms are mounted. So I figured I would have to activate LVMs individually with `lvchange`: sudo lvchange -an /dev/<vg name>/<lvm name> && sudo lvchange -ay /dev/<vg name>/<lvm name> for all of them. I don't know why it needs `-an` first, but it works. I wrote a script for running this command for all the VG-LVMs automatically:


# Loops through LVMs and re-activate them in order for them to appear
# in file explorer sidebars on some versions of Devuan
if [ -z $(command -v lvscan) ];then echo "Run as root. e.g. sudo $0"; exit 1; fi
lvscan | while read lv_line ; do
	LV=`echo $lv_line | awk '{print $2}'`
	# Remove quotes
	echo "-- Re-activating $LV..."
	lvchange -an $LV
	lvchange -ay $LV

Plus, this should take care for VGs/LVMs both in internal and external media. Theoretically it should work for LVMs even without VGs.

I was never able to list and mount lvm with gui in debian. Plain encrypted partitions, yes, but not lvm. Find out how those others do it, and maybe it can be replicated. Maybe something is missing.

I'm not sure where the issue is... udev, udisks or somewhere else. I'm not that familiar with how these things work. I am looking into udev rules first. I have already tried to use udev rules from Trisquel, but failed. Using rules from v2 raises dmsetup initramfs error. I'm not even a noob when it comes to udev. So an experienced hand would be helpful. Please let me know if I can contact someone.

#12 Re: Other Issues » Can't mount LUKS VG LVMs - Failed to activate device: File exists » 2020-07-11 13:36:08

Thanks, I'll test that.

But even if it works, it would still mean that I'd have to update them when I add/remove/change my lvms. Plus, it wouldn't solve not showing up VG in the USB drive (on beowulf). I think listing all the possible LVMs in fstab won't be practical for me in the long run, as I have lots of other drives with VGs and lots of LVMs in them. Finding out names, mounting them one by one is not very user friendly as well.

First I thought it was a non-systemd issue. But Void Linux (runit init) can list LVMs just fine. So I guess it can be done on Devuan as well. My best guess is that there are some config that is not letting it work. Esp. seeing that it works partially on Devuan 2 makes me think I'm right.

#13 Re: Other Issues » Can't mount LUKS VG LVMs - Failed to activate device: File exists » 2020-07-11 12:16:05

I tried some mounting options from Thunar - Preferences - Advanced tab - Volume Management - Configure, checked 3 checkboxes under Removable Storage. But it didn't solve the problem.

I have "defaults" set for my / and swap on my fstab. Can you suggest any options that I can try?

About trying the upgrade... upgrading to Devuan 3 didn't help. It worsened. Now unlocking the usb VG shows LVMs from neither of the VGs.

I think if I reinstall, I should stick with 2. I like Devuan, but there are more issues than I expected in a stable release. I had network-manager and openvpn installed. They are uninstalled by themselves after the upgrade. When I try to install network-manager it complains "network-manager : Depends: libpam-systemd". Xfce's focus started following the mouse cursor. I had to change it to click manually.

#14 Re: Other Issues » Can't mount LUKS VG LVMs - Failed to activate device: File exists » 2020-07-11 08:20:23

I have gvfs-backends and also gvfs-fuse and udiskie in case it was needed. But not working.

Well, I am not sure if auto-mount with fstab is going to help. I don't actually want it to automount. I want to see the list of the LVMs in Thunar/pcmanfm's sidebar and want to mount it on click.

Another interesting thing I noticed is that I reinstalled with Xfce desktop, and this time stayed with Devuan 2.1. Now if I click on the VG that I have installed Devuan on, the behavior is same as before. It doesn't show LVMs. But when I plug in the USB drive with VG, and unlock it, it shows LVMs from both internal VG and usb VG!! Strange!

As much as I've experimented with config changes, I am suspecting some udisks or polkit config to be missing or wrong. It works, but not on the VGs that are already unlocked and used by system, atleast not before some other device triggers something that makes it work somehow. (probably a bug?)

[I'll probably upgrade to 3 to see if that behavior stays the same and edit this] EDIT: It got worse on 3

#15 Re: Other Issues » Can't mount LUKS VG LVMs - Failed to activate device: File exists » 2020-07-09 14:38:28

fsmithred wrote:

You should be able to mount whatever /dev/mapper/something that needs to be mounted. Or maybe mount /dev/vg1/storage.

Or maybe I'm missing something because I don't know udiskctl. I always use cryptsetup, vgchange and mount to manually mount encrypted lvm.

Yes. You're right. I can mount with:

$ sudo mkdir -p /media/user/storage && sudo mount /dev/mapper/vg1-storage /media/user/storage

But I wanted it to be automatic like the other distros.

The LVMs show up on Thunar/pcmanfm's sidebar on other distros after unlocking the VG. It isn't the case on my install.

Other distros (esp. the minimal ones, like Arch, Void) have this kind of problem too. After I install gvfs, add dbus-launch and reboot usually everything works. But not happening here. udiskctl is just to show you the output, I dont use it either.

#16 Other Issues » Can't mount LUKS VG LVMs - Failed to activate device: File exists » 2020-07-07 13:46:13

Replies: 10

Recently I installed Devuan 2 ASCII on an LVM inside a LUKS encrypted VG. I couldn't find a way to install Devuan on an existing VG in the installer. So I installed it with debootstrap. Later I upgraded to Devuan 3 Beowulf.

The problem is that Devuan boots just fine, but I can't mount any LVMs inside my VG that Devuan is booting from. I tried:

$ sudo udisksctl unlock -b /dev/sda2
Error unlocking /dev/sda2: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error unlocking /dev/sda2: Failed to activate device: File exists
$ sudo udisksctl mount -b /dev/mapper/vg1-storage
Error looking up object for device /dev/mapper/vg1-storage
$ sudo vgscan | grep vg1
  Found volume group "vg1" using metadata type lvm2
$ sudo lvscan | grep storage
  ACTIVE            '/dev/vg1/storage' [xxx GiB] inherit

Even Thunar and pcmanfm is failing to do so, while pcmanfm just repeats the message on terminal "Error unlocking /dev/sda2: Failed to activate device: File exists" and Thunar silently fails. Tried so many config changes around the web, but didn't help.

Thinking that this is occuring due to booting and mounting from the same VG, I tried another USB device with a VG, and I think I was right. It works:

$ sudo udisksctl unlock -b /dev/sdb2
Unlocked /dev/sdb2 as /dev/dm-8.
$ sudo vgchange -ay vg32
  3 logical volume(s) in volume group "vg32" now active
$ sudo udisksctl mount -b /dev/mapper/vg32-root32
Mounted /dev/dm-10 at /media/root/root32.

I can click and mount the other LVMs from /dev/sdb2 like normal (but not /dev/sda2). So the issue is only with the VG I'm currently running Devuan from.

I am using Openbox and I start it in ~/.xinitrc with exec dbus-launch openbox-session. My user is on users sys adm disk cdrom floppy sudo audio dip www-data video plugdev groups. Other OSs like Trisquel, Void Linux and Parabola just either works out of the box or had to dbus-launch the session, but Devuan is having this issue.

Please help!!

Board footer

Forum Software