The time now is Wed 19 Jun 2013, 06:59
All times are UTC - 4 |
|
Page 15 of 50 Posts_count |
Goto page: Previous 1, 2, 3, ..., 13, 14, 15, 16, 17, ..., 48, 49, 50 Next |
| Author |
Message |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: Wed 22 Dec 2010, 12:40 Post_subject:
|
|
dbl post
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2199 Location: UK
|
Posted: 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!
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
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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)'
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: 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.
| Description |
|
| Filesize |
7.02 KB |
| Viewed |
1497 Time(s) |

|
| Description |
jwm_drives_new
|

Download |
| Filename |
jwmdrives_new.tar.gz |
| Filesize |
30.89 KB |
| Downloaded |
210 Time(s) |
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: 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> |
| Description |
|
| Filesize |
5.86 KB |
| Viewed |
1190 Time(s) |

|
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: 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...
| Description |
otf_sfs_loader010111
|

Download |
| Filename |
otf_sfs_loader010111.tar.gz |
| Filesize |
462.04 KB |
| Downloaded |
200 Time(s) |
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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
 
  

 
| Description |
|

Download |
| Filename |
getgui-202.pet |
| Filesize |
28.03 KB |
| Downloaded |
189 Time(s) |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: 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...
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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/
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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` |
| Description |
|
| Filesize |
6.98 KB |
| Viewed |
958 Time(s) |

|
| Description |
|
| Filesize |
3.11 KB |
| Viewed |
993 Time(s) |

|
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: 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.
| Description |
freememapplet static libgcc/libstdc++
|

Download |
| Filename |
freememapplet.tar.gz |
| Filesize |
156.11 KB |
| Downloaded |
186 Time(s) |
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: 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
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
emil
Joined: 10 Nov 2009 Posts: 547 Location: Austria
|
Posted: 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
|
|
 |
emil
Joined: 10 Nov 2009 Posts: 547 Location: Austria
|
Posted: 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
|
|
 |
|
|
Page 15 of 50 Posts_count |
Goto page: Previous 1, 2, 3, ..., 13, 14, 15, 16, 17, ..., 48, 49, 50 Next |
|
|
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
|