The officially official Devuan Forum!

You are not logged in.

#1152 Re: Hardware & System Configuration » make opensnitch installable for systemdless systems » 2021-12-26 13:56:56

The opensnitch .deb already supplies an init script but they don't use dh_installinit(1) correctly so you have to enable it yourself:

# update-rc.d opensnitch defaults
labrona wrote:

we should all have a firewall for outgoing connections as well

The stock nftables package can deal with both outgoing and incoming connections but see https://dev1galaxy.org/viewtopic.php?id=2889 for starting it at boot.

Windows-style firewalls are generally considered unnecessary in GNU/Linux because we can read the source code of any installed packages to check what they're doing.

#1153 Re: Hardware & System Configuration » [SOLVED] NumLock on at boot time, possible? » 2021-12-25 19:06:42

Try adding this to /etc/rc.local (needs the kbd package):

initty="/dev/tty[1-6]"
for tty in $initty; do
   /usr/bin/setleds -D +num < "$tty"
done

EDIT: that's for console (TTY) screens.

If you mean for a display manager login see https://wiki.archlinux.org/title/LightD … by_default (for LightDM, other display managers will have similar options for startup scripts and commands).

#1154 Re: Hardware & System Configuration » Dual boot, can't do "update-grub" » 2021-12-25 18:41:35

*sighs*

So how did you become root then?

It looks like you used this command as your normal user

su

When you should have used

su -

Or call

/usr/sbin/update-grub

From the release notes:

su

   The behaviour of su changed in Devuan 3 Beowulf. These changes persist
   in Devuan 4 Chimaera. Use su - to get root's path or use the full path
   to commands if you use only su. See the following for more information:
   -
   [17]https://www.debian.org/releases/buster/ … -variables -
   [18]https://wiki.debian.org/NewInBuster -
   [19]https://bugs.debian.org/905564

This is the last time I'm answering this question on these boards...

#1155 Re: Off-topic » Happy Holidays & Merry Christmas » 2021-12-25 09:03:16

Bah humbug!

EDIT: and a happy new year!

#1156 Re: Other Issues » msi quirk detected; hang on boot » 2021-12-25 09:02:09

systemdlete wrote:

a hang

Are you sure? Did you try using ssh or booting to a console screen to check if it's not just a failure of the graphical desktop?

Pro tip: your OP is too prolix. A more concise description of the problem might help.

#1157 Re: Hardware & System Configuration » Dual boot, can't do "update-grub" » 2021-12-25 08:59:40

turbo wrote:

wanted to do: # update-grub but got "bash not known" message.

It's better to post the actual error message. It's best to enter that error message in the search box for these boards because this problem has come up several times before.

You should also read the release notes because this issue is covered there.

tl;dr: use su - to obtain a root shell. If the - isn't added then you will have to call the full path for any executables under the /sbin directories.

#1158 Re: Installation » [SOLVED] minimize,maximize buttons gone » 2021-12-25 08:57:10

Which themes are you trying? Are they installed from the repositories? Manually installed themes might not be compatible with the Cinnamon version you're using.

Does the problem persist if you create a new user and log in with that user instead?

#1159 Re: Installation » [SOLVED] minimize,maximize buttons gone » 2021-12-24 19:55:00

Are all applications affected?

Have you tried changing the theme?

Which packages were updated?

#1160 Re: Installation » how to clone a partition with os installed? » 2021-12-24 18:50:15

felixed wrote:

# install bootloader from within new system, it's important *****!!!!!

grub-install /dev/nvme1n1p6
update-grub

For non-UEFI systems it is strongly recommended to install GRUB's core.img to the block device rather than the partition. If it is installed to the partition it can be "lost" during fsck operations and is generally more fragile. GRUB itself will give a warning about this if it is attempted.

And it's also best to update the debconf database with the new location rather than running grub-install manually:

dpkg-reconfigure grub-pc
update-grub

EDIT: I did post a manual method earlier but changed my mind and deleted it. Here it is again but without the manual partitioning bit because I decided that was too likely to wreck the system if the wrong device was given...

