deb2pet & rpm2pet

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

deb2pet & rpm2pet

#1 Post by dejan555 »

OK, had to clean up this post, posted rpm2pet and deb2pet in one package, scripts for converting .deb and .rpm packages to dotpets
You need:
unrpm.undeb.pet -> scroll down for attached pet from MU's post

There are more versions of dep2pet, differencies are in GUI usage, and dir2pet usage, see description in attachments below.

Base code I started with:

Code: Select all

#!/bin/sh
DEB=`Xdialog --title "Select file" --wrap --fselect *.deb 0 0 2>&1`
#added check if file exists
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"
cd ..
FOLDR=`basename $(echo "$FOLDR")`
rxvt -fg yellow -bg black -cr red -e dir2pet "$FOLDR"
rm -R -f "$FOLDR"
rox
fi
Please, test it, modify it, improve it, etc. I just made this so you have something to start with, you go further, I know there are lots of coders here much better then me.
Attachments
deb2pet.rpm2pet-0.0.4.pet
deb2pet and rpm2pet in one package, usage:
Right click on deb or rpm in rox -> Convert to pet
(968 Bytes) Downloaded 12968 times
deb2pet-0.0.3.pet
Convert debian packages to dotpets, rox right click version.
Right click on deb file -> Convert to pet
(795 Bytes) Downloaded 4104 times
deb2pet-0.0.2.pet
Convert debian packages to dotpets, simplier version,
doesn't ask you anything, convinient for less advanced users.
(803 Bytes) Downloaded 3088 times
deb2pet-0.0.1.pet
Convert debian packages to dotpets, uses dir2pet, advanced users will like this version.
(783 Bytes) Downloaded 2609 times
Last edited by dejan555 on Fri 27 Mar 2009, 22:19, edited 10 times in total.
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
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

Seems to have a problem

#2 Post by puppyiso »

I tried deb2pet but I cannot get it run. Chose the programs in the graphics menu but nothing happens.

I even checked dependencies. Blender, K3D have dep problem but not with wings 3D. However, it won't start.

I downloaded debian package from Ubuntu package site. More specifically, Hardy 8.04 version.

What am I doing wrong?

Please check the attached images.

Thanks

John S
Attachments
Dependency check5.png
(114.75 KiB) Downloaded 2536 times
Dependency check4.png
(139.45 KiB) Downloaded 2211 times

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

#3 Post by ttuuxxx »

worked for me good job:)
I would move it to usr/sbin is a better place for it, along beside petget :)
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:

#4 Post by dejan555 »

@puppyiso
Seems like the undeb package you downloaded is corrupted, and it won't work without it, I'll see if I can make it a dotpet and attach it here, or if someone can reupload pup to dotpets.de?

@ttuuxxx
Thanks! Glad you like it. Did you also download undeb from the same link?
Assume that you had it installed from earlier?
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:

#5 Post by ttuuxxx »

dejan555 wrote:@puppyiso
Seems like the undeb package you downloaded is corrupted, and it won't work without it, I'll see if I can make it a dotpet and attach it here, or if someone can reupload pup to dotpets.de?

@ttuuxxx
Thanks! Glad you like it. Did you also download undeb from the same link?
Assume that you had it installed from earlier?
I had undeb already installed because its a plugin for xarchiver:)
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:

#6 Post by dejan555 »

Aaaah, so it's not dependent on it then, I can remove the link from the main post? I thought dpkg-deb is plugin for Xarchiver? I know I had to install it for unpacking debs, or it was for rpms only?
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
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#7 Post by MU »

try the attached one.
Mark
Attachments
unrpm.undeb.pet
(56.54 KiB) Downloaded 4163 times
Last edited by MU on Thu 19 Mar 2009, 06:56, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

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

#8 Post by dejan555 »

Thanks MU!
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:

#9 Post by dejan555 »

@puppyiso
Try running wings3d from console, it's more likely that it does have some dependencies...
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
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#10 Post by droope »

Hi there!

I tried it and it worked. Looking for some dependencies tho, but that's not your fault.

I've added this to a list of my favourite programs :)

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

#11 Post by dejan555 »

Thanks droope! :)
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
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#12 Post by droope »

Too many libraries :cry: :cry: :cry:

i've downloaded like 10. Waaah :cry:

:P

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

#13 Post by dejan555 »

Happens in many cases. I usually download the older versions from debian etch, cause they're stable and have less dependencies.
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
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

...

#14 Post by puppyiso »

I don't think it's the program but it's the xorg thing.

Cause I cannot get any 3D related with any platform (neither Win nor Lin) run.

But I see others are running them with joy. I feel so lonly left alone in this cold dark technological ice age.

No one can break apart from his path from the past. I was and am a graphics guy happy with modelling human figures with 3D apps and making textures with good old trusty Photoshop.

With a great interest in Linux and many terrible experiences with Bill's commercial rip off windows, I want leave windows and am in searching for better computing experience with Linux. However the perfect solution to run any 3D app is yet to be found. Like the song "Yellow ribbon", "I am still in Windows prison"

Having tried for 5 long years asking people how to run Max, Maya, XSI on Linux or run less capable K3D, Wings 3D and Blender in native Linux environment, I now stop to think. What am I doing? Am I chasing a ghost?
I am getting real tired of all this.

