Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-10 Thread Tim Sutton
Hi


On Mon, Mar 10, 2014 at 2:29 AM, Alex Mandel wrote:

> Actually there is a way to handle this.
> Puppet http://puppetlabs.com/
>
> The computers running a puppet client will check the master at a given
> time interval any files not matching the master conf will be reverted.
> You can also use this to install plugins or QGIS itself and repair the
> installation of them easily.
>
>
And you could also write a fabric script to do this very easily (and if you
want to be super nice contribute it to my fabgis[2][3] project).

[1] fabfile.org
[2] http://fabgis.linfiniti.com/
[3] https://github.com/timlinux/fabgis


Regards

Tim

Enjoy,
> Alex
>
> PS: Yes windows machines can be puppet clients (server might need to be
> a nix machine)
>
> On 03/09/2014 02:19 PM, Zoltan Szecsei wrote:
> > On 2014/03/09 22:48, Blumentrath, Stefan wrote:
> >> Hi Richard,
> >>
> >> A platform independent solution would be an elegant solution.
> >>
> >> What we do (on Windows) is having a folder on a server containing QGIS
> >> default settings (e.g. reg-files for DB-connections, Connections for
> >> web services, but also, most popular plugins, map and print composer
> >> templates). These default settings can be imported by the users by
> >> executing a simple batch-script we produced for that purpose. If that
> >> is of interest for somebody I could post the content of the .bat file...
> >>
> >>  From that starting point, colleagues can adjust the default settings
> >> to their personal needs and preferences...
> > This is great - the extra step that I would like to see is that it is
> > not only built in and automated, but has controls whereby an
> > administrator could "force" certain PCs on the network to only be able
> > to use the configs stipulated by the master installation of QGIS.
> > When one is managing 15+ PCs it is not trivial to make sure that you
> > have copied identical configs to all of them, and to know when someone
> > has kindly messed up one of your production PCs.
> > Rgds,
> > Zoltan
> >>
> >> Cheers
> >> Stefan
> >>
> >>
> >> -Original Message-----
> >> From: qgis-developer-boun...@lists.osgeo.org
> >> [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Richard
> >> Duivenvoorde
> >> Sent: 9. mars 2014 20:28
> >> To: Tim Sutton; Zoltan Szecsei
> >> Cc: qgis-developer@lists.osgeo.org
> >> Subject: Re: [Qgis-developer] Common QGIS Plugin configuration accross
> >> multiple Linux users
> >>
> >>
> >>> ~/.qgis2
> >>> and
> >>> ~/.config/QGIS
> >>>
> >>> You could e.g. rsync the user plugin dirs from a central one, or put
> >>> them in an nfs mount (read only might have issues as plugins try to
> >>> write .pyc files or even write data to the plugin dir).
> >>>
> >>> The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so
> >>> you should be able to pick through it and awk/sed/bash your way to
> >>> nirvana :-)
> >> I'm actually thinking about to make this OS independent, by creating a
> >> 'save QSettings' as file option. Then with a command line option you
> >> would be able to (just before reading the QSettings) actually
> >> read/write this settings file back into user settings. Thereby making
> >> it possible to for example transfer a certain setup across a class
> >> room (as long as the plugins are available in .qgis2 off cours).
> >>
> >> Would this work? Or do I miss something?
> >>
> >> Regards,
> >>
> >> Richard Duivenvoorde
> >>
> >>
> >>
> >> ___
> >> Qgis-developer mailing list
> >> Qgis-developer@lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
>
>


-- 
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Alex Mandel
Actually there is a way to handle this.
Puppet http://puppetlabs.com/

The computers running a puppet client will check the master at a given
time interval any files not matching the master conf will be reverted.
You can also use this to install plugins or QGIS itself and repair the
installation of them easily.

Enjoy,
Alex

PS: Yes windows machines can be puppet clients (server might need to be
a nix machine)

