The officially official Devuan Forum!

You are not logged in.

#1 Re: Other Issues » How to get rid of Swap file during installation... » 2021-04-15 19:51:31

Edit /etc/initramfs-tools/conf.d/resume to



# update-initramfs -u -k all

Note that you don't appear to have a swap file at all so you should probably remove that term from the title and OP.

#2 Re: Off-topic » [SOLVED] Building .deb package from git source » 2021-04-15 15:00:25

Yes, that's right.

Here's mine:

COM =\

I also cut up the load_avg component so that it only displays the first value (from the last minute) smile

#3 Re: Off-topic » [SOLVED] Building .deb package from git source » 2021-04-15 14:54:31

Did you remove the unwanted stuff from the components directory and delete the lines relating to them in the Makefile? That reduces the size of the binary considerably.

#4 Re: DIY » Minimalism Tips » 2021-04-15 14:44:24

I've never tried to log in to a government website but it certainly renders well in text browsers.

#5 Re: Off-topic » [SOLVED] Building .deb package from git source » 2021-04-15 14:42:57

dice wrote:

What features does your package have as default settings?

I cut the guts out of the suckless original, here's my de-commented config.def.h:

const unsigned int interval = 1000;

static const char unknown_str[] = "n/a";

#define MAXLEN 2048

