The time now is Thu 19 Apr 2018, 16:08
All times are UTC - 4 |
Page 173 of 346 [5187 Posts] |
Goto page: Previous 1, 2, 3, ..., 171, 172, 173, 174, 175, ..., 344, 345, 346 Next |
What is the best Puppy Version ever, LOL |
2.14x |
|
28% |
[ 11 ] |
2.14x |
|
10% |
[ 4 ] |
2.14x |
|
28% |
[ 11 ] |
Other: 2.14x only |
|
31% |
[ 12 ] |
|
Total Votes : 38 |
|
Author |
Message |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Sat 19 Dec 2009, 20:32 Post subject:
|
|
I usually like watching crime investigating and sci-fi tv usually and I came across a interactive Canadian coldcase flash movie that was interesting here's a link, http://www.cbc.ca/news/coldcase/cases/greavette.html you can pause the slides with a left click mouse and drag them forward and reverse with the mouse. Kind of a neat way of displaying images with sound. just click the flash image to start
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sat 19 Dec 2009, 22:15 Post subject:
|
|
ttuuxxx wrote: | I added the /usr/bin/ar bin because its included in the devx but not in the iso, basically it allows the extraction of debs and others, strange it wasn't in the iso as default. probably could be removed for other newer 4 series versions to use this updated pet.
oh well tuuxxx. |
I don´t get it ttuuxxx, the ar executable allows extraction from xarchiver or File-roller?. Cause, actually It is not used by the deb2pet.rpm2pet script.
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Sat 19 Dec 2009, 22:20 Post subject:
|
|
clarf wrote: |
I don´t get it ttuuxxx, the ar executable allows extraction from xarchiver or File-roller?. Cause, actually It is not used by the deb2pet.rpm2pet script. |
Yes its used by xarchiver & File-roller to extract deb.rpm.
And yes deb2pet.rpm2pet doesn't use it, but it was a alternative addition That will be included in the next release.
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sat 19 Dec 2009, 22:35 Post subject:
|
|
ttuuxxx wrote: | the deb/rpm installer doesn't work, it registers the application so you can uninstall it, but it doesn't actually install. grrrrrrrrr
ttuuxxx |
ttuuxxx the deb2pet.rpm2pet installer does not work because it try to use unrpm and undeb applications, that are not present in 214X. Then it just creates a pet package with the pet.specs file inside but nothing more (that pet is registered by petget).
Anyway you can use dpkg-deb (don´t confuse with buggy dpkg) instead of undeb to use small and smart dejan555 script, but there´s not a full extraction alternative for rpm packages.
The alternative code from amigo is GREAT for rpm, it does not need any additional library or application and works really good . But it has two inconvenients (or I must say it is incomplete for the implementation needed in 214X):
1. It extracts the deb/rpm package but not install it, so I must add the additional code from dejan555 that produces a correct installation.
2. For deb packages it does a full extraction adding the unneeded control files from the deb package, so I need to use other alternative like dpkg-deb that works fine.
I´m working now in a new mixed version that is working fine , should finish tonight.
Greetings,
clarf
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sat 19 Dec 2009, 22:47 Post subject:
|
|
ttuuxxx wrote: | clarf wrote: |
I don´t get it ttuuxxx, the ar executable allows extraction from xarchiver or File-roller?. Cause, actually It is not used by the deb2pet.rpm2pet script. |
Yes its used by xarchiver & File-roller to extract deb.rpm.
And yes deb2pet.rpm2pet doesn't use it, but it was a alternative addition That will be included in the next release.
ttuuxxx |
Thanks for the clarification and thanks for the nice addition
Well I have some progress, and the working code seems good:
Code: | #!/bin/sh
# exploderpm
# Adapted by Gilbert Ashley <amigo@ibiblio.org>
# VERSION 0.2
# The code for explode_rpm was originally written by Jeff Johnson
# and modified by Lasse Collin <lasse.collin@tukaani.org>
# Copyright (C) 2005, 2006 Lasse Collin <lasse.collin@tukaani.org>
# code for handling debian archives taken from disrpm
# released under the Gnu General Public License (GPL)
# (c) bjdouma@xs4all.nl
######################
#VER="v1.5, october 2004"
help_text() {
echo "Usage: [-l] [-xv] package_name"
echo "Options"
echo " -i: Install Package"
echo " -x: Extract Package"
echo " -l: List Package Content"
echo " -xv: Extract Package with Verbose"
}
OPT="$1"
FILE="$2"
[[ $OPT = '-lv' ]] && VERBOSE='v' OPT='-l'
[[ $OPT = '-xv' ]] && VERBOSE='v' OPT='-x'
if [ "$OPT" = "" ]; then
help_text
fi
explode() {
case "$1" in
*.rpm) explode_rpm "$FILE" ;;
*.deb) explode_deb "$FILE" ;;
esac
return $?
}
explode_deb() {
case $OPT in
'-x')
DEB=$1
FOLDR=$(echo $FILE|sed 's/\.deb$//')
mkdir "$FOLDR"
cp "$DEB" "$FOLDR"
cd "$FOLDR"
DEB=`ls | grep ".deb"`
[ ! $VERBOSE ] && dpkg-deb -x $DEB .
[ $VERBOSE ] && dpkg-deb -X $DEB .
rm "$DEB"
;;
'-i')
DEB=$1
FOLDR=$(echo $FILE|sed 's/\.deb$//')
mkdir "$FOLDR"
cp "$DEB" "$FOLDR"
cd "$FOLDR"
DEB=`ls | grep ".deb"`
dpkg-deb -x $DEB .
rm "$DEB"
FOLDR=`basename "$FOLDR"`
echo "PETMENUDESCR=''" > "$FOLDR.pet.specs"
echo "PETOFFICIALDEPS=''" >> "$FOLDR.pet.specs"
echo "PETREGISTER='yes'" >> "$FOLDR.pet.specs"
cd ..
tar -cf "$FOLDR.tar" "$FOLDR"
gzip "$FOLDR.tar"
tgz2pet "$FOLDR.tar.gz"
rm -R -f "$FOLDR"
rox "$FOLDR.pet"
;;
'-l')
DEB=$1
dpkg-deb -c $DEB
;;
esac
}
explode_rpm() {
local pkg o sigsize gz
pkg=$1
o=104
set -- $(od -j $o -N 8 -t u1 -- "$pkg")
sigsize=$((8 + 16 *
(256 * (256 * (256 * $2 + $3) + $4) + $5) +
(256 * (256 * (256 * $6 + $7) + $8) + $9)))
o=$((o + sigsize + (8 - (sigsize % 8)) % 8 + 8))
set -- $(od -j $o -N 8 -t u1 -- "$pkg")
o=$((o + 8 + 16 *
(256 * (256 * (256 * $2 + $3) + $4) + $5) +
(256 * (256 * (256 * $6 + $7) + $8) + $9)))
comp=$(dd if="$pkg" ibs=$o skip=1 count=1 2>/dev/null \
| dd bs=3 count=1 2> /dev/null)
gz="$(echo -en '\037\0213')"
#xz="$(echo -en '\0fd\037\07a\058\05a\000')"
case $OPT in
'-x')
case "$comp" in
BZh) dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 | cpio --quiet -ivdm ;;
"$gz"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip | cpio --quiet -ivdm ;;
"]"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -ivdm ;;
*) echo "Unrecognized rpm file: $pkg"; return 1 ;;
esac
;;
'-l')
case "$comp" in
BZh) dd if="$pkg" ibs=$o skip=1 2>/dev/null | bunzip2 | cpio --quiet -t$VERBOSE ;;
"$gz"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | gunzip | cpio --quiet -t$VERBOSE ;;
"]"*) dd if="$pkg" ibs=$o skip=1 2>/dev/null | unxz | cpio --quiet -t$VERBOSE ;;
*) echo "Unrecognized rpm file: $pkg"; return 1 ;;
esac
;;
esac
[ $? != 0 ] && return 1
# The directories that are not listed in the RPM file are always created
# "chmod 0700" by cpio. We will reset those directories to "chmod 0755".
# Unfortunately we cannot detect without extra help from cpio if the
# package had some directories that shouldn't be world readable.
find . -type d -perm 700 -exec chmod 755 {} \;
return 0
}
# End of functions.explode.sh
explode "$FILE" |
I added some additional options, still need some polish in rpm code and of course the instllation option for rpm.
I know I'm new in linux programming and shell scripting, for this reason the code is functional but ugly and sometimes I just get lost. I usually start from a main function used in C, but script code seems to execute step by step, well I'm learning slowly, yet need to learn Xdiag and GTK...
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sun 20 Dec 2009, 01:49 Post subject:
|
|
OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Sun 20 Dec 2009, 02:03 Post subject:
|
|
clarf wrote: | OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf |
hmmm how about deb-rpm-installer
puppy used to have a alien installer way back, but a bit confusing for newbeeeee's
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sun 20 Dec 2009, 02:45 Post subject:
|
|
ttuuxxx wrote: | clarf wrote: | OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf |
hmmm how about deb-rpm-installer
puppy used to have a alien installer way back, but a bit confusing for newbeeeee's
ttuuxxx |
What about alienmanager? It´s not limited to install or convert alien packages.
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Sun 20 Dec 2009, 02:59 Post subject:
|
|
clarf wrote: | ttuuxxx wrote: | clarf wrote: | OK, I finished the highly modified version. This little application list, extract, verbose extract and install deb/rpm package content.
I´ll upload a pet with the MIME to automatically install deb/rpm soon.
How should I name it?. I was thinking in alientopet, what do you think?.
clarf |
hmmm how about deb-rpm-installer
puppy used to have a alien installer way back, but a bit confusing for newbeeeee's
ttuuxxx |
What about alienmanager? |
clarf you built it, you name it how about area51installer ,lol just kidding
ttuuxxx
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sun 20 Dec 2009, 03:18 Post subject:
|
|
OK,
Here it is alienmanager for deb/rpm packages, no additional libraries needed . Includes MIME for one click install, also support command line parameters, type alienmanager --help for more info.
Many thanks to dejan555, amigo and tuuxxx for the support, information given and code , this application would not have been possible without your help.
clarf
Description |
deb/rpm Manager. Can list, extract, verbose extract and install alien packages.
|

