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 Sat 20 Sep 2014, 12:19
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Proper procedure to install .pet package from command
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
berk0081

Joined: 04 Aug 2005
Posts: 15
Location: Minneapolis - USA

PostPosted: Mon 10 Aug 2009, 10:13    Post subject:  Proper procedure to install .pet package from command  

I'm setting up a Puppy-based file and print server on a VIA EPIA 800 board. (the only modern distribution that would boot on the VIA C3)

After doing a lot to convert it to a multi-user system with sshd and to operate as I need it to without a GUI, I can't find a recommended procedure for installing a .pet package from the command line.

I've figured out pet2tgz and can then extract the tar files to install application files, but is there a way to ensure that all post-install scripts also get executed or check dependencies, other than to hunt for scripts and execute them manually?

Thanks,
-m

_________________
Raising puppies since 1.04
Back to top
View user's profile Send private message 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 853
Location: SE

PostPosted: Wed 19 Aug 2009, 19:01    Post subject:  

Greetings! Smile

I'm in the middle of something similar, searching for a way to auto-install .pets without user interception that is.

Don't know what version of puppy, or petget that you're using. My main distro is ttuuxxx's 214X-series, which is very rapidly evolving, with new versions each and every week. So, my wish is to be able to install my usual (tried-out and certified) .pets from a script, with no interaction, whatsoever, from my part, for every new version of this pup.

This is what I do:
I edit the /usr/sbin/petget-script (check the actual /usr/sbin/petget-file, even though the name 214Xx suggests it's old, many things, including the package-manager has been up-dated) by inserting the lines ending with " # MHHP"
Code:
130- fi
131:[ "$2" = "DISABLEDX" ]  && DISABLEDX="yes" # MHHP
132- #expanding pet to work with rox...
--
846- </vbox>"
847: if [ ! "$DISABLEDX" = "yes" ];then # MHHP
848-  RETVAL="`echo "$DLGQ" | gtkdialog2 --stdin | grep 'EXIT:' | cut -f 2 -d ':'`"
849-  [ ! "$RETVAL" = "10" ] && exit
850:  fi # MHHP
851- fi
(I know the petget-code is intended to be run un-attended, but it just doesn't work), then I can, automagically install the (tried-out and certified) .pets of choice, by running
Code:
petget FULL-PATH/pet-name DISABLEDX
it's imperative that the FULL-PATH is the full path, and that it's preceeded by a "/".

OK, this is written, based on my experience with 214Xx, but the latest fix in this petget seems to be for 3.99.

Maybe you've found out already, I'm just happy I finally got it working for me Smile.
hope that is of some use/
MHHP

_________________
Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285

Slackos & 214X, ... and Q6xx
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send private message 
berk0081

Joined: 04 Aug 2005
Posts: 15
Location: Minneapolis - USA

PostPosted: Thu 20 Aug 2009, 07:44    Post subject:  

Thanks for your suggestion. I have a new hard disk arriving in a few days, and then I'll try to modify this for Puppy 4.0. Actually, I should probably go ahead and upgrade the whole rig to 4.12

-M

_________________
Raising puppies since 1.04
Back to top
View user's profile Send private message 
MinHundHettePerro


Joined: 05 Feb 2009
Posts: 853
Location: SE

PostPosted: Thu 20 Aug 2009, 08:01    Post subject:  

Hello,

installing .pets this way also means that, I think, no info about missing packages/libs are displayed on screen. I'm only doing it this way for already downloaded .pets I know all the deps of. If you'd need info on missing pkgs/libs, it is written to temporary files "missingpkgs.txt" and "missinglibs.txt", I think. Look in the petget-script. An install-script could look for the info of those files.


cheers/
MHHP

_________________
Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285

Slackos & 214X, ... and Q6xx
Nämen, vaf.... ln -s /dev/null MHHP
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

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
[ Time: 0.0483s ][ Queries: 12 (0.0038s) ][ GZIP on ]