The time now is Wed 22 May 2013, 19:00
All times are UTC - 4 |
|
Page 7 of 62 [925 Posts] |
Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, ..., 60, 61, 62 Next |
| Author |
Message |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Sun 24 Jul 2011, 14:30 Post subject:
|
|
| technosaurus wrote: | | You don't even need a wrapper, just make a symlink of the same name as the function to bashbox. |
OK cheers, that was my first thought, but thought I'd check.
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 428 Location: Staffordshire
|
Posted: Sun 24 Jul 2011, 15:57 Post subject:
|
|
I think I've found a cleaner solution to retaining sound settings.
I've put into rc.local
and into rc.shutdown. Not sure if it matters where, but I placed it after the comment block around line 645.
This has been retaining any volume changes so far. Tested from a clean install without the update pet. Gleaned various bits of info from a forum search and then applied a bit of trial and error. I don't actually understand what I'm doing half the time
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Sun 24 Jul 2011, 16:52 Post subject:
|
|
| Keef wrote: | I think I've found a cleaner solution to retaining sound settings.
I've put into rc.local
and into rc.shutdown. Not sure if it matters where, but I placed it after the comment block around line 645.
This has been retaining any volume changes so far. Tested from a clean install without the update pet. Gleaned various bits of info from a forum search and then applied a bit of trial and error. I don't actually understand what I'm doing half the time  |
Errr... I get 'command not found' .. I don't seem to have alsactrl installed.. Are you sure you have?
EDIT... I have alsactl .. that must be it, right?
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
Keef

Joined: 20 Dec 2007 Posts: 428 Location: Staffordshire
|
Posted: Sun 24 Jul 2011, 17:15 Post subject:
|
|
Talk about proving a point...
typo - should be alsactl
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Sun 24 Jul 2011, 18:32 Post subject:
|
|
| Keef wrote: | Talk about proving a point...
typo - should be alsactl  |
Still helping me learn!
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Sun 24 Jul 2011, 19:07 Post subject:
|
|
OK I added the amixer stuff to rc.sysinit, removed it from ~./xinitrc
BUT, it is only applied if PUPMODE=5 (which means at first boot)
Then 'alsactl restore' is executed if PUPMODE != 5
I also added 'alsactl store' to rc.shutdown,
so these settings are saved at shutdown
This should mean:
Muted volume is corrected at first boot, and settings are saved at first shutdown.
Settings are always restored to previously saved setting, each boot after that.
Settings are (re)saved at every shutdown, as well.
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Mon 25 Jul 2011, 02:44; edited 2 times in total
|
|
Back to top
|
|
 |
