Automating Software Install - One Step?
Automating Software Install - One Step?
Hello,
I've read through the various manuals but can't quite seem to figure out what I need to do to make this happen (if it's even possible).
I'd like to get OPSI to automatically install a set of utilities after the OS installation/first boot. I noticed that it automatically installs the preLoginLoader service, but I can't seem to find how to get it to do this with another set of utilities (at least, not without several extra clicks - I'd like it to be COMPLETELY automatic).
For example, I'd like it to:
1) Install OS
2) Install Service Pack for OS (I know this can be done using slipstreaming - I'm just curious from a learning perspective how to do it using scripting in this case)
3) Install office software
4) Join a domain
All without intervention except the adding of the MAC address to the database and then booting the system and letting it go.
Really, showing step 2 of that would be fine, as all others would just be modifications of the same procedure.
Thanks in advance for your help.
Ryan
I've read through the various manuals but can't quite seem to figure out what I need to do to make this happen (if it's even possible).
I'd like to get OPSI to automatically install a set of utilities after the OS installation/first boot. I noticed that it automatically installs the preLoginLoader service, but I can't seem to find how to get it to do this with another set of utilities (at least, not without several extra clicks - I'd like it to be COMPLETELY automatic).
For example, I'd like it to:
1) Install OS
2) Install Service Pack for OS (I know this can be done using slipstreaming - I'm just curious from a learning perspective how to do it using scripting in this case)
3) Install office software
4) Join a domain
All without intervention except the adding of the MAC address to the database and then booting the system and letting it go.
Really, showing step 2 of that would be fine, as all others would just be modifications of the same procedure.
Thanks in advance for your help.
Ryan
- j.schneider
- uib-Team
- Beiträge: 1809
- Registriert: 29 Mai 2008, 15:14
Re: Automating Software Install - One Step?
Hi,
you only have to edit the file /var/lib/opsi/config/templates/pcproto.ini
This file is the template for new clients.
For example, if you set:
in this file and create a new client, you will notice that these products are automatically set to setup in the products-tab of the newly created client.
If you start the os installation now, all products with action "setup" (or installation status "installed") will get installed after the os install finishes.
Greetings,
Jan Schneider
you only have to edit the file /var/lib/opsi/config/templates/pcproto.ini
This file is the template for new clients.
For example, if you set:
Code: Alles auswählen
firefox = not_installed:setup
python = not_installed:setup
If you start the os installation now, all products with action "setup" (or installation status "installed") will get installed after the os install finishes.
Greetings,
Jan Schneider
Re: Automating Software Install - One Step?
Thanks for this, it solved my problem.
I am, however, having another... I'll post in a separate post.
Ryan
I am, however, having another... I'll post in a separate post.
Ryan
Re: Automating Software Install - One Step?
2. If you want to get a full upgrade of the OS after the installation, please read a bit on: http://www.wsus.info/. I have actually prepared a working script that updates WinXP after preinstallation. Please check my website at http://www.warden.pl as well, I will post a howto soon about itRyanJ hat geschrieben:Hello,
1) Install OS
2) Install Service Pack for OS (I know this can be done using slipstreaming - I'm just curious from a learning perspective how to do it using scripting in this case)
3) Install office software
4) Join a domain
3. Installing Office is done using standard MSI package installation commands, please read KB articles that I put in my previous opsi article http://www.warden.pl/2008/11/12/network ... tallation/
4. Joining a domain is as simple as putting
%ScriptPath%\netdom.exe join %PCName% /Domain:CELLS /UserD:admin /PasswordD:adminpasswd
in any winst script, but you have to get the netdom.exe utility.
Re: Automating Software Install - One Step?
Wow, this is great, just one question, is it possible to use this also for already existing clients?j.schneider hat geschrieben:Hi,
you only have to edit the file /var/lib/opsi/config/templates/pcproto.ini
This file is the template for new clients.
For example, if you set:in this file and create a new client, you will notice that these products are automatically set to setup in the products-tab of the newly created client.Code: Alles auswählen
firefox = not_installed:setup python = not_installed:setup
If you start the os installation now, all products with action "setup" (or installation status "installed") will get installed after the os install finishes.
I mean, if I want to _reinstall_ a client with a default set of applications.
Would I have to delete and readd the client again?
I can imagine that copying /var/lib/opsi/config/templates/pcproto.ini to <clientname>.ini would solve that issue, but maybe it is possible somehow from the interface itself?
Re: Automating Software Install - One Step?
hi,
if you reinstall a client with Windows, all products which are already installed on the client (in the Software list Installed) will be reinstalled too.
Tobi
if you reinstall a client with Windows, all products which are already installed on the client (in the Software list Installed) will be reinstalled too.
Tobi
Re: Automating Software Install - One Step?
ah, as simple as that, and I haven't tested that
thanks!
thanks!
Re: Automating Software Install - One Step?
Hi wardenik,
5.1.6. Installation of OS and opsi-preLoginLoader
distinction between "reinstallation-mode" and "standard-mode"
ok, there is a small typo mismatch in the doc with "on" vs. "installed", should be
regards
Bardo Wolf
its a feature described in http://download.uib.de/opsi3.3/doku/ops ... v33-en.pdfwardenik hat geschrieben:ah, as simple as that,
5.1.6. Installation of OS and opsi-preLoginLoader
distinction between "reinstallation-mode" and "standard-mode"
ok, there is a small typo mismatch in the doc with "on" vs. "installed", should be
Code: Alles auswählen
"Therefore, regarding the configuration status of each software packet, each packet which is marked as action status ”setup” or installation status ”installed” within the configuration of that client will be installed."
Bardo Wolf
OPSICONF 2024
https://opsi.org/en/opsiconf/
Basisworkshop Mainz :
17. - 20. 06. 2024
opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.
http://www.uib.de
Re: Automating Software Install - One Step?
In case anyone else stumbles (via google) over this entry: IT DOES NOT WORK!
Link is broken and the entry is incomplete (properties and sections missing) and results into a "broken" OPSI.
The solution is listed here: https://forum.uib.de/viewtopic.php?t=2348
Regards
- Christof
Link is broken and the entry is incomplete (properties and sections missing) and results into a "broken" OPSI.
The solution is listed here: https://forum.uib.de/viewtopic.php?t=2348
Regards
- Christof
-
- Beiträge: 44
- Registriert: 01 Mai 2018, 11:02
Re: Automating Software Install - One Step?
I tried this solution and it broke my opsi installation.
Even when i empty the file pcproto.ini. When i start a new installation yust before the os selection it errors out.
I recovered with a backup however is there a safer way to do this?
Even when i empty the file pcproto.ini. When i start a new installation yust before the os selection it errors out.
I recovered with a backup however is there a safer way to do this?