Bookworm Build script

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

@fredx181

Hi

I am sorry. I forget to keep dm-crypt.ko in initrd in last patch.

Need modify /usr/local/cr-initrd/mkinitrd

Code: Select all

 copy_including_deps /$LMK/kernel/drivers/md/md-mod.*
+copy_including_deps /$LMK/kernel/drivers/md/dm-crypt.*

It used for changes=
As i see in linuxrc code

Code: Select all

elif [ $CHANGES ]; then
    echo $i"setting up directory for changes"
    CHNEXIT=`echo $CHANGES | cut -d: -f1`; 
    [ $CHNEXIT = EXIT ] && CHANGES=`echo $CHANGES | cut -d: -f2-`
    [ $CHNEXIT = +EXIT ] && CHANGES=`echo $CHANGES | cut -d: -f2-`   
    
    [ -r $CFGDEV/$CHANGES ] && { DEV=`echo $CFGDEV | sed s@/mnt/@@`; LPTH=$CHANGES; } || locate -r $CHANGES
    if [ $? -eq 0 ]; then
	if [ -d /mnt/$DEV/$LPTH ]; then
	    mkdir -p /mnt/$DEV/$LPTH/changes 2>/dev/null && \
	    mount -o bind /mnt/$DEV/$LPTH/changes /memory/changes && touch /memory/changes/._test1 2>/dev/null
	else
	    if blkid /mnt/$DEV/$LPTH 2>/dev/null | cut -d" " -f3- | grep -q _LUKS; then
		for x in dm_crypt cryptd cbc sha256_generic aes_generic aes_x86_64; do modprobe $x 2>/dev/null; done
		losetup /dev/loop2 /mnt/$DEV/$LPTH
		echo $i"found encrypted .dat container"
		cryptsetup luksOpen /dev/loop2 crypt
		fsck_dat /dev/mapper/crypt
		mount /dev/mapper/crypt /memory/changes 2>/dev/null && touch /memory/changes/._test1 2>/dev/null

But i never use it. Can you test it with new initrd.

Another crypto modules copied as before. I don't touch it.
copy_including_deps /$LMK/kernel/crypto

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

gumanzoy wrote: Wed Oct 30, 2024 2:35 pm

I am sorry. I forget to keep dm-crypt.ko in initrd in last patch.

Need modify /usr/local/cr-initrd/mkinitrd
...
+copy_including_deps /$LMK/kernel/drivers/md/dm-crypt.*

Ah, ok, no problem.
Tested and indeed encrypted savefile is not working without dm-crypt.*
With it, it works again, although very slow I must say (takes around 20 sec to continue after entering the password for encryption) well ... anyway it works.

Made the changes just now, i.e. latest upgrade-kernel v1.18.0 and the dog-boot-.... archives in MakeLive repo updated.

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

What would it take to make a version, probably a systemd version, with no "run as user"?

