2019 Updated Nemesis Base Modules

Arch based Porteus community project
jssouza
DEV Team
DEV Team
Posts: 1033
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

2019 Updated Nemesis Base Modules

Post#106 by jssouza » 08 Aug 2019, 05:47

jssouza wrote:
08 Aug 2019, 04:50
create a symlink to /usr/lib/modules in /lib/modules, that is /lib/modules -> /usr/lib/modules/ in 000-kernel.
Ok, tried it. I created 2 symlinks in 000-kernel: lib/firmware to /usr/lib/firmware and lib/modules to /usr/lib/modules. Now I am able to boot with the Porteus v5.0 rc1 kernel on nemesis.
Points:
- Booting with this modified kernel on porteus itself, needs a small change in 001-core. In 001-core, there is an empty directory /lib/firmware that destroys the /lib/firmware symlink created in 000-kernel. Hence, modules are loaded, but firmwares are not found. So need to remove this empty useless firmware directly from 001-core in porteus.
- In nemesis, /sbin is also symlinked to /usr/sbin, resulting in removal of the static /sbin/cryptsetup binary in 000-kernel. In nemesis cryptseup is a dynamically linked binary. So probably keep as-is because cryptsetup could be a package dependency in nemesis and hence installed.
- Every time I open xfce terminal in nemesis I get this: "grep: /etc/porteus.d/login: No such file or directory". This is probably some other issue?

Also, able to boot to nemesis using the porteus initrd as well. Just need to put the porteus 5 cfg file in the nemesis directory. Saw some errors in openrc at the end of bootup, could be due to the missing old method of reading config files from boot medium.

raja
Shogun
Shogun
Posts: 213
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and v5.0-rc1-zstd-64
Location: Chennai,India

2019 Updated Nemesis Base Modules

Post#107 by raja » 08 Aug 2019, 08:37

I follow a straight forward layman's approach.

Extract Porteus 000-kernel.xzm, create 'usr' directory, mone 'lib' directory and build module agian. I update, once in 3/6 months.Easy isn't it?

Code: Select all

[guest@porteus ~]$ uname -a
Linux porteus 5.2.4-porteus #1 SMP PREEMPT Sun Jul 28 18:14:20 UTC 2019 x86_64 GNU/Linux
Linux Kernel-4.4.120-32 bit; Linux kernel-5.2-64 bit.

jssouza
DEV Team
DEV Team
Posts: 1033
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

2019 Updated Nemesis Base Modules

Post#108 by jssouza » 08 Aug 2019, 08:50

raja, then it would still be nemesis specific. Would not work back in porteus. My objective was to check if only one 000-kernel and initrd can be created that works on both porteus as well as nemesis.

User avatar
M. Eerie
Samurai
Samurai
Posts: 179
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

2019 Updated Nemesis Base Modules

Post#109 by M. Eerie » 08 Aug 2019, 14:39

jssouza wrote:
08 Aug 2019, 05:47
I get this: "grep: /etc/porteus.d/login: No such file or directory"
I did have this issue too, but solved using initrd.xz from the firs post.

Seems you can't mix (import) initrd and kernel from Porteus.

See here (2 pages above). I think we are searching the same goal :D


Cheers!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2209
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2019 Updated Nemesis Base Modules

Post#110 by ncmprhnsbl » 31 Aug 2019, 22:52

update 2019-08-31
core:

Code: Select all

archlinux-keyring
archlinux-mirrorlist
bash
dbus
dbus-openrc
dialog
elogind
eudev
gettext
iana-etc
keyutils
ldns
libelogind
libeudev
libevdev
libgudev
libinput
libldap
libnghttp2
libnm
nano
networkmanager
nspr
openrc
openssh
opensysusers
opensysusers-openrc
opentmpfiles
opentmpfiles-openrc
perl-error
shadow
wpa_supplicant
zstd

added archivemount and http2fs(binary in /usr/local/bin) for mount module
gui:

Code: Select all

cairo
graphite
harfbuzz
libcups
libx86emu
llvm-libs
mesa
pango
xf86-input-libinput
xf86-video-intel
xorg-font-util
xorg-xrandr

