This shows you the differences between two versions of the page.
userspace:opsi-get [2014/01/23 15:13] dkoch created |
userspace:opsi-get [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | --- // | ||
- | This documentation is not well tested because i am using this setup for many months. Please contact me if you face any problems | ||
- | |||
- | ====== What is opsi-get? ====== | ||
- | Opsi-get is a apt-get like CLI to OPSI. | ||
- | Imagine you are sitting in front of a client and want to install firefox and uninstall Internet Explorer: | ||
- | |||
- | Hit Win+R type " | ||
- | Now you are inside the opsi-get CLI: | ||
- | |||
- | opsi-get@host> | ||
- | opsi-get@host> | ||
- | opsi-get@host> | ||
- | |||
- | Opsi will start doing what it is doing ;). This action took about 10 seconds. | ||
- | |||
- | Source: http:// | ||
- | |||
- | ====== How does it work? ====== | ||
- | It will have to start a SSH connection from the client to the OPSI-server. It will try to look up the Hostname of the client that is connect and will provide the selected requests to it. | ||
- | |||
- | ====== Requirements ====== | ||
- | * Working DNS-Resolution with SSH | ||
- | * Putty on the Clients | ||
- | |||
- | ===== Server-side Installation ===== | ||
- | < | ||
- | # Add a new user opsi-get | ||
- | # The password you provide here will be used for the remote access later | ||
- | adduser opsi-get | ||
- | |||
- | # Allow opsi-get to access opsi-admin by adding him to the opsi-admin group | ||
- | adduser opsi-get opsi-admin | ||
- | |||
- | # Download the newest version of opsi-get to the home directory of opsi-get | ||
- | wget -NO / | ||
- | |||
- | # Make the shell executable | ||
- | chmox +x / | ||
- | |||
- | # Fix permissions | ||
- | chown opsi-get: | ||
- | |||
- | # Restrict User opsi-get to the opsi-get shell | ||
- | usermod opsi-get --shell / | ||
- | </ | ||
- | |||
- | |||
- | Thats it. Connect to your opsi-server as user opsi-get and the CLI will open. | ||
- | I will provide a nice Client-side setup later. Maybe as .opsi. | ||
- | Basically you can create a cmd-Script named " | ||
- | < |