Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
rijsmier
Posts: 8
Joined: Thu 12 Oct 2017, 09:01
Location: Harties, South Africa

#976 Post by rijsmier »

In my previous post I meant to use scroll wheel from one desktop to another.

How do I edit a post?

phat7
Posts: 179
Joined: Fri 05 Jun 2015, 08:54

#977 Post by phat7 »

rijsmier wrote:How do I edit a post?
After log in your post will have an Edit button in top right corner.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#978 Post by fredx181 »

rijsmier wrote:to use scroll wheel from one desktop to another.


Yes, that doesn't work (with openbox/xfce combination), but can be fixed (not easy though), described here:
http://openbox.org/wiki/Help:XFCE/Openbox
Also, if you notice scrolling the wheel to change between virtual desktops skips one or another virtual desktop (and this bothers you and would like to fix it just for mental sake), open your ~/.config/openbox/rc.xml file and move the mouse binds with actions "DesktopPrevious" and "DesktopNext" from the context "Desktop" to the context "Root" (you may need to define the Root context).
So, in ~/.config/openbox/rc.xml from line with <context name="Desktop"> till the end of <context name="Root"> (line 732 to 810) becomes:
(all sections containing "GoToDesktop" moved to context named "Root")

Code: Select all

    <context name="Desktop">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
    <context name="Root">
      <!-- Menus -->
      <mousebind button="Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="ShowMenu">
          <menu>client-list-combined-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="ShowMenu">
          <menu>root-menu</menu>
        </action>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="ShowMenu">
          <menu>desktop-app-menu-lxde</menu>
        </action>
      </mousebind>
    </context>
    <context name="MoveResize">
      <mousebind button="Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
    </context>
EDIT: For info, you can also use keyboard shortcut Ctrl+Alt+left or Ctrl+Alt+right for to switch to next or previous desktop (if these shortcuts are set, not sure if it is on your install)

Instructions for to install virtualbox, here:
https://wiki.debian.org/VirtualBox#Debi ... Stretch.22
In synaptic I can't change the size of the panels.
Yes, well, it's possible, but hard to do, it's because of the cursor theme not playing well with gtk3 (probably using "aero" now ?)
Can be fixed by using other cursor theme, e.g. dmz-cursor-theme;

Code: Select all

apt-get install dmz-cursor-theme
And set it to that in "Customize look and feel"

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#979 Post by rcrsn51 »

Here is an automated method for converting the Palemoon browser into a squashfs module.

Unpack the attachment below. It is NOT a fake .gz file!
It contains a script and a How-To file. Read the file first.

Important: Run these scripts in a CleanMode setup so they don't conflict with any currently installed versions.

And here are the matching scripts for OpenOffice and LibreOffice. For the Kingsoft WPS Office suite, read here.

-------------------------
Attachments
make-palemoon-squash-3.tar.gz
Updated 2020-02-27
(1.14 KiB) Downloaded 59 times
make-libreoffice-squash-2.tar.gz
Updated 2019-10-1
Can handle optional language packs
(1.08 KiB) Downloaded 94 times
make-openoffice-squash.tar.gz
Updated 2019-01-14
Bugfix that no one reported for a year
(925 Bytes) Downloaded 281 times
Last edited by rcrsn51 on Thu 27 Feb 2020, 21:13, edited 17 times in total.

rijsmier
Posts: 8
Joined: Thu 12 Oct 2017, 09:01
Location: Harties, South Africa

#980 Post by rijsmier »

Fred

Thank you for all the information. I got used to doing things my way, but it is no sweat to learn doing it differently. synaptic is just easy to do a quick search. apt-get is still my preferred way to install programs.

Now my serious question: Can I use Debian 9 (Stretch) as my main Linux program? Are you going to keep developing it for the foreseeable future? I really like openbox and the way you set it up. I have looked at Barry Kauler's new directions, but he seems to get bored and then he goes off in another direction. Also he is not using Debian, which I prefer.

Reinier

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#981 Post by fredx181 »

rcrsn51 wrote:Here is an automated method for converting the Palemoon browser into a squashfs module.

Unpack the attachment below. It is NOT a fake .gz file!