added to /usr/local/bin : create-module extract-module mount-module unmount-module mount-iso mloop uloop
xtra:

Code: Select all

alsa-lib
dav1d (added: new ffmpeg dep)
ffmpeg
flac
glslang
libevent
libplacebo (added: dav1d dep)
libvdpau
recode
x265
xdg-utils
xfce4:

Code: Select all

btrfs-progs
cryptsetup
exo
libbytesize
libxfce4ui
libxfce4util
libxpresent
mousepad
ndctl
ristretto
thunar
thunar-volman
tumbler
udisks2
wayland-protocols
xfce4-appfinder
xfce4-notifyd
xfce4-panel
xfce4-power-manager
xfce4-screenshooter
xfce4-session
xfce4-settings
xfce4-terminal
xfconf
xfdesktop
xfwm4

notes: xfce4(4.14) is now gtk3.. this may break some settings(mainly panel clock)
            Build Module and Extract Module now have gtkdialog messages.. also added Mount Module, Unmount Module, Mount Iso
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
M. Eerie
Samurai
Samurai
Posts: 179
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

2019 Updated Nemesis Base Modules

Post#111 by M. Eerie » 02 Sep 2019, 09:40

ncmprhnsbl wrote:
31 Aug 2019, 22:52
added to /usr/local/bin : create-module extract-module mount-module unmount-module mount-iso mloop uloop
Hi, ncmprhnsbl. Would you please update /003-xfce4-20190831.xzm/root/.config/Thunar/uca.xml in the next release?
This is the current content:

Code: Select all

<?xml encoding="UTF-8" version="1.0"?>
<actions>
<action>
	<icon>utilities-terminal</icon>
	<name>Open Terminal Here</name>
	<unique-id>1514538869382919-1</unique-id>
	<command>xfce4-terminal</command>
	<description>Example for a custom action</description>
	<patterns>*</patterns>
	<startup-notify/>
	<directories/>
</action>
<action>
	<icon>cdr</icon>
	<name>Build Module</name>
	<unique-id>1514539406627916-2</unique-id>
	<command>/usr/local/bin/dir2xzm %n %n.xzm</command>
	<description></description>
	<patterns>*</patterns>
	<directories/>
</action>
<action>
	<icon>cdr</icon>
	<name>Extract Module</name>
	<unique-id>1550733937308781-1</unique-id>
	<command>mkdir `echo %n | cut -d . -f 1` &amp;&amp; xzm2dir $PWD/%n $PWD/`echo %n | cut -d . -f 1`</command>
	<description></description>
	<patterns>*.xzm</patterns>
	<other-files/>
</action>
</actions>

Thanks!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2209
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2019 Updated Nemesis Base Modules

Post#112 by ncmprhnsbl » 27 Sep 2019, 08:16

update 2019-09-27
core:

Code: Select all

acpid
bluez
bluez-libs
bluez-utils
ca-certificates-mozilla
cronie
curl
dconf
device-mapper
elfutils
elogind
eudev
findutils
fuse-common
fuse2
gawk
gettext
glib-networking
glib2
gsettings-desktop-schemas
haveged
hdparm
hwids
iputils
js60
kbd
libelf
libelogind
libeudev
libgcrypt
libgpg-error
libmm-glib
libnftnl
libnm
libsecret
libsoup
libssh2
libtasn1
libwacom
libxml2
logrotate
lsof
lz4
networkmanager
nss
openrc
openresolv
openssh
openssl
opentmpfiles
opentmpfiles-openrc
p11-kit
squashfs-tools
syslog-ng
tzdata
unrar
usbutils
xfsprogs
zeromq
gui:

Code: Select all

atk
fontconfig
freeglut
gdk-pixbuf2
gtk-update-icon-cache
libjpeg-turbo
librsvg
libxfont2
libxvmc
mesa
pango
shared-mime-info
upower
vte-common
xorg-xkbcomp
xorgproto
xterm
xtra:

Code: Select all

at-spi2-atk
at-spi2-core
enca
ffmpeg
glslang
libevent
libogg
libplacebo
libpulse
libwbclient
mpg123
orc
recode
v4l-utils
xfce4:

