Author |
Message |
technosaurus

Joined: 18 May 2008 Posts: 4787 Location: Kingwood, TX
|
Posted: Sun 06 Jan 2013, 18:58 Post subject:
|
|
For security, if you add that to a daemonized script, you may want to set MYPASS="" immediately after you are finished with it.
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
starhawk
Joined: 22 Nov 2010 Posts: 5056 Location: Everybody knows this is nowhere...
|
Posted: Sun 06 Jan 2013, 21:37 Post subject:
|
|
BTW, I'm of the opinion that few puppy users (if any) really need an encrypted savefile.
Then again, I have nothing worth stealing, only partially on purpose.
Not to say, Jan99, that you shouldn't have one, just, I'm a little surprised when I come across someone who thinks it's necessary.
Only two people I can think of who really need it are Julian Assange (does he even use Puppy?) and that one dude that really doesn't like John Murga for some weird reason that I never fully understood.
_________________

|
Back to top
|
|
 |
jpeps
Joined: 31 May 2008 Posts: 3217
|
Posted: Mon 07 Jan 2013, 01:25 Post subject:
|
|
starhawk wrote: | ...... and that one dude that really doesn't like John Murga for some weird reason that I never fully understood. |
mental illness
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 904
|
Posted: Mon 07 Jan 2013, 01:33 Post subject:
|
|
maddox: You need to escape the spaces:
Code: | minimp3 01\ The\ Wall\ Street\ Shuffle\ -\ 10CC.mp3
or
mpg123 01\ The\ Wall\ Street\ Shuffle\ -\ 10CC.mp3
or
xhippo 01\ The\ Wall\ Street\ Shuffle\ -\ 10CC.mp3
|
when starting via command line. If you write the first part of the filename and "tab" shell does that for you (ex: "minimp3 01" & then "tab").
The cut&paste is know to kill some of the gtk1 aps - view here. The error is a "Floating point exception" which terminates the application (I think its the source of the cut/copy that terminates).
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4945 Location: Republic of Novo Zelande
|
Posted: Mon 07 Jan 2013, 15:14 Post subject:
|
|
goingnuts wrote: | The cut&paste is know to kill some of the gtk1 aps - view here. The error is a "Floating point exception" which terminates the application (I think its the source of the cut/copy that terminates). | You also mentioned the "minimal profit" text editor as an optional way around the problem:
http://murga-linux.com/puppy/viewtopic.php?t=78941&start=94
Seems to work well.
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 904
|
Posted: Mon 07 Jan 2013, 15:45 Post subject:
|
|
Also adie from the FOX-lib - although quite big for a static build - seems to work.
For syntax highlight you need to place the Adie.stx file in same directory as you have installed adie and after that define the colors via Options/Preferences/styles
Description |
syntax highlight basis file for adie - fake gz-file
|

Download |
Filename |
Adie.stx.gz |
Filesize |
28.19 KB |
Downloaded |
218 Time(s) |
Description |
|
Filesize |
12.85 KB |
Viewed |
662 Time(s) |

|
|
Back to top
|
|
 |
postfs1
Joined: 27 Mar 2010 Posts: 820
|
Posted: Mon 07 Jan 2013, 22:09 Post subject:
|
|
goingnuts wrote: |
... mpg123 ...
|
Very interesting how long it will play sound.
jpeps wrote: | starhawk wrote: | ...... and that one dude that really doesn't like John Murga for some weird reason that I never fully understood. |
mental illness |
Professional killer usually knows own victims, and two logins, which are in the quote, perhaps, have declared about own knowing.
|
Back to top
|
|
 |
Jan99
Joined: 01 Jan 2013 Posts: 10
|
Posted: Tue 08 Jan 2013, 12:55 Post subject:
pUPnGO Subject description: Cryptoloop |
|
I am not an expert in this either (in fact more like a beginner )!
Managed to append some script lines to the mount script.
Now mount is reacting more as in other pups when it comes to encryption=
With a bonus that when I don't provide a mount-point it will do a fsck.
Unfortunatuly when unmounting the loop device is not freed and I do not know how to do it in a script (yet).
Manual free after unmount with losetup -d /dev/loop* works ok.
The lines I appended are:
if [ "$2" == "encryption=aes" ] || [ "$2" == "encryption=blowfish" ] || [ "$2" == "encryption=1" ] ; then
if [ "$2" == "encryption=aes" ] ; then
encryption=aes
else
if [ "$2" == "encryption=blowfish" ] ; then
encryption=blowfish
else
if [ "$2" == "encryption=1" ] ; then
encryption=1
fi
fi
fi
freeloop=$(/sbin/losetup -f)
losetup -e $encryption "${freeloop}" $3
if [ "$4" == "" ] ; then
fsck ${freeloop}
losetup -d ${freeloop}
exit
else
mount-FULL ${freeloop} $4
exit
fi
fi
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4787 Location: Kingwood, TX
|
Posted: Tue 08 Jan 2013, 15:15 Post subject:
|
|
For future reference, here is a way to simplify that kind of code:
Code: | case "$2" in
encryption=*)eval $2;;
esac |
FYI
Recent versions of busybox mount automagically do losetup, not sure if that may cause an issue.
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 904
|
Posted: Tue 08 Jan 2013, 16:01 Post subject:
|
|
Attached static builds of shutterbug (screen shot utility) and PathFinder (file manager) both from FOXlib 1.6.47. Although quite big they also seems quite feature rich and stable.
Description |
|
Filesize |
103.18 KB |
Viewed |
546 Time(s) |