So this presumes you have already partitioned and formatted the new drive, which is identified hereafter as /dev/sdX — replace X with the correct letter and use lsblk -f to check (it will show which partitions are already mounted).

First mount the two partitions (this presumes the first partition is for / and the second is for /home, correct as needed):

mount /dev/sdX1 /mnt
mkdir /mnt/home
mount /dev/sdX2 /mnt/home

Then copy the system over:

apt install rsync
rsync -aAXHv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt
sync

Wait for the sync command to return the prompt to ensure the copy buffers are all flushed to the drive.

Now generate a new fstab and chroot into the system to install & configure the bootloader:

apt install arch-install-scripts
genfstab -U /mnt > /mnt/etc/fstab
arch-chroot /mnt
dpkg-reconfigure grub-pc
update-grub

Finally exit the chroot and un-mount  the drive:

exit
umount /mnt/home
umount /mnt

That's it.

#1161 Re: Installation » [SOLVED] create new partition table on HDD, but not with root as owner » 2021-12-23 22:45:28

nobodyuknow wrote:

complaining that there was nothing in /media/"$USER"/ and it was correct, there was nothing there even though the HDD was running and connected vis USB.

So GVFS isn't acting on the device then. Or it's mounting it somewhere else — use findmnt /dev/sdX to see if it's mounted anywhere.

You could try mounting it manually to change the filesystem permissions:

mkdir ~/storage
sudo mount /dev/sdXY ~/storage
sudo chown -R "$USER":"$USER" ~/storage
sudo umount ~/storage
rmdir ~/storage
nobodyuknow wrote:

partitioned to FAT32

FAT doesn't allow permissions so anybody can do anything to it, unlike ext4. But it has a 4GiB file size limit and it's pretty fragile so I wouldn't really recommend it for general use.

#1162 Re: Installation » [SOLVED] create new partition table on HDD, but not with root as owner » 2021-12-23 21:22:44

NTFS doesn't use Linux-style permissions unless you configure it specifically, which would explain why you are able to write to drives formatted from Windows.

Linux has recently (5.15) had a native NTFS kernel driver added so FUSE is no longer needed and performance is much improved. Liquorix offers a Debian stable compatible kernel of that version that could be used with Devuan.

#1163 Re: Hardware & System Configuration » Upgraded to chimaera; now cannot boot » 2021-12-23 21:13:04

An intermittent problem would suggest a hardware failure, especially if a live ISO also fails.

Perhaps check if the various components are seated correctly in the motherboard.

#1164 Re: Documentation » HOWTO: Install dnscrypt-proxy in Devuan? » 2021-12-23 13:55:21

That is horrendous "advice". The dnscrypt-proxy package in the stable repository is covered by the Security Team and should be preferred.

Adding testing/unstable repositories is a good way to break stable systems, even with the moronic pinning outlined in the link.

@OP: try

# apt install dnscrypt-proxy

But please *do not* add any repositories.

#1165 Re: Off-topic » Show your desktop (rebooted) » 2021-12-23 11:13:23

@EDX-0: that looks awesome, any chance of posting a thumbnail link to a larger image so we can see the detail?

And also please share your rc.lua?

#1166 Re: Installation » Upgrade from debian bullseye to chimeara, no init! » 2021-12-23 11:05:56

Aleksanders wrote:

linux-image-i386

There is no such (meta)package. I think you mean linux-image-686 (for older machines) or linux-image-686-pae.

#1167 Re: Installation » [SOLVED] create new partition table on HDD, but not with root as owner » 2021-12-23 10:59:31

@OP: please don't mark the thread [SOLVED] before I've given the solution. It could be frustrating for others who have the same problem.

I'm presuming you're using some sort of graphical file manager to attempt to access the device and since most of those use GVFS I also presume that the device is mounted under /media/$username where $username is your actual username.

That being the case insert the device then run this command:

