Classic Pup 2.14X -- Updated 2 series

A home for all kinds of Puppy related projects

What is the best Puppy Version ever, LOL

2.14x
11
29%
2.14x
4
11%
2.14x
11
29%
Other: 2.14x only
12
32%
 
Total votes: 38

Message
Author
User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2566 Post by ttuuxxx »

Hi clarf here is a deb install, once its installed, just click a deb file and it will automtically be installed, download a couple post below :)
ttuuxxx
Last edited by ttuuxxx on Sat 19 Dec 2009, 08:29, edited 1 time in total.
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
James C
Posts: 6618
Joined: Thu 26 Mar 2009, 05:12
Location: Kentucky

#2567 Post by James C »

I'm on my Mandriva/ Ubuntu/ Dpup box right now but I'm grabbing the deb installer and will install it on 2.14 tomorrow.

You're always coming up with a new toy to try. :)

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2568 Post by dejan555 »

ttuuxxx, would my deb2pet work on 214X, that way it can be registered /w petget?
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2569 Post by ttuuxxx »

dejan555 wrote:ttuuxxx, would my deb2pet work on 214X, that way it can be registered /w petget?
that would be a better way to do it :)
I just used parts of karmicpup to build that, it was a quick fix, I didn't want to mess up the custom petget I hacked-up for 2.14X.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2570 Post by dejan555 »

Here, try it, I'm not at puppy ATM, basically it uses undeb then tars extracted dir and tgz2pet it.

http://tinyurl.com/deb2pet-rpm2pet
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2571 Post by ttuuxxx »

dejan555 wrote:Here, try it, I'm not at puppy ATM, basically it uses undeb then tars extracted dir and tgz2pet it.

http://tinyurl.com/deb2pet-rpm2pet
It worked about 100% the way you wanted it to work, I added one line to each deb/rpm, removed the open-with links and added the mime's and now when you click a deb or rpm, it converts to a pet and automatically runs the puppy installer and installs. all-in-one :)

ttuuxxx

Ummmm it doesn't work grrrrrrr
Attachments
updated-deb2pet-installer.pet
(22.29 KiB) Downloaded 575 times
Last edited by ttuuxxx on Sat 19 Dec 2009, 08:52, edited 1 time in total.
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2572 Post by dejan555 »

Cool :)
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2573 Post by ttuuxxx »

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.
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2574 Post by ttuuxxx »

the deb/rpm installer doesn't work, it registers the application so you can uninstall it, but it doesn't actually install. grrrrrrrrr
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2575 Post by ttuuxxx »

hmmm its installing to /root/usr instead of /usr
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2576 Post by dejan555 »

Hmm, weird, is deb package you try to convert in /root ? maybe basename command doesn't work so it does tar from full path. Try to do manually each line from script see which command fails.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2577 Post by ttuuxxx »

here's a xcalib monitor Calibration Tool, its command line only and I don't know if it saves settings. Someone should make a Gui for it, anyways open a terminal after installing it and type xcalib
ttuuxxx
Attachments
xcalib-0.8-i386.pet
(8.45 KiB) Downloaded 532 times
Last edited by ttuuxxx on Sat 19 Dec 2009, 13:03, edited 1 time in total.
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#2578 Post by clarf »

Thanks guys, I`ll try the deb2pet app.

In the beggining I was thinking in use busybox - dpkg to install the deb packages but it`s very buggy, I had many problems with dependencies check, although I installed each needed library it said it wasn`t installed. So I had to use the

Code: Select all

dpkg -i -F depends package_name.deb
command to force the deb installation for each case...

I noticed that dpup has additional code in petget to manage .rpm and .deb packages, it uses "dpkg-deb -x" to extract the content. I could hack the petget but it`s a long time consuming task and don`t want ot broke ttuuxxx work... I`ll check your application first.

Hey dejan555, You could solve your gamma problem after restart X, Which solution did you finally use?

clarf

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#2579 Post by amigo »

disrpm works very well for unpacking debs -with only 'hexdump' or 'od' and 'dd' needed. it also works with most rpms -but not the newer ones which are compressed with lzma/xz.

I combined the old code from disrpm (for unpacking debs) with new code adapated from the tukaani pkgtools for unpacking rpm's (the tukaani guy is the author of xz):

exploderpm:

Code: Select all

#!/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"


OPT="$1"
FILE="$2"
[[ $OPT = '-lv' ]] && VERBOSE='v' OPT='-l'
[[ $OPT = '-xv' ]] && VERBOSE='v' OPT='-x'

explode() {
  case "$1" in
    *.rpm)  explode_rpm "$FILE" ;;
    *.deb)  explode_deb "$FILE" ;;
  esac
  return $?
}


gzip_sieve()
{
	# gzip-magic: 0x1F,0x8B
	sed -ne '/1[fF]/{;N;/8[bB]$/{;s/1[fF]//g;s/^0*//g;P;};}'
}

bzip2_sieve()
{
	# bzip2-magic: 0x42,0x5A,0x68
	sed -ne '/42/{;N;/5[aA]$/{;N;/68$/{s/42//g;s/5[aA]//g;s/^0*//g;P;};};}'
}

probe()
{
	dd if=$FILE ibs=$O skip=1 2>/dev/null \
	| $2 -dc - 2>/dev/null \
	| cpio "$1" 2>/dev/null
}

explode_deb() {

PASS1="probe -t$VERBOSE"
case $OPT in
	'-l'|'-v') PASS2=":" ;;
	'-x') PASS2="probe -idm" ;;
esac

for AR in gzip bzip2 ; do
	e=1
	HEADER_SIZE=256000
	AR_OFFSETS=$(od -A d -N $HEADER_SIZE -v -t x1 -w1 $FILE | ${AR}_sieve)
	for O in $AR_OFFSETS ; do
		$PASS1 $AR 2>/dev/null && $PASS2 $AR && e=0
	done
	[ $e -eq 0 ] && return $e
done
}


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 use this tool exclusively in my src2pkg tool -it is more reliable than rpm2cpio with rpm's and doesn't require any devel tools like 'ar' (usually part of binutils). Depending on cut-down versions of these tools from busybox brings misery, as often as not...

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2580 Post by dejan555 »

clarf, I used xgamma command in startup script
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2581 Post by ttuuxxx »

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 :)

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#2582 Post by clarf »

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.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#2583 Post by ttuuxxx »

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 :)

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#2584 Post by clarf »

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 :D . 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 :wink: , should finish tonight.

Greetings,
clarf

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#2585 Post by clarf »

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

#!/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...

Post Reply