Everything runs as root (or doesn't run) when you are root and everything runs like normal debian when using a regular user.

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

dancytron wrote: Sat Nov 09, 2024 7:46 pm

What would it take to make a version, probably a systemd version, with no "run as user"?

Everything runs as root (or doesn't run) when you are root and everything runs like normal debian when using a regular user.

If I understand well, I'd say place some .desktop launchers for applications that won't run as root by default in /root/.local/share/applications.
These will show only from root login in the Menu. Modify the Exec= line to run with e.g. --no-sandbox .
When doing a build, it can be done manually in the 'chroot'.
But that's only for what appears in the Menu, probably you mean more (as you say "everything", also stuff like pulseaudio start etc...).

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

fredx181 wrote: Sun Nov 10, 2024 8:39 am
dancytron wrote: Sat Nov 09, 2024 7:46 pm

What would it take to make a version, probably a systemd version, with no "run as user"?

Everything runs as root (or doesn't run) when you are root and everything runs like normal debian when using a regular user.

If I understand well, I'd say place some .desktop launchers for applications that won't run as root by default in /root/.local/share/applications.
These will show only from root login in the Menu. Modify the Exec= line to run with e.g. --no-sandbox .
When doing a build, it can be done manually in the 'chroot'.
But that's only for what appears in the Menu, probably you mean more (as you say "everything", also stuff like pulseaudio start etc...).

Yes, by "everything", I mean pipewire and wireplumber. I would probably not use pulse audio.

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

This works for me as a Startup script with root and user login:

Code: Select all

    pipewire &
    pipewire-pulse &
    wireplumber &

Don't know about systemd (edit: well, remember now, see next post), could be that for user login the systemd service will provide starting it, so then the above only for root login.

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

@dancytron
Almost forgot: see EDIT here (about systemd starting wireplumber) viewtopic.php?p=129207#p129207

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

Let me build one and I'll tell you where I get stuck.

Probably a couple of days.

Dan

edit: well, more than a couple of days.

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

@fredx181

Hi

I build libpng12-0_1.2.59-1_amd64.deb and libpng12-0_1.2.59-1_i386.deb for Debian 12
Not conflict with usr-is-merged package

I upload deb's and deb-src to GoogleDrive libpng_1.2.59_deb12

You can upload it to GitHub repo's if you want.

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

@fredx181

Thanks

Screenshot_2024-12-13_15-15-12.png
Screenshot_2024-12-13_15-15-12.png (128.88 KiB) Viewed 1146 times

From now i don't need to add code to mklive-bookworm to download and install libpng12_i386.deb
Just add libpng12-0:i386 in mklive-bookworm64-xfce-gumanzoy.conf should work.

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

@fredx181

Hi

I found 2 sources of
/root/.config/gtk-2.0/gtkfilechooser.ini
/home/puppy/.config/gtk-2.0/gtkfilechooser.ini

Files from
wget --no-check-certificate https://raw.githubusercontent.com/DebianDog/MakeLive/gh-pages/dog-boot-bookworm-20221013.tar.gz

Overwritten by zz_xfce_config.squashfs
[ "$DE_CONFIG" = "Xfce4" ] && wget --no-check-certificate -P squash -r -e robots=off -nd -l1 -A "*squashfs" https://debiandog.github.io/MakeLive/modules-bookworm/xfce4/ && unsquashfs -f -d chroot squash/*.squashfs; rm -rf squash

dog-boot-bookworm-20221013.tar.gz version

Code: Select all

[Filechooser Settings]
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=0
GeometryY=170
GeometryWidth=840
GeometryHeight=630
SortColumn=name
SortOrder=ascending
StartupMode=recent

zz_xfce_config.squashfs version

Code: Select all

[Filechooser Settings]
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=-1
GeometryY=-1
GeometryWidth=-1
GeometryHeight=-1
SortColumn=name
SortOrder=ascending
StartupMode=recent

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

gumanzoy wrote: Mon Dec 16, 2024 8:10 pm

@fredx181

Hi

I found 2 sources of
/root/.config/gtk-2.0/gtkfilechooser.ini
/home/puppy/.config/gtk-2.0/gtkfilechooser.ini

...

The zz_.....squashfs modules have in some cases the purpose to override the settings from dog-boot-bookworm-20221013.tar.gz
But to be honest I don't remember about this specific one, is there a problem ?

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

fredx181 wrote: Tue Dec 17, 2024 10:37 am

The zz_.....squashfs modules have in some cases the purpose to override the settings from dog-boot-bookworm-20221013.tar.gz
But to be honest I don't remember about this specific one, is there a problem ?

I read topic about org.gtk.Settings.FileChooser window-size
viewtopic.php?p=135017#p135017

I think files in dog-boot-bookworm-20221013.tar.gz updated for fix this problem.
But now i double check and gtk2 and gtk3 FileChooser sizes different.
gtk2 FileChooser dialog size ok with both of gtk-2.0/gtkfilechooser.ini variants.

But need to reduce gtk3 FileChooser window size for root user. Same as for puppy /home/puppy/.config/dconf
And i wish to enable "Sort folders before files" by default.

gsettings is strange thing. Can not edit this as .ini file.

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

@gumanzoy
If I understand well, adding .config/dconf/user for root and puppy (setting with much smaller filechooser and folders show first) in dog-boot-bookworm-20221013.tar.gz should do.
Is that what you propose ? And show hidden files too ?

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

fredx181 wrote: Tue Dec 17, 2024 2:17 pm

If I understand well, adding .config/dconf/user for root and puppy (setting with much smaller filechooser and folders show first) in dog-boot-bookworm-20221013.tar.gz should do.
Is that what you propose ? And show hidden files too ?

Yes.

But i don't know how to create .config/dconf/user this this settings.

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

gumanzoy wrote: Tue Dec 17, 2024 4:37 pm
fredx181 wrote: Tue Dec 17, 2024 2:17 pm

If I understand well, adding .config/dconf/user for root and puppy (setting with much smaller filechooser and folders show first) in dog-boot-bookworm-20221013.tar.gz should do.
Is that what you propose ? And show hidden files too ?

Yes.

But i don't know how to create .config/dconf/user this this settings.

It's created or modified (if exists) by changing e.g. the gtk3 filechooser size or other setting.
I did that from booted system and added now to dog-boot-bookworm-20221013.tar.gz, tested with new xfce4 minimal build and works ok (e.g. filechooser size is around 700x500)

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

@fredx181

Thanks.

I fix /etc/xdg/menus/xfce-applications.menu

Code: Select all

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>
    <Name>Xfce</Name>

<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<DefaultMergeDirs/>

<Include>
    <Category>X-Xfce-Toplevel</Category>
</Include>

<Layout>
      <Filename>Create-module-from-changes.desktop</Filename> 
      <Filename>Create Savefile.desktop</Filename> 
     <Filename>audio-setup.desktop</Filename>  
    <Filename>Remaster-DDog.desktop</Filename>
    <Filename>DDog-Installer.desktop</Filename>
    <Filename>Add-new-user.desktop</Filename>
    <Filename>xfce4-run.desktop</Filename>
    <Separator/>
    <Filename>xfce4-terminal-emulator.desktop</Filename>
    <Filename>xfce4-file-manager.desktop</Filename>
    <Filename>xfce4-mail-reader.desktop</Filename>
    <Filename>xfce4-web-browser.desktop</Filename>
    <Separator/>
    <Menuname>Settings</Menuname>
    <Separator/>
    <Merge type="all"/>
    <Separator/>
    <Filename>xfhelp4.desktop</Filename>
    <Filename>xfce4-about.desktop</Filename>
    <Filename>logout.desktop</Filename>
</Layout>
<Menu>
    <Name>Module Tools</Name>
    <Directory>xfce-modules.directory</Directory>
    <Include>
        <Category>Modules</Category>
    </Include>
</Menu>

<Menu>
    <Name>Settings</Name>
    <Directory>xfce-settings.directory</Directory>
    <Include>
        <Category>Settings</Category>
    </Include>

    <Layout>
        <Filename>xfce-settings-manager.desktop</Filename>
        <Separator/>
        <Merge type="all"/>
    </Layout>

    <Menu>
        <Name>Screensavers</Name>
        <Directory>xfce-screensavers.directory</Directory>
        <Include>
            <Category>Screensaver</Category>
        </Include>
    </Menu>
</Menu>

<Menu>
    <Name>Accessories</Name>
    <Directory>xfce-accessories.directory</Directory>
    <Include>
        <Or>
            <Category>Accessibility</Category>
            <Category>Core</Category>
            <Category>Legacy</Category>
            <Category>Utility</Category>
        </Or>
    </Include>
    <Exclude>
        <Or>
            <Filename>exo-file-manager.desktop</Filename>
            <Filename>exo-terminal-emulator.desktop</Filename>
            <Filename>xfce4-about.desktop</Filename>
            <Filename>xfrun4.desktop</Filename>
        </Or>
    </Exclude>
</Menu>

<Menu>
    <Name>Development</Name>
    <Directory>xfce-development.directory</Directory>
    <Include>
        <Category>Development</Category>
    </Include>
</Menu>

<Menu>
    <Name>Education</Name>
    <Directory>xfce-education.directory</Directory>
    <Include>
        <Category>Education</Category>
    </Include>
</Menu>

<Menu>
    <Name>Games</Name>
    <Directory>xfce-games.directory</Directory>
    <Include>
        <Category>Game</Category>
    </Include>
</Menu>

<Menu>
    <Name>Graphics</Name>
    <Directory>xfce-graphics.directory</Directory>
    <Include>
        <Category>Graphics</Category>
    </Include>
</Menu>

<Menu>
    <Name>Multimedia</Name>
    <Directory>xfce-multimedia.directory</Directory>
    <Include>
        <Category>Audio</Category>
        <Category>Video</Category>
        <Category>AudioVideo</Category>
    </Include>
</Menu>

<Menu>
    <Name>Network</Name>
    <Directory>xfce-network.directory</Directory>
    <Include>
        <Category>Network</Category>
    </Include>
    <Exclude>
        <Or>
            <Filename>exo-mail-reader.desktop</Filename>
            <Filename>exo-web-browser.desktop</Filename>
        </Or>
    </Exclude>
</Menu>

<Menu>
    <Name>Office</Name>
    <Directory>xfce-office.directory</Directory>
    <Include>
        <Category>Office</Category>
    </Include>
</Menu>

<Menu>
    <Name>System</Name>
    <Directory>xfce-system.directory</Directory>
    <Include>
        <Or>
            <Category>Emulator</Category>
            <Category>System</Category>
        </Or>
    </Include>
    <Exclude>
        <Or>
            <Filename>logout.desktop</Filename>
        </Or>
    </Exclude>
</Menu>

<Menu>
    <Name>Other</Name>
    <Directory>xfce-other.directory</Directory>
    <OnlyUnallocated/>
    <Include>
        <All/>
    </Include>
</Menu>

<Exclude>
    <Or>
        <Filename>xfce4-session-logout.desktop</Filename>
        <Filename>Remaster-DebianDog.desktop</Filename>
    </Or>
</Exclude>

</Menu>

Current: (apps mixed with categories)

xfce-applications-current.png
xfce-applications-current.png (102.18 KiB) Viewed 952 times

Fixed:

xfce-applications-fixed.png
xfce-applications-fixed.png (105.97 KiB) Viewed 952 times

Don't care about "HWMon Tools" category on screenshot. It is inserted only in my build.
And not showing without these files.
/etc/xdg/menus/applications-merged/HWMon.menu
/usr/share/desktop-directories/HWMon.directory

Can you update zz_xfce_config.squashfs with xfce-applications.menu ?


EDIT.

fredx181 wrote: Wed Dec 18, 2024 1:04 pm
gumanzoy wrote: Tue Dec 17, 2024 4:37 pm

But i don't know how to create .config/dconf/user this this settings.

It's created or modified (if exists) by changing e.g. the gtk3 filechooser size or other setting.

I know that is creating or modifying at run time. But it is contains many settings for other gtk3 apps currently running in system.
I just curious how to create .config/dconf/user only with settings for org.gtk.Settings.FileChooser
And not define any other desktop apps settings. To leave it as upstream default.

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

gumanzoy wrote: Wed Dec 18, 2024 1:39 pm

@fredx181
...
...
Can you update zz_xfce_config.squashfs with xfce-applications.menu ?

OK, done now.

fredx181 wrote: Wed Dec 18, 2024 1:04 pm
gumanzoy wrote: Tue Dec 17, 2024 4:37 pm

But i don't know how to create .config/dconf/user this this settings.

It's created or modified (if exists) by changing e.g. the gtk3 filechooser size or other setting.

I know that is creating or modifying at run time. But it is contains many settings for other gtk3 apps currently running in system.
I just curious how to create .config/dconf/user only with settings for org.gtk.Settings.FileChooser
And not define any other desktop apps settings. To leave it as upstream default.

Ah ok. I don't know exactly either, some useful info in the thread perhaps ? https://forum.puppylinux.com/viewtopic. ... 17#p135017
edit : using dconf-editor may be the easiest but also at run time only.

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

dancytron wrote: Sun Nov 10, 2024 2:18 pm

Let me build one and I'll tell you where I get stuck.

Probably a couple of days.

Dan

edit: well, more than a couple of days.

I'm back. Sorry it took so long.

I think I manually created what I think I want with the following steps. (running pipewire and wireplumber as root and thus being able to use bluetooth without breaking things/security.

1. Created a systemd DD with alsa and pipewire-setup.

2. Added my hack to allow pipewire to run as root viewtopic.php?t=9448.
3. Booted.

Code: Select all

killall pipewire
killall wireplumber
killall pipewire-pulse

4. open 2 separate root terminal windows (pipewire seems to load pipewire-pulse).

Code: Select all

pipewire
wireplumber

5. Test sound with mpv. It works with pipewire, wireplumber, and pipewire-pulse all running as root.
6. killall again.
7. install blueman, bluez, bluetooth (meta package), libcamera, libspa-0.2-bluetooth.
8. restart 2 terminal windows with pipewire and wireplumber.
9. open blueman. search for bluetooth speaker. Bluetooth works!!!!!!!!!!! (see screenshot).
10. save2flash and reboot. repeat killall and restarting in terminal windows. Sound and bluetooth still work with everything running as root.

So I guess what I would like to do is have all 3 just running as root when logged in as root without having to killall them and restart them.

2024-12-23-162321_1024_scrot.jpg
2024-12-23-162321_1024_scrot.jpg (104.06 KiB) Viewed 680 times
User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

dancytron wrote: Mon Dec 23, 2024 10:43 pm

I think I manually created what I think I want with the following steps. (running pipewire and wireplumber as root and thus being able to use bluetooth without breaking things/security.

1. Created a systemd DD with alsa and pipewire-setup.

If the pipewire-setup package is installed then pipewire runs as "user" (puppy), so I guess that's why you need to run the killall commands first before running as root.

2. Added my hack to allow pipewire to run as root

Down side of running pipewire as root is that you'll have no sound in a browser that's running as "user" , e.g. google-chrome (so needs to run with --no-sandbox).

So I guess what I would like to do is have all 3 just running as root when logged in as root without having to killall them and restart them.

Best (if I understand well), I think , to run as root is to uninstall the pipewire-setup package and just have installed pipewire, pipewire-pulse, pipewire-alsa, wireplumber (and reboot). :?:

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

Yes, I want to run as root and don't really use the run-as-user very much.

I think I'm almost there. All I have to do is get wireplumber to run on startup.

Built new one without pipewire-setup or run-as-user and with pipewire wireplumber bluetooth blueman libspa-0.2-bluetooth libcamera0.0.3 bluez.

Running the task manager, pipewire is running as root, but wireplumber is not running. Sound works, Bluetooth finds my speaker but fails to connect with the usual meaningless error message. /var/log/syslog and the systemd equivalent say

2024-12-24T17:21:34.772726+00:00 live wireplumber[1127]: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:34.773144+00:00 live pipewire[1126]: mod.rt: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:34.773296+00:00 live wireplumber[1127]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.773521+00:00 live wireplumber[1127]: could not set nice-level to -11: No such file or directory

. See below for full log.

Googling the error message had stuff about export environment variable etc I haven't had time to run down.

When I started wireplumber in a terminal, then bluetooth worked.

***********************************************

Details below.

*******************************************


In /var/log/syslog I found:

Code: Select all

 2024-12-24T17:21:34.772726+00:00 live wireplumber[1127]: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:34.773144+00:00 live pipewire[1126]: mod.rt: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:34.773296+00:00 live wireplumber[1127]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.773521+00:00 live wireplumber[1127]: could not set nice-level to -11: No such file or directory
2024-12-24T17:21:34.773592+00:00 live pipewire[1126]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.773655+00:00 live pipewire[1126]: mod.rt: could not set nice-level to -11: No such file or directory
2024-12-24T17:21:34.773731+00:00 live wireplumber[1127]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.773803+00:00 live pipewire[1126]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.773869+00:00 live systemd[1]: Starting smbd.service - Samba SMB Daemon...
2024-12-24T17:21:34.787709+00:00 live pipewire[1126]: spa.dbus: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:34.787891+00:00 live pipewire[1126]: mod.portal: Failed to connect to session bus: Input/output error
2024-12-24T17:21:34.793753+00:00 live wireplumber[1127]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.793912+00:00 live pipewire[1126]: mod.rt: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:34.847318+00:00 live update-apparmor-samba-profile[1147]: grep: /etc/apparmor.d/samba/smbd-shares: No such file or directory
2024-12-24T17:21:34.862212+00:00 live wireplumber[1127]: Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY
2024-12-24T17:21:34.862726+00:00 live wireplumber[1127]: 0x5559df24dae0: leaked proxy 0x5559df2d7180 id:3
2024-12-24T17:21:34.862838+00:00 live wireplumber[1127]: disconnected from pipewire
2024-12-24T17:21:34.865815+00:00 live systemd[1111]: wireplumber.service: Main process exited, code=exited, status=70/SOFTWARE
2024-12-24T17:21:34.865944+00:00 live systemd[1111]: wireplumber.service: Failed with result 'exit-code'.
2024-12-24T17:21:34.888297+00:00 live update-apparmor-samba-profile[1156]: diff: /etc/apparmor.d/samba/smbd-shares: No such file or directory
2024-12-24T17:21:35.202763+00:00 live systemd[1]: Started smbd.service - Samba SMB Daemon.
2024-12-24T17:21:35.203396+00:00 live systemd[1]: Reached target multi-user.target - Multi-User System.
2024-12-24T17:21:35.203654+00:00 live systemd[1]: Reached target graphical.target - Graphical Interface.
2024-12-24T17:21:35.216090+00:00 live systemd[1111]: wireplumber.service: Scheduled restart job, restart counter is at 1.
2024-12-24T17:21:35.216212+00:00 live systemd[1111]: Stopped wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:35.236383+00:00 live systemd[1]: Starting systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP...
2024-12-24T17:21:35.236551+00:00 live systemd[1111]: Started wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:35.239926+00:00 live systemd[1]: systemd-rfkill.service: Deactivated successfully.
2024-12-24T17:21:35.248734+00:00 live systemd[1]: systemd-update-utmp-runlevel.service: Deactivated successfully.
2024-12-24T17:21:35.248844+00:00 live systemd[1]: Finished systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP.
2024-12-24T17:21:35.248906+00:00 live systemd[1]: Startup finished in 8.036s (kernel) + 8.235s (userspace) = 16.271s.
2024-12-24T17:21:35.251742+00:00 live wireplumber[1174]: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:35.252453+00:00 live wireplumber[1174]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:35.252740+00:00 live wireplumber[1174]: could not set nice-level to -11: No such file or directory
2024-12-24T17:21:35.252835+00:00 live wireplumber[1174]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:35.254608+00:00 live wireplumber[1174]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:35.269266+00:00 live wireplumber[1174]: Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY
2024-12-24T17:21:35.269764+00:00 live wireplumber[1174]: 0x55ec0970f6f0: leaked proxy 0x55ec097b54f0 id:3
2024-12-24T17:21:35.269871+00:00 live wireplumber[1174]: disconnected from pipewire
2024-12-24T17:21:35.272846+00:00 live systemd[1111]: wireplumber.service: Main process exited, code=exited, status=70/SOFTWARE
2024-12-24T17:21:35.273078+00:00 live systemd[1111]: wireplumber.service: Failed with result 'exit-code'.
2024-12-24T17:21:35.624003+00:00 live systemd[1111]: wireplumber.service: Scheduled restart job, restart counter is at 2.
2024-12-24T17:21:35.624118+00:00 live systemd[1111]: Stopped wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:35.645035+00:00 live systemd[1111]: Started wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:35.657840+00:00 live wireplumber[1179]: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:35.658558+00:00 live wireplumber[1179]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:35.658653+00:00 live wireplumber[1179]: could not set nice-level to -11: No such file or directory
2024-12-24T17:21:35.658785+00:00 live wireplumber[1179]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:35.660539+00:00 live wireplumber[1179]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:35.676555+00:00 live wireplumber[1179]: Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY
2024-12-24T17:21:35.676871+00:00 live wireplumber[1179]: 0x556f15865dd0: leaked proxy 0x556f1590c900 id:3
2024-12-24T17:21:35.676991+00:00 live wireplumber[1179]: disconnected from pipewire
2024-12-24T17:21:35.679948+00:00 live systemd[1111]: wireplumber.service: Main process exited, code=exited, status=70/SOFTWARE
2024-12-24T17:21:35.680232+00:00 live systemd[1111]: wireplumber.service: Failed with result 'exit-code'.
2024-12-24T17:21:36.030852+00:00 live systemd[1111]: wireplumber.service: Scheduled restart job, restart counter is at 3.
2024-12-24T17:21:36.030988+00:00 live systemd[1111]: Stopped wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:36.049158+00:00 live systemd[1111]: Started wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:36.065823+00:00 live wireplumber[1187]: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:36.066573+00:00 live wireplumber[1187]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:36.066681+00:00 live wireplumber[1187]: could not set nice-level to -11: No such file or directory
2024-12-24T17:21:36.066837+00:00 live wireplumber[1187]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:36.069081+00:00 live wireplumber[1187]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:36.081591+00:00 live wireplumber[1187]: Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY
2024-12-24T17:21:36.081878+00:00 live wireplumber[1187]: 0x55ae239d59f0: leaked proxy 0x55ae23a3d490 id:3
2024-12-24T17:21:36.081975+00:00 live wireplumber[1187]: disconnected from pipewire
2024-12-24T17:21:36.083770+00:00 live systemd[1111]: wireplumber.service: Main process exited, code=exited, status=70/SOFTWARE
2024-12-24T17:21:36.083971+00:00 live systemd[1111]: wireplumber.service: Failed with result 'exit-code'.
2024-12-24T17:21:36.434580+00:00 live systemd[1111]: wireplumber.service: Scheduled restart job, restart counter is at 4.
2024-12-24T17:21:36.434706+00:00 live systemd[1111]: Stopped wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:36.453086+00:00 live systemd[1111]: Started wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:36.469272+00:00 live wireplumber[1196]: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
2024-12-24T17:21:36.469823+00:00 live wireplumber[1196]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:36.469926+00:00 live wireplumber[1196]: could not set nice-level to -11: No such file or directory
2024-12-24T17:21:36.470075+00:00 live wireplumber[1196]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:36.472398+00:00 live wireplumber[1196]: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
2024-12-24T17:21:36.486031+00:00 live wireplumber[1196]: Error acquiring bus address: Cannot autolaunch D-Bus without X11 $DISPLAY
2024-12-24T17:21:36.486374+00:00 live wireplumber[1196]: 0x55a202c72c00: leaked proxy 0x55a202cebbb0 id:4
2024-12-24T17:21:36.486478+00:00 live wireplumber[1196]: disconnected from pipewire
2024-12-24T17:21:36.487816+00:00 live systemd[1111]: wireplumber.service: Main process exited, code=exited, status=70/SOFTWARE
2024-12-24T17:21:36.488069+00:00 live systemd[1111]: wireplumber.service: Failed with result 'exit-code'.
2024-12-24T17:21:36.839315+00:00 live systemd[1111]: wireplumber.service: Scheduled restart job, restart counter is at 5.
2024-12-24T17:21:36.839502+00:00 live systemd[1111]: Stopped wireplumber.service - Multimedia Service Session Manager.
2024-12-24T17:21:36.839638+00:00 live systemd[1111]: wireplumber.service: Start request repeated too quickly.
2024-12-24T17:21:36.839765+00:00 live systemd[1111]: wireplumber.service: Failed with result 'exit-code'.
2024-12-24T17:21:36.839888+00:00 live systemd[1111]: Failed to start wireplumber.service - Multimedia Service Session Manager. 

Running journalctl gives more or less the same thing (see attached).

This is the contents of /etc/systemd/user/pipewire.service.wants/wireplumber.service.

Code: Select all

[Unit]
Description=Multimedia Service Session Manager
After=pipewire.service
BindsTo=pipewire.service
Conflicts=pipewire-media-session.service

[Service]
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
RestrictNamespaces=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
Type=simple
ExecStart=/usr/bin/wireplumber
Restart=on-failure
Slice=session.slice
Environment=GIO_USE_VFS=local

[Install]
WantedBy=pipewire.service

I don't think it matters, but I got this in the terminal when I ran wireplumber:

Code: Select all

 root@live:~# wireplumber
M 11:24:09.604648          wp-device ../lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 11:24:09.604709   script/libcamera libcamera.lua:168:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
M 11:24:09.947960         spa.bluez5 ../spa/plugins/bluez5/bluez5-dbus.c:3943:object_manager_handler: Trying to use legacy bluez5 API for LE Audio - only A2DP will be supported. Please upgrade bluez5.
W 11:24:09.983889 m-portal-permissio ../modules/module-portal-permissionstore.c:63:wp_portal_permissionstore_plugin_lookup: <WpPortalPermissionStorePlugin:0x561584ac2310> Failed to call Lookup: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files
Attachments
journalctlForWireplumer.txt.gz
remove gz and it's a text file
(4.08 KiB) Downloaded 5 times
User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

Hi Dan, perhaps try copying the wireplumber service files from /usr/lib/systemd/user/ to /root/.config/systemd/user/ (reboot may be required).

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

That didn't work.

Maybe wireplumber just needs to load later??

edit: installed dbus-user-session. That fixed it. It created a dbus session running as root and wireplumber then started up like it should. Bluetooth works!!!!!!!!!!!! :thumbup:

dancytron
Posts: 739
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 534 times
Been thanked: 222 times

Re: Bookworm Build script

Post by dancytron »

Is there a reason that openbox and adwaita-icon-theme are pinned other than size?

Dan

User avatar
fredx181
Posts: 3197
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 393 times
Been thanked: 1377 times
Contact:

Re: Bookworm Build script

Post by fredx181 »

dancytron wrote: Sun Jan 12, 2025 5:46 pm

Is there a reason that openbox and adwaita-icon-theme are pinned other than size?

Dan

The openbox package because it's special compile from custom repo that supports rounded corners for windows, which I liked at that time, that's all.
The official adwaita-icon-theme is rather big and is dependency of some main packages, so small version pinned (perhaps better to un-pin that as size isn't that important anymore compared to the old days) .

gumanzoy
Posts: 106
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 21 times
Been thanked: 20 times
Contact:

Re: Bookworm Build script

Post by gumanzoy »

fredx181 wrote: Sun Jan 12, 2025 9:00 pm

The official adwaita-icon-theme is rather big and is dependency of some main packages, so small version pinned (perhaps better to un-pin that as size isn't that important anymore compared to the old days) .

Now in sid and trixie split in 2 packages:
adwaita-icon-theme (47.0-2) - 452,3Kb
adwaita-icon-theme-legacy (46.2-2) - 2 053,6Kb

legacy package includes only /*x*/legacy/*.png folders. And nothing in other categories.

My LiveUSB DogLinux Bookworm build for hardware testing (nvidia-drivers, GPUTest)

Post Reply

Return to “DebianDogs”