A SAVE-session to directory option added for PUPs [REOPENED]

A home for all kinds of Puppy related projects
Message
Author
User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Re: updated version of ydrv_slacko_5.7.sfs

#331 Post by peebee »

gyro wrote:Creating deltas is a technology I'm not familiar with. Hence the new ydrv.
Hi gyro

FYI....

Menu - Utility - Xdelta file difference manager

Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#332 Post by gyro »

mavrothal wrote:So please use this new puppy for further savefolder development. Will help developing this new puppy and make my life easier.
Please note that the "sfs_load" in Tahr Puppy 5.8.0.8 is not patched, and will not find any sfs files in the frugal install directory, if a save directory is used.

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#333 Post by gyro »

@peebee
I should have added;
It's also something that's not on my bucket list.
gyro

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#334 Post by mavrothal »

gyro wrote:Please note that the "sfs_load" in Tahr Puppy 5.8.0.8 is not patched, and will not find any sfs files in the frugal install directory, if a save directory is used.
Correct.
SFS_load not in woof but I'm sure shinobar will fix that in his next version (I think there is also another fix by 01Micko, about the new woof icon set, that is pending)
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#335 Post by 01micko »

mavrothal wrote:(I think there is also another fix by 01Micko, about the new woof icon set, that is pending)
No, that was grub4dos-config, but similar does apply.
Puppy Linux Blog - contact me for access

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

My status

#336 Post by shinobar »

Thanks to all.
I am slow but following you.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

Utility to convert a save file to a save directroy

#337 Post by gyro »

I have attached a script called "savefile2dir". It converts a save file to a save directory.
It needs to be run in another puppy or after a "pfix=ram" boot.
It attempts to be safe and detect if the save file is mounted, or stored on an unsupported partition.

The script is a severely hacked "filemnt".

The file has a fake ".gz" extension. Store it somewhere in /mnt/home and rename it to remove the ".gz".

gyro
Attachments
savefile2dir.gz
It's a script, remove the fake ".gz" extension.
(3.93 KiB) Downloaded 578 times

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

encrypted save directory

#338 Post by gyro »

Earlier in the thread, shinobar commented that an encrypted save directory should be possible using something like "cryptofs" or "ecryptfs".
I've done a little investigation, and played with a similar product called "encfs", in a running system. I chose "encfs" because it's totally in user space, and I could download it from the Wheezy repo.
It all looks rather promising because they "mount" an encrypted directory on to an unencrypted directory.
So, in the "init" script using "ecryptfs",

Code: Select all

mount -o bind /mnt/dev_save${PUPSAVEFILE} $CREATEPUPSAVE2FS
becomes

Code: Select all

mount -t ecryptfs /mnt/dev_save${PUPSAVEFILE} $CREATEPUPSAVE2FS
for an encrypted save directory.
Of course it will be a bit more complicated than just that.
The downside is that "ecryptfs" is a kernel module which is not enabled in puppy kernels. So it's going to be difficult to test "ecryptfs" until someone compiles a puppy kernel with

Code: Select all

CONFIG_ECRYPT_FS=m
gyro

gcmartin

#339 Post by gcmartin »

This kernel change would be needed in both 32 & 64 bit future PUPs. And kernel developers would need to know as well. Which for "DUMBIES" like me, I ask:
  • Is there a "PUP Standard Kernel parameters" offering which maps to the kernel which fell into the "Official" PUPs of the past?
  • AND, Is there one that is setup for the WOOF-CE developers, today?
  • Is there value for distro developers to have such?
If one does not already exist, seemingly a discussion area to continue to tweak an agreed kernel parameter set would be useful as time and Linux advances.

The PCs that are in this community do NOT match anything we were seeing, generally, 5 years ago. And, with Microsoft's newest releases in hardware and Apple's upcoming releases, our community will undergo the effects of these new devices; just as ARM devices have affected us. Thus the kernel parameter consistency across PUPs will be generally very important in user reporting and use.

Here to help

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#340 Post by mavrothal »

@shinobar
Noticed that your shutdownconfig has "fido" inactivated. However I could not see any problem when reinstated. Is it because is not present in pupsaveconfig or somehow is incompatible with svefolder? (how?)
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

fido

#341 Post by shinobar »

