Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1021 Post by fredx181 »

rcrsn51 wrote:Hi Fred (or anyone):

Can you explain the priority order in the layered filesystem? Here's what happened to me:

I was messing around with my-squash-loader and using symlinks into my squash repo.

At some point, one module quit working. The loadmodule command reported that it had loaded and it should have appeared in /opt, but it wasn't there.

I eventually tracked down a whiteout file in /mnt/saved/opt.

Does that mean that the content of "Changes" has top priority?

I still can't figure out how I would have deleted a folder that was inside a module.

Bill
Hi Bill, I'm not sure if I understand completely (a bit late in the evening here now), can you write more in detail with example, so I'd be able to reproduce maybe ?
Anyway, similar ? (about priority) question by trister here (and further replies), maybe helps:
http://murga-linux.com/puppy/viewtopic. ... 935#928935

Fred

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

#1022 Post by rcrsn51 »

It looked to me like a whiteout file in the changes folder was covering stuff in a module that was subsequently loaded by loadmodules, making it invisible.

That seems to be the opposite of what trister was experiencing.

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

#1023 Post by dancytron »

I've been under the impression (where I got it I am not sure), that the load squashfs program loads between the changes folder and the squashfs files loaded at boot time. So deleting something in the changes file would make it appear to be deleted.

So, like Fatdog http://distro.ibiblio.org/fatdog/web/fa ... ystem.html

01-filesystem.squashfs
02-another.squashfs
manually-loaded.squashfs
changes folder
ram layer

Unlike Puppy, which loads sfs files as the bottom layer, like:

manually-loaded.squashfs
01-filesystem.squashfs
changes folder
ram layer

I am also under the vague impression that the "safe mode" loads the squashfs like Puppy does, underneath.

edit: added RAM layer for clarity.

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

#1024 Post by rcrsn51 »

Thanks. That's what it looks like to me.

The module in question was loading openoffice. I must have accidentally deleted /opt/openoffice while it was loaded, thereby putting a whiteout file on top of it in the changes folder. This permanently hid openoffice when the module was loaded again.

[Edit] I know what happened. During the development of this module, I loop-mounted it (instead of loading) and copied the contents out of the mount point to /opt.

After testing, I deleted /opt/openoffice. That created the whiteout file that blocked subsequent loading.
Last edited by rcrsn51 on Fri 09 Feb 2018, 14:09, edited 1 time in total.

stemsee

#1025 Post by stemsee »

Hi Fred

For the tray tooltip maybe we could work out a way of formatting into a vertical list. As you realise the text cannot have '\n' carraige returns only spaces. What needs doing is to assess the list and find the longest name, count the characters and then pad out the shorter named items in the list with spaces.

What is no-overwrite mode? Incidentally loading sfs files doesn't work on fatdog64-720, I will try to adapt it.

stemsee

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

#1026 Post by fredx181 »

Updated package "sfsload" (containing 'loadmodule' script) to v1.0.5.
Added check if module is already mounted in some other way, if it is, previously said SUCCESS.... but in reality loading had failed.
Now it gives message that the module should be unmounted first and will not attempt to load it.
Upgrade sfsload with Synaptic or apt-get.
---------------------------------------
For info: From some more testing manually loading modules I found that there's difference when using EXIT: boot parameter or not.
Only difference for overwrite files (or not) in changes, anyway here's overview:

- When using changes=/.... boot parameter (no EXIT:):
Manual loading module will overwrite files in "lower in alphanumerical order" modules.
Manual loading module will NOT overwrite files in changes.
Manual loading module "safe mode" (no-overwrite) will NOT overwrite "lower in alphanumerical order" modules loaded and NOT overwrite files in changes.

- When using changes=EXIT:/.... boot parameter:
Manual loading module will overwrite files in "lower in alphanumerical order" modules.
Manual loading module will overwrite files in changes.
Manual loading module "safe mode" (no-overwrite) will NOT overwrite files in "lower in alphanumerical order" modules loaded and NOT overwrite files in changes.