Download |
Filename |
alienmanager.pet |
Filesize |
2.08 KB |
Downloaded |
544 Time(s) |
|
Back to top
|
|
 |
sullysat

Joined: 16 Oct 2007 Posts: 367 Location: San Antonio, TX
|
Posted: Sun 20 Dec 2009, 11:36 Post subject:
|
|
clarf,
Will alienmanager run on other puplets? I just want to be sure I have my facts straight as I start setting up the apps/utilities section for 214X.
Thanks,
Sully
_________________ Puppy Files Mirror - http://www.wisdom-seekers.com/puppy.html
Classic Puppy Page - http://www.wisdom-seekers.com/puppy214x.html
|
Back to top
|
|
 |
clarf

Joined: 13 Jun 2007 Posts: 614 Location: The old Lone Wolf
|
Posted: Sun 20 Dec 2009, 15:10 Post subject:
|
|
Hi Sully,
It should work fine in other puplets, because no additional libraries are needed just busybox and basic system tools.
It uses cpio, dd and some basic extraction tools like gunzip, bunzip2 and unzx to extract and list rpm packages. For deb extraction it uses busybox dpkg-deb.
In installation mode (the one used in Rox-Filer MIME), It calls petget after the extraction and pet conversion is done. It uses tar, gzip and tgz2pet for pet conversion.
Greetings,
clarf
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Mon 21 Dec 2009, 08:39 Post subject:
|
|
Hi Guys here's a music player/Manager, you can even edit your song tags with it
Its actually a very nice program, and I managed to make the pet under 1MB wow, lol I had to compile and include just a couple of libs, lol I also left the locals in
libcdio-0.82-i386
libmad-0.15.1b-i386
libmodplug-0.8.7-i386
libnotify-0.4.4-i386
libsndfile-1.0.21-i386
taglib-1.6.1-i386
Plus I had to lower a few version numbers in the .configure script, but the end result was really good So enjoy
ttuuxxx
Ps also included the pragha-0.7.1.1-i386-libs-dev.pet which is just the all the dev files for all the files above So If you wanted to compile using those libraries you could.
Description |
|
Filesize |
61.35 KB |
Viewed |
1305 Time(s) |

|
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
Last edited by ttuuxxx on Mon 21 Dec 2009, 09:22; edited 1 time in total
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2805 Location: Montenegro
|
Posted: Mon 21 Dec 2009, 08:55 Post subject:
|
|
That looks cool, will have to try it later.
libmad is not in 214X by default or it needed newer version?
_________________ puppy.b0x.me stuff mirrored HERE or HERE
|
Back to top
|
|
 |
ttuuxxx

Joined: 05 May 2007 Posts: 11193 Location: Ontario Canada,Sydney Australia
|
Posted: Mon 21 Dec 2009, 09:02 Post subject:
|
|
I added everything to the one pet, that's why I'm amazed of the pet size, under 1mb and it contains all 7 packages
ttuuxxx
pragha-0.7.1.1-i386
libcdio-0.82-i386
libmad-0.15.1b-i386
libmodplug-0.8.7-i386
libnotify-0.4.4-i386
libsndfile-1.0.21-i386
taglib-1.6.1-i386
_________________ http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games 
|
Back to top
|
|
 |
|
Page 173 of 346 [5187 Posts] |
Goto page: Previous 1, 2, 3, ..., 171, 172, 173, 174, 175, ..., 344, 345, 346 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
|