Akita Linux, Beta 16 ISO

For talk and support relating specifically to Puppy derivatives
Post Reply
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#91 Post by sc0ttman »

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.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#92 Post by Keef »

I think I've found a cleaner solution to retaining sound settings.
I've put

Code: Select all

 alsactrl restore
into rc.local
and

Code: Select all

 alsactrl store 
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 :oops:

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#93 Post by sc0ttman »

Keef wrote:I think I've found a cleaner solution to retaining sound settings.
I've put

Code: Select all

 alsactrl restore
into rc.local
and

Code: Select all

 alsactrl store 
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 :oops:
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?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#94 Post by Keef »

Talk about proving a point...

typo - should be alsactl :oops:

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#95 Post by sc0ttman »

Keef wrote:Talk about proving a point...

typo - should be alsactl :oops:
Still helping me learn!
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#96 Post by sc0ttman »

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.
Last edited by sc0ttman on Mon 25 Jul 2011, 06:44, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

oligin10
Posts: 193
Joined: Sat 17 Jul 2010, 15:47
Location: Buckeye State, USA

#97 Post by oligin10 »

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

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#98 Post by technosaurus »

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: Select all

#!/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: Select all

#!/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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#99 Post by sc0ttman »

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. :D
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)? :roll:
It must be /root/.packages/packages.txt, right?
Attachments
wary-in-PPM.png
the proof
(116.49 KiB) Downloaded 290 times
Last edited by sc0ttman on Tue 26 Jul 2011, 12:37, edited 2 times in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Puppyt
Posts: 907
Joined: Fri 09 May 2008, 23:37
Location: Moorooka, Queensland
Contact:

#100 Post by Puppyt »

sc0ttman wrote: On another note, I have successfully added the Wary repo to the PPM. :D
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!
Search engines for Puppy
[url]http://puppylinux.us/psearch.html[/url]; [url=https://cse.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=#gsc.tab=0]Google Custom Search[/url]; [url]http://wellminded.net63.net/[/url] others TBA...

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#101 Post by sc0ttman »

Puppyt wrote:
sc0ttman wrote: On another note, I have successfully added the Wary repo to the PPM. :D
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!
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..
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'.
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!
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..
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...
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.
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.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#102 Post by sc0ttman »

[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#103 Post by technosaurus »

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: Select all

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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#104 Post by sc0ttman »

technosaurus wrote:I posted on Barry's blog about how to get the pet.specs from packages
http://bkhome.org/blog/?viewDetailed=02368
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: Select all

#!/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?
Last edited by sc0ttman on Tue 26 Jul 2011, 21:40, edited 1 time in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#105 Post by sc0ttman »

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....
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#106 Post by technosaurus »

The reason it is slow, is b/c the pets weren't packaged with the pet.specs first, so it requires 100% download.

Also because tar is not told to eliminate ./ when a pet it is built, some pkgs will have pet.specs at ./$pkg/pet.specs instead of just $pkg/pet.specs ... just add it to the end of the tar command with the other and it will work

Code:
wget -q -O - $REPO_DIR/$PKG$EXT |gunzip |tar -x $PKG/pet.specs ./$PKG/pet.specs 2>/dev/null &

Re: woof
Don't update your existing woof, just download a new one and use diff to get the changes since your last update.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#107 Post by big_bass »

the reason it is slow, is b/c the pets weren't packaged with the pet.specs first, so it requires 100% download.


to pull out a file using zcat without decompressing the whole thing

for example here zcat package.tgz | tar xvf - install/slack-desc

look for the slack-desc file something like what you are looking for the "pet.specs"

Code: Select all

zcat /root/sbopkg-0.35.0-noarch-1_cng.tgz | tar xvf - install/slack-desc




P.S I happened to need this quick test for a short description for a GUI for unofficial packages
maybe you can hack at it to work for you also


Joe


edited to remove an incorrect comment about *.pet
Last edited by big_bass on Wed 27 Jul 2011, 15:34, edited 2 times in total.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#108 Post by sc0ttman »

Thanks for the info guys..

Techno, I now have the following in my 'get-wary-repo' script:

Code: Select all

# for each .pet filename listed in $PETSFILE
for x in $(cat ${PETSFILE}); do
  petname="$x"
  wget -q -O - ${REPO_DIR}/${petname} |gunzip |tar -x $petname/pet.specs ./$petname/pet.specs 2>/dev/null
  echo "\"${petname}\" \"${petname}: \" off " >> ${FINALFILE}
done
Your line of code seems to execute fine, but what is it actually doing?

I can find no way of downloading (or piping the contents of) the .pet.spec files, which I need to insert into $FINALFILE
Don't update your existing woof, just download a new one and use diff to get the changes since your last update.
I've never downloaded Woof, so that'll be fine, can't replace anything!
The reason it is slow, is b/c the pets weren't packaged with the pet.specs first, so it requires 100% download.

I couldn't get past the 3rd package after 20 mins.. I guess it was the lack of ./ in the tar command... I can now..

bigbass, I am running the following on local pets, on my HD.

Code: Select all

zcat $PETFILE | tar --wildcards -xvf - *pet.specs
It's extracting the .pet.specs to the current dir fine on local files. Seems to work for a number of pets, both with and without ./ inside. It also works for .pet.spec files which include the package filename (cos they exist, too - one example is "./mhwaveedit-1.4.21-i386.pet.specs")

But can this code be combined with wget to get pet.specs from .pets in online repos? Cos that's what I need.

I will look into adding 1 of these commands into my "get-wary-repo" script (above), to get the pet specs for each package found.. Then hopefully I can parse each .pet.specs, adding its info into the main PPM-friendly list, before it's copied to ~/.packages/livepackages5.txt

EDIT: bigbass, I tried your code in the 'get-wary-repo' script, (just replaced technos with yours, sorry me so dumb) and zcat gives errors, saying 'whatever_pkg.pet.gz' not found
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#109 Post by sc0ttman »

Also, I forgot that the wary5 .pets don't register with PetGet.. I need to fix this, so I need to check if the normal registering fails, then apply a woof compatible registration of the installed pet.

Anyone got any ideas where to look?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#110 Post by big_bass »

Code: Select all

But can this code be combined with wget to get pet.specs from .pets in online repos? Cos that's what I need. 


the best way is a txt file you could parse I did something like this for slackwares
info to search inside the installed packages

Code: Select all

:>/tmp/shortlist
   ls -1 /var/log/packages/ >/tmp/pkglist
   
   for i in  `cat /tmp/pkglist` ; do
        sed -n 6p  /var/log/packages/$i  >>/tmp/shortlist
   done     
the logic would be the same though for puppy

it makes a blank file if there isnt one
makes a list of installed packages
filter out the short description only with sed * for puppy an array* I wrote a simple array search somewhere I'll look for it

*then for the server side the same thing goes its easier to parse a text file



nice with the --wildcards

I did try it with a pet and thought that the magic was throwing an error for *. pet
when it didnt work the same so I will remove that comment from my first post





zcat is identical to gunzip -c. (On some systems, zcat may be installed as gzcat to preserve the original link to compress.) zcat uncompresses either a list of files on the command line or its standard input and writes the uncompressed data on standard output. zcat will uncompress files that have the correct magic number whether they have a .gz suffix or not.

*************************
I found it

somefile2.txt has this data
the|three|little|pigs



# pull out a value from an array

Code: Select all

IFS='|'
array=( $(cat<somefile2.txt) )
IFS=$' \t\n'
# if you want to see the output of any string in the array add this
echo ${array[0]}
echo ${array[1]}
echo ${array[2]}
echo ${array[3]}
Joe

Post Reply