@stemsee
For the tray tooltip maybe we could work out a way of formatting into a vertical list. As you realise the text cannot have '\n' carraige returns only spaces. What needs doing is to assess the list and find the longest name, count the characters and then pad out the shorter named items in the list with spaces.

What is no-overwrite mode? Incidentally loading sfs files doesn't work on fatdog64-720, I will try to adapt it.
Yes, tried a lot to get vertical tooltip list, finally settled for the space separated list, seems complicated your possible solution.
Good luck making similar work in Fatdog, but note that this is very much specific for DD only, and depends on included in DD "loadmodule" script.

P.S. Updated yad_squashloader (same fix as 'loadmodule' above) see EDIT3 here:
http://murga-linux.com/puppy/viewtopic. ... 262#982262

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

gnome network manager

#1027 Post by zagreb999 »

HI FRED,
CAN YOU, PLEASE,
CREATE gnome network manager
SQUASH FOR DD'S TO BE
ABLE TO USE MOBILE
BROADBAND.
WE ARE NOT always NEAR
HOTSPOT.
(I CAN NOT DO IT)

THANK YOU.

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

Re: gnome network manager

#1028 Post by fredx181 »

zagreb999 wrote:HI FRED,
CAN YOU, PLEASE,
CREATE gnome network manager
SQUASH FOR DD'S TO BE
ABLE TO USE MOBILE
BROADBAND.
WE ARE NOT always NEAR
HOTSPOT.
(I CAN NOT DO IT)

