DotPup-installer for other Distros

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

DotPup-installer for other Distros

#1 Post by MU »

WARNING - this is untested

Before I go asleep, here is something to play with.

But you do it at your own risk, it might damage your system.

The idea:
A small script using Xdialog to install dotpups on other Distros like Suse or Mandrake.

I just tested it with this pup: http://www.murga.org/%7Epuppy/viewtopic.php?t=2123
, that I created with my new install-maker-script (version 06): http://www.murga.org/%7Epuppy/viewtopic.php?t=2081

If you run the installer, it will look like this (Linux Mandrake 9.2 with xorg 6.8.2):
http://noforum.de/pics/dotpupinstaller-alpha01.jpg

The installer rewrites "dotpup.sh" to allow to install a dotpup as normal user (not root) to ~/dotpup_apps instead to /usr/local

If someone wants to try it, here is the code:

Code: Select all

#!/bin/sh

mypath=`echo $0|sed 's/[^/]*$//'|sed 's/\/$//'`
if [ "$mypath" = "." ]; then
  mypath=`pwd`
fi
cd $mypath

DIALOG=Xdialog

$DIALOG --title "DotPup-installer" \
        --inputbox "
In Firefox, right-click the link to a DotPup.\n
Select \"copy link location\".\n
Then click in the inputbox below with the MIDDLE mousebutton.\n
" 14 60 2> /tmp/inputbox.tmp.$$

retval=$?

input=`tail -n 1 /tmp/inputbox.tmp.$$`
rm -f /tmp/inputbox.tmp.$$


case $retval in
  0)
    echo "Input string is '$input'";;
  1)
    echo "Cancel pressed.";;
  255)
    echo "Box closed.";;
esac

if [ "$retval" != "0" ];then
  exit 0
fi

#xmessage -nearmouse "$input"

mkdir unzipped
rm -rf unzipped/*
wget -O "unzipped/dotpup.zip" $input
cd unzipped
unzip dotpup.zip
APPNAME=`ls *tgz | sed "s/.tgz//"`
cd "$mypath"

mkdir "$APPNAME"
mv unzipped/* "$APPNAME/"
rmdir unzipped
cd "$APPNAME"

MYUSER=`whoami`
cat dotpup.sh | sed "s

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

I am sure some people might be intrigued by that and find it useful Mark,

:) I am too cowardly to try it - where are the brave Pups?

I wonder if the reverse might be possible? A script that takes slackware packages or Debian and makes them Puppy compliant?

Perhaps with a list of libraries needed or some such? With KDE (aka Krazy Puppy in 1.0.5) we might have an easier way to approach this?
Last edited by Lobster on Thu 08 Sep 2005, 03:23, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#3 Post by MU »

Lobster,

last night I browsed this http://www.murga.org/%7Epuppy/viewtopic.php?t=18 hugecollection of dotpups, and found "unrpm" (unzip for RPM-packages of RedHat/Fedora/Suse/Mandrake).

So it might beworth a try to use this to extract them to a temporary folder, build a filelist (find * >filelist.txt"), and then convert it to pupget.

RPM-packages also contain information on the libraries needed, so the script could check if contitions for installation are met or not.

But i really must say, currently the dotpups contain several files I didn't even know on Mandrake, I think there already is a good Software-collection available.

I think we could need a (PHP or CGI-) script that scans the board from time to time for dotpups, and creates a file-list with short descriptions.
This List could be downloaded by a grafical installer, so that you dont't install them with mozilla, but with a "PupGet"-like interface.

Well lets see, summer is going to end here, it will be the right thing for rainy autumn-days ;)

Ok, time to go to bed finally... *wink

Mark

Mathiasdm
Posts: 100
Joined: Thu 05 May 2005, 07:52

#4 Post by Mathiasdm »

Seeing as it's now possible to install pupget packages without being root, perhaps we can (some day) introduce non-rootness to Puppy ;-)

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

#5 Post by MU »

Well, this just works with some dotpups, that can be put to /home/user/dotpup_apps

But many programs expect files in /usr/bin or /usr/lib, those must be installed as root.

Also on systems were you don`t work as root, you must switch to root-mode (su) to install RPM or DEB -Packges.

I prefered to test it here as non-root, because many distros do not like it, if you install "alien" files to the system-directories, this might cause the Packagemanagers to work incorrect.


The disadvatage: you can only install some dotpups, not all.
I will have to add a check, if a dotpup tries to instal to the systemfolders or not.

Mark

User avatar
puppian
Posts: 537
Joined: Tue 19 Jul 2005, 03:58
Location: PuppyLand
Contact:

#6 Post by puppian »

MU wrote:Lobster,
last night I browsed this http://www.murga.org/%7Epuppy/viewtopic.php?t=18 hugecollection of dotpups, and found "unrpm" (unzip for RPM-packages of RedHat/Fedora/Suse/Mandrake).
Have you been to these wiki pages?
http://www.goosee.com/puppy/wikka/DotPups
http://www.goosee.com/puppy/wikka/DotPupsContributions
Almost all of the dotpups in this forum can be found there.
Besides unrpm, there's an undeb dotpup too.
MU wrote:I think we could need a (PHP or CGI-) script that scans the board from time to time for dotpups, and creates a file-list with short descriptions.
This List could be downloaded by a grafical installer, so that you dont't install them with mozilla, but with a "PupGet"-like interface.
That's cool! Can we have a script that scan the two pages above?
Btw I think Klhrev has mentioned something similar HERE.
[url=http://puppylinux.org]Puppylinux.org - Community home page of Puppy Linux[/url] hosted by Barry (creator of Puppy), created and maintained by the [url=http://puppylinux.org/user/readarticle.php?article_id=8]Puppy Linux Foundation[/url] since 2005

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

#7 Post by MU »

I can try to write a Perl/CGI-Script that scans those 2 pages you mentioned.

I can not use PHP, as my Hoster has deactivated the functions to open external websites.
But CGI still works.

Then as a result you would have a "dotpup.txt" that you can download with wget, and display it with a Tcl or Basic-program or using Xdialog.

I cannot promise, when I can do it.


>Btw I think Klhrev has mentioned something similar HERE.

Hey, looks very interesting, thanks for the Link, I oversaw it.

Mark

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

#8 Post by MU »

Hey, the wiki-page is good :)

Can be downloaded with a simple shellscript.

In addition with Xdialog you have a small grafical downloader/installer:

http://www.murga.org/~puppy/viewtopic.php?t=2144

:P

Thanks for your tip, puppian :)

Mark

Post Reply