The officially official Devuan Forum!

You are not logged in.

#1 Re: Installation » [SOLVED] How to change system to boot to text login instead of gui » 2021-05-03 22:42:17

I've now updated my earlier reply. It works with lightdm and hence with display managers that use lightdm. I think it was also present as a gludge in gdm. If you use something else (slim?) it may not work.

#2 Re: Installation » [SOLVED] How to change system to boot to text login instead of gui » 2021-05-03 22:23:01

I have this working in Beowulf with lightdm and Cinnamon.

I have a GRUB_CMDLINE_LINUX="text" in /etc/default/grub.

I assume that you ran update-grub to change /boot/grub/grub.cfg?

This should have put a 'text' parameter in the linux /vmlinux.. line of your grub.cfg's menuentry.

This will start you in text mode, not sure if this will then permit you to successfully run startx - it is implemented as a simple trap in the lightdm init script (/etc/init.d/lightdm):

case "$1" in
  start)
        CONFIGURED_DAEMON=$(basename "$(cat $DEFAULT_DISPLAY_MANAGER_FILE 2> /dev/null)")
        if grep -wqs text /proc/cmdline; then
            log_warning_msg "Not starting Light Display Manager (lightdm); found 'text' in kernel commandline."
        elif [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ] && \
           [ "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" ] && \
           [ "$CONFIGURED_DAEMON" != lightdm ] ; then
                log_action_msg "Not starting Light Display Manager; it is not the default display manager"
        else
                log_daemon_msg "Starting Light Display Manager" "lightdm"
                start-stop-daemon --start --quiet --pidfile /var/run/lightdm.pid --name lightdm --exec $DAEMON -b|| echo -n " already running"
                log_end_msg $?
        fi
  ;;

In my case this is on my mail server and I just run it headless and ssh -X into it from my desktop PC. Graphics mode (Cinnamon desktop) is installed as I used it when configuring the server and it's there if I were to need to work on the server with a keyboard and screen plugged in on my desk.

#3 Re: Hardware & System Configuration » [SOLVED] Need some support for setting up wifi correctly » 2021-04-28 17:19:18

rolfie wrote:

Isn't there a tool that does this switching sort of automagically if configured accordingly? Or do I have to re-invent the wheel? Is any of the network managers of any use in this case?

I use Network Manager and in Cinnamon the Network applet would allow you to enable whichever of ethernet or wireless is enabled.
You can still confuse it by choosing both if both are enabled.
With a laptop you'd usually choose ethernet if you were sitting at a desk that was wired. Elsewhere you'd probably try and use Wireless.

#4 Re: Hardware & System Configuration » Badly missing uswsusp in chimaera » 2021-04-26 20:28:37

I can't speak about Chimaera, as I'll stick with stable/Beowulf, but at some point in my migrations I found I could no longer get uswusp to work but found that kernel suspend works OK.

I use pm (pm-utils package, pm-suspend or pm-hibernate commands) to suspend and hibernate and this has options for the power down methods:

#   kernel    The built-in kernel suspend/resume support.
#                 Use this if nothing else is supported on your system.
#   uswsusp   If your system has support for the userspace
#                 suspend programs (s2ram/s2disk/s2both), then use this.
#   tuxonice  If your system has support for tuxonice, use this.

You can also specify suspend and resume modules in the config (/etc/pm/config.d/defaults). I do this for my wireless ath9k modules as otherwise my atheros wireless card doesn't power down.

You'll also need a resume=[swap partition] parameter in your grub's linux /boot/vmlinuz line if you use hibernate.

Of course they may have removed pm-utils in Chimaera, which would mean I'd have problems upgrading too.

#5 Re: Desktop and Multimedia » Cinnamon and icon positions » 2021-04-06 23:16:54

Duh, You should get most of these options in your Cinnamon desktop.

Right click on desktop > Desktop Settings to choose which standard icons you want.

Right Click on desktop > Desktop to arrange your icons, with options for

Icon Size
Auto arrange
Align to grid
By name
By size
By detailed type
By modification date
Horizontal
Vertical

I have one panel at the top for most things and another as a dock at the bottom and (using auto arrange) get no issues with these overlapping the desktop icons.

--
Marjorie

#6 Re: Other Issues » [Solved] How to load nftables rules at boot? » 2021-03-26 23:22:32

GlennW wrote:

Hi, my fw script is loaded by open-rc

It looks like this...

/home/glenn/build/firewall/fwautorun

#!/bin/bash
### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO
............

Glenn, If you check earlier in this thread e.g. contribution #7 you'll see that for Default-Start/stop you would normally (at least in sysvinit) use:

