The officially official Devuan Forum!

You are not logged in.

#2501 Installation » [BUG] beowulf beta netinst. ISO does not configure locales or timezone » 2020-04-02 11:56:57

Head_on_a_Stick
Replies: 8

Apologies if this is the wrong section — I couldn't find a "Bugs" sub-forum and reportbug wants a package name, which doesn't seem appropriate for problems with the ISO image.

Anyway, as the title says the installer fails to configure the locales package correctly:

empty@devuan:~$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
empty@devuan:~$

/etc/locale.gen had all the locales commented out but /etc/default/locale was populated correctly.

This is easily fixed with

# dpkg-reconfigure locales

But I think it should already be properly configured for a freshly installed system.

I used this image, the SHA256SUM matched. No desktop was selected but the "standard system utilities" were installed. I chose OpenRC as the init system but I presume that wouldn't be relevant for this particular problem. The system is running under QEMU/KVM in a Debian buster host.

I did mention this in the beowulf beta thread but it was lost in the noise.

And incidentally the GRUB menu describes the system as "Debian GNU/Linux", which doesn't seem ideal.

#2502 Re: Hardware & System Configuration » Having trouble with tmpfs » 2020-04-02 11:16:02

shiztivr wrote:

the discard option that was stopping my tmpfs folders from being mounted

Yeah, RAM doesn't support TRIM.

Don't apply options that you don't understand.

From mount(8):

discard
If set, causes discard/TRIM commands to be issued to the block device when blocks are freed. This is useful for SSD devices and sparse/thinly-provisioned LUNs.

So you should only use that option for SSDs that support TRIM (confirm with lsblk --discard).

Also note that /dev/shm and /run are already mounted with tmpfs by default.

shiztivr wrote:

I came across a couple of problems.

You should stick to a single problem per thread.

FWIW automounting of USB sticks is handled by GVFS & udisks2 via thunar (the file manager), it has nothing to do with the init system.

#2503 Re: Installation » How should I set my Devuan root partition? » 2020-04-02 10:46:21

Don't bother with noatime, modern SSDs need no special measures to restrict writes and will probably outlast most spinning rust drives.

#2505 Re: Hardware & System Configuration » Python3.8 / Testing? » 2020-03-29 11:06:07

There doesn't appear to be a python3.8 package in Devuan, even for ceres: https://pkginfo.devuan.org/cgi-bin/d1pk … elease=any

Not sure why though hmm

And off-topic for this thread but:

kapqa wrote:

applying

sudo hwclock --hctosys 

sudo apt update

would return normal

If you're dual-booting with Windows then you should force Windows to use UTC rather than make GNU/Linux use a stupid time standard:
https://wiki.archlinux.org/index.php/Sy … in_Windows

And make sure that ntp is installed & enabled to keep your clock correct.

Once that's done and Devuan is using the correct time run

sudo hwclock --systohc

#2506 Re: Hardware & System Configuration » Devuan Ascii - Opensource Drivers Amd / AMD RX560 » 2020-03-27 22:08:07

kapqa wrote:

the RX560 has no hardware encoding/decoding for VP9 codec?

Check with

vainfo
vdpauinfo

Make sure the vainfo, vdpauinfo, va-driver-all & vdpau-driver-all packages are installed before trying that.

And I think newer AMD cards need this line in /etc/environment (or in a fragment file under /etc/environment.d/) for VDPAU acceleration to work:

VDPAU_DRIVER=radeonsi

#2507 Re: Installation » How is IBM support? » 2020-03-23 20:07:05

^ +1

I have seldom been so happy to have been proved wrong :-)

#2508 Re: Installation » How is IBM support? » 2020-03-23 18:55:01

The Calgary units are used in x86 servers rather than POWERn machines.

The supported architectures for Devuan are listed here: https://devuan.org/os/documentation/dev … nformation

So no, it doesn't look like ppc64el is on the list. Which is a shame.

#2509 Re: Documentation » Append date and time to .bash_history at start of session » 2020-03-22 16:02:04

rolfie wrote:
Head_on_a_Stick wrote:

Don't use pkexec to start a root terminal, that's a silly idea. Why do the MATE devs do that? hmm

Please can you explain why this is a silly idea?

Because it runs the entire terminal emulator as root. Using my suggested command runs the emulator under the normal user and just runs the shell as root. See also https://en.wikipedia.org/wiki/Principle … _privilege

rolfie wrote:

But: I don't like xterm.

# update-alternatives --config x-terminal-emulator # then select your favourite emulator

#2510 Re: Installation » Devuan on native ZFS-Root » 2020-03-22 15:56:34