Code: Select all

btrfs-progs
cryptsetup
fuse3 (added for gvfs)
gcr
gtk3
gvfs
libcloudproviders
libgtop
lvm2
mobile-broadband-provider-info
vte3
M. Eerie wrote:
02 Sep 2019, 09:40
Would you please update /003-xfce4-20190831.xzm/root/.config/Thunar/uca.xml in the next release?
done.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
M. Eerie
Samurai
Samurai
Posts: 179
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

2019 Updated Nemesis Base Modules

Post#113 by M. Eerie » 28 Sep 2019, 10:51

Hi, ncmprhnsbl,
From this update, seems internal partitions can't be mounted if disk-icon is clicked by a regular user.

So far, I've found some workarounds, but rather than suggested directory in that article (/etc/polkit-1/localauthority/50-local.d/), I have a /etc/polkit-1/rules.d. So I've added, this piece to the file /etc/polkit-1/rules.d/10-udisks2.rules:

Code: Select all

polkit.addRule(function(action, subject) {
       if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
             action.id == "org.freedesktop.udisks2.filesystem-mount") &&
             subject.user == "guest") {
            return "yes";
        }
    });
but I guess it has to be run at startup (or manually, but I don't know how).

Update: Also found that a regular user can mount a internal partition like this:

Code: Select all

$ udisksctl mount -b /dev/sdxy
How can this be reverted in order to behave like before?

Thanks!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2209
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2019 Updated Nemesis Base Modules

Post#114 by ncmprhnsbl » 28 Sep 2019, 22:28

M. Eerie wrote:
28 Sep 2019, 10:51
From this update, seems internal partitions can't be mounted if disk-icon is clicked by a regular user.
it's working for me...
/etc/polkit-1/rules.d contains: 25-guest-mount.rules :

Code: Select all

polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.udisks") == 0) {
        if (subject.isInGroup("storage")) {
            return polkit.Result.YES;
        }
    }
});
and also in 99-artix.rules , there is this section:

Code: Select all

polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
        return polkit.Result.YES;
    }
});
..one of those should be doing the trick .. (they're just config files.. ie they don't need to 'run')
maybe check if there is something installed in your changes that's interfering:

Code: Select all

ls /path/to/changes/var/lib/pacman/local  
or more specifically
ls /path/to/changes/var/lib/pacman/local | grep js
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
M. Eerie
Samurai
Samurai
Posts: 179
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

2019 Updated Nemesis Base Modules

Post#115 by M. Eerie » 30 Sep 2019, 08:23

ncmprhnsbl wrote:
28 Sep 2019, 22:28
maybe check if there is something installed in your changes that's interfering
Booted without my changes module and indeed it is working. So I need to track down what is happening. Apart from custom icons, backgrounds and usr/share/glib-2.0/schemas/gschemas.compiled in /usr/share folder, this is my etc/ tree:

Code: Select all

etc/
├── hardwareclock
├── HOSTNAME
├── issue
├── ld.so.cache
├── local.d
│   └── firewall.start
├── localtime
├── localtime-copied-from -> /usr/share/zoneinfo/Europe/Andorra
├── lxdm
│   └── lxdm.conf
├── profile.d
│   ├── lang.sh
│   └── rc.firewall
├── shadow
└── xdg
    ├── autostart
    │   ├── at-spi-dbus-bus.desktop
    │   ├── gnome-keyring-pkcs11.desktop
    │   ├── gnome-keyring-secrets.desktop
    │   ├── gnome-keyring-ssh.desktop
    │   ├── gui-autostart.desktop
    │   ├── nm-applet.desktop
    │   ├── org.gnome.SettingsDaemon.DiskUtilityNotify.desktop
    │   ├── xdg-user-dirs.desktop
    │   ├── xfce4-power-manager.desktop
    │   ├── xfce-polkit-gnome-authentication-agent-1.desktop
    │   ├── xfsettingsd.desktop
    │   └── xscreensaver.desktop
    └── user-dirs.defaults

