The officially official Devuan Forum!

You are not logged in.

#1851 Re: Desktop and Multimedia » SLIM session issue when log-out and log-in » 2021-01-03 10:06:03

Is the login session maintained after logging out & back in again?

loginctl user-status

SLiM is dead upstream and it doesn't support logind sessions correctly so perhaps try LightDM or GDM instead. GDM will run X under the normal user so that should probably be preferred.

EDIT: this behaviour is a known problem with SLiM — it doesn't support a 'default' session where multiple sessions have been enabled. Change to a different display manager if you want to avoid this issue.

The best display manager is no display manager at all: http://forums.debian.net/viewtopic.php?f=16&t=29333

#1852 Re: Off-topic » Info » AppImage security and alternatives » 2021-01-03 09:36:41

ToxicExMachina wrote:

Flatpak is also SystemD-exclusive package manager.

Nope: https://pkgs.alpinelinux.org/packages?n … ranch=edge

And it's spelled "systemd" FFS... mad

#1853 Re: Other Issues » Copy Speed?? » 2021-01-02 22:19:58

https://unix.stackexchange.com/question … 722#107722

EDIT: using echo & /etc/rc.local is for n00bs so run this instead:

# sysctl vm.dirty_background_bytes=$((16*1024*1024))
# sysctl vm.dirty_bytes=$((48*1024*1024))

if that works use a file at /etc/sysctl.d/copy.conf to make the change permanent:

vm.dirty_background_bytes=16777216
vm.dirty_bytes=50331648

#1854 Re: Other Issues » Permission problems on Beowulf after Ascii upgrade » 2021-01-01 20:41:24

Looks like the upgrade hasn't gone through properly so you have a FrankenDevuan at the moment, hence the dependency issues.

You should probably tell us exactly how you went about upgrading your system.

I would use this method:

# sed -i 's/ascii/beowulf/g' /etc/apt/sources.list
# apt update
# apt upgrade
# apt full-upgrade

But I'm very lazy so you should read the release notes and do it properly.

For elogind if the full-upgrade doesn't install it then try

# aptitude install elogind

^ That should offer several potential solutions so go through them all (keep refusing until it tells you there are no other options) and select the best one.

#1855 Re: Hardware & System Configuration » HP DV6 no headphone audio » 2021-01-01 15:00:31

Have you tried starting PulseAudio? See the beowulf release notes for some potentially relevant advice.

#1856 Re: Other Issues » Permission problems on Beowulf after Ascii upgrade » 2021-01-01 14:57:37

Is the elogind package installed?

And please post actual, verbatim error messages rather than vague descriptions. Thanks.

#1857 Re: Off-topic » dd command inside script. » 2020-12-29 10:31:56

Thought it better to post this here rather than pollute your new thread but just to let you know that https://shellcheck.net thinks you should double-quote the variables:

Line 13:
        mkdir -p /home/${u}/${dir}
                       ^-- SC2086: Double quote to prevent globbing and word splitting.
                            ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        mkdir -p /home/"${u}"/"${dir}"
 
Line 19:
        dd if=/dev/urandom of=${outfile} bs=${blocksize} count=1 iflag=fullblock
                              ^-- SC2086: Double quote to prevent globbing and word splitting.
                                            ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        dd if=/dev/urandom of="${outfile}" bs="${blocksize}" count=1 iflag=fullblock
 
Line 27:
        losetup ${LOOPDEV} ${img}
                ^-- SC2086: Double quote to prevent globbing and word splitting.
                           ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        losetup "${LOOPDEV}" "${img}"
 
Line 28:
        cryptsetup luksFormat ${img}
                              ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        cryptsetup luksFormat "${img}"
 
Line 29:
        cryptsetup open ${img} ${name}
                        ^-- SC2086: Double quote to prevent globbing and word splitting.
                               ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        cryptsetup open "${img}" "${name}"
 
Line 30:
        mkfs.ext4 /dev/mapper/${name}
                              ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        mkfs.ext4 /dev/mapper/"${name}"
 
Line 36:
        cryptsetup open ${img} ${name}
                        ^-- SC2086: Double quote to prevent globbing and word splitting.
                               ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        cryptsetup open "${img}" "${name}"
 