Terence wrote:

1. Why dividing "/" (root) from "/home" under "LUKS"?
2. Why dividing "/" (root) from "/home" under "ZFS"?

https://askubuntu.com/questions/142695/ … -partition

Terence wrote:

3. Do I need an extra "/boot"-partition even if I have EFI?

You need an EFI system partition but it doesn't need to be mounted at all. Most distributions mount it under /boot/efi but that's only actually needed when installing the bootloader. The grub-install(8) command can be directed to an EFI system partition mounted to an arbitrary location with the --efi-directory= option (which defaults to /boot/efi).

Terence wrote:

4. What sould be necessarily "snapshotted" with ZFS and what not?

You don't need the API filesystems (/proc, /sys & /dev) but you'll need everything else if you want a full system restoration to the snapshot.

Terence wrote:

5. ZFS don't need "Swap" but Devuan?.

Linux needs swap, it handles OOM events badly.

Terence wrote:

A "Swap-file" instead of partition? how do it?

ZFS doesn't support swap files, and they're a dirty hack anyway.

You can use a ZVOL as swap: https://github.com/zfsonlinux/pkg-zfs/w … wap-device

But it can lock up the system: https://github.com/zfsonlinux/zfs/issues/7734

Terence wrote:

6. Which version of ASH is in Devuan 2.1? Could I get a link with command-list?

Devuan uses dash but you can use busybox's version instead (busybox ash).

See the POSIX man page for the general usage: https://pubs.opengroup.org/onlinepubs/9 … es/sh.html

Or dash(1) for the specifics.

Terence wrote:

7. Want use "GPT", is "parted" OK? Under point "5." is a link that mention "--script", is a selfmade scripts or standard in "parted"?

The parted(8) command can handle GUID partition tables but I prefer gdisk with the sgdisk(8) scripting command. The --script option for parted(8) just allows for single commands instead of the interactive version.

#2511 Re: Documentation » Append date and time to .bash_history at start of session » 2020-03-22 15:08:09

fsmithred wrote:

Putting it in ~/.bash_profile didn't work for me. I suppose I have to log out of my desktop session and restart it.

Yes, that's right.

fsmithred wrote:

Putting it in ~/.bashrc works every time I open a new terminal on the desktop.

But then you'll have a new "##Session begin" section for every time a terminal is opened, which doesn't appear to be what the OP wants.

#2512 Re: Documentation » Append date and time to .bash_history at start of session » 2020-03-22 13:04:09

Don't use pkexec to start a root terminal, that's a silly idea. Why do the MATE devs do that? hmm

Use this to start a root terminal:

x-terminal-emulator -e su -

Create a file at ~/.local/share/applications/root-terminal.desktop to make the action available via the XDG menu sytem:

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

#2513 Re: Hardware & System Configuration » [SOLVED] Moving installation to SSD drive » 2020-03-19 18:29:00

ToxicExMachina wrote:

You don't need to run TRIM command at all if you mount filesystem with 'discard' option.

The discard option slows down the drive because TRIM is applied for all I/O operations.

#2514 Re: Hardware & System Configuration » New kernel not stable (4.9.0-12) » 2020-03-19 18:23:08

+1 for intel-microcode.

rmottola wrote:

I read about backports of spectre mitigations being possible issues.

The mitigations can be disabled with various kernel parameters: https://github.com/torvalds/linux/blob/ … .txt#L2702

#2515 Re: Installation » Devuan on native ZFS-Root » 2020-03-19 17:57:58

I've used this guide to install Debian stretch on ZFS:

https://github.com/openzfs/zfs/wiki/Deb … oot-on-ZFS

It should also work for Devuan if you use one of their live images.

Not very n00b-friendly though smile

And note that ZFS is a total memory hog, you'll need at least 16GiB if you want to enable de-duplication...

EDIT: ZFS can't be added as an official option because of licensing issues, Ubuntu are playing with fire offering it as they do.

#2516 Re: News & Announcements » Beowulf Beta is here! » 2020-03-18 20:57:22

Tested the live ISO and the netinstaller under QEMU/KVM and it all works, good job!

I particularly like the installer option to use OpenRC (I wish I could do that with SharpBang) and also the fact that elogind now allows rootless X if startx from a console login is used.

The only problem I encountered is a failure to set the locale correctly, I had to run

# dpkg-reconfigure locales

then select en_GB.UTF-8 to avoid the error messages mentioned earlier in the thread.

Is there a reason for disabling the beowulf-updates repository? I would prefer to receive those fixes by default.

#2517 Re: Desktop and Multimedia » compile firefox-esr (52) --enable-alsa ? » 2020-03-18 20:44:08