5 directories, 24 files
I think I'll try disabling GNOME services at start or look at ~/.config/xfce4/xconf/xfce-perchannel-xml/* or ~/.config/dconf/user

Will try and report back.

Thanks!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2209
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2019 Updated Nemesis Base Modules

Post#116 by ncmprhnsbl » 30 Sep 2019, 11:14

M. Eerie wrote:
30 Sep 2019, 08:23
usr/share/glib-2.0/schemas/gschemas.compiled in /usr/share folder,
it may be that you need to recompile these: (i had to do this for xfce4 DE, for drives to display properly)

Code: Select all

# glib-compile-schemas /usr/share/glib-2.0/schemas
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
M. Eerie
Samurai
Samurai
Posts: 179
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

2019 Updated Nemesis Base Modules

Post#117 by M. Eerie » 30 Sep 2019, 12:04

ncmprhnsbl wrote:
30 Sep 2019, 11:14
t may be that you need to recompile these:
YES!

I've lost the count of :beer: I owe you :)

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2209
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2019 Updated Nemesis Base Modules

Post#118 by ncmprhnsbl » 28 Oct 2019, 07:51

update 2019-10-28
core:

Code: Select all

archlinux-keyring
base (added: replaces some *-openrc pkgs)
bash
bluez
bluez-libs
bluez-utils
ca-certificates-mozilla
cdrtools
coreutils
cronie
cronie-openrc
dbus-openrc
dhcpcd
diffutils
e2fsprogs
elogind
elogind-openrc
eudev
eudev-openrc
expac
expat
file
filesystem
fuse-common
gcc-libs
glib-networking
glib2
glibc
gnutls
grep
gzip
haveged
iana-etc
iproute2
kbd
less
libelogind
libeudev
libinput
libnl
libnm
libpcap
libpgm
libsoup
libtool
libusb
libx11
linux-api-headers
lm_sensors
nano
networkmanager
nspr
nss
openrc
openssh
opensysusers
opentmpfiles
p11-kit
pacman
parted
polkit
readline
screen
sed
sqlite
sudo
syslog-ng
tar
texinfo
unrar
which
zstd
gui:

Code: Select all

cairo
fontconfig
freeglut
gdk-pixbuf2
gtk-update-icon-cache
harfbuzz
libcups
libdrm
libglvnd
librsvg
libxkbcommon-x11
llvm-libs
mesa
mesa-demos
openbox
pango
vte-common
xf86-video-amdgpu
xf86-video-ati
xf86-video-intel
xkeyboard-config
xorg-server
xorg-server-common
xorgproto
xtra:

Code: Select all

at-spi2-atk
fribidi
jack
libssh
libxkbcommon
openexr
sdl
twolame
xdg-utils
zita-alsa-pcmi
zita-resampler
xfce4:

Code: Select all

btrfs-progs
fuse3
gcr
gnome-keyring
gtk3
gvfs
libblockdev
libnma
network-manager-applet
nm-connection-editor
vte3
xfce4-panel
had to recompile the schemas for xfce4 again(for desktop settings), so if you're using changes you may need to do this:

Code: Select all

# glib-compile-schemas /usr/share/glib-2.0/schemas
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
M. Eerie
Samurai
Samurai
Posts: 179
Joined: 31 Aug 2017, 21:18
Distribution: APorteus BUDGIE x64

2019 Updated Nemesis Base Modules

Post#119 by M. Eerie » 02 Nov 2019, 13:14

Thanks again for the regular updates :)

Whisker Menu Plugin doesn't open with Super_L key anymore.

Is it me or is it kbd,libinput, etc?

Cheers!

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2209
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

2019 Updated Nemesis Base Modules

Post#120 by ncmprhnsbl » 03 Nov 2019, 02:57

M. Eerie wrote:
02 Nov 2019, 13:14
Whisker Menu Plugin doesn't open with Super_L key anymore.
well, since i don't supply whiskermenu, i don't know exactly..
what does : settings>keyboard>applications show?
i just test installed xfce4-whiskermenu-plugin and set that keybind, which works no problem..
fyi these keybinds are stored in /home/guest/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply