BionicDog (updated: 2018-06-04)

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

#331 Post by fredx181 »

Hi RSH,

RemasterDog makes a remaster of the full system "/", including changes and loaded extra modules.

RemasterCow (COW=CopyOnWrite) makes a module from the save-folder or save-file.

I'd say use one or the other, not both, probably your 01-remaster.squashfs has already the changes included same as in 02-changes.squashfs
I suspect when using 01-remaster.squashfs the OS will run on this machine only?
Not sure what you mean. Why would it ?
When copying e.g. 02-changes.squashfs to the location of 01-filesystem.squashfs shall I remove everything from directory 'changes' before doing a reboot?
Yes, the 02-changes.squashfs has the changes already, so it would be waste of space if you keep the old changes.
I would not remove content of 'changes' while running the system, there's Menu entry "Clear changes at reboot", better use that.

There's more to say about this all, it's a bit late here, so keeping it short.
I admit it can be confusing how to use these options. (BTW, there's also "Quick-Remaster Gui" which is more convenient to use then RemasterDog)

P.S. I wouldn't recommend using RemasterCow (and loading e.g. 02-changes.squashfs) if your changes contain installed programs with apt-get or synaptic, specially if you kept the checkbox checked "Disable dpkg registration", then the package management doesn't know about these programs.
(for personal changes, added files, configuration etc... it's OK to use it)

Fred

ITSMERSH

#332 Post by ITSMERSH »

Thanks for the reply. :)
Not sure what you mean. Why would it ?
I just thought this remaster is equal to puppy remaster with full customized /etc? So, all devices and its settings are customized dependent on the machine doing the remaster?

Ok, as I do understand this so far, .squashfs is equal to .sfs (just a different extension?) and I can create .squashfs files manually, naming them 03-blabla..squashfs, 04-somemoreblabla..squashfs and so on, placing them to the location of 01-filesystem.squashfs and they will load at boot?

If so, which one would be on top layer?

Sorry for so many questions, but I really like this OS and there is a learning curve for me to achieve my goals, since there's many stuff different to puppy. It took me hours to manipulate the Openbox Menu to have a quick-start menu for some preferred applications.

Currently I got a complete Audio Studio running in BionicDog on a Samsung N150 Netbook, including QJackCtl, QTractor, QSynth (ZynAddSubFx is too resource hungry unfortunately), JACK Mixer, Hydrogen (not completely tested yet) and Audacity to record and mix down.

That's really pretty cool! 8) :D

Btw.: when the Samsung N150 turns out to be ready and able for the use as portable Audio Studio e.g. playing sequences to make me able to perform some live drumming to these sequences, I will do a Video about the ability of BionicDog as portable Audio Studio on a Samsung N150 Netbook.

So, thumbs pressed !?

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

#333 Post by dancytron »

If so, which one would be on top layer?
The *.squashfs files in the /casper (or /live in debian) are loaded in alpha numeric order.

So, 01-filesystem.squashfs would be loaded and then 99-vlic.squashfs would be loaded. In other words, 99-vlc.squashfs would be loaded on top of 01-filesystem.squashfs.

If you load them on-the-fly after you start, then it gives you the choice. If you choose "safe activate" it is loaded underneath, otherwise it is loaded on top.

Definitely give the "Quick Remaster" a try. It is very good.

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

#334 Post by rufwoof »

The *.squashfs files in the /casper (or /live in debian) are loaded in alpha numeric order.
You can specify which sfs files get loaded and in what order ... see the manual page for liveboot (extract below)
live/filesystem.module
This optional file (inside the live media) contains a list of
white-space or carriage-return-separated file names corresponding
to disk images in the "/live" directory. If this file exists, only
images listed here will be merged into the root aufs, and they will
be loaded in the order listed here. The first entry in this file
will be the "lowest" point in the aufs, and the last file in this
list will be on the "top" of the aufs, directly below /cow.
Without this file, any images in the "/live" directory are loaded
in alphanumeric order.
That's for Ubuntu, Debian have similar (I thought the filename listing sfs's was just called filesystem, so check the specific detail as appropriate for your installation).

