GUI Program for opening savefiles to user defined directory

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

GUI Program for opening savefiles to user defined directory

#1 Post by Q5sys »

program for opening savefiles.

Ive been using Puppy for a while and now I have a collection of old save files that I want to pull some things out of and then delete...
the problem is I dont want to have to reboot my system over and over to copy the files out.
So I'm looking for something that can allow me to open a save file to a defined directory so i can pull out what I want.

This is what im looking for.

a gtk interface would be nice

Needed functionality:
  • Ability to mount unencrypted safe files to a user defined directory (I know thats easy to do with the mount command at CL)
  • Ability to mount encrypted safe files (both heavy and light encrypted) to a user defined diretory (i havent figured out how to do that at the CLI)
  • Ability to read ext2 and ext3 formatted save files... and preferably with the newer versions of puppy including it... ext4 compatibility as well.
  • Ability to dismount savefile

GTK interface should only need 3 fields.
  • savefile path
  • password if encrypted
  • path to user defined directory where the save file should be mounted.
GTK interface should only need 2 buttons.
  • mount
  • unmount
Compatibility should be with the 4.x and 5.x series puppy versions.
(I dont see why there should be any difference between them)

I dont have the time to work through figuring out how to do this... but i know there are those around here that are bored enough to do so...
And for the person who can produce such a program that can run on, I have 25$ of beer/pizza/whatever money for ya.
Figure a little incentive never hurt anyone. ;)

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#2 Post by puppyluvr »

:D Hello,
I hate to suggest the obvious, but cant you just click on them?
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

#3 Post by Q5sys »

puppyluvr wrote::D Hello,
I hate to suggest the obvious, but cant you just click on them?
do you think id have posted this if it were possible.
lol

With encrypted save files you cant just click to load. cause for obvious reasons your click doesn't contain your encryption passkey. :lol:

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#4 Post by puppyluvr »

:D Hello,
LOL, yea, I figured it wasnt that simple...
I have no encrypted savefiles to test on, so I have no idea how to mount it with a script.. Seems that would be the only hurdle...
I`m guessing the snippet of code needed is in the initrd, as Puppy mounts the save first... Hmmm..
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#5 Post by puppyluvr »

:D Hello,
Lets examine this section more closely:
#is the ${DISTRO_FILE_PREFIX}save encrypted?...
if [ ! "`echo "$PUPSAVEFILE" | grep '_crypt'`" = "" ];then
case $PUPSAVEFILE in
*cryptx*) #see /etc/rc.d/rc.shutdown.
CRYPTO='-E 1' #v2.16final '-e xor' --bug, loads xor.ko which is something else.
modprobe cryptoloop
;;
*)
CRYPTO='-e aes'
modprobe cryptoloop
modprobe aes_generic 2>/dev/null #v407 aes name change.
modprobe aes 2>/dev/null #for older kernel <2.6.25
modprobe crypto_blkcipher 2>/dev/null #v407 blkcipher name change.
modprobe blkcipher 2>/dev/null #old kernel.
modprobe cbc
;;
esac
fi
if [ "$CRYPTO" != "" ] ; then
echo "" >/dev/console
echo "Mounting encrypted $PUPSAVEFILE..." > /dev/console
while true; do
#note, cryptoloop does not work with jounalled fs, hence have to use ext2 only.

#v3.01 will take this out as a func later (similar code below)...
#about to mount ${DISTRO_FILE_PREFIX}save.2fs, but before that check if need to resize it...
if [ -f /mnt/dev_save/pupsaveresize.txt ];then #created by /usr/sbin/resizepfile.sh
KILOBIG=`cat /mnt/dev_save/pupsaveresize.txt`
rm -f /mnt/dev_save/pupsaveresize.txt
echo > /dev/console
echo -n "Increasing $PUPSAVEFILE by $KILOBIG Kbytes, please wait..." >/dev/console
dd if=/dev/zero bs=1024 count=$KILOBIG >> /mnt/dev_save$PUPSAVEFILE
sync
if [ "$CRYPTO" = "-e aes" ];then #v3.98
echo "NOTICE: As you type your password nothing will be displayed on the" >/dev/console
echo "screen for absolute security. Just type it in then press ENTER key..." >/dev/console
echo -e "\\033[1;36m" >/dev/console #aqua-blue
echo -n "Password: " >/dev/console
echo -en "\\033[0;39m" >/dev/console
read -s MYPASS #< /dev/console v403
echo "$MYPASS" | losetup -p 0 -e aes /dev/loop1 /mnt/dev_save$PUPSAVEFILE
else
echo -e "\\033[1;36m" >/dev/console #aqua-blue
echo -n "Password: " >/dev/console
echo -en "\\033[0;39m" >/dev/console
#losetup does not accept -p param for xor encryption... may not work...
losetup $CRYPTO /dev/loop1 /mnt/dev_save$PUPSAVEFILE
fi
I would guess it is in there... 8)
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
Q5sys
Posts: 1105
Joined: Thu 11 Dec 2008, 19:49
Contact:

#6 Post by Q5sys »

this post might help you out as well.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#7 Post by Pizzasgood »

Not quite what you were asking for, but close enough. Just a simple upgrade to the /usr/sbin/filemnt script, so that you can click on encrypted savefiles to mount/unmount them just like you can with the unencrypted ones.

http://www.murga-linux.com/puppy/viewto ... 056#592056
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#8 Post by puppyluvr »

:D Hello,
Wow, you dont pop up much any more, but when you do... 8)
Nice edit of filemnt, could be very useful...
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#9 Post by 8-bit »

If I remember correctly, when I read about Barry fixing the problem with encrypted pupsave files not being created on USB installs of Puppy he also added the ability to mount encrypted pupsave files by clicking on them and entering your password you used for each encrypted pupsave file.
It would be nice to have that ability added to Lucid and Slacko in the form of a pet file or some other means.
I think he included the fixes in Racy.
So using Racy, one should be able to mount each of the encrypted pupsave files in turn to get the data you need.
Not to worry if you are not running the version of Puppy you want to put the data into.
Just mount that pupsave file to and you should be able to transfer the data you wanted by drag and drop.

How about it guys. Can Barry's modification that lets you mount an encrypted pupsave file be added to your releases??

Post Reply