oligin10
Joined: 17 Jul 2010 Posts: 142 Location: Buckeye State, USA
|
Posted: Sun 24 Jul 2011, 19:20 Post subject:
|
|
Hi Scott, using SNS usually. I find it seems to work best with my ath_pci 5xxx card. Others work sometimes, then they don't (at least on other puplets). Set retrovol to start at bootup, will check it later. Thanks, Rob
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Mon 25 Jul 2011, 04:33 Post subject:
|
|
here is my optimized code for generating a desktop file database, but the $OUTPUT could be modified to generate a jwm/ice/<other_wm> menu directly (with some extra code)
| Code: | #!/bin/ash
#due to the *.desktop files having set parameter names with an equal sign we can _almost_ just include them ... just need some help from sed
for x in /usr/share/applications/*.desktop ; do
#removes lines with [*] and quotes the =* ... to ="*" , but need "eval" to actually set the variables within
eval `sed '/]/d;s/=/=\"/g;s/$/\"/g' $x` 2>/dev/null
OUTPUT=$OUTPUT$Exec"|"$Categories"|"$GenericName"|"$Name"|"$Icon"|"$Comment"\n" #needed to make newlines in echo -e output file
done
#we used a variable inside the loop because it is much faster to write to a file only once here
echo -e $OUTPUT >tmp |
here is my unoptimized code where this came from ... a gtkdialog based menu ... btw puppy really needs locate and updatedb for gtkdialog to function as intended (it locates icons etc...) or we need to patch it to search in /usr/share/mini-icons (it already looks in /usr/share/pixmaps)
Note: the ayttm.desktop file has unneeded quotes that break this, but
| Code: | #!/bin/ash
[ -f /var/locatedb ] && echo file database found || [ `which updatedb` ] && updatedb --localpaths=/usr
[ -f /tmp/.pgtkmenu ] && gtkdialog3 -f /tmp/.pgtkmenu && exit
for x in `ls /usr/share/applications/*.desktop`; do
EXE="`grep "^Exec=" $x |cut -d = -f 2`"
CAT="`grep "^Categories=" $x |cut -d = -f 2`"
NAM="`grep "^GenericName=" $x |cut -d = -f 2`"
[ "$NAM" = "" ] && NAM="`grep "^Name=" $x |cut -d = -f 2`"
ICO="`grep "^Icon=" $x |cut -d = -f 2`"
COM="`grep "^Comment=" $x |cut -d = -f 2 |sed 's/\"//g'`"
NEW="\n<hbox tooltip-text=\"$COM\">\n
<button>\n
\t <label>$NAM</label>\n
\t <input file>${ICO:-/usr/share/mini-icons/so.xpm}</input>\n
\t <action>$EXE &</action>\n
</button>\n</hbox>
"
case $CAT in #todo this is an incomplet list ... too many end up in misc still
*alculat*|*inance|*heet|ProjectManagement) BUS=$BUS$NEW"\n";;
*eskto*|*creensave*|*ccessib*) DSK=$DSK$NEW"\n";;
*ocumen*|*ordProcessor|*ebDevelo*) DOC=$DOC$NEW"\n";;
*ile*) FIL=$FIL$NEW"\n";;
*Game|*olePla*|*imulation|*musement) FUN=$FUN$NEW"\n";;
*raphics|*hotography|*resent*|*art) GFX=$GFX$NEW"\n";;
*udio*|*ideo*|*layer|*ecorder|*usic|*idi|*ixer|*equencer|*uner|TV|*iskBurning) MED=$MED$NEW"\n";;
Dialup|Network|HamRadio|RemoteAccess) NET=$NET$NEW"\n";;
X-PersonalUtility|X-Personal|Calendar|ContactManagement) PER=$PER$NEW"\n";;
*etup*|PackageManager) SET=$SET$NEW"\n";;
*onitor|*ecurity|*ardware*|*ore|*ystem) SYS=$SYS$NEW"\n";;
Utility|Viewer|Development|Building|Debugger|IDE|Profiling|Translation|GUIDesigner|Archiving|TerminalEmulator|Shell) UTL=$UTL$NEW"\n";;
*nternet|*rowser|*mail|*ews|*essaging|*elephony|*lient|*ransfer|P2P) WEB=$WEB$NEW"\n";;
*) MSC=$MSC$NEW"\n";;
esac
done
DLG="<notebook page=\"0\" tab-pos=\"1\" enable-popup=\"true\" labels=\"Business|Desktop|Document|File|Fun|Graphics|Media|Network|Personal|Setup|System|Utility|Web|Miscellaneous\">
\n<frame Business>"$BUS"\n</frame>
\n<frame Desktop>"$DSK"\n</frame>
\n<frame Document>"$DOC"\n</frame>
\n<frame File>"$FIL"\n</frame>
\n<frame Fun>"$FUN"\n</frame>
\n<frame Graphics>"$GFX"\n</frame>
\n<frame Media>"$MED"\n</frame>
\n<frame Network>"$NET"\n</frame>
\n<frame Personal>"$PER"\n</frame>
\n<frame Setup>"$SET"\n</frame>
\n<frame System>"$SYS"\n</frame>
\n<frame Utility>"$UTL"\n</frame>
\n<frame Web>"$WEB"\n</frame>
\n<frame Misc>"$MSC"\n</frame>
\n</notebook>"
echo -e $DLG >/tmp/.pgtkmenu
$0 |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Mon 25 Jul 2011, 19:27 Post subject:
|
|
| technosaurus wrote: | | here is my optimized code for generating a desktop file database, but the $OUTPUT could be modified to generate a jwm/ice/<other_wm> menu directly (with some extra code) |
I've yet to get this to work, but have setup the .dsektop files to play nicely, but still get errors, will post them soon..
EDIT: I have 'locate' installed, BTW, but not updatedb.. Where can I get that?
On another note, I have successfully added the Wary repo to the PPM.
I also made most of it use ash, not bash.. So it's a bit faster, too.
My method (if u wanna know):
I created a script that downloads the list of files in ibiblio wary repo,
then it converts the list of .pets found, into pup4 (pre woof) PPM compatible entries.
I use wget, so I cannot get pet specs, containing the dependencies and descriptions!
So these are left blank for now.
The file livepackages5.txt is created, and I have modified the following files to support it:
/usr/sbin/petget
/usr/local/petget/pkg_chooser.sh
But I still have more to do before I am happy with it.
- Category filters do not, and will not work - no way of getting the pet specs for each package!
- The list of .pet shown is complete - the ones already installed are not hidden.
So, I will do this next:
- Disable the filter button when Wary repo is showing
- Update the file which lists all the pets which are pre-intalled
Some help..
Which file lists all the pets which are pre-intalled (pre-woof)?
It must be /root/.packages/packages.txt, right?
 |
| Description |
the proof |
| Filesize |
116.49 KB |
| Viewed |
196 Time(s) |

|
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Tue 26 Jul 2011, 08:37; edited 2 times in total
|
|
Back to top
|
|
 |
Puppyt
Joined: 09 May 2008 Posts: 510 Location: Helidon Spa, Queensland
|
Posted: Mon 25 Jul 2011, 23:12 Post subject:
Subject description: Akita feedback - part1 |
|
| sc0ttman wrote: |
On another note, I have successfully added the Wary repo to the PPM.
|
Cheers sc0ttman! I had a look at your example provided and it looks much better than the standard PPM - with it's un-resizable inner window and attribute columns. Good job!
I've been experimenting with your Akita + Frisbee to illustrate my progress in getting eduroam to work in puppy, and I thought I'd just briefly tell you about more general observations first. Sorry if you've already mentioned these matters elsewhere for your alpha release.
I'm testing it frugal-installed on a T60 Lenovo lappie, dual-core with 2Gb RAM.
Love the clean look, though labels on my multiple partitions and usb drives would be useful. While first running it 'live' I liked the APPS option in the taskbar(?) heaps, but strangely it didn't work after I installed Akita to HD. The network applet I haven't seen working yet, and I can't start the network options from there. Can't seem to get Xpad working either - I get the sticky, but I can't enter data and it won't respond to preference changes. Shame - I really like Xpad. You've picked a great selection of other apps there too - great to see radky's control panels in there. Liked your browser selector very much too, although after I installed FireDog 3.6 I got some strange missing dependencies. I don't think it hurt the install though as it seemed to be fine when I tested it, online. However - I have to keep setting up the network on each reboot - there's no apparent memory of previous settings (in Frisbee anyway), and no autoconnect.
Perhaps my hiccups have something to do with a weird behaviour I got earlier on a previous boot: I clicked somewheres near Osmo on the taskbar (lower left) and Akita went into immediate shutdown (no shutdown options like normal). I thought initially that it was a really neat "chicken switch" like the OFF button in some pupplets (like HSB) but I couldn't replicate the response. So it seems that most of my issues above might very well relate to FS corruption, although I get no bootup errors. Actually, come to think of it, my recent difficulties with Frisbee and wpa_supplication configuration files (for eduroam) might also be related to that, rather than the conflict issues you note with other network managers earlier in this thread. Feels like I'm on the verge of cracking the eduroam issue, though.
Hope to give you new and improved feedback tomorrow, after a re-install -
Thanks!
_________________ Toowoomba Linux Community
http://groups.google.com/group/toowoombalinux
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Tue 26 Jul 2011, 03:43 Post subject:
Subject description: Akita feedback - part1 |
|
| Puppyt wrote: | | sc0ttman wrote: |
On another note, I have successfully added the Wary repo to the PPM.
|
Cheers sc0ttman! I had a look at your example provided and it looks much better than the standard PPM - with it's un-resizable inner window and attribute columns. Good job! |
Glad you like it, there is a bit of a dependancy nightmare for PPM packages, as this one is a real mongrel, but I got a few big apps working after checking the deps and installing them. All worked fine once all deps were added (also through the PPM).. The way repo works better than the old pup4 repo, anyway!
| Quote: | | Love the clean look, though labels on my multiple partitions and usb drives would be useful. While first running it 'live' I liked the APPS option in the taskbar(?) heaps, but strangely it didn't work after I installed Akita to HD. |
I like the theme, too.. But if you don't like blue, you're screwed
The drive lables and mnt points are shown in a popup tooltip..
I would love to recompile JWM to have a zero second delay on its button tooltips!
And I will see about adding volume labels to the JWM drives script if I can,
although anything too large changes the background behind the icons.. looks ugly.
The uploaded alpha has a bug in switching the desktops, I think..
It messes up the buttons required for loading the Apps menu,
making the taskbar button not work...
If you ran toggle-rox-desktop, (or maybe refreshdesktop) then that would be it.. If not, no idea..
| Quote: | | The network applet I haven't seen working yet, and I can't start the network options from there. |
Yeah, it's a 'light' version from goingnuts, still looking into alternatives.
Clicking on it does nothing, and apparently it doesn't work for wifi.
I want all tray apps loadable as a choice in the 'Startups' manager.
I do not want to hard code them to always start (as is the normal puppy way).
That's why I haven't got around to adding the normal network tray tool to 'Startups'.
(but freememapplet is there, I will also add the normal network tray tool)
I will look at adding goingnuts latest tray apps (pmmon5),
as well as the traditional puppy tray tools as startup options in 'Startups'.
| Quote: | | Can't seem to get Xpad working either - I get the sticky, but I can't enter data and it won't respond to preference changes. Shame - I really like Xpad. |
I'll recompile it. Thanks for catching that!
| Quote: | | You've picked a great selection of other apps there too - great to see radky's control panels in there. Liked your browser selector very much too, although after I installed FireDog 3.6 I got some strange missing dependencies. I don't think it hurt the install though as it seemed to be fine when I tested it, online. |
I've tried to squeeze in as many good, light apps as I can. And the Firedog deps dont matter..
| Quote: | | However - I have to keep setting up the network on each reboot - there's no apparent memory of previous settings (in Frisbee anyway), and no autoconnect. |
Hmmm... I wanna get this sorted if I can... But know so little..
I'm hoping a wifi wizard can give my alpha a good going over!
Autoconnect should work, and I have upgraded the ROX "Connect" icon..
Although it is hidden by default, you need to run 'toggle-rox-desktop', to enable the ROX desktop.
Then you need to run "desksetup" to choose to show full icon set.
(This will all be simpler later, I promise...)
After all this, there is a right click option on the "Connect" icon, to enable or disable autoconnect... It was done by shinobar, I have not tested it as my eth0 (wired) connection always works at first boot and all reboots...
| Quote: | | Perhaps my hiccups have something to do with a weird behaviour I got earlier on a previous boot: I clicked somewhere near Osmo on the taskbar (lower left) and Akita went into immediate shutdown (no shutdown options like normal). |
yeah, something may have gone wrong there.. should not auto shutdown, there are always dialogs..
or maybe not for full HD install.. never done one.. have to have a think.
| Quote: | Hope to give you new and improved feedback tomorrow, after a re-install -
Thanks! |
Thanks for all your info and support.. MUCH appreciated.
I look forward to further reports or problems found.
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Tue 26 Jul 2011, 09:31 Post subject:
Subject description: Akita feedback - part1 |
|
May be relevant: http://www.murga-linux.com/puppy/viewtopic.php?p=547378#547378
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Tue 26 Jul 2011, 14:47 Post subject:
|
|
I posted on Barry's blog about how to get the pet.specs from packages
http://bkhome.org/blog/?viewDetailed=02368
the way the packages are currently built, it requires 100% download, but only enough space for the pet.specs file (only good if diskspace is a concern while bandwidth isn't)
I posted a fix for pet creation scripts so that the pet.specs file is first in the tarball (thus potentially saving tons of bandwidth when piped through tar)
basically replace
tar -cf $PKG.tar $PKG
with
tar -cf $PKG.tar $PKG/pet.specs
tar -uf $PKG.tar $PKG
then you can get them with some variation of: | Code: | wget -q -O - $REPO_DIR/$PKG$EXT |gunzip |tar -x $PKG/pet.specs 2>/dev/null &
PIDOFTAR=$!
while ([ ! -e ./$PKG/pet.specs ]) do
sleep .1
done
kill $PIDOFTAR |
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Tue 26 Jul 2011, 16:33 Post subject:
|
|
I saw that.. Perfect timing, I thought.. And I like your idea of making the pet.specs file first in the pet files, I didnt know you could then download only the pet.specs, keep it, then move on... That is nice..
I have yet to add your script in to anything meaningful, but have hacked it a little bit to work on a file that was generated by my own script. The file generated contains only the .pet filenames, each on a new line..
Here's the script I am using to get the list of files.. It is not run in pkg_chooser.sh or petget, I ran it manually to create the file needed, and just added that file to the remaster..
Anyway, here is my script for getting a list of .pets in the Wary repo,
if you can integrate your work to include the .pet specs, that would be amazing..
If you could make the download part (wget) faster, that would be even more amazing-er..
| Code: | #!/bin/ash
LANG=C
export LOGFILE=/tmp/wary-repo.log
export SIZESFILE=/tmp/wary-repo-petsizes.log
export PETSFILE=/tmp/wary-repo-pets.log
export FINALFILE=/tmp/wary-repo-pup4.log
export FINALFILE1=/tmp/wary-repo-ppm.log
#rm $LOGFILE
rm $SIZESFILE 2>/dev/null
rm $PETSFILE 2>/dev/null
rm $FINALFILE 2>/dev/null
rm $FINALFILE1 2>/dev/null
if [ ! -s $LOGFILE ]; then
# get list, takes time, please wait
xmessage "Downloading list of .pets in Wary repo..
Please wait, this will take at least 5 or 10 mins...
Go make a cup of tea..." &
XPID=$!
wget --spider --no-parent --level 1 --accept pet -r -o ${LOGFILE} http://distro.ibiblio.org/pub/linux/distributions/quirky/pet_packages-wary5/
kill $XPID 2>/dev/null
fi
xmessage "Rebuilding list for the Puppy Package Manager (PPM)..
Please wait, this may take a few minutes..." &
XPID=$!
# get size of pets
cat ${LOGFILE} | grep "octet" | grep "Length" | cut -f 3 -d " " | cut -f 1 -d " " | sed 's/[^a-zA-Z0-9.]//g' > ${SIZESFILE}# keep only A-z and .
# replace sizes not returned with '1K', as they're all tiny anyway
sed -i 's/applicationoctetstream/1K/g' ${SIZESFILE}
# get list of pets filenames
cat ${LOGFILE} | grep "wary5/" | grep "\.pet" | grep -v "Removing" | cut -f 9 -d "/" > ${PETSFILE}
# now make a puppy 4 compatible PPM list, like /root/.packages/installedpkg.txt or whatever
# for each pet file listed
for x in $(cat ${PETSFILE}); do
petname="$x"
# add a pup4 compatible line to the final file
echo "\"${petname}\" \"${petname}: \" off " >> ${FINALFILE}
#echo $petname added to file ${FINALFILE}...
done
# combine the pet names and sizes $PETSFILE and $SIZESFILE
exec 3<${SIZESFILE} # get each line of file
while read line # read the list of pet names
do
read -u 3 toadd # read the line
echo "$line \"$toadd\" /" >> ${FINALFILE1} # add the sizes to the end of the line, into new file
done <${FINALFILE}
# copy the tmp file to ~/.packages, as livepackages5.txt
cp ${FINALFILE1} ~/.packages/livepackages5.txt
kill $XPID 2>/dev/null # kill splash
Xdialog --title "Wary repository updated" --yesno "The Wary repository has been updated.
It is now available in the Puppy Package Manager.
Do you want to run the PPM now?" 0 0
REPLY=$?
if [ "$REPLY" = 0 ];then
/usr/local/petget/pkg_chooser.sh &
fi
## can remove the comments below to delete the files, but I keep them for testing, at the moment
#rm $SIZESFILE 2>/dev/null
#rm $PETSFILE 2>/dev/null
#rm $FINALFILE 2>/dev/null
#rm $FINALFILE1 2>/dev/null
exit 0 |
It takes about 6 mins on my PC..
Note that the .pet files are not actually downloaded!!
EDIT: Techno, I am running your script now, hacked, and I think i messed it up, very slow, stuck on 3rd package...
Where would you recommend sticking it in petget, etc?
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
Last edited by sc0ttman on Tue 26 Jul 2011, 17:40; edited 1 time in total
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2174 Location: UK
|
Posted: Tue 26 Jul 2011, 17:33 Post subject:
|
|
Something else I want to add to the PPM..
Barry recently reported on his blog that he can now exclude packages from the PPM, based on kernel version.
I could add this to the script attached above, or the PPM itself.
This is ideal for my mongrel, as the Wary repo lists drivers for many different kernels, not including the default Puppy 4 kernel-2.6.25.16, of course.. This is a problem, unless you know what you're doing.
So I will try to add the above feature, so that only drivers for the current kernel are shown in the PPM.
I might need help on this, but will check Barrys site...
Am finding it quite annoying that Barry doesn't post the code changes on his site,
meaning that I will have to download the latest Woof and hunt through it!
Grrrr....
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
|
|
Page 7 of 62 [925 Posts] |
Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, ..., 60, 61, 62 Next |
|
|
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
|