ITSMERSH

#335 Post by ITSMERSH »

Thanks @rufwoof and @dancytron! :)

I will try Quick-Remaster Gui soon...

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

#336 Post by fredx181 »

ITSMERSH wrote:Ok, as I do understand this so far, .squashfs is equal to .sfs (just a different extension?) and I can create .squashfs files manually, naming them 03-blabla..squashfs, 04-somemoreblabla..squashfs and so on, placing them to the location of 01-filesystem.squashfs and they will load at boot?
Yes, but, as I said, then 03-blabla..squashfs or 04-... better should not contain packages registration, unless you know exactly what you're doing, the package management in the Dogs is very strict and can be easily confused (or even worse, broken). This is a main difference with Puppy.
Quote:
Not sure what you mean. Why would it ?

I just thought this remaster is equal to puppy remaster with full customized /etc? So, all devices and its settings are customized dependent on the machine doing the remaster?
Ah, I see, no, it's works different than in Puppy. Nothing dependent on the machine AFAIK (although maybe it can be in some cases, depending on how things are configured, e.g. blacklisted drivers).
EDIT: Oh, and the script does some cleaning, e.g. remove /etc/resolv.conf and more)
Btw.: when the Samsung N150 turns out to be ready and able for the use as portable Audio Studio e.g. playing sequences to make me able to perform some live drumming to these sequences, I will do a Video about the ability of BionicDog as portable Audio Studio on a Samsung N150 Netbook.
That would be nice ! :)

Fred

ITSMERSH

#337 Post by ITSMERSH »

Hi.

I tried 'Quick-Remaster Gui', but when rebooting systemd complained about missing libip4tc and booting was stopped/halted... :?

Don't know if it would complain about other missing libraries...

stemsee

#338 Post by stemsee »

Now ... Wifi-TrayNet has conflicting deps removed from control file. But will use dhcpcd5 if installed udhcpc if not.

If Wifi-TrayNet autoconnect feature is enabled a selection gui will open offering to backup peasywifi_auto to exauto, and install Wifi-TrayNet autocon. The selection is a checkbox. If unchecked peasywifi_auto will be restored and Wifi-TrayNet auotocon will be removed.

