Page 2 of 3

Posted: Fri 20 Mar 2009, 16:52
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

Posted: Sat 21 Mar 2009, 01:11
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.

Thanks

Posted: Sat 21 Mar 2009, 23:57
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.

Re: ...

Posted: Tue 24 Mar 2009, 09:23
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

Posted: Tue 24 Mar 2009, 19:57
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)

Posted: Wed 25 Mar 2009, 01:35
by alex12
Debian archives on Puppy linux. Now theres no need for my Ubuntu install except for playing Hedgewars. Thanks for this awesome software.

Posted: Thu 26 Mar 2009, 16:32
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.

Posted: Thu 26 Mar 2009, 19:02
by technosaurus
there is a file in /usr/sbin that will convert spaces to underscores called spacereplace if you need a reference

Posted: Fri 27 Mar 2009, 20:00
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.

Posted: Fri 27 Mar 2009, 20:27
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!

Posted: Fri 27 Mar 2009, 20:51
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...

Posted: Fri 27 Mar 2009, 20:57
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...

Posted: Fri 27 Mar 2009, 21:26
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?

Posted: Fri 27 Mar 2009, 21:33
by dejan555
nope, doesn't work. :(

Posted: Fri 27 Mar 2009, 22:24
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.

Posted: Fri 27 Mar 2009, 22:45
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! :?:

Posted: Fri 27 Mar 2009, 23:34
by Dingo
this script has no GUI? How can I make a GUi for this?

Posted: Fri 27 Mar 2009, 23:44
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

Posted: Fri 27 Mar 2009, 23:49
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

Posted: Sat 28 Mar 2009, 17:46
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