It contains a script and a howto file. Read the file first.

[Update] Here are the matching scripts for OpenOffice and LibreOffice.
Nice ! added these also to NoRepo section:
https://fredx181.github.io/StretchDog/NoRepo/

@rijsmier
Now my serious question: Can I use Debian 9 (Stretch) as my main Linux program? Are you going to keep developing it for the foreseeable future? I really like openbox and the way you set it up. I have looked at Barry Kauler's new directions, but he seems to get bored and then he goes off in another direction. Also he is not using Debian, which I prefer.
One can never know, but I don't have plans to stop doing what I do now in the the near future.

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#982 Post by rcrsn51 »

I have some apps packaged as squashfs modules that I only use occasionally, and I wanted a fast way to load them on-demand.

So I collected them into a common "squash repo" folder and made the following applet. It is just a front-end for the loadmodule command.

The applet has a system tray launcher. It runs from /root/Startup and will appear on the next reboot.

Update: V1.4 changes the function of the .group object. Previously, it was a text file that contained a list of module names. Now it is a subfolder of the repo that contains the actual modules in the group.

For example, a subfolder named Useful.group could contain a set of modules that you want to load together with one click.

Note: Some modules want to run 'update-mime-database /usr/share/mime' whenever they are loaded. This causes a long pause and disk thrashing.

To stop it, comment out line 124 of /usr/local/bin/loadmodule.
If needed, you can run the command manually with the Update Mime checkbox.

Remove the fake .gz extension.

---------------------
Attachments
my-squash-loader_1.4_i386.deb.gz
Updated 2019-01-15
New .group function
(6.68 KiB) Downloaded 139 times
my-squash-loader_1.4_amd64.deb.gz
Updated 2019-01-15
New .group function
(6.65 KiB) Downloaded 155 times
snappie.png
(16.5 KiB) Downloaded 1160 times
Last edited by rcrsn51 on Tue 15 Jan 2019, 12:08, edited 26 times in total.

rijsmier
Posts: 8
Joined: Thu 12 Oct 2017, 09:01
Location: Harties, South Africa

#983 Post by rijsmier »

@fred

Thank you - I'm converting!

Reinier

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#984 Post by step »

I've been trying to run mklive_stretch on Fatdog64 but it fails. Specifically, when the script prepares the chroot environment, it doesn't create mount points, so mount --bind fails. I ended up adding mkdir -p chroot/{proc,dev/pts,sys,tmp} to the script. However, that isn't enough. The call to chroot chroot /bin/bash -c chroot_in fails with "chroot: /bin/bash: command not found". Indeed chroot/bin is empty bar for a broken symlink to busybox. I can't find where mklive_stretch populates the chroot bin directory prior to chrooting. So I suppose bin is populated from some of the downloaded packages or .tar.gz files. But how/where/when? I gave up trying to make it work on my own, and came here to ask for advice.

P.S. I downloaded debootstrap from http://ftp.debian.org/debian/pool/main/ ... 93_all.deb.
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#985 Post by rcrsn51 »

Hi Fred:

The script /usr/local/bin/loadmodule has a bug.

Line 139 needs a full path. The 32bit version would be:

Code: Select all

/usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas
Bill

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#986 Post by fredx181 »

Hi step,

Tried on Fatdog 710 and the whole point is that the debootstrap process doesn't finish properly, by extracting and configuring the deb packages, that explains why /bin/bash not found in chroot (and that the directories proc sys dev are not created automatically in the chroot).

To make it work:
Besides installing debootstrap, install in Fatdog with gslapt: perl and dpkg
Optional: To create ISO, install xorriso from gslapt and isolinux package (isolinux not available from gslapt)
Debian package: http://ftp.de.debian.org/debian/pool/ma ... u1_all.deb
(untested on Fatdog)
Without xorriso and isolinux, ISO creation will fail, but the required files for a frugal install will be created. (in stretch/isodata/live)

@rcrsn51
The script /usr/local/bin/loadmodule has a bug.

Line 139 needs a full path. The 32bit version would be:

