Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 07:32
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
DotPup-installer for other Distros
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
Location: Paradox Realm

PostPosted: Wed 07 Sep 2005, 02:48    Post_subject:  

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

Smile 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

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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 Wink

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

Mark
Back to top
View user's profile Send_private_message Visit_website 
Mathiasdm

Joined: 05 May 2005
Posts: 100

PostPosted: 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 Wink
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
puppian


Joined: 18 Jul 2005
Posts: 538
Location: PuppyLand

PostPosted: 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
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: 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
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Wed 07 Sep 2005, 23:49    Post_subject:  

Hey, the wiki-page is good Smile

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

Razz

Thanks for your tip, puppian Smile

Mark
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0680s ][ Queries: 12 (0.0061s) ][ GZIP on ]