On 03/09/2014 02:19 PM, Zoltan Szecsei wrote:
> On 2014/03/09 22:48, Blumentrath, Stefan wrote:
>> Hi Richard,
>>
>> A platform independent solution would be an elegant solution.
>>
>> What we do (on Windows) is having a folder on a server containing QGIS
>> default settings (e.g. reg-files for DB-connections, Connections for
>> web services, but also, most popular plugins, map and print composer
>> templates). These default settings can be imported by the users by
>> executing a simple batch-script we produced for that purpose. If that
>> is of interest for somebody I could post the content of the .bat file...
>>
>>  From that starting point, colleagues can adjust the default settings
>> to their personal needs and preferences...
> This is great - the extra step that I would like to see is that it is
> not only built in and automated, but has controls whereby an
> administrator could "force" certain PCs on the network to only be able
> to use the configs stipulated by the master installation of QGIS.
> When one is managing 15+ PCs it is not trivial to make sure that you
> have copied identical configs to all of them, and to know when someone
> has kindly messed up one of your production PCs.
> Rgds,
> Zoltan
>>
>> Cheers
>> Stefan
>>
>>
>> -Original Message-
>> From: qgis-developer-boun...@lists.osgeo.org
>> [mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Richard
>> Duivenvoorde
>> Sent: 9. mars 2014 20:28
>> To: Tim Sutton; Zoltan Szecsei
>> Cc: qgis-developer@lists.osgeo.org
>> Subject: Re: [Qgis-developer] Common QGIS Plugin configuration accross
>> multiple Linux users
>>
>>
>>> ~/.qgis2
>>> and
>>> ~/.config/QGIS
>>>
>>> You could e.g. rsync the user plugin dirs from a central one, or put
>>> them in an nfs mount (read only might have issues as plugins try to
>>> write .pyc files or even write data to the plugin dir).
>>>
>>> The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so
>>> you should be able to pick through it and awk/sed/bash your way to
>>> nirvana :-)
>> I'm actually thinking about to make this OS independent, by creating a
>> 'save QSettings' as file option. Then with a command line option you
>> would be able to (just before reading the QSettings) actually
>> read/write this settings file back into user settings. Thereby making
>> it possible to for example transfer a certain setup across a class
>> room (as long as the plugins are available in .qgis2 off cours).
>>
>> Would this work? Or do I miss something?
>>
>> Regards,
>>
>> Richard Duivenvoorde
>>
>>
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Zoltan Szecsei

On 2014/03/09 22:48, Blumentrath, Stefan wrote:

Hi Richard,

A platform independent solution would be an elegant solution.

What we do (on Windows) is having a folder on a server containing QGIS default 
settings (e.g. reg-files for DB-connections, Connections for web services, but 
also, most popular plugins, map and print composer templates). These default 
settings can be imported by the users by executing a simple batch-script we 
produced for that purpose. If that is of interest for somebody I could post the 
content of the .bat file...

 From that starting point, colleagues can adjust the default settings to their 
personal needs and preferences...
This is great - the extra step that I would like to see is that it is 
not only built in and automated, but has controls whereby an 
administrator could "force" certain PCs on the network to only be able 
to use the configs stipulated by the master installation of QGIS.
When one is managing 15+ PCs it is not trivial to make sure that you 
have copied identical configs to all of them, and to know when someone 
has kindly messed up one of your production PCs.

Rgds,
Zoltan


Cheers
Stefan


-Original Message-
From: qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Richard 
Duivenvoorde
Sent: 9. mars 2014 20:28
To: Tim Sutton; Zoltan Szecsei
Cc: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple 
Linux users



~/.qgis2
and
~/.config/QGIS

You could e.g. rsync the user plugin dirs from a central one, or put
them in an nfs mount (read only might have issues as plugins try to
write .pyc files or even write data to the plugin dir).

The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so
you should be able to pick through it and awk/sed/bash your way to
nirvana :-)

I'm actually thinking about to make this OS independent, by creating a 'save 
QSettings' as file option. Then with a command line option you would be able to 
(just before reading the QSettings) actually read/write this settings file back 
into user settings. Thereby making it possible to for example transfer a 
certain setup across a class room (as long as the plugins are available in 
.qgis2 off cours).

Would this work? Or do I miss something?

Regards,

Richard Duivenvoorde



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer



--

===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Service

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:+27-86-6115323 www.geograph.co.za
===

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Zoltan Szecsei

On 2014/03/09 21:27, Richard Duivenvoorde wrote:

~/.qgis2
and
~/.config/QGIS

You could e.g. rsync the user plugin dirs from a central one, or put
them in an nfs mount (read only might have issues as plugins try to
write .pyc files or even write data to the plugin dir).

The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so you
should be able to pick through it and awk/sed/bash your way to nirvana :-)

I'm actually thinking about to make this OS independent, by creating a
'save QSettings' as file option. Then with a command line option you
would be able to (just before reading the QSettings) actually read/write
this settings file back into user settings. Thereby making it possible
to for example transfer a certain setup across a class room (as long as
the plugins are available in .qgis2 off cours).

Would this work? Or do I miss something?

Regards,

Richard Duivenvoorde




Hi Richard/Tim/All,
One of the biggest problems I have with my data capture projects is 
uniformity of capture environment for my project staff.

You have just quoted a school scenario, but map production has that too.

I would really like to see a system wide (maybe network wide for both 
Windows & Linux users) config file that looks after all the icon 
placements and plugins installed and activated.


It could perhaps work like /etc/profile in linux - where that is loaded 
first, then ~/.profile if it exists, modifies the systemwide settings 
for that specific user.


