The time now is Wed 19 Jun 2013, 23:33
All times are UTC - 4 |
| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 07 Sep 2005, 01:48 Post subject:
DotPup-installer for other Distros |
|
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: |
#!/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°^FOLDER=.*$°FOLDER=~/dotpup_apps°" | sed "s°IAM..!=..root°IAM\" != \"$MYUSER°" >install.sh
chmod 755 install.sh
mkdir ~/dotpup_apps
### exec will end this script, if dotpup.sh exists
exec ./install.sh
### if exec failed, continue with error-message
xmessage --nearmouse "there were errors, aborting..."
|
Greetings, Mark
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Wed 07 Sep 2005, 02:48 Post subject:
|
|
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?
_________________ Puppy WIKI
Last edited by Lobster on Wed 07 Sep 2005, 23:23; edited 1 time in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 07 Sep 2005, 03:09 Post subject:
|
|
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
|
|
Back to top
|
|
 |
Mathiasdm
Joined: 05 May 2005 Posts: 100
|
Posted: Wed 07 Sep 2005, 03:39 Post subject:
|
|
Seeing as it's now possible to install pupget packages without being root, perhaps we can (some day) introduce non-rootness to Puppy
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 07 Sep 2005, 13:01 Post subject:
|
|
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
|
|
Back to top
|
|
 |
puppian

Joined: 18 Jul 2005 Posts: 538 Location: PuppyLand
|
Posted: Wed 07 Sep 2005, 16:03 Post subject:
|
|
| 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.
_________________ Puppylinux.org - Community home page of Puppy Linux hosted by Barry (creator of Puppy), created and maintained by the Puppy Linux Foundation since 2005
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 07 Sep 2005, 19:59 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 07 Sep 2005, 23:49 Post subject:
|
|
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
Thanks for your tip, puppian
Mark
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|