You are not logged in.
It already is in a "normal" installation:
https://beta.devuan.org/os/packages
The above link says :-
Devuan 3.0.0 Beowulf (stable)
I thought that ASCII is still stable and that Beowulf is testing.
Have I missed an announcement?
Geoff
Have you looked in /etc/default/tmpfs?
You can set things like :-
# mount /tmp as a tmpfs. Defaults to no; set to yes to enable (/tmp
# will be part of the root filesystem if disabled). /tmp may also be
# configured to be a separate mount in /etc/fstab.
RAMTMP=yes
Geoff
openrc-shutdown
The script for shutting down is a very crude thing and would not win any awards for beauty, but it does work. It looks like this :-
cat << "EOF" > /usr/local/bin/my-logout-query
#!/bin/bash
xmessage \
-geometry 650x100+1700+400 \
-font 10x20 \
-bd red \
-bg yellow \
-fg black \
-title "Shutdown/Logout" \
-buttons Shutdown:101,Reboot:102,Logout:103,Cancel:104 \
"How do you want to leave the computer?"
answer=$?
case "$answer" in
101)
# echo shutdown
sudo /sbin/openrc-shutdown -p now
;;
102)
# echo reboot
sudo /sbin/openrc-shutdown -r now
;;
103)
# echo logout
# /usr/bin/lxsession-logout
/usr/bin/lxqt-leave --logout
;;
104)
echo cancel
;;
esac
EOF
chmod a+x /usr/local/bin/my-logout-query
You may need to adjust the geometry to fit your screen.
As myself :-
cd .local/share/applications
cp /usr/share/applications/lxqt-leave.desktop my-leave.desktop
I then edited my-leave.desktop to change the "Exec" line from lxqt-leave to
Exec=/usr/local/bin/my-logout-query
Then it should appear in the LXQt menu under the Leave options. If you have a quicklaunch plugin it is possible to drag a copy of leave and drop it on the quicklaunch as an easy way of shutting down. I have a second quicklaunch on the far right of the LXQt panel, just for this purpose.
I have tried openrc-shutdown while SysV init was still in use and it seems to work correctly, so it is possible to set this up before looking at replacing SysV init with openrc-init.
Geoff
The default is color=auto according to man dmesg. The man page also has a section on COLORS and it apparently also uses settings in /etc/terminal-colors.d/dmesg.disable. It refers us to man terminal-colors.d. It would appear that it is possible to have some control over what colours are used for different parts of the output.
I use rxvt as my terminal and it is able to display colours.
Geoff
I think that dmesg auto detects whether the output is to the screen or not and turns on colour or not!
There is a switch --color=[auto|always|never], so I think what you need is :-
dmesg --color=always | cat
Geoff
On real hardware
As Openrc 0.42.1 seems to be happy on a VM under Xen I thought that I should check it on real hardware. I tried it on my desktop machine.
This usually boots under the Xen hypervisor with Beowulf as the controlling OS, Dom0. This machine is still using SysV init to start things.
I simply used the deb files I had created earlier, as described above, and the command :-
dpkg -i libeinfo1_0.42.1-1_amd64.deb librc1_0.42.1-1_amd64.deb openrc_0.42.1-1_amd64.deb
The machine rebooted as normal as Dom0 but running 0.42.1 and all looks normal.
I then rebooted with it running on the bare metal and it still looks normal.
I have also installed 0.42.1 on my laptop. I had previously put the Gentoo openrc-init 0.41.2 on this to replace SysV init. I had also hacked up a small script to use openrc-shutdown, which could be used from LXQt. After installing 0.42.1 it still works as before.
It is documented that this later version of openrc-shutdown will also work with SysV init, although I have not tested this.
Geoff
The file /etc/init.d/getty
This file was derived from agetty. The name agetty has been changed to getty
and a couple of variables from /etc/conf.d/agetty have been incorporated.
It extracts the name of the device from the end of the name of the file it was started from, e.g. getty.tty
It uses the OpenRC native format of init file and also uses the supervise-daemon which is part of OpenrRC.
cat << "EOF" > /etc/init.d/getty
#!/sbin/openrc-run
# Copyright (c) 2017 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
#
# This file is part of OpenRC. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.
description="start getty on a terminal line"
supervisor=supervise-daemon
baud="38400"
port="${RC_SVCNAME#*.}"
respawn_period="${respawn_period:-60}"
term_type="${term_type:-linux}"
getty_options="--noclear"
command=/sbin/getty
command_args_foreground="${getty_options} ${port} ${baud} ${term_type}"
pidfile="/run/${RC_SVCNAME}.pid"
depend() {
after local
keyword -prefix
}
start_pre() {
if [ -z "$port" ]; then
eerror "${RC_SVCNAME} cannot be started directly. You must create"
eerror "symbolic links to it for the ports you want to start"
eerror "getty on and add those to the appropriate runlevels."
return 1
else
export EINFO_QUIET="${quiet:-yes}"
fi
}
stop_pre()
{
export EINFO_QUIET="${quiet:-yes}"
}
EOF
Geoff
edited to add quotes round "EOF" to stop substitutions.
Setting up openrc-init
The default set-up in Debian (and hence Devuan) is that SysV init is started at boot time.
SysV init, as usual reads /etc/inittab, which is unchanged and thus sets up the ttys.
Openrc gets called from within inittab by rcS and rc which are scripts that have been
replaced by the openrc package.
If we replace SysV init with openrc-init, then we need to have openrc set up the ttys. The Openrc sources
provide init files for agetty. In various earlier attempts to get this working I had got a copy of agetty
in /etc/init.d and changed it into getty. Then the Gentoo recommendation is to set up a link with the
name of the device appended. As I am testing this in a VM under Xen, the console is called hvc0 and
I also set up tty1.
cd /etc/init.d
chmod a+x getty
ln -s getty getty.hvc0
ln -s getty getty.tty1
These are then activated in the usual Openrc way with
rc-update add getty.hvc0
rc-update add getty.tty1
The next thing was to add init=/sbin/openrc-init to the kernel start-up.
As this was booting up under Xen using pygrub I needed to edit menu.lst.
cd /boot/grub
and edited menu.lst so that the selected entry read :-
title Debian GNU/Linux, kernel 4.19.0-8-amd64
root (hd0,0)
kernel /boot/vmlinuz-4.19.0-8-amd64 root=/dev/xvda2 ro elevator=noop init=/sbin/openrc-init
initrd /boot/initrd.img-4.19.0-8-amd64
Rebooting then worked successfully. The console messages included :-
[ 1.960106] Run /init as init process
Loading, please wait...... some output ...
OpenRC init version 0.42.1 starting
Starting sysinit runlevelOpenRC 0.42.1 is starting up Linux 4.19.0-8-amd64 (x86_64) [XENU]
... some more output ...
Having logged in via vnc ps axjf shows, inter alia :-
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 0 0 ? -1 S 0 0:01 /sbin/openrc-init
1 2734 1795 1795 ? -1 S 0 0:00 supervise-daemon getty.hvc0 --start --pidfile /run/getty.hvc0.pid --respawn-period 60 /sbin/
2734 2735 2735 2735 hvc0 2735 Ss+ 0 0:00 \_ /sbin/getty --noclear hvc0 38400 linux
1 2759 1795 1795 ? -1 S 0 0:00 supervise-daemon getty.tty1 --start --pidfile /run/getty.tty1.pid --respawn-period 60 /sbin/
2759 2761 2761 2761 tty1 2761 Ss+ 0 0:00 \_ /sbin/getty --noclear tty1 38400 linux
This all appears to be running nicely and it is possible to log in via the console.
Looking at /var/log/rc.log appears to be correct including when the machine gets shut down.
There are error messages about getty is the name of a real and virtual service.
It would be good to get rid of those.
The other thing to do would be to ensure that either the agetty or getty init script
is left somewhere sensible by the package. I am not sure which name should be used and
whether it makes any difference.
It might be possible to put the (a)getty directly in /etc/init.d or maybe somewhere else,
perhaps with the other Gentoo init scripts, as examples.
The Gentoo people seem to like having fairly generic init.d files with corresponding configuration files
in /etc/conf.d, with the expectation that you would only edit the files in conf.d.
The other thing about running openrc-init is that when you shut it down you need to use openrc-shutdown instead of shutdown.
This also takes the usual flags such as -r for reboot and -H for halt.
Geoff
edited to add chmod getty
The only real problem with the patches was with src/Makefile, as indicated above. The line that it complained about was :-
SUBDIR= test libeinfo librc rc
which I edited to be :-
SUBDIR= libeinfo librc rc lsb2rcconf
I think that the removal of test meant that the original line did not match the patch. I also presume that lsb2rcconf is to accommodate a real source code patch to handle the LSB headers in init files, providing dependency information, for Debian.
Geoff
Thank you for your comments!
The advice on using dch to generate the changelog entry is very good, as the format is very important, or debmake will get upset!
The failure of signing did not seem to cause any problems but I assume that the -us -uc flags stop the warnings.
Geoff
In posts on the thread about "openrc-init failure" :-
https://dev1galaxy.org/viewtopic.php?id=2788
I described what I did, looking at using Openrc including replacing SysV init with openrc-init. I found that there was a bug in Openrc 0.40.1 which got the sequencing of the start wrong. This bug was fixed in 0.41.2, although this version is not available yet in Beowulf (or Ceres ?).
I worked around this by simply compiling the original source (from Gentoo ?) and copying over openrc-init binary. This does work, but is clearly not the correct way to do things.
I have been looking at how the packaging for Debian is done and have managed to produce the packages for my own use and have moved on to version 0.42.1. I report on it here in case anyone else is interested in discovering how it is done! Useful sources of info are :-
https://wiki.debian.org/UsingQuilt
but especially :-
https://raphaelhertzog.com/2012/08/08/h … -packages/
as well as the more general :-
https://www.debian.org/doc/manuals/main … ex.en.html
The process involves copying over the previous Debian mods. It is necessary to edit the changelog to add a new entry at the top for the new version. Then use quilt to look after the patches, use debmake to generate any new template files and debuild to actually compile and package everything. It was necessary to add some extra packages first, to do the packaging as well some dependencies.
apt-get install packaging-dev debmake libaudit-dev libpam0g-dev libselinux1-dev
I added the sources to my repositories in /etc/apt and then got the current version :-
As me :-
cd ~/src/Devuan/Openrc
apt-get source openrc
ls -alF
drwxr-xr-x 20 user1 user1 4096 Mar 10 16:20 openrc-0.40.3/
-rw-r--r-- 1 user1 user1 26532 Feb 2 2019 openrc_0.40.3-1.debian.tar.xz
-rw-r--r-- 1 user1 user1 2252 Feb 2 2019 openrc_0.40.3-1.dsc
-rw-r--r-- 1 user1 user1 244510 Feb 2 2019 openrc_0.40.3.orig.tar.gz
This gives us the original sources in a tar file as well as a new subdirectory "debian" which contains patches to the sources and other instructions to make things install and work The Debian Way (TM).
For the next versions I got the sources from :-
https://github.com/OpenRC/openrc/releases
I got the tar.gz for 0.41.2 and 0.42.1 so that I could do reasonably small steps at a time.
The building process leaves the new files in the directory where you start so I created subdirectories for each of the new versions.
mkdir build-0.41.2
cp openrc-0.41.2.tar.gz build-0.41.2/
cp openrc_0.40.3-1.debian.tar.xz build-0.41.2/
cd build-0.41.2
mv openrc_0.40.3-1.debian.tar.xz openrc_0.41.2-1.debian.tar.xz
tar xvf openrc-0.41.2.tar.gz
cd openrc-0.41.2
tar xvf ../openrc_0.41.2-1.debian.tar.xz
cd debian
edit debian/changelog to add the new version at the top, something like :-
openrc (0.41.2-1) unstable; urgency=medium
* New upstream release.
-- My Name-Here <my.name-here@example.com> Thu, 12 Mar 2020 15:00:07 +0000
The spacing is very important! There are two spaces before '*' and the date and one space before '--'.
cd ..
Then quilt is used to check the source patches :-
quilt setup debian/patches/series
This leaves some odd paths, so I tidied them up a bit.
cd .pc
edit .quilt_patches to be :-
debian/patches
cd ..
rm patches series
Then the following command works and displays the patches :-
quilt series
Try all of the patches (push applies the next one, -a does all of them) When one fails try push -f to force it and then check the .rej file to see what the problem was. When you have fixed it use refresh to regenerate the patch correctly. If a patch is no longer relevant you delete it. If the patch works with some off-set, then refresh to correct the patch.
quilt push -a
quilt push -f
cat src/Makefile.rej
edit src/Makefile to correct the problem
quilt refresh
quilt push
quilt delete -r 0005-binutils-ppc64el.patch
quilt push
quilt delete -r 0012-riscv-relocs.patch
quilt push
quilt pop -a
while quilt push; do quilt refresh; done
The PPC64 and RiscV patches were to files which no longer existed.
Get everything ready and the build the packages (a couple of libraries are separate).
debmake
... some output ...
debuild
... some more output...
including :-
install --strip-program=true -d /home/.../src/...
install: WARNING: ignoring --strip-program option as -s option was not specified
This may be deliberate as --strip-program=true seems to indicate using 'true' to do the striping!! Although the syntax for install may be different for Gentoo?
There are warnings about "package could avoid a useless dependency" referring to libaudit and libselinux not being linked against by libeinfo and librc. This would need further investigation.
The signing fails because of the lack of my having a secret key.
cd ..
The build directory now contains the .deb packages. I copied the relevant (non-dev) ones to the file space of my Beowulf VM and then booted the VM, and as root on the VM I installed the packages :-
dpkg -i libeinfo1_0.41.1-2_amd64.deb librc1_0.41.2-1_amd64.deb openrc_0.41.2-1_amd64.deb
After rebooting the VM the console reports, inter alia, :-
INIT: version 2.93 booting
OpenRC 0.41.2 is starting up Linux 4.19.0-8-amd64 (x86_64) [XENU]
This is correct as SysV init is till being used to get things started! More on that later.
Geoff
edit: Corrected the list of packages required initially, adding libaudit-dev.
VLC
I had downloaded a couple of programs from the BBC with get_iplayer and them tried viewing them with VLC and the video did not work. If I fiddled with the settings, VLC seemed to hang. I have now tried viewing with Kodi and these programs display correctly. I believe that VLC was working correctly before I upgraded to Beowulf.
Geoff
Postgresql
After the upgrade I tidied up the old version of Postgresql using Synaptic, removing :-
postgresql-9.6
postgresql-client-9.6
postgresql-contrib-9.6
This produced an error message, but when I repeated it to capture the message, it just worked!
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
11 main 5432 down postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
as root :-
/etc/init.d/postgresql status
11/main (port 5432): down
/etc/init.d/postgresql start
[ ok ] Starting PostgreSQL 11 database server: main.
then as me :-
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
11 main 5432 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
Geoff
Postgresql
The section about setting the path for Postgresql is unnecessary. There are a set of wrapper scripts in /usr/bin which sort out the version for you, so that you do not need to add anything special to your path.
Geoff
There is some discussion of the choice of email clients at :-
https://dev1galaxy.org/viewtopic.php?id=3119
Geoff
What should I have done
Make sure that there is enough disc space!
If you have /var as a separate partition you may need to tidy the apt cache :-
apt-get autoclean
If /boot is a separate partition you may need to remove a few old kernels.
Apt is reasonably resiliant and does check the disk space and will not run if there is not enough, although grub does not spot the lack of space in /boot until the upgrade is under way.
Wine and i386
There do seem to be difficulties with Wine and i386 on an amd64 installation.
If you do not need it, remove it. If you do need it, study this :-
https://dev1galaxy.org/viewtopic.php?id=2987
upower
I think that there is no alternative to manually forcing the version of upower as the old version has "1:" in front of the version number, which makes it look newer that the real new one! It therefore looks like a downgrade, but this is what you should accept.
Postgresql
I have included the path to the Postgresql commands in my .profile and this needed to be updated for the new version so that .profile includes the lines :-
if [ -d "/usr/lib/postgresql/11/bin" ] ; then
PATH="/usr/lib/postgresql/11/bin:$PATH"
fi
Geoff
Doing the upgrade
I had a review of my earlier efforts :-
https://dev1galaxy.org/viewtopic.php?id=2752
I updated /etc/apt/sources.list replacing ascii with beowulf and commented out entries apart from the main one and updates and security.
deb http://deb.devuan.org/merged/ beowulf main contrib non-free
deb http://deb.devuan.org/merged/ beowulf-updates main contrib non-free
deb http://deb.devuan.org/merged/ beowulf-security main contrib non-free
# deb http://deb.devuan.org/merged/ beowulf-backports main contrib non-free
# deb http://deb.devuan.org/devuan/ beowulf-proposed main contrib non-free
# deb http://deb.devuan.org/merged/ beowulf-proposed-updates non-free contrib main# deb https://pkgmaster.devuan.org/devuan/ beowulf-proposed-backports main contrib non-free
# deb https://pkgmaster.devuan.org/devuan/ beowulf-proposed-security main contrib non-free
I then tried the upgrade :-
apt update
apt list --upgradable
apt full-upgrade
This stopped for lack of space.
1804 upgraded, 394 newly installed, 31 to remove and 3 not upgraded.
Need to get 3,782 MB of archives.
After this operation, 2,242 MB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
I have /var on a rotating disc and hadn't cleaned up! I needed :-
apt-get autoclean
Which gave me 7.4G on /var
apt full-upgrade
This then proceeded, but produced quite a lot of warnings, but I carried on anyway.
Unpacking proceeds...
Selecting previously unselected package emacs-gtk.
Preparing to unpack .../34-emacs-gtk_1%3a26.1+1-3.2+deb10u1_amd64.deb ...
Unpacking emacs-gtk (1:26.1+1-3.2+deb10u1) ...
Errors were encountered while processing:
/tmp/apt-dpkg-install-aisgOf/01-libjsp-api-java_2.3.4-2_all.deb
/tmp/apt-dpkg-install-aisgOf/02-libel-api-java_3.0.0-2_all.deb
/tmp/apt-dpkg-install-aisgOf/03-libwebsocket-api-java_1.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
so I tried fix broken:-
apt --fix-broken install
this proceeds until :-
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-0.bpo.4-amd64
W: Possible missing firmware /lib/firmware/i915/bxt_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_dmc_ver1_27.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/cnl_dmc_ver1_07.bin for module i915
W: Possible missing firmware /lib/firmware/i915/glk_dmc_ver1_04.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_39.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver9_29.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver9_33.bin for module i915
W: Possible missing firmware /lib/firmware/i915/kbl_huc_ver02_00_1810.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_huc_ver01_07_1398.bin for module i915
W: Possible missing firmware /lib/firmware/i915/skl_huc_ver01_07_1398.bin for module i915
live-boot: core filesystems devices utils udev wget blockdev dns.
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.38.1+dfsg-1) ...
Errors were encountered while processing:
openrc
initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt --fix-broken install
* Caching service dependencies ...
Segmentation fault
dpkg: error processing package openrc (--configure):
subprocess installed post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of initscripts:
initscripts depends on sysv-rc | file-rc | openrc; however:
Package sysv-rc is not installed.
Package file-rc is not installed.
Package openrc is not configured yet.dpkg: error processing package initscripts (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openrc
initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)
It appears that rc-update has installed the runlevels, but openrc is reported as not configured yet.
I ran synaptic and forced the version of upower to 0.99.10-1 and also fix broken packages.
apt full-upgrade
then proceeds to 97%
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt --fix-broken install
live-boot: core filesystems devices utils udev blockdev dns.
pigz: abort: write error on <stdout> (No space left on device)
E: mkinitramfs failure cpio 141 pigz 28
update-initramfs: failed for /boot/initrd.img-4.19.0-6-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
So it looked like /boot was out of space, so I used synaptic to remove kernel 3.10.
apt --fix-broken install
The following packages have been kept back:
elogind libelogind0 libpam-elogind
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
So, using synaptic I told it to upgrade elogind and it says that it will remove :-
libsystemd0and some i386 stuff, inc. wine
I let it do this and then
apt full-upgrade
now only reports stuff that can be removed by apt autoremove and seems to have completed the upgrade. I then wanted to check that Postgresql was ok.
Postgresql
Following the upgrade message about postgresql I tried :-
su - postgres
reindexdb --all
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
9.6 main 5432 online postgres /var/lib/postgresql/9.6/main /var/log/postgresql/postgresql-9.6-main.log
11 main 5433 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
pg_upgradecluster 9.6 main
Error: target cluster 11/main already exists
I went back over what I did last time and did this :-
pg_dropcluster --stop 11 main
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
9.6 main 5432 online postgres /var/lib/postgresql/9.6/main /var/log/postgresql/postgresql-9.6-main.log
pg_upgradecluster 9.6 main
pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
9.6 main 5433 down postgres /var/lib/postgresql/9.6/main /var/log/postgresql/postgresql-9.6-main.log
11 main 5432 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log
This appeared to be correct so as me :-
psql --no-align --pset=footer=off --file=events_view.sql
(Where the .sql file is my report generating sql) and it produces the correct data.
LibreOffice Base also connects correctly. So, I am happy that part of the upgrade is ok.
Other stuff
running emacs produces :-
(emacs:18729): dconf-CRITICAL **: 18:49:30.167: unable to create directory '/run/user/1026/dconf': Permission denied. dconf will not work properly.
but it does run.
I could run synaptic from the menu and authorise myself.
Claws-mail still works, but the fancy html viewer has gone.
In its place you can load the Dillo viewer under configuration>plugins
I can't see the liteHTML viewer... it is in Ceres.
https://dev1galaxy.org/viewtopic.php?id=3119
Chromium does not want to run. It needs the sandbox :-
apt install chromium-sandbox
VNC seems to work.
lxqt-sudo works.
Can I logout and back in?
Yes, but the login was very slow. The windowing environment eventually came up but there was no panel.
I could switch to tty1 with ctrl-alt-f1 and had to :-
apt install lxqt-panel
I was then able to get the panel running with Openbox.
I then tried to reboot but had to get a root window and run
/sbin/shutdown -r now
After the reboot, I was able to log in with no delay and the panel came up as expected. Also the errors about /run/user had gone away.
Following the reboot, I was able to shut the machine down via the lxqt-panel.
Also, despite some warning during the upgrade about Grub can't load initrd for Xen after upgrade to Buster, I was also able to boot up under the Xen hypervisor. I need to check a message about the cpu security features with Xen.
All of the basic stuff seems to be working nicely.
Geoff
edited to correct the sequence of Postgresql commands
Postgresql
As I have a small Postgresql database on my desktop machine, I wanted to check that this would be ok when I upgrade. I also use LibreOffice Base for adding new info to the database using SDBC.
I installed Postgresql on my Beowulf laptop, along with libreoffice-sdbc-postgresql.
On the ASCII desktop, I dumped the database as user "postgres" as given in the man page with :-
pg_dumpall -c > db.out
The "-c" adds commands to clean out anything in the new database before adding the dumped data.
On the Beowulf laptop, as user postgres, I restored this data with :-
psql -f db.out postgres
This worked and having also copied over the .odb file I tried accessing the database from LibreOffice Base, which also "just worked".
This has given me confidence that should there be any problems with the upgrade, that I have a work-a-round.
Geoff
Which version of Devuan are you running?
You appear to be trying to run it from the command line. As installed, it currently still uses SysV init to get started and /etc/inittab is largely left as standard, but OpenRC gets used by replacements of /etc/init.d/rcS and /etc/init.d/rc.
When you just let it boot, there is very little to see to check that it is working. You will probably want to turn on logging in the config file, /etc/rc.conf then you can look in /var/log/rc.log
Geoff
Reviewing what I did earlier at I think that simply running OpenRC under Beowulf should be fairly straightforward, whereby it still uses SysV init to get things started, but uses OpenRC to start up services and daemons.
Using openrc-init to replace SysV init completely is a bit more complicated, not helped by a bug in version 0.40 which doesn't sequence things correctly. This has been fixed by version 0.41.2, although this does not appear to be available via Deian/Devuan.
It is possible to compile v 0.41.2 and move in openrc-init, as detailed at :-
https://dev1galaxy.org/viewtopic.php?pid=15539#p15539
It is also necessary to use openrc-shutdown instead of shutdown.
I notice that openrc has moved on to version 0.42.1. I have not yet tried this and, indeed, have only tried openrc-init from 0.41.2. If Devuan is getting OpenRC from Debian, then I wonder how quickly it is likely to get updated. Might we need to get it directly from the authors?
Geoff
Fortunately, someone has documented what was necessary to get openrc-init working correctly :-
https://dev1galaxy.org/viewtopic.php?id=2788
I must now check whether this info needs updating. ;-)
Geoff
While LXQt is running nicely under ASCII, the other point to mention is that it also stops nicely, in that you can shutdown via the leave options in the menu. I am running OpenRC. Under ASCII, SysV init is still used but control is passed to openrc to start all of the other processes.
On my laptop, under Beowulf, OpenRC ships with a replacement for SysV init, and I am using this replacement. I cannot recall whether this is how it is installed, or whether I had to configure it to do that. Anyway, this affects how the system id shut down. If you just run shutdown, OpenRC seems to notice that things are stopping and seems to restart them. There is a replacement /usr/bin/openrc-shutdown which works correctly. There is just the question of how you run it from the GUI. I have hacked up a very crude pop-up with xmessage, which doesn't look very good, but does work. I am just checking what I did, as it was some time ago!
Geoff
I have managed to read some of the pop-up on shutdown. It seems to be a message about Dbus, which may well be correct, if it gets shutdown before I am completely logged out.
Geoff
I have a laptop running Beowulf and Lxdm/LXQt and I want to migrate my desktop from ASCII and LXDE/Lxdm to the same as the laptop, as it seems that LXQt works a bit more smoothly with the policykit set-ups available. I do have a few other things running under ASCII (including Postgresql, Postfix), so want to be a bit careful.
The plan was to move over to LXQt from LXDE, whilst still under ASCII and then ensure that the policykit stuff was set up correctly.
I currently have the following installed :-
elogind
libelogind0
libpam-elogindconsolekit
libck-connector0
libpolkit-backend-consolekit-1-0
libpolkit-gobject-consolekit-1-0
This is working with LXDE/Lxdm. It also seems to work ok with LXQt/Lxdm.
Moving to LXQt works, but it did take quite a bit of fiddling to get it running as I like it. I use spacefm instead of pcmanfm, which also looks after the desktop wallpaper. To get this running I went into Preferences>LXQt settings>Session settings
Under Basic Settings, I turned off Desktop, which is the module for pcmanfm, with the other modules all selected.
Under Autostart LXQt Autostart I added spacefm with the command
spacefm --desktop
Under Global Autostart I have turned off :-
Network
PulseAudio
Wicd
Power Manager
(Power Manager is the xfce one - the LXQt one is set in Basic settings)
My desktop has wired ether, so I am not using the network managers,
In order to configure the Panel, you can right click on the panel and select Configure Panel.
Setting up the Quick launch widget, involves dragging the desired programs from the start menu and dropping them on the Quick launch widget.
The wallpaper is set up by running spacefm and going to View>preferences>Desktop.
At this point, if I run lxqt-sudo rxvt -rv& it produces this warning (but still runs) :-
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_GB:en",
LC_ALL = (unset),
LC_MEASUREMENT = "en_NZ.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
I have used LC_MEASUREMENT = "en_NZ.UTF-8" in order to get metric measurements.
This warning does not appear under LXDE, but instead reports (and still works) :-
QXcbConnection: XCB error: 3 (BadWindow), sequence: 651, resource id: 16779311, major code: 40 (TranslateCoords), minor code: 0
Using Synaptic, if I try and mark libpolkit-backend-elogind-1-0 for installation it reports that it will also install libpolkit-gobject-elogind-1-0, while removing :-
consolekit
libpolkit-backend-consolekit-1-0
libpolkit-gobject-consolekit-1-0
lxde etc.
slim
I did the installation with :-
apt update
apt install libpolkit-backend-elogind-1-0
which then carried out the same things as Synaptic indicated. /var/log/apt/history.log reports :-
Start-Date: 2020-01-08 16:38:59
Commandline: apt install libpolkit-backend-elogind-1-0
Requested-By: ggibbs (1026)
Install: libpolkit-backend-elogind-1-0:amd64 (0.105-25+devuan0~bpo2+1), libpolkit-gobject-elogind-1-0:amd64 (0.105-25+devuan0~bpo2+1, automatic)
Remove: lxde-core:amd64 (9), consolekit:amd64 (0.4.6-6), slim:amd64 (1.3.6-5.1+devuan2), lxsession-logout:amd64 (0.5.3-2), libpolkit-backend-consolekit-1-0:amd64 (0.105-25+devuan0~bpo2+1), lxde:amd64 (9), lxsession:amd64 (0.5.3-2), openbox-lxde-session:amd64 (0.99.2-3), libpolkit-gobject-consolekit-1-0:amd64 (0.105-25+devuan0~bpo2+1)
End-Date: 2020-01-08 16:39:14
I have rebooted the machine and everything seems to work nicely. There are a couple of pop-ups which appear.
One is at login, when it reports that it is unable to bind the keys Control+Alt+D.
Another appears at shutdown but it disappears very quickly as the machine does indeed shutdown and I am unable to see what it says!
/var/log/messages reports :-
Jan 8 19:12:48 fluorine shutdown[4290]: shutting down for system halt
Jan 8 19:12:49 fluorine kernel: [ 2533.514734] lxqt-runner[3859]: segfault at 20 ip 00007fc12ecf9ea4 sp 00007ffd77a10790 error 6 in libQt5Core.so.5.7.1[7fc12ec54000+4be000]
Jan 8 19:12:49 fluorine kernel: [ 2533.514746] Code: 66 0f 1f 44 00 00 55 53 ba 01 00 00 00 48 83 ec 28 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 c7 44 24 08 00 00 00 00 <f0> 48 0f b1 17 0f 94 c2 74 05 48 89 44 24 08 84 d2 48 8b 5c 24 08
/var/log/auth.log reports :-
Jan 8 18:31:15 fluorine polkitd(authority=local): Registered Authentication Agent for unix-session:1 (system bus name :1.12 [lxqt-policykit-agent], object path /org/lxqt/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
...
Jan 8 19:12:50 fluorine polkitd(authority=local): Unregistered Authentication Agent for unix-session:1 (system bus name :1.12, object path /org/lxqt/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
The machine is currently running ASCII well with LXdm/LXQt and elogind. I will do some checking before I look at the upgrade to Beowulf itself...
Geoff
That tallying system made the head hurt...
It looks as though it is the Condorcet method of voting
https://en.wikipedia.org/wiki/Condorcet_method
Geoff