PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

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


Moderator: fredx181

Clarity
Posts: 4068
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1711 times
Been thanked: 554 times

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by Clarity »

@wiak has a solution already for KLs which is similar, yet more expansive than WoofCE's SAVESPEC file approach.
SAVESPEC file is this for me (self explanatory):

Code: Select all

# This file, when present, will be used by WoofCE PUPs at boot time.
# The file sets the SESSIONs directional for the booting distro.

# Indicate the label or UUID of the partition containing Sessions
SS_ID='Persistence'
# Indicate the folder-name containing Sessions
SS_DIR='/Sessions'
# Indicate the media type device containing Sessions
SS_MEDIA='atahd'

His file has more capability yet intends to serve the same purpose to identify where Sessions are/will-be located.

@fatdog has no such approach where a file present at boot time will direct its sessions-management. Today, users MUST change, at boot menu time, using its savefile=... parm to direct session identification. This parm approach is equivalent to what PUPs do, what DOGs do. Yet it does not, currently, offer a similar file-in-the-boot location for directing session management.

All of this surrounds the Session Management for Persistence in forum distros.

My efforts are CENTERED!!! THhis means that I have a partition, with a folder where ALL forum distros Persistence is kept. For all of the forum distros, a backup of this single folder (or partition) preserves the users distro use should something go wrong and needs restoration. On EVERY PC that I have touched for myself, students, people wanting to step into a forum distro, this arrangement is created at EVERY occasion, ONCE. And forever-more all sessions are directed to that partition-folder. Not only good-housekeeping, but all too simple for any use/user. My Persistence folder, for example,on this running PC:

Sessions on Persistence.jpg
Sessions on Persistence.jpg (13.36 KiB) Viewed 508 times

So from a user perspective of persistence in this forum, WE see:

  • a single "check-root folder ONLY(???)' approach for Persistence

  • Menus useful for Persistence

  • Parms useful for Persistence

  • Files useful for Persistence

All intending to make the user boot experience useful and meaningful for Persistence.

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

Default settings for GTK3 FileChooser Dialog

How to set Chrome download popup window size? <SOLVED>

Solved in DogLinux now.

fredx181 wrote: Fri Nov 08, 2024 9:29 pm

I thought to simplify things (you seem to make it more complicated than it is IMO ;) ), by just adding dconf/user to home/puppy/.config in dog-boot-bookworm-20221013 https://debiandog.github.io/MakeLive/do ... 013.tar.gz
(the dconf/user that was created when I logged in as puppy, it contains apparently the geometry setting of the popup window that I adjusted to much smaller)

But I'm looking for a better solution.

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

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.

And I found this:

  1. Edit this file with default settings /usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml

  2. At build time replace original file with modified version after all packages installed.
    For DogLinix build system can be added to zz_xfce_config.squashfs and other zz_*_config.squashfs

  3. And then needs to re-create /usr/share/glib-2.0/schemas/gschemas.compiled by run command (depending on arch)
    /usr/lib/x86_64-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas/

I already commit it Commit 377bb43
/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml
Enable Show hidden files
Enable Show folders first
Set default window size 800x600
Set Startup mode - current working directory

Code: Select all

--- chroot/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml	2023-05-22 07:22:08.000000000 +0500
+++ xfceconf/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml	2025-01-23 23:30:17.559019638 +0500
@@ -69,14 +69,14 @@
       </description>
     </key>
     <key name='show-hidden' type='b'>
-      <default>false</default>
+      <default>true</default>
       <summary>Show hidden files</summary>
       <description>
 	Controls whether the file chooser shows hidden files or not.
       </description>
     </key>
     <key type="b" name="sort-directories-first">
-      <default>false</default>
+      <default>true</default>
       <summary>Show folders first</summary>
       <description>
         If set to true, then folders are shown before files in the list.
@@ -118,7 +118,7 @@
       </description>
     </key>
     <key name='window-position' type='(ii)'>
-      <default>(-1, -1)</default>
+      <default>(0, 0)</default>
       <summary>Window position</summary>
       <description>
 	The (x, y) coordinates of the upper-left corner of the GtkFileChooserDialog's
@@ -126,14 +126,14 @@
       </description>
     </key>
     <key name='window-size' type='(ii)'>
-      <default>(-1, -1)</default>
+      <default>(800, 600)</default>
       <summary>Window size</summary>
       <description>
 	The size (width, height) of the GtkFileChooserDialog's window, in pixels.
       </description>
     </key>
     <key name='startup-mode' enum='org.gtk.Settings.FileChooser.StartupMode'>
-      <default>'recent'</default>
+      <default>'cwd'</default>
       <summary>Startup mode</summary>
       <description>
 	Either "recent" or "cwd"; controls whether the file chooser

Add code to build script

Code: Select all

# After replacing org.gtk.Settings.FileChooser.gschema.xml with modified version
# Need update /usr/share/glib-2.0/schemas/gschemas.compiled file
if [ "$ARCH" = "amd64" ]; then
/usr/lib/x86_64-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas/
elif [ "$ARCH" = "i386" ]; then
/usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas/
fi

Test and it is working. For first run .config/dconf/user file created with my settings.

Image

If user have .config/dconf/user it will keep previous user settings. To use new settings need to remove it and restart.

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

I remove filemnt-thunar package from bookworm-xfce.conf commit 966de81
Replace it with pfilemnt script

Combine changes from EasyOS filemnt version, and DogLinux filemnt-thunar package version.

