Bookworm Build script

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

Moderator: fredx181

gumanzoy
Posts: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 724
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 524 times
Been thanked: 218 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 724
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 524 times
Been thanked: 218 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 724
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 524 times
Been thanked: 218 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: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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 386 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: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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: 100
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 19 times
Been thanked: 19 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 192 times

Fixed:

xfce-applications-fixed.png
xfce-applications-fixed.png (105.97 KiB) Viewed 192 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: 3154
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 383 times
Been thanked: 1346 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.

Post Reply

Return to “DebianDogs”