The officially official Devuan Forum!

You are not logged in.

#26 Desktop and Multimedia » The abstract and network socket for X » 2022-08-29 15:20:57

Tritonio
Replies: 4

I've been disabling them for years with and I don't think I've encountered a problem. I'm disabling them assuming that by doing so, unless another user can open the Unix socket they won't be able to interact with my X to steal keystrokes etc.

Here's what I have right now:

/etc$ grep -R nolisten 2>/dev/null 
slim.conf:xserver_arguments   -nolisten tcp -nolisten local
X11/xinit/xserverrc:exec /usr/bin/X -nolisten tcp -nolisten local "$@"

But why are these sockets enabled by default? Are my assumptions wrong? I think I've read that the abstract socket is used by Snap but is that all? Am I actually hardening my system when I disable them?

EDIT: I did a bit more research and I realized that the X unix socket is /tmp/.X11-unix/X0 which is world writable. I'm trying to figure out how to change this, I don't have other users that need X so I think it'll be ok to limit it to just my user (and root).

EDIT2: I now saw how the MIT-cookies work but I'm still trying ot figure out the exact lifecycle of X. How does slim show up in my screen if I still haven't logged in but I then end up having the cookie to connect to X? In any case my initial question still stands, why keep the abstract and network socket around?

#27 Hardware & System Configuration » [SOLVED] Dell Vostro 3525 backlight does not work » 2022-08-26 09:18:18

Tritonio
Replies: 1

Hello. I already solved this issue but it took me too long so I thought I'd document the solution here if anyone else has the same problem.

Hardware: https://ubuntu.com/certified/202111-29708/20.04%20LTS
Renoir graphics with Ryzen 5 5625U.

Symptoms:

  • /sys/class/backlight/acpi_video0/brightness exists and contains values and can be changed but will not change the actual brightness on the laptop panel.

  • Whenever a value is written to the above file, the Display Settings pop up. Yes, the actual xfce4-display-settings program is started. I'm assuming that it detects a display change. It even pops up if you use the Fn buttons to change the brightness if you have given control of the brightness to xfce4-power-manager (which you should).

  • The Fn keys will emit "dell_wmi: Invalid length of WMI event" but this is a red herring, ignore this sort of warning.

  • Your laptop's panel will only go up to 70Hz or 77Hz.

I tried many of the solutions that float around the web and only a combination of two of them plus something that I found myself in synaptic worked. Specifically:

(As root)

  • Enable backports and install the kernel 5.18.0-0.bpo.1-amd64 (headers and image)

  • Edit /etc/default/grub and change the CMDLINE to: GRUB_CMDLINE_LINUX_DEFAULT="quiet amdgpu.backlight=0"

  • Run update-grub.

  • Install firmware-amd-graphics

Reboot and acpi_video0 will go away and instead you'll have amdgpu_bl0 which actually works with Fn keys and by writting values to the /sys/class/backlight/amdgpu_bl0/brightness file. You'll also have 120Hz refresh rate.

I had tried individually the three important components of the solution and they didn't seem to work.

The only other issue that I encountered with this laptop was that the external mic doesn't work with ALSA at all, and the internal mic works but has no volume control. Pulseaudio somehow makes them work, which makes me think that there is a way to make them work with ALSA too, since PA uses ALSA if I am not mistaken. I may try to solve that in the future since I dislike PAs overhead (CPU and latency).

I hope this helps someone.

#28 Re: Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-07-08 16:11:09

Good news. Will there be an new Live ISO that fixes the installer?

#29 Re: Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-06-25 13:49:31

Is it possible to roll out a fix for all users that are affected by this? Most people won't even know that they have a completely broken  anacron setup.

Try:

ls /etc/cron.daily

For a list of things that don't run because of this. NTP and apt related tasks are probably bad not to be running.

#30 Installation » [SOLVED] Anacron symlinked to "true", again. » 2022-06-24 11:53:41

Tritonio
Replies: 31

I had encountered this issue in the past and I thought it was because I did something hacky during the upgrade from the previous Devuan version. But now the same thing happened in a fresh and quite standard installation of Devuan.

I am using the graphical installer (refracta?) without EFI and the only non standard settings are that I create a separate boot partition and I encrypt the root filesystem. Everything else I think is defaults or they are language and locale related settings.

After the end of the installation, anacron is symlinked to "true" which causes, for example, the log rolling of syslog etc not to work. There's basically nothing being run by anacron but because anacron technically exists, Cron is not used a fallback either, so many scheduled things just don't run at all. Crontab entries will still run though.

Last time I had this issue I had copy-pasted a bunch of pages from this forum into a pastebin for future reference by me, here: https://pastebin.com/iGZVJShW The solution is near the end and involves removing dpkg diversions and also uninstalling live* packages.

It looks like this is a very old bug in the Refracta installer which is somehow still around? Or am I doing something wrong? If this is such a common bug I think it should be something that must be affecting many, maybe even most Devuan users without them even knowing about it.

#31 Re: Desktop and Multimedia » [SOLVED] Broken pkexec in Chimaera » 2022-01-13 14:00:12

Have I tried turning it off and on again? No I haven't. And I just did. And it works now.

I restarted because I thought the problem was that I was running my Xsession's dbus under a different group (with "sg") and indeed when I reverted to the original and restarted, it worked! But then I put it back to the different group and it still works. So I guess it simply needed a restart?? Alright... Maybe there was some polkit daemon that had died then.

Thank you all for the help! Once I verify it's working I'll mark it as SOLVED.

#32 Re: Desktop and Multimedia » [SOLVED] Broken pkexec in Chimaera » 2022-01-13 12:06:30

Both are already installed. Maybe I need to run something? I don't see executables in these packages' installed files though.

#33 Desktop and Multimedia » [SOLVED] Broken pkexec in Chimaera » 2022-01-13 10:42:55

Tritonio
Replies: 8

After upgrading from Beowulf, all apps like synaptic, gparted and timeshift fail to launch from the whisker menu in XFCE. After some research I saw that all of them are probably using pkexec to launch which in turn is supposed to use polkit to show the password dialog for elevating privileges.

Which package is supposed to be the polkit agent for XFCE? Arch says it's xfce-polkit but that doesn't exist in the repos. I seem to have installed pokit-kde-agent-1, mate-polkit and mate-polkit-common but not mate-polkit-bin, and I see that I could install lxpolkit too. But since i'm running XFCE I don't think I should be using these.

Thank you.

Board footer

Forum Software