Code:
/usr/lib/i386-linux-gnu/glib-2.0/glib-compile-schemas /usr/share/glib-2.0/schemas
Thanks, fixed now in newer version (1.0.4) of package "sfsload", install with synaptic or apt-get.
(separate package for i386 and amd64 now)

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#987 Post by rcrsn51 »

Hi Fred:

I have been looking at evince in your repo. The 32bit version needs libpoppler-glib8. It doesn't show as a dependency, but won't work without it.

I have patched it, bumped up the version number and posted the new package...

[Edit] Now in Fred's repo.

Bill
Last edited by rcrsn51 on Thu 08 Feb 2018, 16:54, edited 1 time in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#988 Post by fredx181 »

rcrsn51 wrote:Hi Fred:

I have been looking at evince in your repo. The 32bit version needs libpoppler-glib8. It doesn't show as a dependency, but won't work without it.

I have patched it, bumped up the version number and posted the new package here.

Bill
Ah, thanks again, added to 32bit repo now.

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#989 Post by rcrsn51 »

And here is the 64bit version.

[Edit] Now in Fred's repo.

It also needs a postinst script with symlinks to newer libs.

What are you using for a PDF viewer?
Last edited by rcrsn51 on Thu 08 Feb 2018, 16:55, edited 1 time in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#990 Post by fredx181 »

rcrsn51 wrote:And here is the 64bit version.

It also needs a postinst script with symlinks to newer libs.

What are you using for a PDF viewer?
OK, nice, will add to 64bit repo later today.
I use epdfview, but I'm really not viewing pdf's much, some types won't open in epdfview, then I try to open with firefox, probably evince is better (?)

Fred

step
Posts: 1349
Joined: Fri 04 May 2012, 11:20

#991 Post by step »

Thank you, Fred, it's working now. I didn't need to install perl because it's included in the devx, which I keep loaded. Also, dpkg is linked to busybox by default. However, I followed your advice and installed the full dpkg from the repo. I added a few lines for Fatdog after the opening comments:

Code: Select all

if [ -e /etc/fatdog-version ]; then
slapt-get -i dpkg xorriso &&
  installpkg debootstrap-1.0.93-all-DEB.txz isolinux-6.03+dfsg-14.1+deb9u1-all-DEB.txz ||
  exit 1
fi
export TERM=xterm # benefits all Puppies

The two *-DEB.txz files can be obtained by downloading the .deb packages that you and I linked above, and converting them with the Fatdog64 right-click menu entry.

Setting TERM avoids a fatal error in deebootstrap when the current TERM value is not in the database of known terminal types.

edit: I assembled quite a few Dogs quickly and easily. Thank you for this Factory!
[url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Fatdog64-810[/url]|[url=http://goo.gl/hqZtiB]+Packages[/url]|[url=http://goo.gl/6dbEzT]Kodi[/url]|[url=http://goo.gl/JQC4Vz]gtkmenuplus[/url]

Lassar
Posts: 235
Joined: Tue 08 Jul 2014, 20:01

#992 Post by Lassar »

This debian stretch looks like it might be useful to
create a very minimal os.

I have played around with dcore, and it seems that
xorg is very bulkly and installs a lot of dependencies.

What is the best way to install a minimal xserver?

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#993 Post by dancytron »

Lassar wrote:This debian stretch looks like it might be useful to
create a very minimal os.

I have played around with dcore, and it seems that
xorg is very bulkly and installs a lot of dependencies.

What is the best way to install a minimal xserver?
Probably start out with one of the ./mklive-stretch -gui and choose either the openbox (1st choice) or jwm (3nd choice). Those are both pretty minimal, but you can look at the packages and probably delete a few. When you run it, it will generate a build-setup.conf file you can modify and run it again.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#994 Post by rcrsn51 »

My-squash-loader v1.2 posted above.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#995 Post by rcrsn51 »

Here is an update to PeasyScan. See the discussion here about using compression with PDF scans.
Attachments
peasyscan_2.13_i386.deb.gz
(49.03 KiB) Downloaded 155 times
peasyscan_2.13_amd64.deb.gz
(50.03 KiB) Downloaded 149 times

Post Reply