| Author |
Message |
Q5sys

Joined: 11 Dec 2008 Posts: 849
|
Posted: Sun 27 Nov 2011, 21:49 Post subject:
GUI Program for opening savefiles to user defined directory Subject description: 25$ bounty for whoever makes this. :P |
|
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.
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.
_________________
My PC is for sale
|
|
Back to top
|
|
 |
puppyluvr

Joined: 06 Jan 2008 Posts: 3053 Location: Chickasha Oklahoma
|
Posted: Sun 27 Nov 2011, 22:05 Post subject:
|
|
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"
http://puppylinuxstuff.meownplanet.net/puppyluvr/
http://theplpd.webs.com/
Nothing but Puppy since 2.15CE...
|
|
Back to top
|
|
 |
Q5sys

Joined: 11 Dec 2008 Posts: 849
|
Posted: Sun 27 Nov 2011, 22:16 Post subject:
|
|
| puppyluvr wrote: | 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.
_________________
My PC is for sale
|
|
Back to top
|
|
 |
puppyluvr

Joined: 06 Jan 2008 Posts: 3053 Location: Chickasha Oklahoma
|
Posted: Sun 27 Nov 2011, 22:23 Post subject:
|
|
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"
http://puppylinuxstuff.meownplanet.net/puppyluvr/
http://theplpd.webs.com/
Nothing but Puppy since 2.15CE...
|
|
Back to top
|
|
 |
puppyluvr

Joined: 06 Jan 2008 Posts: 3053 Location: Chickasha Oklahoma
|
Posted: Sun 27 Nov 2011, 22:34 Post subject:
|
|
Hello,
Lets examine this section more closely:
| Quote: | #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...
_________________ "Close the "Windows", and open your eyes, to a whole new world"
http://puppylinuxstuff.meownplanet.net/puppyluvr/
http://theplpd.webs.com/
Nothing but Puppy since 2.15CE...
|
|
Back to top
|
|
 |
Q5sys

Joined: 11 Dec 2008 Posts: 849
|
Posted: Tue 29 Nov 2011, 17:08 Post subject:
|
|
this post might help you out as well.
_________________
My PC is for sale
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: Tue 27 Dec 2011, 18:32 Post subject:
|
|
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/viewtopic.php?p=592056#592056
_________________ 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

|
|
Back to top
|
|
 |
puppyluvr

Joined: 06 Jan 2008 Posts: 3053 Location: Chickasha Oklahoma
|
Posted: Wed 28 Dec 2011, 03:56 Post subject:
|
|
Hello,
Wow, you dont pop up much any more, but when you do...
Nice edit of filemnt, could be very useful...
_________________ "Close the "Windows", and open your eyes, to a whole new world"
http://puppylinuxstuff.meownplanet.net/puppyluvr/
http://theplpd.webs.com/
Nothing but Puppy since 2.15CE...
|
|
Back to top
|
|
 |
8-bit

Joined: 03 Apr 2007 Posts: 3018 Location: Oregon
|
Posted: Wed 28 Dec 2011, 04:06 Post subject:
|
|
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??
|
|
Back to top
|
|
 |
|