To be honest, if that was extended to a "master" qgisprofile file on a 
specific server that would be even more useful - I often use multi-seat 
linux PCs networked together, for larger data capture projects.


So, possible implementation could be:

 * At install time, the user is asked if this is a
   "qgis-profile-server" PC, or to supply the qgis-profile-server PC
   name if there already is such a server on the network.
 * If such qgis-profile-server exists then the install procedure could
   get profile and plugin details from that PC, and copy over the
   config files and plugin binaries.
 * If the person installing qgis ignores the "profile-server"
   questions, then an autonomous installtion of qgis could take place,
   even if there was a qgis-profile-server on the network.
   (This would allow test installations and non-production
   installations to co-exist with a production environment)
 * It would be great if in the setup of the qgis-profile-server PC, a
   flag could be set that disallowed a (specific list or all) PC to
   change the icon placements or fiddle with any config or plugin. ie:
   Such PCs would always be dependent on the setup dictated by the
   profile-server.

This could also be made dynamic in that if the qgis-profile-server was 
updated or changed, it could set a flag. Whenever QGIS is started on a 
PC belonging to a profile-server group, it could first check with the 
server to see if changes need to be made, and if so, update the local 
copy of the profile. This way one could make changes to the master copy 
of QGIS and by restarting all the QGIS users on the network, propagate 
the changes to them immediately. (This is preferable to always obtaining 
your profiles across the network from a server.)


I haven't thought this through in "algorythm fashion", but that's the 
gist of what facilities and mechanisms would be really nice in a 
production environment.


HTH,
Zoltan



--

===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Service

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:+27-86-6115323 www.geograph.co.za
===

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Blumentrath, Stefan
Hi Richard,

A platform independent solution would be an elegant solution.

What we do (on Windows) is having a folder on a server containing QGIS default 
settings (e.g. reg-files for DB-connections, Connections for web services, but 
also, most popular plugins, map and print composer templates). These default 
settings can be imported by the users by executing a simple batch-script we 
produced for that purpose. If that is of interest for somebody I could post the 
content of the .bat file...

>From that starting point, colleagues can adjust the default settings to their 
>personal needs and preferences...

Cheers
Stefan


-Original Message-
From: qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Richard 
Duivenvoorde
Sent: 9. mars 2014 20:28
To: Tim Sutton; Zoltan Szecsei
Cc: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple 
Linux users


> ~/.qgis2
> and
> ~/.config/QGIS
> 
> You could e.g. rsync the user plugin dirs from a central one, or put 
> them in an nfs mount (read only might have issues as plugins try to 
> write .pyc files or even write data to the plugin dir).
> 
> The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so 
> you should be able to pick through it and awk/sed/bash your way to 
> nirvana :-)

I'm actually thinking about to make this OS independent, by creating a 'save 
QSettings' as file option. Then with a command line option you would be able to 
(just before reading the QSettings) actually read/write this settings file back 
into user settings. Thereby making it possible to for example transfer a 
certain setup across a class room (as long as the plugins are available in 
.qgis2 off cours).

Would this work? Or do I miss something?

Regards,

Richard Duivenvoorde



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Richard Duivenvoorde

> ~/.qgis2
> and 
> ~/.config/QGIS
> 
> You could e.g. rsync the user plugin dirs from a central one, or put
> them in an nfs mount (read only might have issues as plugins try to
> write .pyc files or even write data to the plugin dir).
> 
> The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so you
> should be able to pick through it and awk/sed/bash your way to nirvana :-)

I'm actually thinking about to make this OS independent, by creating a
'save QSettings' as file option. Then with a command line option you
would be able to (just before reading the QSettings) actually read/write
this settings file back into user settings. Thereby making it possible
to for example transfer a certain setup across a class room (as long as
the plugins are available in .qgis2 off cours).

Would this work? Or do I miss something?

Regards,

Richard Duivenvoorde



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Zoltan Szecsei

Great - thanks Tim,

Cheers for now,
Zoltan


On 2014/03/09 19:54, Tim Sutton wrote:

Hi Zoltan




On Sun, Mar 9, 2014 at 7:40 PM, Zoltan Szecsei > wrote:


Hi,
I have posted this a couple of hours ago on QGIS-user, but this
might be more of a dev question:


I've got a number of users created on an Ubuntu 13.10 PC.

Is there a way that I can add the same plugins and proliferate the
same QGIS configuration to all users?
Perhaps by updating a master-User (icon arrangement, plugins etc)
and then copying that config file to the other users?

If yes, what files need to be copied accross?


The two directories you care about in this case are

~/.qgis2
and
~/.config/QGIS

