This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:howto_use_the_scripts_-_a_short_description [2011/12/16 12:54] Thomas_H |
userspace:howto_use_the_scripts_-_a_short_description [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== ...use the listed scripts ===== | ===== ...use the listed scripts ===== | ||
- | written by // | + | written by // |
+ | edited by // | ||
Welcome to the wiki, initiated by users using opsi very proudly and successful. If you want to use Opsi (**O**pen **P**C **S**erver **I**ntegration) be aware, that this system is - like many other servers - none "out of the box". So get rid of any illusion, that you simply install opsi and right after installing you can install every software and operating system. Some work has to be done before you can do this! And nevertheless there are very(!) good instructions and manuals for opsi it's your's to create the most contents and packages for future installations. | Welcome to the wiki, initiated by users using opsi very proudly and successful. If you want to use Opsi (**O**pen **P**C **S**erver **I**ntegration) be aware, that this system is - like many other servers - none "out of the box". So get rid of any illusion, that you simply install opsi and right after installing you can install every software and operating system. Some work has to be done before you can do this! And nevertheless there are very(!) good instructions and manuals for opsi it's your's to create the most contents and packages for future installations. | ||
- | This wiki shall help to avoid much work to be done twice, because once a package is created | + | This wiki shall help to avoid much work to be done twice, because once a package is created |
- | This Howto is mostly | + | This Howto is for the newbies |
- | Of course: best is at last to get some training, you can get informations about training on opsi [[http://www.opsi.org/ | + | Of course: best is at last to get some training, you can get informations about training on opsi [[https://uib.de/en/support-training/ |
==== Some words before beginning... ==== | ==== Some words before beginning... ==== | ||
- | * Read the manuals! We expect that you already have installed and configured your opsi-server on the manual named " | + | * Read the manuals! We expect that you already have installed and configured your opsi-server on the manual named [[http:// |
* The published scripts are tested and they all work | * The published scripts are tested and they all work | ||
- | * If software is free, so you should find links above the scripts where to get it. If a software is free, and there is no link, so you can add it as a member of the [[http:// | + | * If software, which should be installed |
- | * Commercial software has to be bought from the manufacturer and not to asked for in the [[http:// | + | * Commercial software has to be bought from the manufacturer and has not to be asked for in the [[http:// |
* If a script don't work, so ask politely in the [[http:// | * If a script don't work, so ask politely in the [[http:// | ||
* If you need changes, so don't expect that others do this for you (except you pay UIB for doing this ;) ) Try it first for your own, and if it don't work ask the [[http:// | * If you need changes, so don't expect that others do this for you (except you pay UIB for doing this ;) ) Try it first for your own, and if it don't work ask the [[http:// | ||
- | And of course I expect, that you know how to open a terminal, or using putty and how to copy and paste some text to a terminal, depending on the way you choose to create a new package. If you work on a Windows-Machine via remote on the opsi-server you might use putty, if you use a VM, you might copy and paste directly to the VM... however, I will not describe the way how to do all these things. I think, if you are going to use a remote installation server, you have to know the basics. | + | And of course I expect, that you know how to open a terminal, or using putty and how to copy and paste some text to a terminal, depending on the way you choose to create a new package. If you work on a Windows-Machine via remote on the opsi-server you might use putty, if you use a VM, you might copy and paste directly to the VM... however, I will not describe the way how to do all these things. I think, if you are going to use a remote installation server, you' |
+ | (And don't blame me on my english, because it's not my native language :) ) | ||
Line 51: | Line 53: | ||
* wget (if not installed) | * wget (if not installed) | ||
- | Me for myself | + | Me for myself |
- | First follow the instructions on the manual " | + | //**A remark from bell**: |
+ | "I think, it's easier to pack by using a share, so you can mount it on a testclient. I am usually programming on Windows-Client, | ||
+ | |||
+ | By this you can test the scripts until they function and create at last the packet."// | ||
+ | (Of course this is more a solution for experienced users, who knows, what " | ||
+ | |||
+ | First follow the instructions on the manual " | ||
Localboot means, the pc starts from it's own HDD. | Localboot means, the pc starts from it's own HDD. | ||
- | After entering some informations on the product-information-screen you enter exactly the names " | + | For creating a new packet we start by changing to our directory, where we want to store our builds in future. |
- | We will not create any dependencies at this moment. | + | If our directory should be "/ |
+ | |||
+ | < | ||
+ | mkdir / | ||
+ | cd / | ||
+ | </ | ||
+ | |||
+ | Remark from the [[https:// | ||
+ | |||
+ | ''" | ||
+ | |||
+ | The three most important reasons are:\\ | ||
+ | 1. because of the rights on this foilder diffrent persons (if not root) can work in this folder.\\ | ||
+ | 2. The command'' | ||
+ | 3. This folder is shared as ' | ||
+ | |||
+ | It's also described in the handbook: | ||
+ | http:// | ||
+ | |||
+ | Then we begin by entering | ||
+ | < | ||
+ | opsi-newprod | ||
+ | </ | ||
+ | |||
+ | We'll have to go trough | ||
+ | < | ||
+ | product id = tightvnc | ||
+ | product name = TightVNC | ||
+ | </ | ||
+ | |||
+ | the you follow the screens, | ||
- | Dependencies are needed | + | We will not create any dependencies at this moment. |
- | For VNC we also will not define any product-properties. | + | For TightVNC |
- | When done opsi-newprod we will have a new folder in / | + | When done, opsi-newprod we will have a new folder in / |
In folder we will find three more other folders, named CLIENT_DATA, | In folder we will find three more other folders, named CLIENT_DATA, | ||
<code winst> | <code winst> | ||
- | --- vnc | + | │ |
- | | - CLIENT_DATA | + | ├ tightvnc |
- | | - OPSI | + | ├ CLIENT_DATA |
- | | |- control | + | ├ OPSI |
- | | |- postinst | + | │ ├ control |
- | | |- preinst | + | │ ├ postinst |
- | | - SERVER_DATA | + | │ └ preinst |
+ | └ SERVER_DATA | ||
</ | </ | ||
- | Change now to the folder " | + | Change now to the folder "/ |
< | < | ||
- | minhas-tirith:/ | + | cd CLIENT_DATA |
</ | </ | ||
Line 85: | Line 124: | ||
==== Getting the setup-program ==== | ==== Getting the setup-program ==== | ||
- | First we need to download the setup-program, | + | First we need to download the setup-program, |
Follow the link and watch for the self-installing package for Windows. Do a rightclick on the link and copy the URL of the file. | Follow the link and watch for the self-installing package for Windows. Do a rightclick on the link and copy the URL of the file. | ||
Line 91: | Line 130: | ||
< | < | ||
- | minhas-tirith:/ | + | wget " |
</ | </ | ||
(Attention! The Version-Number 2.0.4 might have changed, when you read this HOWTO!) | (Attention! The Version-Number 2.0.4 might have changed, when you read this HOWTO!) | ||
Line 100: | Line 139: | ||
< | < | ||
- | minhas-tirith:/ | + | touch setup.ins |
- | minhas-tirith:/ | + | joe setup.ins |
</ | </ | ||
- | Now open in the wiki the page [[userspace: | + | Now open in the wiki the page [[userspace: |
Now find the line with a | Now find the line with a | ||
<code winst> | <code winst> | ||
Line 116: | Line 155: | ||
< | < | ||
- | minhas-tirith:/ | + | touch uninstall.ins |
- | minhas-tirith:/ | + | joe uninstall.ins |
</ | </ | ||
+ | |||
+ | Mark all inside the box under " | ||
< | < | ||
- | minhas-tirith:/ | + | touch delsub.ins |
- | minhas-tirith:/ | + | joe delsub.ins |
</ | </ | ||
- | to avoid any errors during the automated installation also do a | + | Mark all inside the box under " |
+ | |||
+ | To avoid any errors during the automated installation also do a | ||
< | < | ||
- | minhas-tirith:/ | + | touch Tightvnc_win7.reg |
</ | </ | ||
Line 144: | Line 187: | ||
< | < | ||
- | minhas-tirith:/ | + | cd .. |
</ | </ | ||
+ | |||
+ | now we should be in / | ||
and pack it by using opsi-makeproductfile. | and pack it by using opsi-makeproductfile. | ||
< | < | ||
- | minhas-tirith:/ | + | opsi-makeproductfile |
</ | </ | ||
Line 157: | Line 202: | ||
< | < | ||
- | minhas-tirith:/ | + | opsi-package-manager -i *.opsi |
</ | </ | ||