The time now is Thu 20 Jun 2013, 06:15
All times are UTC - 4 |
| Author |
Message |
sheepy

Joined: 06 May 2011 Posts: 233 Location: GA
|
Posted: Sat 05 May 2012, 13:59 Post subject:
Pet installer like pburn? |
|
I am wanting to recreate how Pburn installs itself and then runs instead of having to have the huge app preinstalled on the filesystem.
It would be great if we could have a feature like this for all other huge pet files so puplets could be even smaller.
Does anyone know how it was done? I would like to get something similar working with a Skype or Firefox pet.
Thanks.
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6201 Location: Auckland, New Zealand
|
Posted: Sat 05 May 2012, 21:14 Post subject:
|
|
I think when Pburn says it is installing itself it is actually already installed, but it is setting up preferences files and stuff.
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
Tman

Joined: 22 Jan 2011 Posts: 746 Location: Toronto
|
Posted: Sat 05 May 2012, 21:27 Post subject:
|
|
Disciple is right about Pburn.
I can't help you with Skype, but 01micko has made a script to download and install Firefox or Seamonkey.
http://www.murga-linux.com/puppy/viewtopic.php?t=73825
I also have a browser-downloader: http://www.murga-linux.com/puppy/viewtopic.php?t=73980
Also, Scottman has made one for Akita, but I am not sure if he posted a separate pet for it.
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5295 Location: Valåmoen, Norway
|
Posted: Sun 06 May 2012, 06:41 Post subject:
|
|
Disciple is not completely right about Pburn.
Yes, it s setting up preferences files and stuff. But also generates info out of the help-file. This to make the pet smaller, and to make it easier for translators to maintain the translations.
It is clear that a webbrowser (and skype) requires internet connection, so it is ok to offer a post-installation via www. But I don't find it too smart to use this method for apps that is not relying on a internet connection to work.
For Pburn (and Pmusic), code are generated during first run, but it does not download anything.
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
sheepy

Joined: 06 May 2011 Posts: 233 Location: GA
|
Posted: Mon 07 May 2012, 11:23 Post subject:
|
|
Thanks for the information, guys.
I'm thinking about having a pet package for a large program in /usr/share/pets, and making a script so that when the script is run from the main menu, it will check to see if the executable for that app is available in /usr/bin - if not, it will unpack the pet package for that app specified in /usr/share/pets and run it; if so, it will just run it.
Can anyone make a bash script like this or similar? Or have suggestions? It will allow us to pack puplets with small pets instead of having to have the full app installed on the filesystem at boot. For example, firefox can be around 20mb, but unpacked it's a whopping 90mb.
Thank you.
Would this possibly work? (I'm at school on XP right now, unfortunately)
| Code: | #!/bin/bash
if [ -a /usr/bin/firefox ]
then
/usr/bin/firefox
else
tar -zxf /usr/share/pets/firefox.tar.gz -C /
/usr/bin/firefox
fi
|
Or perhaps petget on a .pet instead of untaring a tarball.
EDIT: I just got home and gave this a try. Untaring doesn't work because it would create a firefox folder under /, then follow with the app data. However, petget worked just fine!
I think this is a great idea for puplets that have a lot of -- or large -- apps to save space. I could make a "lite" version of my puplet, shaving off a good 30-40% of the iso size.
|
|
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
|