THANK YOU.
Try installing gnome network manager from Synaptic or apt-get.
(but maybe it doesn't work properly running as root, long time ago since I tested)

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

#1029 Post by zagreb999 »

FRED, I DID IT BUT IT DOES NOT
WORK...

I THINK THAT SQUASH WOULD BE
USEFUL FOR ALL DD COMMUNITY...

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

#1030 Post by rcrsn51 »

@zagreb999:

Have you installed usb-modeswitch?

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

#1031 Post by fredx181 »

zagreb999 wrote:FRED, I DID IT BUT IT DOES NOT
WORK...
What does not work ?
Anyway I just tried and works fine for me, I did:

Code: Select all

apt-get install network-manager-gnome
ln -s /usr/bin/nm-applet /root/Startup/nm-applet # nm-applet will start (in system-tray) next time login or reboot
P.S. probably best to uninstall other network manager(s) before rebooting.
(could be that e.g. frisbee and network-manager-gnome conflict with each other)

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

GNOME-NETWORK

#1032 Post by zagreb999 »

FRED, PLEASE SEE TERMINAL:

----------------------------------------
root@jessie:~# apt-get install network-manager-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gstreamer0.10-alsa gstreamer0.10-plugins-base hsetroot libcdparanoia0
libelfg0 libfm-extra4 libgstreamer-plugins-base0.10-0 libgstreamer0.10-0
libical1a libjasper1 libjpeg8 libkeybinder0 libmenu-cache-bin libmenu-cache3
libvisual-0.4-0 wmctrl xfce-keyboard-shortcuts
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
console-setup console-setup-linux ifupdown init-system-helpers kbd
keyboard-configuration libbluetooth3 libfdisk1 libip4tc0 libjansson4
libmm-glib0 libmount1 libndp0 libnm0 libnma0 libpam-systemd libseccomp2
libselinux1 libsmartcols1 libsystemd0 libteamdctl0 libudev1 live-tools
network-manager ppp systemd systemd-shim sysvinit-utils udev util-linux
Suggested packages:
locales rdnssd debian-installer-launcher libteam-utils
network-manager-openconnect-gnome network-manager-openvpn-gnome
network-manager-vpnc-gnome network-manager-pptp-gnome systemd-ui
systemd-container
Recommended packages:
isc-dhcp-client | dhcp-client modemmanager dnsmasq-base crda isc-dhcp-client
iputils-arping notification-daemon gnome-keyring
mobile-broadband-provider-info
The following NEW packages will be installed:
libbluetooth3 libfdisk1 libip4tc0 libjansson4 libmm-glib0 libndp0 libnm0
libnma0 libseccomp2 libteamdctl0 network-manager network-manager-gnome
The following packages will be upgraded:
console-setup console-setup-linux ifupdown init-system-helpers kbd
keyboard-configuration libmount1 libpam-systemd libselinux1 libsmartcols1
libsystemd0 libudev1 live-tools ppp systemd systemd-shim sysvinit-utils udev
util-linux
19 upgraded, 12 newly installed, 0 to remove and 495 not upgraded.
Need to get 13.0 MB of archives.
After this operation, 21.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.
root@jessie:~#

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

#1033 Post by fredx181 »

zagreb999, try apt-get update first and see if you can install network-manager-gnome then.
If it still doesn't work, something is broken in your installation.
Btw, I see you are on jessie, you didn't mention that earlier, did you mix jessie and stretch repos maybe in sources.list ?. (if so, that would explain the problems).
495 not upgraded
That's a lot of upgradable packages for jessie, again I think something may be wrong with your setup.

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

#1034 Post by zagreb999 »

OK,FRED, I DID IT. GNOME NET. MANAGER WORKS.
YES, I AM IN jessie.

PLEASE, CAN YOU HELP ME:
AFTER INSTALLED VLC I RUN

sed -i 's/geteuid/getppid/' /usr/bin/vlc
AND VLC WORKS GREAT. BUT, AFTER
EVERY REBOOT I MUST AGAIN
PUT SCRIPT ABOVE.
I MAKE QUICK REMASTER.

THANK YOU.

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

#1035 Post by fredx181 »

zagreb999 wrote:AFTER INSTALLED VLC I RUN

sed -i 's/geteuid/getppid/' /usr/bin/vlc
...
BUT, AFTER
EVERY REBOOT I MUST AGAIN
PUT SCRIPT ABOVE.
No idea, sorry, it should be needed doing only once.

Fred

User avatar
rufwoof
Posts: 3690
Joined: Mon 24 Feb 2014, 17:47

#1036 Post by rufwoof »

zagreb999 wrote:sed -i 's/geteuid/getppid/' /usr/bin/vlc
AND VLC WORKS GREAT.
There's a very good reason vlc stop their program running as root as it has known weaknesses that can be exploited to run commands, and if being run as root those commands can do anything. You not only put your system at risk, but any other system in your local area network.

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

QUICKREMASTER-vlc

#1037 Post by zagreb999 »

STRETCHDOG AFTER QUICKREMASTER IS lousing
THE customisation OF SOME ELEMENTS:
ACTIVATION OF VLC PLAYER, SOME SHORTCUTS ON
DESKTOP, SOME ELEMENTS OF SYNAPTIC P.M. ...

THANKS

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

#1038 Post by fredx181 »

Hi zagreb999, I cannot reproduce that.
Many times I used quick-remaster (GUI) for Stretchdog and different builds of Stretch-live and didn't experience such problems.
Can you please provide more details of what exactly you're using (e.g.Stretchdog ISO ? , which version if quick-remaster you have installed, etc...).
Without details I can't help.

Fred

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

StretchDog32-openbox_xfce-jwm-2017-10-10.iso

#1039 Post by zagreb999 »

HI FRED, IT IS
StretchDog32-openbox_xfce-jwm-2017-10-10.iso

IT COULD BE MY COMPUTER.
IT IS VERY FAST: 8 GB RAM , HP PAVILION.
WITH XENIAL AND DEBIANDOG ALL IS
PERFECT ON THE SAME COMPUTER.
QUICKREMASTER IS FROM
THAT ISO.

THANKS.

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

#1040 Post by fredx181 »

Hi zagreb, sorry, I have no idea what is wrong at your end, is there something special about your install, you are not doing the remaster on NTFS ?
I tried quick-remastergui again with a fresh Stretchdog install using lz4 compression, and "Clear changes at reboot", after installing vlc (and did the "root" patch) and all is fine for me at reboot.
Maybe run quick-remastergui from terminal and look for errors:

Code: Select all

quick-remastergui
Or try starting fresh with Stretchdog.

Fred

Post Reply