Change losetup-FULL to losetup
Replace rox with xdg-open
Disable encrypted save-files (maybe temporary, I'm not sure now, but maybe remove cryptsetup and cryptsetup-dd)
Use notify-send, remove gtkdialog-splash, pupdialog, pupmessage

Screenshot_pfilemnt _notify-send.png
Screenshot_pfilemnt _notify-send.png (64.88 KiB) Viewed 445 times

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Clarity
Posts: 4068
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1711 times
Been thanked: 554 times

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by Clarity »

Hello @gumanzoy Very nice work ongoing. I saw this:

... thinking about switch to fresh gtk3 ...

Curious: Would it be in your best interest going forward to move all to GTK4 to avoid that work in the future with future releases. Once, now, and forget about it over the next 4 years.

Just a thought for consideration. If you feel it best, I'm sure it will surface.

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

Clarity wrote: Fri Jan 24, 2025 1:43 am

Curious: Would it be in your best interest going forward to move all to GTK4 to avoid that work in the future with future releases. Once, now, and forget about it over the next 4 years.

Just a thought for consideration. If you feel it best, I'm sure it will surface.

No. Too early for gtk4. I try to avoid it for now.
Have some gtk2 software still used.

For example: i think nobody will port nvidia-settings-legacy-340xx from gtk2 to gtk3 or gtk4 :D

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

Re-write /usr/local/bin/freechk script

@fredx181

Hi

There is new version of freechk script.
If you interesting.

Commit 97597fb
Code on GitHub /usr/local/bin/freechk

Deprecated gtkdialog-splash replaced by notify-send (libnotify-bin package required)
When running out of space - shows permanent 'Warning:' notification by notify-send
Changed FREEMB df command params. Add check for overlay or aufs used on /
Add check free RAM left

Screenshot_lowram.png
Screenshot_lowram.png (31.89 KiB) Viewed 382 times
Screenshot_enough_ram.png
Screenshot_enough_ram.png (24.74 KiB) Viewed 382 times

Image

Screenshot_enough_space_ram.png
Screenshot_enough_space_ram.png (42.8 KiB) Viewed 382 times

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

New instdeb script to install local deb(s) with dependencies from filemanager

Replacement for fixdepinstall package
Removed from bookworm-xfce.conf commit 81ade25

Code on GitHub /usr/local/bin/instdeb

Uses apt install instead of dpkg -i Don't need to run apt-get install -f Much simpler code.

Can install local packages missing in repos. And download dependencies from repos. Same as old instdeb-cli script.
For test - success install in bookworm meld_3.22.3-1_all.deb downloaded from sid repo.

Shows error when have unmet dependencies.
Shows error when have unmet dependencies.
Screenshot_instdeb_meld1.webp (9.73 KiB) Viewed 321 times

Shows error when have unmet dependencies. (if not run apt update first.)

apt ask confirmation before download and install dependencies packages.
apt ask confirmation before download and install dependencies packages.
Screenshot_instdeb_meld2.webp (11.62 KiB) Viewed 321 times

apt ask confirmation before download and install dependencies packages.

Shows green color &quot;Installed.&quot; message when success.
Shows green color "Installed." message when success.
Screenshot_instdeb_meld3.webp (11.57 KiB) Viewed 321 times

Shows green color "Installed." message when success.

Image
Can install local packages offline. Not need to run apt update

Image
Shows error when dependencies is not installable.

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

Rebuild xfconf_4.18.3 with xfconf-gsettings-backend enabled
Uploaded to https://github.com/PocketHandyBox/phb-deb

Package xfconf-gsettings-backend added to bookworm-xfce.conf

dconf-gsettings-backend and dconf-service packages no longer installed.

gumanzoy wrote: Thu Jan 23, 2025 8:48 pm

For first run .config/dconf/user file created with my settings.
If user have .config/dconf/user it will keep previous user settings. To use new settings need to remove it and restart.

Binary file ~/.config/dconf/user is no longer created.
Settings stored in ~/.config/xfce4/xfconf/xfce-perchannel-xml/gsettings.xml

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

gumanzoy
Posts: 128
Joined: Mon May 03, 2021 3:38 pm
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post by gumanzoy »

@fredx181 @Clarity

Hi

v0002 Pre release version .iso:
github.com/PocketHandyBox/pocket-handybox/releases

md5sum:
e90a43dba1c430be38d1f0a9b8a8386b phb_test_x64_12_25_0002_vtgrub2.iso

Includes all previous changes.

Plus custom extgrub.cfg support

gumanzoy wrote: Sun Jan 19, 2025 3:08 am

I can add to boot/grub/grub.cfg in .iso some code to search (on all connected drives) additional grub.cfg and load menu items from it.
Search for live/extgrub.cfg and if it is not found - for phb/extgrub.cfg

For example. To use changes=/phb or changes=EXIT:/phb
Copy extgrub.cfg.example from root of .iso file to some ext4 partition to phb folder and remove .example extension.

And, of course extgrub.cfg is customizable. Edit it as needed.

Screenshot_extgrub.cfg_Entry.webp
Screenshot_extgrub.cfg_Entry.webp (2.3 KiB) Viewed 120 times
Screenshot_extgrub.cfg_changes.webp
Screenshot_extgrub.cfg_changes.webp (2.38 KiB) Viewed 120 times
Screenshot_phb_changes.webp
Screenshot_phb_changes.webp (15.74 KiB) Viewed 120 times

PocketHandyBox (Debian 12 "Bookworm" with NVIDIA drivers OOTB)

Post Reply

Return to “DebianDogs”