When I ran MediaPup with my wife's notebook who takes it with her to school, the wine worked well and ran Wings 3D without a hitch. When I try to run Wings 3D with my very own PuppyLinux 4.12, it refused to run.
My puppy does all the tricks except 3D thing.

I kept asking people who build new puppies wine-built-in-as-standard-and 3d-ready but no one is interested in that. As if it is not needed. No one seems to be in for 3 dimensional modelling and animating even for fun.

At the age of going bald and all gray hair, I sit by the computer feeling hopeless. Maybe Making my very own 3D Puppy is the thing I have to do by myself. Estimating the time left for me, I wonder if I can complete it before I die. I don't even know where to start.(Maybe Barry's How puppy works page?)

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.

It IS an irony in this age of information and internet communities, which I have hard time to understand.

Even today, I have to dual boot to run Max for my new Max book and keep fighting with endless array of "new and improved" virus.

People who make virus, spyware,malware, Don't you have better things to do?

Now I have to get back to work.

Thank you for reading.

John S, Author of 3 Max books and a video tutorial book.

User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#15 Post by droope »

At the age of going bald and all gray hair, I sit by the computer feeling hopeless. Maybe Making my very own 3D Puppy is the thing I have to do by myself. Estimating the time left for me, I wonder if I can complete it before I die. I don't even know where to start.(Maybe Barry's How puppy works page?)
Sorry, :lol: LOL.


So dramatic!

ONT: Perhaps it's a hardware problem? It seems so, after what I have read.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post by MU »

John,
please attach /var/log/Xorg.0.log.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

Here it is

#17 Post by puppyiso »

Last night, after playing with Tinycore Linux, I decided to check Xorg-full-driver, which was already installed. Once I removed, none of wine related windows apps worked.

I redownloaded and reinstalled along with Xorg add on OpenGL driver.

Still, no 3D apps working except 2D after reinstation.

3DS Max once showed splash screen but soon disappeared.(that was long ago not yesterday)

What got me down was those pet files made from deb2pet conversion didn't run after installation.

They are linux files!... Not Windows tribes...

I just check window installed max and wings don't work but K3D starts.

Unfortunately viewport is messed up.

I do believe all this is because of Xorg matter.

I am uploading the Xorg 0.log file for you to see.

Please take a look.

As someone said, it might be a hardware problem but the very same hardware runs all versions of 3DSMax. It could be anything, Kernel, Hardware, Xorg...

The prime suspect is Xorg. This board doesn't allow log file uploading so I pupzipped. please unzip.

Thank you for your concern, MU.

John
Attachments
K3D graphics problem.png
(63 KiB) Downloaded 964 times
Xorg 0 log.tar.gz
(7.56 KiB) Downloaded 876 times

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

you have a nVidia Corporation NV11 [GeForce2 MX/MX 400] rev 178.

Your Kernel is the older one: 2.6.21.7.


Solution 1 (maybe)
Xorg has no 3D drivers for Nvidia cards, so you need a propriatary driver.
The one for your card is version 96.43.xx.

NVIDIA-964301-k2.6.21.7.pet
http://download.tuxfamily.org/nop/

Details:
http://www.murga-linux.com/puppy/viewtopic.php?t=22272

But it was made for Puppy 3, and the "retro" kernel in Puppy 4 is slightly different, despite the same version number.
So I don't know, if it works.

You also could use the original installer from Nvidia, that would compile the kernelmodule for you.
Therefore, you would need the devx addon and the kernelsource addon.


Solution 2
If it does not work, you should use a Puppy with the new Kernel.
You find the matching Nvidia driver here:
http://www.murga-linux.com/puppy/viewtopic.php?t=34001


Solution 3
Alternatively, try out Newyearspup02rc7, MIDI or MAXI.
It is a 400 MB download, and includes a optimized Wine 1.1.14 with OpenGL.
I used it to play the game "Riddick".
The 96 Nvidia driver is included here already.
http://www.murga-linux.com/puppy/viewtopic.php?t=37960

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
puppyiso
Posts: 594
Joined: Tue 13 Jan 2009, 02:27

#19 Post by puppyiso »

Like you said, Solution 1 didn't work. I installed but I got black screen of death when refiguraing xorgwizard.after reboot.

Just black screen with nothing going on

I had hard time to bring Puppy back to life with xorg. so I ended up with xvesa setup.

It is not the same puppy I played with. A ghost in the shell. Jump started from old back up on CD.

Still somewhat shaken.Not exactly the same.

I will go to solution 2 tomorrow. I am a little bit tired

Seems like I need a new puppy to try. I will back up my somewhat shaken puppy files.

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

#20 Post by dejan555 »

While I was making this script I was thinking of making it even simplier, by that I mean not calling the dir2pet script, just tar and tgz2pet, but from my experience packages created that way doesn't uninstall from petget (even with the .pet.specs included) , and my intention was to do exactly that. Installing deb is not hard anyway, just click on archive and extract to / but how do you uninstall it then but manually removing files? And dir2pet can be confusing for less advanced users. I'm recieving PM's like "What are dependencies? How do you know what to enter?..." You don't have to know people, just type enter until dir2pet exits if you don't know what to write... Also if you want to convert games, their executables are usually stored in /usr/games which is not in puppy's executable path, so you can't start them from menu entry created from debian's desktop files. Either modify the desktop file or navigate to /usr/games and drag executables to desktop, or link them to /usr/bin/
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]

Post Reply