(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 28 Sep 2020, 08:27
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
PPM2
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 11 of 18 [262 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12, 13, ..., 16, 17, 18 Next
Author Message
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Wed 18 Mar 2015, 07:23    Post subject:  

Well, I got it to work how I wanted.

Any idea how to gettext "<default>'`cat /usr/local/petget/last_mode`'</default>" everything I've tried has failed.

Edit: /usr/local/petget/last_mode would say: Auto mode, as an example.

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo

Last edited by rg66 on Wed 18 Mar 2015, 07:34; edited 1 time in total
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Wed 18 Mar 2015, 07:33    Post subject:  

rg66 wrote:
Well, I got it to work how I wanted.

Any idea how to gettext "<default>'`cat /usr/local/petget/last_mode`'</default>" everything I've tried has failed.

I probably miss something but there is no text to gettext here. Just a command and a file name. Confused
Maybe you want to post the entire approach here or maybe in a gettext thread to understand what exactly you are trying to gettext (the content of the last_mode file?)

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Wed 18 Mar 2015, 07:39    Post subject:  

Ok, here's what I'm talking about

<comboboxtext width-request="150" space-expand="false" space-fill="false">
<variable>INSTALL_MODE</variable>
<default>'`cat /usr/local/petget/last_mode`'</default>
<item>'$(gettext 'Auto install')'</item>
<item>'$(gettext 'Step by step installation (classic mode)')'</item>
<item>'$(gettext 'Download packages (no install)')'</item>
<item>'$(gettext 'Download all (packages and dependencies)')'</item>
<action>change_mode</action>
</comboboxtext>

/usr/local/petget/last_mode would read "Auto install" (without quotes) as an example, which I assume would need to be gettexted.

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Wed 18 Mar 2015, 07:51    Post subject:  

Not in puppy right now but did you try
Code:
<default>'$(gettext "$(cat /usr/local/petget/last_mode)")'</default>

?
You may want to try the gtkdialog thread if this fails.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Wed 18 Mar 2015, 08:19    Post subject:  

mavrothal wrote:
Not in puppy right now but did you try
Code:
<default>'$(gettext "$(cat /usr/local/petget/last_mode)")'</default>

?
You may want to try the gtkdialog thread if this fails.


That works, thanks. Probably the only thing I didn't try.

I've uploaded patches for pkg_chooser.sh and configure.sh if anyone wants them. I'll assume that ui_Classic is no longer needed after.

Edit: New patches below

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo

Last edited by rg66 on Thu 19 Mar 2015, 04:23; edited 1 time in total
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Wed 18 Mar 2015, 08:52    Post subject:  

rg66 wrote:
mavrothal wrote:
Not in puppy right now but did you try
Code:
<default>'$(gettext "$(cat /usr/local/petget/last_mode)")'</default>

?
You may want to try the gtkdialog thread if this fails.


That works, thanks. Probably the only thing I didn't try.

I've uploaded patches for pkg_chooser.sh and configure.sh if anyone wants them. I'll assume that ui_Classic is no longer needed after.


Nice.
You may also want to change line 93 of pkg_chooser.sh as it currently defaults to install_pets_quietly and will enforce size recalculation every time if you are in a different mode (and probably other issues), to read last_mode and set the flag accordingly.
Also you may want to keep the variable in /var/local/petget with the rest of PPM variables/options

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Wed 18 Mar 2015, 22:52    Post subject:  

mavrothal wrote:
Nice.
You may also want to change line 93 of pkg_chooser.sh as it currently defaults to install_pets_quietly and will enforce size recalculation every time if you are in a different mode (and probably other issues), to read last_mode and set the flag accordingly.
Also you may want to keep the variable in /var/local/petget with the rest of PPM variables/options


Ok, I changed path to /var/local/petget but am not too sure what to do with line 93. I'm assuming that line is for Auto install so changed it to:

Code:
 [ "`cat /var/local/petget/last_mode`" = "Auto install" ] && touch /tmp/install_pets_quietly

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8787
Location: qld

PostPosted: Wed 18 Mar 2015, 23:46    Post subject:  

Nice work Mav (and Ziggy)!

Works pretty good in slacko64.

I did make a patch, if interested, to partly address Mochimoppel's issue.

Historically, petget basically worked unattended for installation of packages when X was not running, albeit with a bug concerning the display not running! (Which incidentally was safe to ignore).

This patch adds a 'developer' flag to /var/local/petget, well it doesn't add the flag, a dev adds it her/his self (which, if accepted, should merely be documented in the html docs I suppose).

I'd just like to see thoughts for or against, additions/subtractions (if any) also..

Mochimoppel, you may have ideas for more?
petget-developer.patch.gz
Description 
gz

 Download 
Filename  petget-developer.patch.gz 
Filesize  1.04 KB 
Downloaded  241 Time(s) 

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Thu 19 Mar 2015, 01:31    Post subject:  

Very Happy
Glad to see you back Mick
Very Happy

Regarding the patch is less messy to change
Code:
[ ! "$DISPLAY" ] && touch /tmp/install_quietly

to
Code:
[ -f /var/local/petget/developer ] && touch /tmp/install_quietly

and then use the install_quite flag (remember to remove it Very Happy ). Would remove many more messages.

However, as I explained before, providing the infrastructure for an "under the radar" (visible or not but without user confirmation) installation in a system that runs by default as root and never asks for a password to change any system file is a major liability.
The simplest social hacking could take over the system (not to mention anything on server-side) ...

I could (barely) live with it, if the flag was deleted by petget and resetting would demand every time a password, that should be different than the default "woofwoof". But then this would block scripted use of petget (which is actually the idea).

As ASRI éducation said earlier, for a developer is fairly easy to script quite package installation... Is a good first step for the "developer's mode" Laughing

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Thu 19 Mar 2015, 02:19    Post subject:  

I've changed line 93 to this:

Code:
LAST_MODE="`cat /var/local/petget/last_mode`"
[ "$LAST_MODE" = "Auto install" ] && touch /tmp/install_pets_quietly
[ "$LAST_MODE" = "Download packages (no install)" ] && touch /tmp/download_only_pet_quietly
[ "$LAST_MODE" = "Download all (packages and dependencies)" ] && touch /tmp/download_pets_quietly
[ "$LAST_MODE" = "Step by step installation (classic mode)" ] && touch /tmp/install_classic


That should put the /tmp file there for each mode on default.

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Thu 19 Mar 2015, 03:38    Post subject:  

rg66 wrote:
I've changed line 93 to this:

Code:
LAST_MODE="`cat /var/local/petget/last_mode`"
[ "$LAST_MODE" = "Auto install" ] && touch /tmp/install_pets_quietly
[ "$LAST_MODE" = "Download packages (no install)" ] && touch /tmp/download_only_pet_quietly
[ "$LAST_MODE" = "Download all (packages and dependencies)" ] && touch /tmp/download_pets_quietly
[ "$LAST_MODE" = "Step by step installation (classic mode)" ] && touch /tmp/install_classic


That should put the /tmp file there for each mode on default.


That should do it.
You may want to post a revised patch Wink

BTW, I spend too much time on PPM already and do not intend to make any changes other than bug fixes.
But I really have no issue if other woof-CE members or puppy builders want to change PPM to suit their needs/preferences.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
rg66


Joined: 23 Jul 2012
Posts: 1160
Location: Vancouver, BC Canada / Entebbe, Uganda Africa!?!

PostPosted: Thu 19 Mar 2015, 04:32    Post subject:  

mavrothal wrote:
That should do it.
You may want to post a revised patch Wink

BTW, I spend too much time on PPM already and do not intend to make any changes other than bug fixes.
But I really have no issue if other woof-CE members or puppy builders want to change PPM to suit their needs/preferences.


Patches are below if anyone else prefers these mods.

I did this for personal preference only and in no way intended or expected the changes to be added to PPM2. Thanks for your help, I really appreciate it.
pkg_chooser_last_mode.patch.gz
Description  Change PPM2 install mode to default to last used
gz

 Download 
Filename  pkg_chooser_last_mode.patch.gz 
Filesize  1.05 KB 
Downloaded  276 Time(s) 
configure_last_mode.patch.gz
Description  Remove "Use traditional, non-auto, user interface" from options
gz

 Download 
Filename  configure_last_mode.patch.gz 
Filesize  435 Bytes 
Downloaded  209 Time(s) 

_________________
X-slacko-5b1 - X-tahr-2.0 - X-precise-2.4
X-series repo
Back to top
View user's profile Send private message 
john009

Joined: 22 Jan 2015
Posts: 45

PostPosted: Sun 29 Mar 2015, 04:19    Post subject:  

I selected "Do not show the terminal with ppm actions" and after clicking update nothing happened ,so I closed it and restarted ppm again and saw that all the repos(ubuntu) have been deselected ;and can't seem to reselect the repo's???.help please...

Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 3108

PostPosted: Sun 29 Mar 2015, 05:38    Post subject:  

john009 wrote:
I selected "Do not show the terminal with ppm actions" and after clicking update nothing happened ,so I closed it and restarted ppm again and saw that all the repos(ubuntu) have been deselected ;and can't seem to reselect the repo's???.help please...

I can not reproduce this.

Selected configure.
Went to options tab.
clicked do not show terminal actions
went to update tab
clicked update now
the yellow terminal came up asking to update the repos
closed the terminal (no updates)
Clicked "OK" on the configure window.
PPM restarted with everything OK.

Did you do something different?
Please be as precise as possible so we may figure out if there is any issue.

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
john009

Joined: 22 Jan 2015
Posts: 45

PostPosted: Sun 29 Mar 2015, 12:44    Post subject:  

Quote:
I can not reproduce this.

Selected configure.
Went to options tab.
clicked do not show terminal actions
went to update tab
clicked update now
the yellow terminal came up asking to update the repos
closed the terminal (no updates)
Clicked "OK" on the configure window.
PPM restarted with everything OK.



1-5-same..

6th step-no yellow terminal,nothing happened...,waited for some time,closed ppm and restarted ppm..

repo's were deselected..could not reselect them and no updates..

These are the steps I did ,didn't do anything else Confused Sad ..
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 11 of 18 [262 Posts]   Goto page: Previous 1, 2, 3, ..., 9, 10, 11, 12, 13, ..., 16, 17, 18 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.1015s ][ Queries: 13 (0.0440s) ][ GZIP on ]