Line 42:
        mount -t ext4 /dev/mapper/${name} /home/${u}/${dir}
                                  ^-- SC2086: Double quote to prevent globbing and word splitting.
                                                ^-- SC2086: Double quote to prevent globbing and word splitting.
                                                     ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        mount -t ext4 /dev/mapper/"${name}" /home/"${u}"/"${dir}"
 
Line 49:
        umount /home/${u}/${dir}
                     ^-- SC2086: Double quote to prevent globbing and word splitting.
                          ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        umount /home/"${u}"/"${dir}"
 
Line 50:
        cryptsetup close ${name}
                         ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: (apply this, apply all SC2086)
        cryptsetup close "${name}"

Oh, and I'm pleased to see that you've dropped bloaty old bash — POSIX sh ftw! :-)

#1858 Re: Freedom Hacks » Admin, please delete. » 2020-12-28 23:13:58

OalSkuul wrote:

Admin, please delete.

That is very selfish behaviour, threads on these boards are supposed to be a community resource. If you're upset because I accused you of hijacking the other thread then stop being such a baby and grow some thicker skin.

#1859 Re: Devuan » Wifi and Ethernet not working in Devuan on newer AMD system » 2020-12-28 23:12:07

That CPU and the wireless & internet cards are only supported by the kernel version in the beowulf-backports repository. The wireless card also needs the backported iwlwifi firmware package and the ethernet card probably needs the backported Realtek firmware package.

These are known issues and the package versions in the main beowulf repositories will never be bumped because that's not how Devuan works but thank you for your report :-)

#1860 Re: Off-topic » dd command inside script. » 2020-12-28 21:52:11

OalSkuul wrote:

what is it for?

See random(4). If you have any other questions then please open a new thread rather than hijack this one, thanks.

#1861 Re: Off-topic » dd command inside script. » 2020-12-28 14:42:24

You should also be quoting your variables to avoid globbing and word substitution.

https://mywiki.wooledge.org/Quotes

#1862 Re: Off-topic » dd command inside script. » 2020-12-28 12:40:25

dice wrote:
    i ) crypt_img $2 $3

I think that should be

    i) crypt_img "$@"

Otherwise $2 & $3 will be interpreted as the third and forth arguments applied to the script.

Not sure about the encryption stuff though, I don't use that.

#1863 Re: Off-topic » dd command inside script. » 2020-12-27 12:53:15

Not sure I understand your question but $1, $2 & $3 and the first, second and third arguments applied to a script. These are known as positional parameters.

Example script:

$ cat example
#!/bin/sh
echo "$1" "$2" "$3"
$ ./example value.img 100M 1
value.img 100M 1
$

#1864 Re: Devuan Derivatives » xfce4 icons missing in starlinux derivative » 2020-12-26 19:36:53

This will install the full XFCE desktop:

# apt install --install-recommends task-xfce-desktop

The task includes the tango-icon-theme package, which might be all you need if you don't want everything supplied by the full desktop.

Other icon themes are available :-)

Check which icon theme is currently selected with

xfconf-query -c xsettings -p /Net/IconThemeName

#1865 Re: Freedom Hacks » Admin, please delete. » 2020-12-25 21:12:50

OalSkuul wrote:

the sudo line failed (it opened, but after entering my password and hitting enter, the terminal window crashes)

That's strange, I'm using that .desktop file in SharpBang and it works in my tests.

What happens if you try to run the Exec line from an open terminal (as your normal user)?

x-terminal-emulator -e sudo -i

#1866 Re: ARM Builds » mnt reform support? » 2020-12-25 21:09:39

zapper wrote:

As for skipping to get a RISC-V chip,  I would only want that if Devuan or something better has support for Risc-V

Unofficial at the moment but they're working on it:

https://wiki.debian.org/RISC-V

Drew DeVault was working on porting Alpine Linux to RISC-V but I'm not sure how that's going:

https://drewdevault.com/2018/12/20/Port … ISC-V.html

https://lists.alpinelinux.org/~alpine/d … 0hifive%3E

Nothing concrete from OpenBSD yet though, unfortunately:

https://marc.info/?l=openbsd-misc&m=160807140003965&w=2

But it looks like both FreeBSD and NetBSD have made some progress:

https://wiki.freebsd.org/riscv

http://wiki.netbsd.org/ports/riscv/