# Default-Start:  S
# Default-Stop:   0 6

The reason to use S rather than 2 is that it executes as early as possible, which is a desirable feature of a firewall.

Is there no S level in open-rc?

#7 Re: News & Announcements » Sudo Vulnerability CVE-2021-3156 » 2021-01-28 16:23:24

dice wrote:

if you havent apt updated in a while today would be the day to do it if you use sudo.

https://haxf4rall.com/2021/01/27/cve-20 … ity-alert/

My once-a-day unattended-upgrades (security fixes only) picked this up 2:52 GMT yesterday.
Must have been bad - they seems to have pushed it out to the downstream repos (I'm on stable) damn fast.

#8 Re: Installation » SOLVED: Devuan's "systemctl daemon-reload" » 2021-01-10 11:03:00

Head_on_a_Stick wrote:
Marjorie wrote:

To enable expressvpn as a daemon in sysvinit you use

I'm fairly sure that the postinst script for the .deb package will do that automatically via dh_installinit(1).

It should, if the sysvinit defaults has been set up when configuring the deb and the systemd default is also to enable. However some packages don't always enable by default - if the installation instructions explicitly tell you to enable the deamon then it won't have done it in the postinst script.
For example the nftables deb (another deb that doesn't install an /etc/init.d/nftables) also doesn't enable nftables by default even if you are using systemd.

Quite frequently when only systemd services are enabled and therefore /etc/inti.d/initscript is not included then the sysvinit postinit and postrm elements are not included either.

What I would suggest is that the OP either rerun update-rc.d, or at least check if their particular daemon has been enabled by looking to see if the synlinks are there.

You can also inspect the deb using gdebi. You'll find the postinst script in the 'installed files tab'. It should include something like this (taken from the chrony deb):

# Automatically added by dh_installinit/12.1.1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -x "/etc/init.d/chrony" ]; then
		update-rc.d chrony defaults >/dev/null
		if [ -n "$2" ]; then
			_dh_action=restart
		else
			_dh_action=start
		fi
		invoke-rc.d --skip-systemd-native chrony $_dh_action || exit 1
	fi
fi
# End automatically added section

#9 Re: Installation » SOLVED: Devuan's "systemctl daemon-reload" » 2021-01-10 00:09:15

Normally all I have to do is "dpkg -i <the .deb>" and "expressvpn activate"

This is my understanding:

The expression and syntax to enable and to start, stop, restart a service in sysvinit differ from those used by systemd

To enable expressvpn as a daemon in sysvinit you use:

sudo update-rc.d expressvpm defaults

This creates  symbolic links in etc/c0.d ... etc/rc6.d, etc/rcS.d  back to /etc/init.d/expressvpn that then start (and stop) expressvpm in the run levels defined in /etc/init.d/expressvpn when the OS starts.

Once you have enabled expressvpn you can then use:

sudo service expressvpn start|stop|restart|status|reload|force-reload

to make changes on the fly.

You can disable a service with

 sudo update-rc.d expressvpm remove

This removes the symbolic links, however you need to have removed /etc/init.d/expressvpn first.

#10 Re: Installation » wicd broke when I changed unstable from stable, how do I install NM? » 2020-12-19 23:14:12

recklessswing wrote:

How do you install networkmanager properly?

# apt install network-manager{,-gnome}
head_on_a_stick wrote:

Not sure if that even works without systemd though. I don't use it myself but I know that it has to be removed in Debian buster if you want to use sysvinit, OpenRC or runit-init instead of systemd.

recklessswing wrote:

I need to add it to sysvinit as well?

head_on_a_stick wrote:

I don't think so, debhelper should do that for you. If it doesn't then file a bug with Debian (after reproducing the problem in a Debian system).

FWIW Network Manager comes as default and works fine in a Beowulf + sysvinit + Cinnamon system i.e without systemd.

#11 Re: Documentation » How to inspect 3rd Party .deb packages before installing! » 2020-11-10 23:58:54

As a Cinnamon user I use GDebi if I want to install and view, for audit purposes, off-package Debs (including viewing their install scripts).
Much simpler.

#12 Re: ARM Builds » beowulf Raspberry Pi build, packages.roundr.devuan.org not responding » 2020-10-12 22:25:48

The renaming of ethX and wlanX was something that was introduced in Debian 10 Buster and there was a warning about it in the Release Notes. Devuan Beowulf however retained the traditional names and when I've installed it (on AMD64 systems) it's worked out of the box.

I'm unclear how this was done. However I don't think the Devuan linux-images are patched (there aren't even any +deb10u1 markers on the more recent 4.19 linux-images).
My desktop PC which used wlan0 has a udev rule (/etc/udev/rules.d/70-persistent-net-rules)

# PCI device 0x168c:0x0030 (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c0:4a:00:1e:b5:03", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

My mail server, which uses eth0 doesn't.
Neither have the GRUB_CMDLINE_LINUX parameter set either.

#13 Re: Hardware & System Configuration » Changing from amd to nvidia card » 2020-10-12 22:08:24

Unless you want to use CUDA you don't need nvidia-persistenced. Delete or disable it.
I also have a fix for one of the problems you can have with it. Of course, your problem may be different.

See https://dev1galaxy.org/viewtopic.php?pid=24457#p24457

#14 Re: Desktop and Multimedia » 'Zoom' crawls in beowulf » 2020-10-09 12:11:38

Comparing your output, running as root with mine as local user, in addition to the lack of pulseaudio (which I have) I also note that you don't seem to have a desktop:

Linux Client Version is 5.3.465578.0920
QSG_RENDER_LOOP is
XDG_CURRENT_DESKTOP = ;   GDMSESSION =

whereas in mine:

Linux Client Version is 5.0.418682.0603
QSG_RENDER_LOOP is 
XDG_CURRENT_DESKTOP = X-Cinnamon;   GDMSESSION = cinnamon

Also you've truncated the line that gives your PC spec. How much memory do you have? I have 8GiB. Zoom only seems to be using 57 MiB idling but I don't know how much it uses in a live session. I'd expect it would also use quite a bit of graphics memory.

Probably worth checking whether when zoom is active it's not driving you into using swap (disk) memory.

#15 Re: Other Issues » how to get hibernation? » 2020-10-06 22:21:24

You are probably right.

I can't find what the default is for the Devuan/Debian Installer, but you are right that the general recommendation is that you should have more swap than memory, and mostly the recommendation is x2.

This doesn't explain why yours has much less.

I've never used automatic partitioning, usually because I'm configuring something more complicated like LVM or RAID or have other live OS already on other partitions and don't want to lose them.

My mail sever has no swap (well it never hibernates and I'd rather it kill processes than try and use swap).

My desktop machine has lots of disks, from various generations of installs, most have swap partitions and I actually use a different partition for hibernation, which is x2 RAM, than the primary one, which is about 1.5 x RAM, that I use for swap as such.

#16 Re: Desktop and Multimedia » 'Zoom' crawls in beowulf » 2020-10-06 19:52:52

Just as another data point.
I have Zoom installed, version 5.0.418682.0603 on a normal Beowulf installation. It installs in /opt. I have a old Logitech webcam (low res).
And it works fine.
I note that it seems to uses Qt. Could this be an issue?

#17 Re: Other Issues » how to get hibernation? » 2020-10-06 17:15:28

kapqa wrote:

well, i have just let devuan installer do automatic partitioning, there must be an error then -
surely i have forgot to double check the partitioning process.

I doubt if the automatic configuration of the partitioning would have allowed for your wish to use swap for hibernation.

#18 Re: Other Issues » how to get hibernation? » 2020-10-06 09:53:48

kapqa wrote:
root@devuan:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          2.8Gi       491Mi       1.8Gi        85Mi       601Mi       2.1Gi
Swap:         255Mi          0B       255Mi

Whatever the other issues , this looks problematic for successful hibernation since the Mem in use (491Mi), which is what needs to be written to disk on hibernation, is nearly twice as large as Swap you have (255Mi, all free).
Usually you would want to have as much swap as memory.

#19 Re: Desktop and Multimedia » SOLVED: Latest Firefox on 2.0 Cinnamon has resize problems » 2020-10-05 12:16:03

nobodyuknow wrote:

I'm running Devuan 2.0 Cinnamon because the latest Cinnamon does not support most themes anymore (I'm not young, so dark themes hurt my eyes).

Hi, I'm not that young either. And I like light themes and detest dark themes too.
However I've been able to run light/pastel themes no problem even with Devuan 3 (and Firefox-esr 78.3.0, currently at 120%)

  OS: Devuan GNU/Linux 3 (beowulf) x86_64Resolution: 1920x1200,  Screen 24", 16x10
  DE: Cinnamon 3.8.8
  WM: Mutter (Muffin)
  WM Theme: Blue-mint (TraditionalGreen)
  Theme: TraditionalGreen [GTK2/3]
  Icons: menta [GTK2/3]
  Contols: TraditionalGreen
  Mouse: DMZ-White
  Desktop Blue-mint

#20 Re: Other Issues » how to get hibernation? » 2020-10-03 16:05:13

scjorge wrote:

I kind of vaguely remember trying to install the uswsusp/uspsusp package but not being able to find it for the Droid4... this seems to be connected to a hibernation-module in the kernel, right? or is it just about the devices repositories?

I don't know anything about compiling kernels (yet!), but, if I do learn, will it be possible to compile it for that device with the "hibernation-module/functionality" activated? or is it another module? another technique?

how can I get hibernation? i love hibernation smile

You can achieve hibernation either through kernel mode, which requires the appropriate kernel module, or in userspace, using uswsusp or tuxonice.

If your device https://leste.maemo.org/Motorola_Droid_4 lacks both kernel support (available kernels don't have the appropriate kernel module) and you don't have the package uswsusp in your sources then I think that means that you would have to compile one or the other to get hibernation (though even then it could be possible that your hardware lacks the appropriate hooks to make it work).

NB. Just as an update on my earlier posts I do now have hibernate running using kernel mode on Beowulf on my (pretty ordinary) AMD64 hardware, though I also still use pm-hibernate to call it as I have a few things I want to invoke in the pre-sleep and post-wake scripts.

You also need to have a resume=UUID=your.swap.drive.UUID (or similar) command in the linux vmlinux line in your grub menuentry. This tells the kernel where to store/restore your memory image.

#21 Re: Desktop and Multimedia » Firefox outdated » 2020-10-02 14:41:18

Firefox-esr was recently upgraded to 78.3 (and was on 68.12 previously) as a security update.
To be honest I don't see much difference or reason not to upgrade.

#22 Re: Other Issues » Mail server don't receive mail » 2020-09-24 10:20:11

xinomilo wrote:

assuming your organization has a domain name and that's the same you use for email addresses, you should add A/MX/SPF records in that domain's DNS server, not setup another one...

You would normally set up a MX record as mail.mydomain.tld, (though it doesn't have ot be 'mail') which is a subdomain of your domain, though it can have the same IP. You will also have to use this name in your MTA configuration and point your (external) users imap/pop3/smtp configs at it, unless you want to add additional records .

For testing purposes incoming mail should work even if you don't have a SPF record, unless you've configured your server to refuse mail that doesn't. Needless to say In my opinion a mail server should filter out email that doesn't have a SPF record, since either the email is spam or the originator hasn't set up their mailserver properly.

Reverse DNS itself is not provided by your domain name registrar (unless they also provide your IP). They come from whoever provided your IP.

In my case this is my ISP (Zen Internet). Previously I had my mailserver in the cloud and it was hosted by Linode who provided my IP (and hence SPF), however Linode wasn't my domain name provider. Of course I did have to put the IP, MX IP (in my case they are the same) and SPF record into my domain name record.

You do need to add a SPF as a TXT record to your DNS. Something like:
v=spf1 a mx ptr ip4:111.222.333.444 -all
where 111.222.333.444 is your mailserver IP4 address.

Also, though it may not be required to test your system, you should enable DKIM and DMARC and check that they are working as unless you do some email providers may reject your emails.

#23 Re: Other Issues » Mail server don't receive mail » 2020-09-23 13:16:33

Assuming you are operating a NAT, have you opened the email ports (25, 143, 443, 587, 993) in your external (router's) firewall and forwarded them to your mail server's ip?

#24 Re: Desktop and Multimedia » evolution email install » 2020-09-06 11:58:58

Likewise I have evolution for mail, running under Cinnamon (where it's been the default for a long time). Now installed in Beowulf, previously in ASCII and Mint 17.3 and Ubuntu before that.
I have the same package version as you: evolution-common 3:30.5-1.1

Looking at the installed files list there's a
/usr/share/help/ru/evolution/import-single-files.page file but not a 
/usr/share/help/ru/evolution/import-single-files.page.dpkg-new.
and a
/usr/share/help/el/evolution/tasks-usage.page but not a
/usr/share/help/el/evolution/tasks-usage.page.dpkg-new.
so something seems to be going wrong in dpkg: I don't know enough about dpkg to say whether we should expect it to produce temp files with these names.

#25 Re: Hardware & System Configuration » [SOLVED] [hardware] Initramfs mdadm assembly woes, udev not triggered? » 2020-09-06 11:34:25

Horses for courses. If a drive is rated for 70C I'd not want to load it to run at that continuously.
I have a BX500 myself in my email server but its very lightly, if continuously, loaded and currently sits at 28C (max 31C). Hopefully it will continue to provide good service. Maybe I should add disk monitoring (currently I just monitor the CPU).

Board footer

Forum Software