mavrothal wrote:@shinobar
Noticed that your shutdownconfig has "fido" inactivated. However I could not see any problem when reinstated. Is it because is not present in pupsaveconfig or somehow is incompatible with svefolder? (how?)
The current shutdownconfig in the woof offers 'fido', but says
'fido CURRENTLY EXPERIMENTAL STATUS, PLEASE CHOOSE Administrator'.
If you want to try 'fido', you can do it after, using the loginmanager.

In my opinion, the current 'fido' implementation has a problem in the fundamental design. 'fido' shold have /home/fido for its home.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

save_to_directory PET

#342 Post by shinobar »

mavrothal wrote:So if a pet is provided will be much easier to test and much closer to woof (so hopefully next Tahr puppy will include it :wink: ).
I have converted gyro's most recent ydrv_slacko_5.7.sfs,
http://www.murga-linux.com/puppy/viewto ... 663#781663
into a PET, save_to_directory-20140606.pet
http://shino.pos.to/party/bridge.cgi?pu ... psave_dir/
It's comfortable with the Tahr Puppy 5.8.0.8.

USAGE:
1. Boot the Tahr Puppy 5.8.0.8 with RAM mode.
2. Install the save_to_directory-20140606.pet.
3. Shutdown/rebot and choose the pupsave options.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#343 Post by mavrothal »

Tried to add savefolder support in woof-CE but somehow it breaks gtk and all icons are gone form the desktop (no . gtk-update-icon-cache will not fix this).
Anyone has any idea why :?
(Attached the broken shutdowncofig for your convenience)
Attachments
shutdownconfig.gz
Broken shutdownconfig
(13.18 KiB) Downloaded 337 times
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

shutdowncofig

#344 Post by shinobar »

mavrothal wrote:Tried to add savefolder support in woof-CE but somehow it breaks gtk and all icons are gone form the desktop (no . gtk-update-icon-cache will not fix this).
Anyone has any idea why :?
(Attached the broken shutdowncofig for your convenience)
i have something want to say, but the shutdowncofig mavrothal showed fundamentally worked on the Tahr Puppy. I replaced /etc/rc.d/rc.shutdown with the one form gyro's 2014-06-06 ydrv, /usr/sbin/shutdownconfig with the one mavrothal showed(needed executable flag).
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

Re: shutdowncofig

#345 Post by mavrothal »

shinobar wrote: I replaced /etc/rc.d/rc.shutdown with the one form gyro's 2014-06-06 ydrv,
That's what was missing :oops:
Thanks
Latter: Fixed! So next puppy build from woof-CE testing will have savetofolder support
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

gcmartin

#346 Post by gcmartin »

This just caught my attention as this seemingly allows 2 things that would be useful for any PUP user.

Using this utility ===> Here from @Gyro appears to open the way for 3 possible events:
  • resolving the "filled" save file by moving from a file to a folder within the same frugal folder location (insuring of course, that the user does NOT end with both a frugal save folder and a frugal save file).
  • to use this to take a frugal folder into a new base frugal folder thru this ability by exposing the contents into a folder along with exposing initrd and repacking initrd.
  • to convert a frugal install PUP to become a full installation with little effort.
Further, there appears to be some relationship between the @Gyro offering and this 'toggle' offering, "Mkdist", from @Shinobar

This is slightly off-topic of this thread; but is made available thru the work of the contributions from members in this thread.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#347 Post by 01micko »

Woof-CE master branch now has save to directory feature integrated. My initial tests have been positive.

You can get the woof-CE-0.3 release tarball from Here.
Puppy Linux Blog - contact me for access

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Query re new savefolders

#348 Post by peebee »

ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#349 Post by darkcity »

I've been updating the Savefile page on the wikka wiki to include information about the savefolder options.

Is there anywhere that gives a general description of how it works?

http://puppylinux.org/wikka/SaveFile

8)

gcmartin

Description of the changes in PuppyLinux shutdown processing

#350 Post by gcmartin »

Hello @DarkCity

You are right in looking for a single page which would describe the primary options available to Live users, and Frugal users, alike, when system shutdown would occur.

Your webpage may want to clarify by "Save-Session Options built into Puppy Linux". where the 'Introduction' explains that "... when running a Live boot or running a Frugal boot, the ability to save ones work during the session can be stored in either a Linux folder or buried in a Linux file."

Hope this is helpful.

Post Reply