You could e.g. rsync the user plugin dirs from a central one, or put 
them in an nfs mount (read only might have issues as plugins try to 
write .pyc files or even write data to the plugin dir).


The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so 
you should be able to pick through it and awk/sed/bash your way to 
nirvana :-)


Regards

Tim


Regards & thanks,
Zoltan



-- 


===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Service

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028 
Fax: +27-86-6115323  www.geograph.co.za

===

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/qgis-developer




--
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net 
==



--

===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Service

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:+27-86-6115323 www.geograph.co.za
===

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Tim Sutton
Hi




On Sun, Mar 9, 2014 at 7:54 PM, Tim Sutton  wrote:

> Hi Zoltan
>
>
>
>
> On Sun, Mar 9, 2014 at 7:40 PM, Zoltan Szecsei wrote:
>
>> Hi,
>> I have posted this a couple of hours ago on QGIS-user, but this might be
>> more of a dev question:
>>
>>
>> I've got a number of users created on an Ubuntu 13.10 PC.
>>
>> Is there a way that I can add the same plugins and proliferate the same
>> QGIS configuration to all users?
>> Perhaps by updating a master-User (icon arrangement, plugins etc) and
>> then copying that config file to the other users?
>>
>> If yes, what files need to be copied accross?
>>
>
> The two directories you care about in this case are
>
> ~/.qgis2
>

Sorry actually more specifically you probably only want to sync the plugins
dir at ~/.qgis2/python/plugins


> and
> ~/.config/QGIS
>
> You could e.g. rsync the user plugin dirs from a central one, or put them
> in an nfs mount (read only might have issues as plugins try to write .pyc
> files or even write data to the plugin dir).
>
> The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so you
> should be able to pick through it and awk/sed/bash your way to nirvana :-)
>
> Regards
>
> Tim
>
>
>>
>> Regards & thanks,
>> Zoltan
>>
>>
>>
>> --
>>
>> ===
>> Zoltan Szecsei PrGISc [PGP0031]
>> Geograph (Pty) Ltd.
>> GIS and Photogrammetric Service
>>
>> P.O. Box 7, Muizenberg 7950, South Africa.
>>
>> Mobile: +27-83-6004028
>> Fax:+27-86-6115323 www.geograph.co.za
>> ===
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
>
> --
> Tim Sutton - QGIS Project Steering Committee Member
> ==
> Please do not email me off-list with technical
> support questions. Using the lists will gain
> more exposure for your issues and the knowledge
> surrounding your issue will be shared with all.
>
> Irc: timlinux on #qgis at freenode.net
> ==
>



-- 
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Tim Sutton
Hi Zoltan




On Sun, Mar 9, 2014 at 7:40 PM, Zoltan Szecsei wrote:

> Hi,
> I have posted this a couple of hours ago on QGIS-user, but this might be
> more of a dev question:
>
>
> I've got a number of users created on an Ubuntu 13.10 PC.
>
> Is there a way that I can add the same plugins and proliferate the same
> QGIS configuration to all users?
> Perhaps by updating a master-User (icon arrangement, plugins etc) and then
> copying that config file to the other users?
>
> If yes, what files need to be copied accross?
>

The two directories you care about in this case are

~/.qgis2
and
~/.config/QGIS

You could e.g. rsync the user plugin dirs from a central one, or put them
in an nfs mount (read only might have issues as plugins try to write .pyc
files or even write data to the plugin dir).

The ~/.config/QGIS/QGIS2.conf is a standard ini style config file so you
should be able to pick through it and awk/sed/bash your way to nirvana :-)

Regards

Tim


>
> Regards & thanks,
> Zoltan
>
>
>
> --
>
> ===
> Zoltan Szecsei PrGISc [PGP0031]
> Geograph (Pty) Ltd.
> GIS and Photogrammetric Service
>
> P.O. Box 7, Muizenberg 7950, South Africa.
>
> Mobile: +27-83-6004028
> Fax:+27-86-6115323 www.geograph.co.za
> ===
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Tim Sutton - QGIS Project Steering Committee Member
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Common QGIS Plugin configuration accross multiple Linux users

2014-03-09 Thread Zoltan Szecsei

Hi,
I have posted this a couple of hours ago on QGIS-user, but this might be 
more of a dev question:



I've got a number of users created on an Ubuntu 13.10 PC.

Is there a way that I can add the same plugins and proliferate the same 
QGIS configuration to all users?
Perhaps by updating a master-User (icon arrangement, plugins etc) and 
then copying that config file to the other users?


If yes, what files need to be copied accross?

Regards & thanks,
Zoltan



--

===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
GIS and Photogrammetric Service

P.O. Box 7, Muizenberg 7950, South Africa.

Mobile: +27-83-6004028
Fax:+27-86-6115323 www.geograph.co.za
===

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer