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 Mon 01 Sep 2014, 07:28
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO - 6Mb ISO - Basic Building Block Puplet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 15 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 13, 14, 15, 16, 17, ..., 56, 57, 58 Next
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 22 Dec 2010, 12:40    Post subject:  

dbl post
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Thu 23 Dec 2010, 16:25    Post subject:  

goingnuts wrote:
sc0ttman: Can you start (and view) pmconky.sh after jwm has started via rxvt? If so jwm has the <StartupCommand></StartupCommand> where you might put 'exec pmconky.sh'

I tried your suggestion, not sure I did it right, but what I did, didn't work! Sad

Also, I noticed your automount.sh script from the jwm_drives thing, is stopping me from being able to successfully create a save file..

the whole process goes through, but the writing part doesnt actually work.
(just in case you wanted to know.. )
im gonna try some changes either way.. so specifically not asking for support...

EDIT:

goingnuts, in case you care, i stopped automount from running in pupmode 5, now I can create save files...
then i modded create_jwmrc_drives.sh so that when you click on a drive, it runs 'drives_mounter.sh $1' which mounts the drives, if not mounted...
(my script 'drives_mounter.sh' is a near copy of cd_mounter.sh, but it takes $1)

But when automount doesnt run, I must hack 'create_jwm_drives', so that it successfully mounts the drive on which the pup_*.sfs file is kept..
(I check for pupmode then use either /initrd/mnt/dev_ro2 (no save file) or `readlink /mnt/home` (with save file)

(Not checked cd_mounter.sh yet, might have to do the same)

did you have the same problem with create_jwm_drives if you dont automount?
(is that why you use automount?)

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Tue 28 Dec 2010, 03:36    Post subject:  

simple console calculator
Code:
#!/bin/sh
A=`awk "BEGIN{print $1}"`
A=`dialog --stdout --inputbox . 0 0 $A`
[ $A ] && $0 $A


or change to dialog to Xdialog if you want

example:
calc '8+9*(8/2)+sqrt(144)-sin(1)'

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

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 29 Dec 2010, 05:39    Post subject: jwm-drives - reviewed  

As a response to sc0ttman´s findings using jwmrc-drives I reviewed the code:
Icons now dependent on file-system and using 9menu a small pop-up-window shows relevant choices (mount, umount/explore or cancel). Not really pretty as jwm insist to manage the window...
But 9menu (12K installed) has potential of being used for other purposes.
jwm_drives_new.png
 Description   
 Filesize   7.02 KB
 Viewed   1633 Time(s)

jwm_drives_new.png

jwmdrives_new.tar.gz
Description  jwm_drives_new
gz

 Download 
Filename  jwmdrives_new.tar.gz 
Filesize  30.89 KB 
Downloaded  288 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Wed 29 Dec 2010, 20:50    Post subject:  

if anyone wants to make it "pretty" you could add a notitle noborder group to jwm
http://joewing.net/programs/jwm/config.shtml#groups

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

Joined: 07 Dec 2008
Posts: 780

PostPosted: Thu 30 Dec 2010, 03:59    Post subject:  

technosaurus: Just what was missing - thanks!
Just added:
Code:
<Group>
<Class>9menu</Class>
<Name>9menu</Name>
<Option>notitle</Option>
</Group>
jwm_drives_new.png
 Description   
 Filesize   5.86 KB
 Viewed   1254 Time(s)

jwm_drives_new.png

Back to top
View user's profile Send private message Visit poster's website 
goingnuts

Joined: 07 Dec 2008
Posts: 780

PostPosted: Sat 01 Jan 2011, 11:36    Post subject: otf_sfs_loader  

Worked a little more with otf_sfs_loader. Added:
#autoconfig max loops and creation of loops
#check of disktype instead of relying on extension (now loads tcz)
#autoconvert squashfs 4 to 3 (and vice versa for future P431 comp.)
#check aufs version (for future P431 comp.)
#user setup (modify max number of squashfs-files that can be loaded)
#now takes arguments from command line (or drop a bunch of squashfs-files on the script and auto load)
#adapted ldconfig and fixmenus/restart jwm from gyros sfs_load-script for P431)

Included static builds of mksquashfs vers. 3 & 4 + unsquashfs vers. 3 & 4.
Also included rc.otf_sfs that will reload all the squashfs-files loaded at shutdown.

Still on the draft-level...
otf_sfs_loader010111.tar.gz
Description  otf_sfs_loader010111
gz

 Download 
Filename  otf_sfs_loader010111.tar.gz 
Filesize  462.04 KB 
Downloaded  265 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Sun 02 Jan 2011, 23:09    Post subject:  

getgui is a nice little (actually quite extensive) replacement for *dialog and other *message tools (I modified the source to change the ugly yellow to a medium gray)
manpage - examples
    some screenshots




getgui-202.pet
Description 
pet

 Download 
Filename  getgui-202.pet 
Filesize  28.03 KB 
Downloaded  249 Time(s) 

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

Joined: 07 Dec 2008
Posts: 780

PostPosted: Mon 03 Jan 2011, 11:55    Post subject:  

technosaurus: That is a nice finding! I might try to implement it in my dialogfunctions.sh. Total size (including dependencies) is around 1900K whereas total size for Xdialog is around 2700K (static gtk1-version) and around 8800K for the version from P412. And the dependencies are identical to the ones jwm needs... Very Happy
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Mon 03 Jan 2011, 19:02    Post subject:  

the developer of getgui (Steve Grubb) has some other pretty nice/lite tools as well:
http://sourceforge.net/users/fufufini - getgui, lxlogo, midriff, ploticus, quisp, shsql ...
While I am promoting overlooked (Non-Puppy) devs, I should put a plug in for:
Angel Ortega http://triptico.com/software/
Michael Cardell Widerkrantz http://www.hack.org/mc/hacks/
Valery Reznic http://sourceforge.net/users/valery_reznic/
kornelix??? http://kornelix.squarespace.com/ ... the name escapes me, though I have communicated via email after submitting some UI patches (the only C++ programmer in my list)

We really should have a wiki page for these guys and some of the Puppy devs too.

Not so overlooked but worth looking at almost any code they (re)write:
Fabrice Bellard http://bellard.org/
Rob Landley http://landley.net/hg/

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Mon 03 Jan 2011, 22:50    Post subject:  

here is the calculator ported to getgui
Code:
#!/bin/sh
A=`awk "BEGIN{print $1}"`
A=`getgui calculator -keyin -initval $A`
[ $A ] && $0 $A


and a minimal process killer gui
Code:
#!/bin/sh
L=`ps -a |grep -v PID |awk '{print $1"\t\t"$4}'`
kill `getgui -title "ggProcess" -msg "Select process to kill" -selectbox "PID    CMD_NAME\n$L" -buttons "Kill|Close" -okstr Kill |cut -d " " -f1`
ggprocess.png
 Description   
 Filesize   6.98 KB
 Viewed   1074 Time(s)

ggprocess.png

calc.png
 Description   
 Filesize   3.11 KB
 Viewed   1095 Time(s)

calc.png


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

Joined: 07 Dec 2008
Posts: 780

PostPosted: Wed 05 Jan 2011, 16:20    Post subject: freememapplet  

I have been missing freememapplet in the pupngo GUI-part...but it needs so many libs...
Managed to link libgcc and libstdc++ static and this leaves freememapplet with dependencies already present. But binary goes from 20K to 524K! UPX-ed it gets down to 155K. Still a lot just to show what it shows. But here it is if anybody misses it.
Changed font to fixed and included the 3 xpms needed.
freememapplet.tar.gz
Description  freememapplet static libgcc/libstdc++
gz

 Download 
Filename  freememapplet.tar.gz 
Filesize  156.11 KB 
Downloaded  250 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Wed 05 Jan 2011, 18:23    Post subject:  

Thanks - it does come in handy to know why things have started to slow down and even fail (the -flto flag in my new gcc compile uses ~3X the disk space as without it -which is actually useful to lower ram usage when it is not running in RAM like I typically do)
Compiling c++ for size is a daunting, sometimes painful task if you want to link statically with libstdc++ (similar to glibc, lots of inlining makes it rather large)
for c++ apps you can try compiling with -fno-rtti and -fno-exceptions added to the CXXFLAGS as well as doing the final link with gcc instead of g++ and linking libsupc++ instead of libstdc++

Note: When compiling with -fno-exceptions, if you get an error refering to exceptions, you can usually remove the catch code that gcc refers to without affecting operation ... maybe just do a print to stderr in its place

If you still aren't satisfied with your results there are some alternatives.

I have tried uclibc++ with uclibc and it worked great (it uses a gcc wrapper), but have been meaning to try it with glibc or alternatively stlport or the seemingly more promisingustl

here is one example program I compiled statically with uclibc and uclibc++
http://www.murga-linux.com/puppy/viewtopic.php?t=60395
(it was roughly the same size as the shared glibc version)

On a side note I think it would be an interesting project to make a tray applet frontend that all it does is refresh icons at some periodicity and run an application when clicked (maybe add a right click later)
This would allow one process to handle them all and conserve RAM

Code:
trayapplet - copyleft 2011 technosaurus
    usage:
# trayapplet icon1:refreshtime:leftclickcommand:rightclickcommand icon2
default values: X seconds, no command, and start/stop/help/about menu

this would allow the icons to be updated using a shell script (by changing a symlink, regenerating the icon etc...) btw I compiled ploticus (same maintainer as getgui) last night - it is EXTREMELY fast at generating images - no extra dependencies either - will post if interested ... did several different versions with various combinations of SVG, png, X11, ps, gif enabled ranging from <300k to almost 600k, but all are really fast and light ... I may try to tweak mtcelledit to use ploticus instead of mtcellplot

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 616
Location: Austria

PostPosted: Thu 06 Jan 2011, 14:51    Post subject:  

goingnuts:
Quote:
Do not work in P431 but could be modified to do so (different squashfs/aufs-version I think). Works only with aufs (but same functionality could be made with unionfs using unionctl).


Quote:
Worked a little more with otf_sfs_loader. Added:
...
#check aufs version (for future P431 comp.)


hi - I tried to use the OTF_SFS Loader with Lupq-511, but it wont run because aufsfilesystem check fails. You write that it possibly could be modified, do you have any specific hint how and where?
thanks in advance!
emil
Back to top
View user's profile Send private message Visit poster's website 
emil

Joined: 10 Nov 2009
Posts: 616
Location: Austria

PostPosted: Thu 06 Jan 2011, 14:53    Post subject: otf_sfs in puppy 5  

goingnuts wrote:
Quote:
Do not work in P431 but could be modified to do so (different squashfs/aufs-version I think). Works only with aufs (but same functionality could be made with unionfs using unionctl).


Quote:
Worked a little more with otf_sfs_loader. Added:
...
#check aufs version (for future P431 comp.)


hi - I tried to use the OTF_SFS Loader with Lupq-511, but it wont run because aufs filesystem check fails. You write that it possibly could be modified, do you have any specific hint how and where?
thanks in advance!
emil
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 15 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 13, 14, 15, 16, 17, ..., 56, 57, 58 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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