rolfie wrote:

All you need is alsa-utils, alsamixergui and apulse to make FF play sound with alsa.

The firefox-esr packages supplied by Devuan do not need apulse to produce sound with pure ALSA.

#2518 Re: Desktop and Multimedia » stop loading ramdisk » 2020-03-15 20:28:20

An intermittent failure would suggest a hardware problem. Have you checked the cable and/or connector for the drive?

Use smartmontools to check drive health, along with fsck(8) to check the filesystem.

I suppose you could also try rebuilding the initramfs:

# update-initramfs -u -k all

But if it was corrupted in some way then I would expect it to fail consistently.

#2519 Re: DIY » Newer versions of Openrc » 2020-03-15 20:22:34

Nice guide, thanks!

Geoff 42 wrote:

edit debian/changelog to add the new version at the top

You can use this to generate the new changelog entry automagically:

dch -v $version_number

Replace $version_number with the actual version number then add in the details for the change. The dch command can be found in the devscripts package.

If you export $DEBEMAIL & $DEBFULLNAME from ~/.bashrc (or whichever shell initialisation file is appropriate) those will also be added in for you. See https://www.debian.org/doc/manuals/debm … mail-setup (the rest of that guide is very good).

Geoff 42 wrote:

The signing fails because of the lack of my having a secret key.

Use this to create unsigned packages:

debuild -us -uc

#2520 Re: Desktop and Multimedia » Mimetype association GUI editor? » 2020-03-15 19:49:31

Devuan's Xfce desktop has a MIME-type editor:

https://docs.xfce.org/xfce/xfce4-settings/mime

Go to Applications Menu → Settings → Mime Type Editor

Or run

xfce4-mime-settings

https://pkginfo.devuan.org/stage/ascii/ … 2.1-1.html

#2521 Re: Hardware & System Configuration » [SOLVED] Moving installation to SSD drive » 2020-03-15 11:38:20

Altoid wrote:

But I am still far from finding out where (in my Devuan ascii) fstrim is started and under what circumstances.

I don't think it's started automatically at all. The Debian util-linux package supplies systemd timer & service unit files to allow it to be configured to run automatically every week but the Devuan package doesn't include those files or any cron jobs to replace them.

That trimmed_log.txt file in your home directory must be for something else.

To get fstrim running every week create a cron job for it, as I have shown.

#2522 Re: Hardware & System Configuration » [SOLVED] Moving installation to SSD drive » 2020-03-14 20:58:48

Altoid wrote:

Can't get just the fstrim-mx by itself?

Well you could download the .deb package then unpack it and copy the script to /etc/cron.weekly but it's more or less the same as the one I've posted (it uses bash instead of /bin/sh for some reason though, which is slower, potentially more buggy and slightly more memory-intensive).

Don't add the # /etc/cron.weekly/fstrim line if you copy my script though, that's just my lazy way of indicating the filename & location.

#2523 Re: Hardware & System Configuration » [SOLVED] Moving installation to SSD drive » 2020-03-14 19:03:06

Altoid wrote:

Are there any system tweaks needed to keep the SSD in proper shape?

Use a weekly cron job to run fstrim on the drive to maintain performance, MX Linux has one you can "steal":

# /etc/cron.weekly/fstrim
#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim --all --verbose >> $LOG

But don't bother following any obsolete advice to minimise writes, I actually have one of those Kingston drives and the longevity is great. See also https://techreport.com/review/27909/the … -all-dead/

#2524 Re: Desktop and Multimedia » how to turn off screensaver on kodi 17 » 2020-03-13 19:53:51

From the author's FAQ:

jwz wrote:

When you want to watch a movie, fire up xscreensaver-demo and select Mode: Disable Screen Saver from the option menu, which means not to blank the screen at all. When you're done watching the movie, re-select your previous mode.

https://www.jwz.org/xscreensaver/faq.html#dvd

And yes, jwz knows this is lame...

EDIT: better version of graysky's script:

#!/bin/sh
[ -z $(which xscreensaver-command) ] && exit 1
while sleep 49; do
   if [ -n "$(pgrep kodi)" ]; then
      xscreensaver-command -deactivate > /dev/null 2>&1
   fi
done

POSIX ftw!

#2525 Re: Other Issues » Can't execute program. System doesn't recognize it's location. » 2020-03-09 15:21:44

take_a_number wrote:

"Failed to execute child process "home/[username]/Desktop/palemoon/palemoon" (No such file or directory)"

Have you downloaded the correct architecture?

file ~/Desktop/palemoon/palemoon
dpkg --print-architecture

Board footer

Forum Software