The officially official Devuan Forum!

You are not logged in.

#51 Installation » Beowulf on Lenovo X200s - several minor regressions compared to buster » 2020-06-12 12:20:28

kuleszdl
Replies: 7

Hi,

yesterday, I installed Beowulf with openrc on a Lenovo Thinkpad X200s (firmware: coreboot 4.12) and observed a number of annoyances that did not occur in Debian buster:

- LUKS password entry is not visible during bootup, the password has to be entered "blind" (I suspect KMS initialization of display and asking for password are in wrong order?)
- Volume control is broken (volume keys do not work) and when launching it manually it only says "connecting to PulseAudio"
- there was no desktop background (I am using LXQt)
- the window bar had a strange basic theme that is not typical for LXQt.
- the system takes a long time to shutdown (fixed by replacing the script cryptsetup-functions from this thread: https://dev1galaxy.org/viewtopic.php?id=2690&p=2)
- delayed startup due to network not being ready (I removed the dhcp-line for eth0 from

/etc/network/interfaces

as network is managed by LXQt's network manager anyways

Apart from that everything seems to work nicely so far. If someone has a fix for the first issue I warmly welcome any suggestions.

#52 Re: ARM Builds » Installer images for armel, armhf and ppc64 need testing » 2020-04-19 18:56:29

Highly appreciated!

I tried it on arm64 using firmware-none.img together with partition.img and a self-built u-boot to install beowulf on an Xunlong OrangePi Zero plus. In the installation process I selected openrc as init. After fixing dtbs and extlinux (only required as the board has official kernel support but is not officially supported in Debian and lacks a packaged bootloader), installation worked like a charm - at least I didn't observe any regressions when compared to doing the same with Debian 10.

One of the few things I noticed was the following message on shutdown:

* ERROR: apparmor failed to stop

Not sure whether this is arm-specific, though.

#53 Re: News & Announcements » ASCII 2.1 point release » 2019-10-22 13:10:42

That's good news!

Do you know if something has changed or is planned to be changed about the way how the embedded images are made (especially w.r.t. to using unpackaged kernels and bootloaders)?

#54 Re: Hardware & System Configuration » Devuan ARM on Nvidia Jetson Nano: WORKS! » 2019-06-24 01:25:08

Interesting experiment. Did you try to measure power consumption in idle and under full load? And what kernel did you run it with? Is it supported by mainline, and does the board work blob-free?

#55 Re: Hardware & System Configuration » SDHC Nothing but Problems » 2019-06-24 01:08:32

It also depends quite a bit on the particular sdcard you use as well. I had one card running as primary data and system partition with f2fs on Android (back in the days when this was possible until Android 7 came along), and while one card had issues the other one worked like a charm for more than one year.

In general, you'll want a card with a decent 4k random write performance, so it finished write operations fast and does not heat up too much. When doing benchmarks of various flash media, I had two (quite old) cards that died due to the stress from the benchmarks. Just in case you're interested, you can find the benchmarks here:

https://www.kulesz.me/post/055-benchmark-microsd/

#56 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-05-30 10:40:17

I have the exact same patch. I assume the problem is that I don't use LVM but just "plain" encrypted disks.

#57 Re: Hardware & System Configuration » Shutdown encrypted LVM on Beowulf » 2019-05-29 22:43:57

I tried the proposed workaround on a freshly installed beowulf system. Unfortunately, it seems to make no difference. Anyone tried this recently?

#58 Re: Off-topic » Something is wrong with my Devuan setup because my containers work » 2019-05-08 10:42:22

Well, I wouldn't presume that necessarily. It could also be the more practical reason that they do not want to moderate comments on controversial subjects because it's likely that commenters could show up who post offending content that violates various laws.

#59 Re: Off-topic » Something is wrong with my Devuan setup because my containers work » 2019-05-04 11:41:03

aut0exec wrote:
kuleszdl wrote:

@aut0exec: This is what I put in /etc/rc.local to make the systemd-containers happy (maybe also more, I don't remember anymore):

mkdir -p /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd

Thanks. I'm not opposed to just purging systemd out of Debian either, haha. I'm also assuming those commands where done on the host right?

Yes exactly, they were done on the host. However, I don't remember if there was more to it than just those two commands.

#60 Re: Off-topic » Something is wrong with my Devuan setup because my containers work » 2019-05-03 15:55:34

@aut0exec: This is what I put in /etc/rc.local to make the systemd-containers happy (maybe also more, I don't remember anymore):

mkdir -p /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd

#61 Re: Off-topic » Something is wrong with my Devuan setup because my containers work » 2019-05-03 15:44:09

aut0exec wrote:

(...) Out of curiosity, what distros are you running in containers? I've been meaning to try to build a Debian/Ubuntu container but was wonder how it would handle any systemd dependencies so I've not done it yet...

I use Alpine and Debian containers. However, in the Debian containers, the first thing I do is to replace systemd by sysvinit and remove systemd. It's a pity that there's no official native Devuan container that can be installed easily in the official lxc/lxd repo.

Head_on_a_Stick wrote:

That's not what the bloke says at all, he just claims that systemd makes it easier to manage containers.

Well, around 32:40 he says:

"I think that the last really important thing that things like systemd enable through the use of cgroups and stuff like that is containers".

Later he goes on that the barrier for using containers is reduced by systemd. And I don't see any arguments that support this claim, as well as I don't see any substantial relation between cgroups and systemd. Also, I didn't notice a real difference between running LXC containers with and without systemd, except that containers that have systemd inside the container (like Debian) work badly without systemd unless you create some fake pseudo-systemd mounts on the non-systemd host.

ToxicExMachina wrote:

Comments under the video on very controversial subject are locked. This is the only thing you need to know about that "argument" video.

I disagree on that one, as it seems that all comments on the linuxconf.au videos are locked, no matter if the content is controversial or not. You are right indeed, comments on other videos are enabled in fact. Interesting! But I know of many other sites that disable comments for controversial articles/videos, so it's not THAT unusual, but still a noteworthy fact.

#62 Off-topic » Something is wrong with my Devuan setup because my containers work » 2019-05-01 18:28:35

kuleszdl
Replies: 12

Just stumbled over this pro-systemd talk from linux.conf.au which suggests that we need systemd for properly running containers:

https://www.youtube.com/watch?v=o_AIw9bGogo

Haven't heard this argument before. Now I am wondering what is wrong in my Devuan setup since the lxc containers seem to work in Devuan even with sysvinit although UNIX is dead.

However, one thing that I could not agree more with the speaker is the following:

The world around us is changing and we can either go with the change or we can try and resist it.

#63 Re: Devuan » Unpackaged (hardcoded) kernel and bootloader on armhf » 2019-04-14 13:49:35

For those who are interested in this topic - I posted a tutorial for installing Devuan on ARM with packaged kernel:

https://dev1galaxy.org/viewtopic.php?pid=15553#p15553

#64 Documentation » Base Install beowulf for ARM with packaged Kernel (WIP) » 2019-04-14 13:47:38

kuleszdl
Replies: 0
Motivation

This tutorial describes a unified method I use to prepare and install beowulf for various ARM boards. The tutorial works for me but might miss some important steps - please consider it WIP.

Requirements and assumptions:

  • ARM board supported by Kernel 4.19 (check dtb directory). This tutorial assumes you have a 32bit (armhf) board but might work with slight adaptations for arm64 as well.

  • working U-Boot (U-Boot is not covered in this tutorial) that is not ancient (able to boot kernels directly from ext4 partitions, support for extlinux.conf)

  • working serial console attached to your ARM board

Why not use the provided images on the Devuan mirrors?

  • there are no images for beowulf yet (installing ascii and upgrading is not what I wanted)

  • the images for ascii use a hard-coded, unmaintained kernel without any security updates

  • the images for ascii are shipped with proprietary blobs and the sources.list file includes non-free sources as well.

  • the images for ascii include packages not installed in the base setup that everybody might want (e.g. screen, openssh-server)

  • the images for ascii assume you have a separate boot partition (I don't use this installation style for ARM boards)

  • the images for ascii use the old-style U-Boot configuration (boot.scr and boot.cmd) that is hard to maintain.

Disclaimer

All data and information provided in this tutorial is for informational purposes only. The author makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this tutorial and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.

In no event, the author or this forum will be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this tutorial.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License.

Steps

I used a devuan live environment to prepare the rootfs.

Install dependencies:

apt install binfmt-support qemu qemu-user-static debootstrap

Create directory to hold your chroot:

mkdir devuan_armhf_beowulf

Run debootstrap (might take a while):

qemu-debootstrap --arch armhf beowulf devuan_armhf_beowulf http://deb.devuan.org/merged/

After it finished, chroot into the environment:

chroot devuan_armhf_beowulf

Install the kernel package:

apt install linux-image-armmp-lpae

Create extlinux dir:

mkdir -p /extlinux

Create extlinux config file (change DEVICETREEDIR to match current kernel; TODO: Hardcoding this sucks, it's not a nice solution yet):

cat <<'EOF' >> /extlinux/extlinux.conf
TIMEOUT 20
PROMPT 1
DEFAULT devuan

LABEL devuan
MENU LABEL Linux devuan
KERNEL /vmlinuz
INITRD /initrd.img
DEVICETREEDIR /usr/lib/linux-image-4.19.0-4-armmp-lpae
APPEND root=/dev/mmcblk0p1
EOF

Activate the serial console (if your machine has a console other than ttyS0 adapt it):

echo "T1:12345:respawn:/sbin/agetty -L ttyS0 115200 vt100" >> /etc/inittab

Set the root password:

passwd

Basically, that's it for building the chroot.

To boot the system, create a primary partition on your storage (e.g. microSD card) and copy the stuff from the chroot directory in there. Put the microSD card in your ARM machine and boot it.

Post-installation steps

Not covered here, but you probably want to do this after booting:

  • configure network

  • configure sources.list to include security-updates etc.

  • configure timezone settings

  • configure locale

  • configure fstab, so filesystem is remounted read-only in case of a boot after a crash

  • install an ssh server

  • install your favorite packages

#65 Re: Hardware & System Configuration » Delay on shutdown closing luks containers » 2019-04-07 20:01:22

I have the same issue as the OP using both ascii and beowolf on two different machines, but both with the same layout:

- /boot
- encrypted (with / on it)

It still shuts down, but the task says it "failed". Happens with sysvinit as well as with openrc.

Any ideas?

#66 Re: Documentation » HOWTO: Devuan with full disk encryption » 2019-03-23 21:11:22

Yes, but with your setup - did you have to do any other modification to grub except adding the crypto module as described in your howto? I mean this change:

echo GRUB_ENABLE_CRYPTODISK=y >> /etc/default/grub

#67 Re: Documentation » HOWTO: Devuan with full disk encryption » 2019-03-23 12:17:33

Welcome and thanks for sharing this. But how do you boot the Kernel with /boot encrypted? Do you decrypt it in the bootloader (GRUB?) and then a second time during startup, entering the password twice? Not mentioning, that decrypting in GRUB is very slow.

Personally, I prefer to leave /boot unencrypted but to use signed kernels/initrd and check their signatures in GRUB before booting them.

#68 Re: Devuan » ssh with a file manager??? » 2019-03-23 12:04:43

This depends on the file manager and desktop you are using. In KDE's dolphin you can use fish://user@host:/path/to/directory as URL. However, I also find sshfs-connections more reliable and you don't get annoying popups each time you download/upload a file.

#69 Re: Devuan » Unpackaged (hardcoded) kernel and bootloader on armhf » 2019-03-17 14:20:34

I see - that's interesting! Does this mean that I can also install the kernel and bootloader packages afterwards from packages when I do a "clean" Devuan installation without Debian and "transgrading"?

I didn't expect that since the kernel package does not show up on Devuan's pkginfo:

https://pkginfo.devuan.org/cgi-bin/d1pk … ease=ascii

#70 Re: Devuan » Unpackaged (hardcoded) kernel and bootloader on armhf » 2019-03-17 12:29:36

I thought about this option as well, but how did you manage to get automatic updates for the Debian Kernels? Should be doable with some kind of apt pinning I suppose?

#71 Re: Devuan » Meet cinnabar (Beowulf default theme) » 2019-03-16 20:03:21

Not exactly my taste, but quite a unique color combination - that's cool as it makes it easy to recognize a desktop with these colors easily as beowulf.

#72 Re: Hardware & System Configuration » [solved] sysvinit: Most simple way to start command as user » 2019-03-16 14:38:00

Many thanks for all those hints. I didn't know about init-d-script and it looked promising, however, I didn't find a way to start the program as user with this mechanism.

#73 Devuan » Unpackaged (hardcoded) kernel and bootloader on armhf » 2019-03-16 14:28:45

kuleszdl
Replies: 5

Hi,

are there any plans to address the issue of unpackaged (hardcoded) kernels and bootloaders on armhf? I can live with a hardcoded bootloader, but running an armhf machine in production without kernel security updates does not seem like a great idea to me. This problem (is) and was not there in Debian when Devuan was forked.

If the purpose was to extend the hardware support, it might be better to ship the armhf images with backports enabled and using a (packaged) kernel from backports instead of a completely unpackaged one.

I couldn't find the bits explaining why this change (to use unpackaged kernels on armhf) was conducted. Any pointers would be welcome.

#74 Hardware & System Configuration » [solved] sysvinit: Most simple way to start command as user » 2019-03-09 13:31:27

kuleszdl
Replies: 4

Hi,

I am looking for a way to run a command as (regular) user at bootup. It's a "fire-and-forget" command and not a daemon (lxc-autostart, starts unprivileged containers). I wonder what the best approach would be to accomplish this and considered the following:

- write a minimal init.d script? (If yes: Is there a good template?)
- run it from rc.local (not what I actually want)

It would be great if the proposed solution would work for at least sysvinit and openrc without modifications.

Thank you in advance.

#75 Re: Off-topic » DSA-4371-1 apt -- security update » 2019-03-06 00:27:24

I had exactly the same question/concern as RoundDuckMan. Fresh isos that use the fixed apt version would be really great.

Board footer

Forum Software