#1867 Re: Freedom Hacks » Admin, please delete. » 2020-12-25 20:18:00

OalSkuul wrote:

if I could just figure out the code for a desktop root terminal launcher

[Desktop Entry]
Version=1.0
Name=Root Terminal
Comment=Run terminal emulator as root
Type=Application
Exec=x-terminal-emulator -e sudo -i
Categories=System;TerminalEmulator;

EDIT: if you don't have sudo installed then use Exec=x-terminal-emulator -e su - instead.

#1868 Re: Other Issues » Etertics radio distro NO SOUND... help! » 2020-12-25 18:52:32

rhtoras wrote:

I use an xlr mic and external usb soundcard

I missed this bit. A USB card won't show up in lspci, use lsusb instead.

You can open a terminal and run this command:

udevadm monitor

Then plug the USB card in and see what the kernel & udev do with the device.

Which kernel versions are Mint & Void using? The stock kernel in Devuan beowulf might be too old to support the devices.

#1869 Re: Other Issues » Etertics radio distro NO SOUND... help! » 2020-12-25 15:49:31

dice wrote:
lspci -knn | grep "Audio"

The grep needs to be expanded to show the kernel driver:

lspci -knn | grep -A2 "Audio"

@OP: have you read the beowulf release notes? If you have multiple sound cards then PulseAudio might need to be autostarted.

Use pgrep pulse to check if it's running and use aplay -l to list all available audio devices.

#1870 Re: Documentation » dwm statusbar bash script » 2020-12-25 15:45:09

dice wrote:

if wlan0 is connected first and then usb0, the default is always going to be wlan0 and vice versa, would that be true?

Yes, I think you're right.

Another alternative:

ip link | awk '/UP /{print $2}'

#1871 Re: Documentation » dwm statusbar bash script » 2020-12-25 08:48:14

dice wrote:

ip l shows ifaces even if they are down whereas ifconfig and netstat does not. So this would make the script only output multiple if ip was used.

Ah yes, of course. But ifconfig shows all interfaces that are up, which includes interfaces which are not connected.

How about this:

ip r | awk '/^default/{print $5}'

^ That shows the name of the interface currently connected.

#1872 Re: Documentation » dwm statusbar bash script » 2020-12-24 15:57:18

dice wrote:

If it is old and deprecated why is it still in the kernel?

It's not in the kernel, ifconfig is a(n obsolete) userspace utility.

And anyway what's wrong with

a=$(ip l | grep -ow "wlan0\|usb0")

Off topic for this thread but you should check out slstatus — pure C ftw!

#1873 Re: Off-topic » Season's Greetings to all » 2020-12-24 15:51:07

Bah ****ing humbug.

EDIT: and a happy new year.

#1874 Re: Freedom Hacks » Admin, please delete. » 2020-12-23 20:42:14

OalSkuul wrote:

not edit it with either mousepad or geany

Neither mousepad nor geany support the GVFS admin backend. Try gedit instead, that does support it.

Or even better set your chosen editor as $SUDO_EDITOR and create a Thunar custom option to edit system files with the sudoedit command. See http://dev1galaxy.org/viewtopic.php?pid=24244#p24244 for more on this.

EDIT:

OalSkuul wrote:

My way, I can do it all

Your way runs entire GUIs as root, which exposes your system to major vulnerabilities unnecessarily.

OalSkuul wrote:

I blame the Debiots kowtowing to their sys'd overlords

I blame GNU/Linux application developers finally taking security in the desktop seriously. Overriding that improvement is silly (IMO).

#1875 Re: Freedom Hacks » Admin, please delete. » 2020-12-23 20:14:37

OalSkuul wrote:

Tried this ("new") Thunar Custom Action from an Ubuntu forum, no joy...

Name: Open as admin
Command: thunar admin://%f
File pattern: *

The GVFS admin backend is indeed the "correct" way to use Thunar as root (ie, how the developers of the application intend it to be used).

Do you have the gvfs-backends package installed? Does entering admin:/// into the navigation bar in Thunar work? Start Thunar from a terminal to see any relevant error messages if it fails:

thunar admin:///

You also need a graphical authentication agent running for polkit to display a password prompt:

https://wiki.archlinux.org/index.php/Po … ion_agents

Board footer

Forum Software