I have taken the udhcpc command from peasywifi, as it is better than mine. I have included in /lib udhcpc and dhcpcd hookscripts. Also the IP-Info script from peasy has been modified with geometry recorder functionality (/usr/sbin/Wifi-Ipinfo to remember position and size.

iPhone lib and manpages have been removed.

I did a lot of testing after de-bugging and optimising, on BionicDog, to make sure it works properly.

When changing interface, two small guis open one is the svg image selector, the other is a text only selector ... this latter can remain open and just selecting interface will change it ... especially useful with continuous scanning-tooltip which has a tray icon countdown from 9 to 0. Change interface for each scan (gimmicky)!

This .deb is in fact noarch.

EDIT: If peasywifi happens to get uninstalled then Wifi-TrayNet does not find udhcpc in path, so need to specify busybox udhcpc in script!
Not only that but during refinement and debugging the cursor gets lost in geany, while I assume it is positioned for the next key stroke, be it deletion or correction, and lo and behold, the damned thing is NOT where I placed it ... and another bug arises ... fu**k fu**k fu**k fu**k FU**K! Sorted now, but really!
Attachments
wifi-traynet_2.8_i386.deb.gz
(140.79 KiB) Downloaded 99 times
2018-06-13-153951_56x41_scrot.png
(3.15 KiB) Downloaded 1014 times
2018-06-13-152221_746x405_scrot.png
(91.99 KiB) Downloaded 1064 times
2018-06-13-151940_345x542_scrot.png
(89.64 KiB) Downloaded 1029 times
2018-06-13-145844_669x406_scrot.png
(72.75 KiB) Downloaded 1043 times
2018-06-13-145849_669x406_scrot.png
(69.42 KiB) Downloaded 1027 times
Last edited by stemsee on Fri 15 Jun 2018, 08:55, edited 2 times in total.

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

#339 Post by fredx181 »

@ITSMERSH
I tried 'Quick-Remaster Gui', but when rebooting systemd complained about missing libip4tc and booting was stopped/halted... Confused

Don't know if it would complain about other missing libraries...
That's bad, I can't reproduce, because I don't know what you did exactly, always worked fine for me.
Did you find the (older) 01-filesystem.squashfs.bak file (or changes.bak, if you choose to backup changes) to be able to restore to how it was before running the remaster ?
And did you have the same problem when you booted with remaster created by RemasterDog ?

@stemsee, thanks for new Wifi-TrayNet, I will test one of these days.

Fred

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#340 Post by wiak »

ITSMERSH wrote:Hi.

I tried 'Quick-Remaster Gui', but when rebooting systemd complained about missing libip4tc and booting was stopped/halted... :?

Don't know if it would complain about other missing libraries...
I can confirm, at least for XenialDog64, that quick remaster has always worked fine for me (and I've remastered often). I always get it to automatically remove the changes folder - maybe there would be problems if the old one was also left behind? And always the old 01-filesystem.squashfs is created as a backup file for the rare occasion when I want to go back to that one (though in my usage, I've lost the previous changes folder of course).

As far as I remember, if the quick-remaster has finished it automatically reboots (though I may be wrong about that). Come to think of it, there may have been one time a remaster failed for me - can't say why that would be though - I'm always careful to sync a few times before I do anything major and I leave the quick remaster program alone without doing anything further on the system whilst it is doing its business. I usually use lz4 compression choice.

I'm wondering if there is a possibility a quick remaster might fail if /tmp RAM space is running out? In which case one of the tricks to increase tmpfs RAM (or whatever it is), that I can't recall, might help?

Definitely would be a good idea to make a backup of the changes folder before trying, since having problems with it. And maybe try it with a small changes folder first just to make sure it is basically working before trying a major changes remaster?

My current XenialDog64 lz4-compressed 01-filesystem.squashfs is just over 1 GB in size, so you can see it's had quite a major remaster at some point.

wiak

ITSMERSH

#341 Post by ITSMERSH »

@wiak, @fredx181,

I'm sorry, but this was just a stupid fault by myself.

I happen to have a GIMP .sfs (renamed to .squashfs) loaded at remaster. That GIMP .sfs included a symbolic link /usr/lib/i386-linux-gnu which points to /usr/lib (this is in all Puppies, so I created my PaDS to move everything from /usr/lib/i386-linux-gnu to /usr/lib, remove /usr/lib/i386-linux-gnu and make it a symbolic link to /usr/lib).

It just sat on top at remaster, so everything from /usr/lib/i386-linux-gnu didn't make it into the remastered .squashfs. :roll:

Thanks.

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

#342 Post by fredx181 »

ITSMERSH wrote:@wiak, @fredx181,

I'm sorry, but this was just a stupid fault by myself.

I happen to have a GIMP .sfs (renamed to .squashfs) loaded at remaster. That GIMP .sfs included a symbolic link /usr/lib/i386-linux-gnu which points to /usr/lib (this is in all Puppies, so I created my PaDS to move everything from /usr/lib/i386-linux-gnu to /usr/lib, remove /usr/lib/i386-linux-gnu and make it a symbolic link to /usr/lib).

It just sat on top at remaster, so everything from /usr/lib/i386-linux-gnu didn't make it into the remastered .squashfs. :roll:

Thanks.
Ah, thanks, that's a relief :wink: Yes, watch out with adding SFS's made for Puppy, better use apt2sfs or repo2sfs to create a module (which then includes the packages made for Bionic, so gives more chance to work and avoid problems).

@stemsee
I tried Wifi-TrayNet, sorry to say, but it didn't work for me, no connection could be made for wlan0.
But maybe it's me, I found some things very confusing and complicated, also the timeout dialogs gave me sort of a stress.
Here's output from terminal (I did several things after creating the profile, e.g. reconnect etc..):

Code: Select all

root@live:~# '/usr/sbin/Wifi-TrayNet' 
cat: /root/.wifi-connect/geometry/: No such file or directory
Warning: Missing charsets in String to FontSet conversion
no eth1
no usb0
cat: /tmp/Wifi-TrayNet/exip: No such file or directory
cat: /root/.wifi-connect/geometry/Try-Profiles: No such file or directory
xwininfo: error: No window with name "External-Ip-Address" exists!
xwininfo: error: No window with name "External-Ip-Address" exists!
cat: /tmp/Wifi-TrayNet/netsel: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    14  100    14    0     0     44      0 --:--:-- --:--:-- --:--:--    44
curl: no process found
xwininfo: error: No window with name "Try-Profiles" exists!
xwininfo: error: No window with name "Try-Profiles" exists!
sed: -e expression #1, char 3: extra characters after command
cat: '/root/.wifi-connect/static/"UPC44685"': No such file or directory
environment: line 35: xvkbd: command not found
cat: '/root/.wifi-connect/geometry/Configuration-&-Connection': No such file or directory

(yad:6498): Gtk-WARNING **: 15:20:17.618: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &

(yad:6498): Gtk-WARNING **: 15:20:17.619: Failed to set text from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
xvkbd: no process found
Successfully initialized wpa_supplicant
Line 7: Invalid BSSID '"UPC44685"'.
Line 7: failed to parse bssid '"UPC44685"'.
Line 15: failed to parse network block.
Failed to read or parse configuration '/tmp/Wifi-TrayNet/netsel'.
Successfully initialized wpa_supplicant
Line 7: Invalid BSSID '"UPC44685"'.
Line 7: failed to parse bssid '"UPC44685"'.
Line 15: failed to parse network block.
Failed to read or parse configuration '/tmp/Wifi-TrayNet/netsel'.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: icanhazip.com
curl: no process found
Successfully initialized wpa_supplicant
Line 7: Invalid BSSID '"UPC44685"'.
Line 7: failed to parse bssid '"UPC44685"'.
Line 15: failed to parse network block.
Failed to read or parse configuration '/tmp/Wifi-TrayNet/netsel'.
cat: /root/.wifi-connect/geometry/External-Ip-Address: No such file or directory
xwininfo: error: No window with name "External-Ip-Address" exists!
xwininfo: error: No window with name "External-Ip-Address" exists!
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: icanhazip.com
curl: no process found
sed: -e expression #1, char 3: extra characters after command
cat: '/root/.wifi-connect/static/"UPC44685"': No such file or directory
environment: line 35: xvkbd: command not found
Fred

ITSMERSH

#343 Post by ITSMERSH »

Hi.

Is there a counterpart to:

- /etc/profile
- /etc/rc.d/rc.local
- /etc/Puppybackgroundpicture

from Puppy in BionicDog

or in other words:

- how can I pack/unpack the initrd1.xz
- where can I "jump in" to modify stuff at boot up
- where is the settings for a new defined wallpaper stored

???

Be aware, I will come up with some more of these questions... :D

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

#344 Post by fredx181 »

Hi RSH,
Is there a counterpart to:

- /etc/profile
- /etc/rc.d/rc.local
- /etc/Puppybackgroundpicture
/etc/profile = the same
/etc/rc.d/rc.local = /etc/rc.local
/etc/Puppybackgroundpicture = I don't know
how can I pack/unpack the initrd1.xz
- Create folder, for example: bionic32
- Copy the initrd1.xz inside it
- Then from terminal inside bionic32
To unpack:

Code: Select all

xz -dc initrd1.xz | cpio -i
To pack again to parent folder of bionic32 (but remove old ./initrd1.xz first):

Code: Select all

find . -print | cpio -o -H newc 2>/dev/null | xz -f --extreme --check=crc32 > ../initrd1.xz
where can I "jump in" to modify stuff at boot up
In:
~/Startup
/etc/rc.local
/etc/init.d/ (boot scripts)
where is the settings for a new defined wallpaper stored
That depends on which Desktop mode, e.g plain openbox (with tint2) or openbox with rox-pinboard, or pcmanfm providing the Desktop (with "Desktop Manager" you can switch these).
openbox (with tint2) = ~/.config/nitrogen/bg-saved.cfg
openbox with rox-pinboard = ~/.config/rox.sourceforge.net/ROX-Filer/pinbd-OB
pcmanfm providing the Desktop = ~/.config/pcmanfm/default/desktop-items-0.conf [EDITED] previously was wrong

Fred
Last edited by fredx181 on Thu 14 Jun 2018, 21:48, edited 1 time in total.

ITSMERSH

#345 Post by ITSMERSH »

Hi fredx181,

I found /etc/profile (first I searched for it in casper's changes directory :roll: )

Directory /etc/rc.d only includes rc.network, So when I'm creating /etc/rc.d/rc.local its content will be executed at boot?

I'm using the Openbox/Tint2 desktop combination and searched the places/files you mentioned. My wallpaper is /opt/docs/pictures/development.jpg and the changes on the wallpaper is stored, so it's visible after a reboot.

Found the wallpaper in /root/.config/nitrogen/bg-saved.cfg after reboot. Before reboot after changing the wallpaper it wasn't there, so I was a little confused. I'm saving only on exit/reboot, which could be a reason for confusing.

Pcmanfm doesn't provide the wallpaper - even after reboot.

Code: Select all

[config]
bm_open_method=0

[volume]
mount_on_startup=1
mount_removable=1
autorun=1

[ui]
always_show_tabs=0
max_tab_chars=32
win_width=810
win_height=464
splitter_pos=150
media_in_new_tab=0
desktop_folder_new_win=0
change_tab_on_drop=1
close_on_unmount=1
focus_previous=0
side_pane_mode=places
view_mode=compact
show_hidden=1
sort=name;ascending;
toolbar=newtab;navigation;home;
show_statusbar=1
pathbar_mode_buttons=0
Thanks

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

#346 Post by fredx181 »

ITSMERSH wrote:Directory /etc/rc.d only includes rc.network, So when I'm creating /etc/rc.d/rc.local its content will be executed at boot?
No, /etc/rc.local is the one. The rc.network script is called from /etc/init.d/rc.network-start (is for peasywifi)
Pcmanfm doesn't provide the wallpaper - even after reboot.
I was wrong earlier, sorry, It's set in ~/.config/pcmanfm/default/desktop-items-0.conf

Fred

ITSMERSH

#347 Post by ITSMERSH »

fredx181 wrote:
ITSMERSH wrote:Directory /etc/rc.d only includes rc.network, So when I'm creating /etc/rc.d/rc.local its content will be executed at boot?
No, /etc/rc.local is the one. The rc.network script is called from /etc/init.d/rc.network-start (is for peasywifi)
Thanks, meanwhile I'd stumbled upon it. :wink:
fredx181 wrote:
Pcmanfm doesn't provide the wallpaper - even after reboot.
I was wrong earlier, sorry, It's set in ~/.config/pcmanfm/default/desktop-items-0.conf

Fred
No, this doesn't have the wallpaper either.

Code: Select all

[*]
wallpaper_mode=screen
wallpaper_common=1
wallpaper=/opt/docs/pictures/uk_glacial_lake_wales_gwynedd_county_snowdonia_region_100866_1920x1080.jpg
desktop_bg=#000000
desktop_fg=#ffffff
desktop_shadow=#000000
desktop_font=Sans 10
show_wm_menu=0
sort=mtime;ascending;
show_documents=0
show_trash=1
show_mounts=0

[abiword.desktop]
x=204
y=102

[DogRadio.desktop]
x=105
y=100

[gnome-mplayer.desktop]
x=103
y=179

[pcmanfm.desktop]
x=207
y=3

[firefox.desktop]
x=103
y=7

[PicDrop.desktop]
x=304
y=3
My wallpaper is /opt/docs/pictures/development.jpg and it is displayed after boot. And it is still in nitrogen's config.

Code: Select all

[:0.0]
file=/opt/docs/pictures/08.jpg
mode=4
bgcolor=#000000

[xin_-1]
file=/opt/docs/pictures/development.jpg
mode=0
bgcolor=#000000
Never mind.

Since nitrogens config stores it correctly and it is displayed correctly the file /root/.config/pcmanfm/default/desktop-items-0.conf doesn't seem to affect it.

I'm almost sure to recall that /opt/docs/pictures/uk_glacial_lake_wales_gwynedd_county_snowdonia_region_100866_1920x1080.jpg is the default wallpaper after a fresh install / at first boot.

Ok, two questions. Is there a boot option to boot without

- additional squashfs modules loaded
- to have the changes in 'casper/changes' loaded

??

stemsee

#348 Post by stemsee »

fredx181 wrote: @stemsee
I tried Wifi-TrayNet, sorry to say, but it didn't work for me, no connection could be made for wlan0.
But maybe it's me, I found some things very confusing and complicated, also the timeout dialogs gave me sort of a stress.
Here's output from terminal (I did several things after creating the profile, e.g. reconnect etc..):
Fred
It's definetely not you! It's the gremlins ... AGAIN! The only error you see in term that I could not explain is the yad, suggesting ampersands be escaped with '&' which made no difference!

Please see previous post 'EDIT'! Thanks for your patience!

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

#349 Post by fredx181 »

ITSMERSH wrote:
fredx181 wrote:
Pcmanfm doesn't provide the wallpaper - even after reboot.
I was wrong earlier, sorry, It's set in ~/.config/pcmanfm/default/desktop-items-0.conf

Fred
No, this doesn't have the wallpaper either.

Never mind.

Since nitrogens config stores it correctly and it is displayed correctly the file /root/.config/pcmanfm/default/desktop-items-0.conf doesn't seem to affect it.

I'm almost sure to recall that /opt/docs/pictures/uk_glacial_lake_wales_gwynedd_county_snowdonia_region_100866_1920x1080.jpg is the default wallpaper after a fresh install / at first boot.
There's small misunderstanding, pcmanfm has it's own wallpaper chooser, when selected Desktop mode is "pcmanfm + lxpanel" (through "Desktop Manager") and right-click on the Desktop "Desktop preferences" (separate from nitrogen).
Then the chosen wallpaper will be in /root/.config/pcmanfm/default/desktop-items-0.conf
Ok, two questions. Is there a boot option to boot without

- additional squashfs modules loaded
Yes, sort of, see here:
http://www.porteus.org/tutorials/26-gen ... -them.html
Put them in the optional folder and only specified modules will be loaded
cheatcodes wrote:load=module
load=module[1];module[n]

... Load optional modules from /optional/ directory on the booting
media. Additional modules can be listed, separated
by semicolons, without spaces.
Exampe: 'load=gimp;inkscape' would search for and load any
modules in the /porteus/optional folder that contain the strings
'gimp' or 'inkscape'.
- to have the changes in 'casper/changes' loaded
Just remove "changes=....." from kernel commandline for to boot without changes.

@stemsee, I'll test Wifi-TrayNet later and reply in your Wifi-TrayNet thread

Fred

ITSMERSH

#350 Post by ITSMERSH »

@fredx181

That's cool, thanks.

This will do some tasks a lot easier... :)

Post Reply