static const struct arg args[] = {
   { load_avg,     " %s  •  ", NULL },
   { battery_perc, "%s",       "BAT0" },
   { datetime,     "%s",       "%  •  %F  •  %T" },

I also removed the unwanted components and associated lines in the Makefile.

The resultant binary is tiny:

-rwxr-xr-x 1 root root 22656 May 12  2019 /usr/bin/slstatus

But the memory usage is about the same as a (dash) shell script:

268.0 KiB + 338.0 KiB = 606.0 KiB       status
240.0 KiB + 392.0 KiB = 632.0 KiB       slstatus


#6 Re: DIY » Minimalism Tips » 2021-04-15 13:57:20

Any web page that doesn't render reasonably in a terminal-based web browser is fundamentally broken IMO.

The UK government website is tested with elinks and so is perfectly usable in all browsers.

#7 Re: Off-topic » [SOLVED] Building .deb package from git source » 2021-04-15 13:50:23

The best way to create .deb packages is with the debmake command.

dice wrote:

any good tutorials

Have you seen

I made a package for slstatus a while ago, here's a link to my debian directory tarball: … ian.tar.xz

dice wrote:
       ln -s slstatus.1.gz debian/slstatus/usr/share/man/man1/slstatus.default.1.gz

Was the man page not installed automatically by dh_installman(1)?

EDIT: corrected download link.

#8 Re: Installation » [SOLVED] Help with script » 2021-04-14 19:12:13

Altoid wrote:

Never thought it would have a problem.

The script on GitHub does actually have the backticks, you must have missed them when you copied it.

Altoid wrote:
Head_on_a_Stick wrote:

POSIX sh ftw!

Don't quite follow you

The original script used bash but didn't contain anything that actually needed bash. The tests ([[...]]) were the bash version but the /bin/sh (POSIX) test ([...]) works just as well. I always prefer /bin/sh over /bin/bash because it's faster, lighter and less buggy. The Debian developers also prefer /bin/sh for the same reasons and went to quite some effort replacing all of the bash system scripts with /bin/sh versions. Ubuntu also did this:

#9 Re: DIY » Minimalism Tips » 2021-04-14 19:01:33

andyprough wrote:

elinks or links2

Bloat! … q=edbrowse

Oops, I did it again...

#10 Re: Installation » [SOLVED] Help with script » 2021-04-14 16:46:30

Use to test scripts. That would have identified the problem along with several other issues.

Better version:

if [ $# -gt 1 ] || [ "$1" != enable ] && [ "$1" != disable ]; then
         echo "Usage: $0 <enable|disable>"
         exit 1

if [ "$1" = enable ]; then
        TOGGLE=$(grep '\*disabled' /proc/acpi/wakeup | cut -d ' ' -f1)


        TOGGLE=$(grep '\*enabled' /proc/acpi/wakeup | cut -d ' ' -f1)


for DEV in $TOGGLE ; do
        echo "$DEV" 
        echo "$DEV" > /proc/acpi/wakeup


POSIX sh ftw!

It can be simplified further if all you want to do is disable everything:


dev=$(awk '/*enabled/{print $1}' /proc/acpi/wakeup)

for i in $dev ; do
   echo "$i" > /proc/acpi/wakeup

#11 Re: Installation » Partitioning schemes separate var and usr and boot 4 unfussy root? » 2021-04-14 05:05:40

^ Shouldn't /tmp be mounted in RAM?

$ findmnt /tmp                                                            
/tmp   tmpfs  tmpfs  rw,nosuid,nodev,size=8048848k,nr_inodes=409600,inode64

I know systemd does that by default, not sure about sysvinit.

#12 Re: Devuan » Using LKRG module with Devuan Linux » 2021-04-13 19:29:34

Well the systemd unit files supplied by the upstream developers load the module at boot (ie, before the DE starts) so I presume that is the expected behaviour.

#13 Re: DIY » Minimalism Tips » 2021-04-13 19:28:21

msi wrote:

When does that file get read, though? I was talking about being able to change the settings for a running instance of urxvt on the fly in a hassle-free way.

The file is read on startup. Urxvt doesn't do "on the fly" changes (AFAIK).

msi wrote:

Throwing the “command line and plain text” paradigm at everything is indeed an anti-pattern and doesn't really have anything to do with minimalism per se.

I was just stating my preference, that's all.

#14 Re: Other Issues » [SOLVED] How do I add "Experimental" to my repo for Mesa 21? » 2021-04-13 19:25:23

At the risk of treading on fsmithred's toes (sorry):

SolarPoweredMoonMan wrote:

I commented out my regular repos and only used the two that were posted above

You should probably post the actual content of the file(s) rather than a vague description.

SolarPoweredMoonMan wrote:

Can you please give me the command for searching "experimental" ?

aptitude search '?narrow(?archive(experimental), mesa)'
SolarPoweredMoonMan wrote:

I've never fully understood the apt pinning, can you provide a comprehensive tutorial link?

You don't need to pin experimental packages (unless you want them to be updated from that repository) because experimental has a default pin value of 1 (one).

For a guide see … al_literal and read apt_preferences(5).

#15 Re: Devuan » Using LKRG module with Devuan Linux » 2021-04-13 16:39:10

Which functionality will not work?

My suggested configuration files load the module and apply the sysctl setting at boot so they do exactly what your suggested script does.

#16 Re: Other Issues » [SOLVED] How do I add "Experimental" to my repo for Mesa 21? » 2021-04-13 15:26:56

What was the actual command you used? There are several packages that provide Mesa.

#17 Re: DIY » Minimalism Tips » 2021-04-13 15:24:09

msi wrote:

the mental overhead and frustration involved in editing ~/.Xresources and then reloading the settings manually

Urxvt will read ~/.Xdefaults automatically (if no X resources are already set) with no need to reload with xrdb.

GUIs are horrible — why would I want to waste my life scrolling through endless reels of menu options when I can just edit a file directly in a fraction of the time?

#18 Re: Devuan » Using LKRG module with Devuan Linux » 2021-04-13 14:30:33

Whonix has a DKMS .deb package for LKRG: … ource_Code

Their current version is 0.8.1 but the git repository has a debian/watch file so it can be updated with uscan.

The .deb only supplies the systemd unit files but the same effect can be achieved by adding this line to /etc/modules (or in it's own file under /etc/modules-load.d/):


And also add this line to /etc/sysctl.conf (or in it's own file under /etc/sysctl.conf.d/):

lkrg.clean_message = 0

No need for or any additions to /etc/sudoers wink

#19 Re: DIY » Minimalism Tips » 2021-04-13 14:20:32

Ogis1975 wrote:

ash is superseded by Dash in Debian since DebianSarge

You can still use ash in De??an:

# apt install busybox
# ln -s /bin/busybox /bin/ash
# echo '/bin/ash' >> /etc/shells

Alpine Linux uses busybox's ash as their default shell and it's very nice.

EDIT: actually I think that's the same as dash:

#20 Re: Desktop and Multimedia » [SOLVED] Cursor oddity under backported kernel » 2021-04-11 12:54:48

Altoid wrote:


Head_on_a_Stick wrote:

... but X is now abandonware ...

Hmm ...
Maybe it's too soon to sign the certificate?

The maintainer of the X codebase described it as such himself: … erver.html

Altoid wrote:

With respect to the matter of X, if Red Hat, IBM et al are attempting to sink it, don't count me in.
I have faith in the resilience of the Linux ecosystem albeit not in its constituents.

X has been maintained by Red Hat almost exclusively because nobody else has bothered. Now they can't be bothered either. It's not a case of "trying to sink it", much as the conspiracy theorists would like to convince themselves otherwise.

But this is all off-topic for this thread so we should probably continue any discussion in your other thread.

#21 Re: Off-topic » Music » 2021-04-11 11:44:04

Robert Johnson — The Complete Collection 1937

The sound quality is awful but the music is sublime.

#22 Re: Desktop and Multimedia » [SOLVED] Cursor oddity under backported kernel » 2021-04-11 11:42:15

Geoff 42 wrote:

whether it is a red herring

Probably. See … ble-Atomic

There are fixes for the atomic modesetting glitches but X is now abandonware so they are unlikely to ever be applied.

EDIT: is there anything printed in the X.Org log when you experience the problem?

#23 Re: Desktop and Multimedia » [SOLVED] Cursor oddity under backported kernel » 2021-04-11 10:45:42

Does removing the xserver-xorg-video-intel package help? The Intel DDX driver is reportedly pretty buggy, Debian recommend using X's builtin modesetting driver instead.

Or just use an X.Org configuration file to test the modesetting driver:

#24 Re: Installation » [SOLVED] Heads up: haveged denied starting by apparmor in Beowulf » 2021-04-11 09:22:11

Altoid wrote:

everything is apparently unconfined, so what does it actually do? Am I missing some configuration file/s?

The default configuration supplies a mandatory access control framework to confine some but not all programs. This confinement prevents compromised software from altering your system even if it has root privileges. It is actually very useful, which is why it is enabled by default. There are extra profiles available if you want to extend the protection and you can also write your own profiles to specify the exact level of confinement.

See also & … armor.html

#25 Re: Installation » Non Booting GRUB on Beowulf » 2021-04-10 17:57:10

englee wrote:

What label/name, format, size and code (ef??) is required for this _special_ bootloader partition, inorder for minimal-liveCD installation to boot kernel?

For gparted (or parted) the bios_grub flag should be applied. For gdisk use the ef02 code. Do not apply a filesystem to the BIOS boot partition.

Board footer

Forum Software