deb2pet & rpm2pet

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

#21 Post by dejan555 »

Or that was just the case with some which I made that way? I tried it now and it worked. Anyway, here's what I thought:

Code: Select all

#!/bin/sh
DEB=`Xdialog --title "Select file" --wrap --fselect *.deb 0 0 2>&1`
if [ -e "$DEB" ]; then
for i in "$DEB"
do
FOLDR=$(echo $i|sed 's/\.deb$//')
done
mkdir "$FOLDR"
cp "$DEB" "$FOLDR"
cd "$FOLDR"
DEB=`ls | grep ".deb"`
undeb "$DEB"
rm "$DEB"
FOLDR=`basename $(echo "$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
fi
Please test this one! See main post for attached pet
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
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#22 Post by technosaurus »

I try to stay up to date with the latest wine and winetricks here:
http://www.murga-linux.com/puppy/viewtopic.php?t=37783

Latest is 1.1.17 and the winetricks at its release

always compiled with jack, esd, ldap, GLU, GL support including OpenGL & directX9 functionality

I've never had much success with compiling video drivers as it is and don't have an nvidia card so you are on your own with that side. If someone knows of a tutorial/how-to specifically for compiling video drivers though - point me that way, I would love to be able to compile the latest Geode driver.
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
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

Thanks

#23 Post by puppyiso »

I thank MU, technosaurus and ttuuxxx for the help.

I got frustrated for not being able to run 3D apps. The problem remains unsolved but I did get some advice and concern.

Thank you people!

I know there are some cop outs such as using ArtistX, Musix, Studio One even classic Dream Linux, Ubuntu Studio etc..

I just wanted to do it all in Puppy as a one stop workstation. I do not know how I can fulfill my dream of Pup 3D

But whatever I do, my Puppy will stay in my hard drive forever.

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

Re: ...

#24 Post by ttuuxxx »

puppyiso wrote:
Seemingly simple task like a plain vanilla barebone Puppy JUST with wine to work with 3DSMax v7 and Photoshop 7(Photoshop works now) isn't getting any real help.
.
techo has 3d/opengl enabled on his versions, but you need to have either opengl or mesa installed to use it, also the same with that other graphic program you mentioned, wings I thing, thats opengl also.
http://www.murga-linux.com/puppy/viewto ... 525#287525
ttuuxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

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

#25 Post by technosaurus »

it appears we have hijacked this thread - but going with the flow

3d support - install
http://distro.ibiblio.org/pub/linux/dis ... ri-7.3.pet

run the xorg wizard

test by running glxgears (I'm pretty sure it is included in that package as well)
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].

alex12
Posts: 82
Joined: Fri 30 Jan 2009, 03:33

#26 Post by alex12 »

Debian archives on Puppy linux. Now theres no need for my Ubuntu install except for playing Hedgewars. Thanks for this awesome software.

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

#27 Post by dejan555 »

OK folks, now we have version with right click on deb file in rox,
couldn't make it more simple :D (see main post)

BUT, noticed one problem, never thought of testing these scripts with folders that contain spaces in filename/path, so there's a problem if your deb is placed in such folder, if anyone finds a way to fix this, please post it here.
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
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#28 Post by technosaurus »

there is a file in /usr/sbin that will convert spaces to underscores called spacereplace if you need a reference
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#29 Post by dejan555 »

Since we have unrpm too, why not script for converting rpms as well?
It's pretty much the same as for deb, works on right click on rpm.
Existing rpm is erased after conversion.
Posted package with deb2pet and rpm2pet on main post,
should work if you place your deb and rpm in folder/path that doesn't contain spaces in name.
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#30 Post by dejan555 »

Hey, I think someone downloaded this version b4 I reuploaded it, there was an error in package, didn't place rpm2pet in /usr/local/bin, but did create shortcut, sorry about that, it's fixed now!
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]

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

#31 Post by amigo »

To handle spaces in path or file names, you need to double quote the places where you are handling the paths in your scripts. You can create a couple of test paths to check the functionality. I recently added support for spaces in paths in my src2pkg program. It was a nightmare since src2pkg is around 10,000 lines of bash script with path-handling every 5-10 lines! The moral is -get that working before you add too much code -I nearly went nuts finding all the places I needed to change the code...

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

#32 Post by dejan555 »

Can you see any place in my script I didn't double quote?
Cause I don't, it stays as it is if someone with more knowledge doesn't change it, I'm not making any changes from now on...
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#33 Post by dejan555 »

maybe using bash instead of sh for interpreter? It worked for my madplay dialog? Didn't want to play songs that had spaces even when double qouted, but when I change to bash it works?
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#34 Post by dejan555 »

nope, doesn't work. :(
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#35 Post by dejan555 »

Yaaayyy! I found it!
The problem was in basename command, replaced

Code: Select all

FOLDR=`basename $(echo "$FOLDR")` 
with

Code: Select all

FOLDR=`basename "$FOLDR"` 
and now everything works OK! That's all from me guys, I'm satisfied with this now! :D

Package reuploaded.
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#36 Post by dejan555 »

LOL, guess what? Petget cannot install pets that are placed in a directory with spaces in filename? I just tested conversion of rpms and debs on LiveCD and wanted to install them immidiately after, but I couldn't install them when clicked on them. So I thought I made something wrong with the script, so they are not packed right, but no, when I copied converted pets into my-documents, they installed OK on click! :?:
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
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#37 Post by Dingo »

this script has no GUI? How can I make a GUi for this?
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

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

#38 Post by technosaurus »

I've posted some stuff on gtkdialog here:
http://www.murga-linux.com/puppy/viewtopic.php?t=40361

you can use that and/or Xdialog to make a simple gui

I like to use Xdialog from within a gtkdialog script to get inputs and display messages ... makes it somewhat smaller
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
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#39 Post by dejan555 »

Dingo wrote:this script has no GUI? How can I make a GUi for this?
I thought it was more simple to do right click in rox -> Convert pet
There's a line for Xdialog in there too, if you want it that way, just uncomment line 2 from script and comment line 3
Open /usr/local/bin/deb2pet in geany (and/or rpm2pet)

Code: Select all

#DEB=`Xdialog --title "Select file" --wrap --fselect *.deb 0 0 2>&1`
DEB=$1
^Just uncomment line where it says Xdialog, and comment the one under that

EDIT: There's a line at the bottom which says rox, u can uncomment that too if you want folder containing the pet to open after conversion

There's a version in the main post that works with xdialog and has a menu entry under utilities
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]

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

#40 Post by DMcCunney »

dejan555 wrote:LOL, guess what? Petget cannot install pets that are placed in a directory with spaces in filename?
Why do you have a directory with spaces in the filename?

Windows permits that particular abomination, but *nix is generally allergic to it. Various globbing routines don't understand that the space is part of the directory name without special quoting, and will attempt to treat what comes after the space as a separate argument.

It should not be a surprise that PetGet will fail in that circumstance.
______
Dennis

Post Reply