|
|
Back to top
|
|
 |
Ibidem
Joined: 25 May 2010 Posts: 553 Location: State of Jefferson
|
Posted: Wed 09 Jan 2013, 00:07 Post subject:
|
|
goingnuts wrote: | Attached static builds of shutterbug (screen shot utility) and PathFinder (file manager) both from FOXlib 1.6.47. Although quite big they also seems quite feature rich and stable. |
Are you using libstdc++ or uclibc++? The latter should reduce binary size greatly, at least in theory...
|
Back to top
|
|
 |
Jan99
Joined: 01 Jan 2013 Posts: 10
|
Posted: Wed 09 Jan 2013, 15:39 Post subject:
pUPnGO 2012 Subject description: cryptoloop |
|
pUPnGO busybox = V1.17.0
Original pup 412 busybox = V1.8.2 (clears loop device on unmount )
Have used busybox from pup412 in pUPnGO and then the loop device get cleared (just to test).
So i think it is a compile option of busybox (probably the encryption= too).
Thank you technosaurus that is simplifying a lot have changed code to:
case "$2" in
encryption=*)eval $2
freeloop=$(/sbin/losetup -f)
losetup -e $encryption "${freeloop}" $3
if [ "$4" == "" ] ; then
fsck ${freeloop}
losetup -d ${freeloop}
exit
else
mount-FULL ${freeloop} $4
exit
fi
::
esac
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 904
|
Posted: Fri 11 Jan 2013, 17:51 Post subject:
|
|
Ibidem: libstdc++ - but I will try your suggestion using uclibc++ - thanks! Update: Actually seems that the binary gets slightly (14K) bigger with uclibc++ at least in my trials. Guess the big size of FOX-lib compiled static bins are mostly because FOX uses the X-lib extensively (?). Anyway - this can be reduced by combining the different applications in a multicall binary - which on the other hand needs a bunch of patching...
Jan99: I will look at the busybox compile...Update: I cant find any busybox configure flags that will turn on/of the clearing of loop device on unmount - so sort of stuck here...
Attached a draft for a gtkdialog1 GUI for creating and mounting aes-crypted files - sort of poor mans TrueCrypt...
Description |
fake gz-file - just rename to GrypToK
|

Download |
Filename |
GrypToK.gz |
Filesize |
5.81 KB |
Downloaded |
222 Time(s) |
Description |
|
Filesize |
19.1 KB |
Viewed |
381 Time(s) |

|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 904
|
Posted: Tue 15 Jan 2013, 12:13 Post subject:
|
|
I have been revisiting the build of busybox as the question arise if the umount of loop devises could auto delete the used /dev/loop. This remains unsorted but another thing popped up that I will report for future reference. I have used the same busybox source for pupngo through all the versions and the last rebuild was in June 2012. Since then I have changed my uclibc toolchain but the new builds of busybox uses the same source and the same .config file...
But now I have a problem with the xterm-wrapper script which wont launch rxvt. The original part that fail is
This make rxvt error out with rxvt: unknown "" or something like that...
By replacing the line with
rxvt is happy again...but thats not how the shell should pass variables.
So upgraded/rebuild gcc/uclib/kernel headers but no change.
To make this a bit short the reason was sed (GNU version 4.1.2 - it is too old to build BB-20100217 correctly). Replacing sed with BB-sed from the version I was building solved this misbehavior...
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 4945 Location: Republic of Novo Zelande
|
Posted: Wed 16 Jan 2013, 14:31 Post subject:
|
|
Hi goingnuts - I am trying to work around a display problem I get when I use qtweb browser, and I think it has something to do with fonts and/or encoding so I was hoping you might have a suggestion:
The worst part of the symptom goes away when I remove the file /usr/share/fonts/default/TTF/h.pcf.gz but I don't know why. Do you have any idea what that file does? (seems odd to have a gz file in there, but it definitely has some effect on how the characters display...)
Symptoms as follows:
When I sign in to my webmail I see large crosses that obscure some areas. It seems to be some characters that may have different encoding (like ' apostrophes) and also characters that are "hidden" (like password entry fields). You can see this effect in pic 1.
Pic2 shows the effect after I remove the h.pcf.gz file. The crosses have been replaced by a less intrusive character. (but still doesn't show the ' character correctly). At least it's much more readable this way till I work out how to add the correct encoding or font.
Can you think of any downside of me leaving out that file permanently?
 |
Description |
Invalid and hidden characters represented by huge crosses |
Filesize |
32.69 KB |
Viewed |
236 Time(s) |

|
Description |
Invalid and hidden characters represented by a blank square |
Filesize |
26.19 KB |
Viewed |
229 Time(s) |

|
|
Back to top
|
|
 |
|