Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-14 Thread Ole Holm Nielsen
On 10/14/2016 10:08 AM, Kenneth Hoste wrote: Following the Lmod documentation in http://lmod.readthedocs.io/en/latest/070_standard_modules.html I've come up with the following shell initialization file /etc/profile.d/z01_EasyBuild.sh which gets called after Lmod has been initialized (by

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-14 Thread Kenneth Hoste
On 14/10/16 09:45, Ole Holm Nielsen wrote: Hi Kenneth, Cc: Robert, I've been trying to set up a default user environment with modules provided by EasyBuild (EB) and using Lmod. We run CentOS 7.2. The EB discussion is in this thread:

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-14 Thread Ole Holm Nielsen
Hi Kenneth, Cc: Robert, I've been trying to set up a default user environment with modules provided by EasyBuild (EB) and using Lmod. We run CentOS 7.2. The EB discussion is in this thread: https://lists.ugent.be/wws/arc/easybuild/2016-10/msg00052.html My goal is to automatically provide

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Ole Holm Nielsen
On 10/13/2016 05:15 PM, Kenneth Hoste wrote: You need to move the 'module --initial_load restore' after the 'module use', otherwise the EasyBuild module is indeed not available. No Catch-22 imho... And then you shouldn't need to load the EasyBuild module again, it should be loaded via the

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Ole Holm Nielsen
On 10/13/2016 04:27 PM, Kenneth Hoste wrote: I'm afraid I don't have one. We don't load Easybuild by default for our users. But you should take a look at: https://lmod.readthedocs.io/en/latest/070_standard_modules.html Thanks, this page is actually useful and specific! So I've created a new

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Kenneth Hoste
On 13/10/16 16:11, Ole Holm Nielsen wrote: On 10/13/2016 03:28 PM, Ward Poelmans wrote: For loading Easybuild by default, I would use a Lmod default collection. Could you possibly offer a specific example of what you mean? Like a complete script to put into /etc/profile.d/ ? I'm afraid I

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Ole Holm Nielsen
On 10/13/2016 03:28 PM, Ward Poelmans wrote: For loading Easybuild by default, I would use a Lmod default collection. Could you possibly offer a specific example of what you mean? Like a complete script to put into /etc/profile.d/ ? I'm afraid I don't have one. We don't load Easybuild by

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Ward Poelmans
On 13-10-16 15:20, Ole Holm Nielsen wrote: > On 10/13/2016 01:54 PM, Ward Poelmans wrote: >> On 13-10-16 13:48, Ole Holm Nielsen wrote: >> >> For loading Easybuild by default, I would use a Lmod default collection. > > Could you possibly offer a specific example of what you mean? Like a >

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Ole Holm Nielsen
On 10/13/2016 01:54 PM, Ward Poelmans wrote: On 13-10-16 13:48, Ole Holm Nielsen wrote: I would like to enable the EB/Lmod modules to all users in a global bash/tcsh setup script. On CentOS 7.2 initialization is done using scripts in /etc/profile.d/ Basically I want every user shell to

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Kenneth Hoste
Hi André, On 13/10/16 14:39, André Gemünd wrote: Hi Ward, sorry for interfering with this thread, but *is* there actually a global config file? I asked this some time ago on the ml, and as far as I remember there are only local config files ($XDG_...), no global config e.g. under the

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread André Gemünd
Hi Ward, sorry for interfering with this thread, but *is* there actually a global config file? I asked this some time ago on the ml, and as far as I remember there are only local config files ($XDG_...), no global config e.g. under the installation prefix. Cheers Andre - Am 13. Okt 2016

Re: [easybuild] How to setup EB in the global /etc/profile.d/ ?

2016-10-13 Thread Ward Poelmans
On 13-10-16 13:48, Ole Holm Nielsen wrote: > I would like to enable the EB/Lmod modules to all users in a global > bash/tcsh setup script. On CentOS 7.2 initialization is done using > scripts in /etc/profile.d/ > > Basically I want every user shell to execute these commands: > > export