sudo chown "$USER":"$USER" /media/"$USER"/*

That should change the filesystem permissions and allow you to drag-and-drop files to the device.

#1168 Re: Installation » [SOLVED] create new partition table on HDD, but not with root as owner » 2021-12-22 21:38:57

Ownership is defined by the mount point and the filesystem rather than the partition table or the partition itself.

What do you actually want to do with this drive? How are you mounting the device?

nobodyuknow wrote:

I've tried chown,which appears to work, but then I still cannot copy files onto the HDD.

Please post exact commands and error messages rather than vague descriptions.

*Do not* use chown on /dev/sdXY, that is a really bad idea.

#1170 Re: Other Issues » Login Password Devuan 4 requires US key for # » 2021-12-21 13:28:38

swarfendor437 wrote:

I don't have inittab in /etc, only init.d and initramfs-tools.

Oh dear, that's not right.

Here's the version from my VM:

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin --force

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin --force

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty --noclear 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
#
# or on a USB serial line
#U0:23:respawn:/sbin/getty -L ttyUSB0 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

# Example for systemd-nspawn
# Only /dev/console exists inside nspawn, so we need a getty on that.
# Also make sure to comment out the gettys on tty* above.
#C0:2345:respawn:/sbin/getty -8 --noclear --keep-baud console 115200,38400,9600

^ That should get the console screens working, at least.

#1171 Re: Other Issues » Login Password Devuan 4 requires US key for # » 2021-12-21 12:03:13

Do you have /etc/inittab? If so then please share it here.

EDIT: right I've set up a VM and installed Devuan 4 from the netinstall ISO with your desktops and GDM3 and I can reproduce this error in a fresh system. The TTYs work though tongue

When I try to add a keyboard via gnome-control-center it gives this error message:

Could not get 'org.freedesktop.locale1.set-locale' permission: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.locale1.set-locale is not registered

That action is supplied by systemd:

https://manpages.debian.org/bullseye/sy … .5.en.html

^ That man page does not exist in Devuan, for obvious reasons.

So it seems that systemd is now required for the correct (ie, non-US) keyboard configuration in GDM3.

Time to take this to the Devuan developers, there's nothing we can do here (IMO). When submitting the bug report be sure to link to this thread for background.

#1172 Re: Other Issues » Login Password Devuan 4 requires US key for # » 2021-12-21 11:17:38

Off topic but:

swarfendor437 wrote:

now that Firefox no longer supports ALSA

Not sure why you think that but Firefox supports pure ALSA just fine.

EDIT: proof here for the latest ESR version.

On topic: which display manager is this? If it's SLiM then change to either GDM (preferred) or LightDM.

As for your TTY issue does this work:

# chvt 4

If it does test the keyboard layout there and report back.

#1173 Re: Other Issues » Login Password Devuan 4 requires US key for # » 2021-12-20 22:40:52

Any reason why you're not sharing the actual file? I would think that would be easier than posting a vague description.

Anyway, here's what systemd created in my Arch box:

archie:~$ cat /etc/X11/xorg.conf.d/00-keyboard.conf  
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "gb"
EndSection
archie:~$

Try that.

EDIT: the name of the file isn't really important. It needs to end in .conf and the files are read in lexicographical order but you shouldn't have any conflicts anyway.

#1174 Re: DIY » execute a script on log-in » 2021-12-20 21:00:13

Here's a solution (run as your normal user):

tee ~/.xessionrc <<!
export PATH="$PATH":"$HOME"/bashers-linked
[ -f ~/.profile ] && . ~/.profile
!

Then log out & back in again.

EDIT: that creates a file at ~/.xsessionrc with the content listed between the exclamation marks. Note to self: stop being such an insufferable smart-ass...

#1175 Re: Off-topic » deb.sury.org now requires systemd » 2021-12-20 20:33:35

nixer wrote:

This new package is only built for sid

It's made it into testing now, along with systemd-standalone-sysusers, which means it's eligible for backporting:

https://packages.debian.org/search?keyw … ection=all

However they do contain binaries built from the systemd source code, which might render them ineligible for Devuan's repositories.

EDIT: the package Provides systemd-tmpfiles. Does that satisfy the dependency?

Board footer

Forum Software