Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 03:02
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO 2012
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 13 of 27 Posts_count   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 25, 26, 27 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: 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.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
starhawk

Joined: 22 Nov 2010
Posts: 3144
Location: Everybody knows this is nowhere...

PostPosted: 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
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: 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
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: 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
View user's profile Send_private_message Visit_website 
greengeek

Joined: 20 Jul 2010
Posts: 2669
Location: New Zealand

PostPosted: 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
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: 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
Adie.stx.gz
Description  syntax highlight basis file for adie - fake gz-file
gz

 Download 
Filename  Adie.stx.gz 
Filesize  28.19 KB 
Downloaded  127 Time(s) 
snap0001.png
 Description   
 Filesize   12.85 KB
 Viewed   636 Time(s)

snap0001.png

adie.gz
Description  static build adie from FOX-1.6.47 rename file to adie (fake gz)
gz

 Download 
Filename  adie.gz 
Filesize  707.49 KB 
Downloaded  130 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: 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.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send_private_message 
Jan99

Joined: 01 Jan 2013
Posts: 6

PostPosted: Tue 08 Jan 2013, 12:55    Post_subject: pUPnGO
Sub_title: 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
View user's profile Send_private_message 
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: 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.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: 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.
PathFinder.png
 Description   
 Filesize   103.18 KB
 Viewed   518 Time(s)

PathFinder.png

shutterbug.gz
Description  fake gz-file just rename to shutterbug
gz

 Download 
Filename  shutterbug.gz 
Filesize  548.1 KB 
Downloaded  128 Time(s) 
PathFinder.gz
Description  fake gz-file just rename to PathFInder
gz

 Download 
Filename  PathFinder.gz 
Filesize  610.84 KB 
Downloaded  134 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
Ibidem

Joined: 25 May 2010
Posts: 523
Location: State of Jefferson

PostPosted: 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
View user's profile Send_private_message 
Jan99

Joined: 01 Jan 2013
Posts: 6

PostPosted: Wed 09 Jan 2013, 15:39    Post_subject: pUPnGO 2012
Sub_title: 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
View user's profile Send_private_message 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: 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...
GrypToK.gz
Description  fake gz-file - just rename to GrypToK
gz

 Download 
Filename  GrypToK.gz 
Filesize  5.81 KB 
Downloaded  133 Time(s) 
snap0002.png
 Description   
 Filesize   19.1 KB
 Viewed   362 Time(s)

snap0002.png

Back to top
View user's profile Send_private_message Visit_website 
goingnuts

Joined: 07 Dec 2008
Posts: 783

PostPosted: 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
Code:
exec rxvt "${@}"

This make rxvt error out with rxvt: unknown "" or something like that...
By replacing the line with
Code:
#exec rxvt ${@}

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
View user's profile Send_private_message Visit_website 
greengeek

Joined: 20 Jul 2010
Posts: 2669
Location: New Zealand

PostPosted: 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?
fastmail login crosses.png
 Description   Invalid and hidden characters represented by huge crosses
 Filesize   32.69 KB
 Viewed   213 Time(s)

fastmail login crosses.png

fastmail login no crosses.png
 Description   Invalid and hidden characters represented by a blank square
 Filesize   26.19 KB
 Viewed   213 Time(s)

fastmail login no crosses.png

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 13 of 27 Posts_count   Goto page: Previous 1, 2, 3, ..., 11, 12, 13, 14, 15, ..., 25, 26, 27 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0994s ][ Queries: 13 (0.0088s) ][ GZIP on ]