homehowtokbslinksaboutcontactprojectsmusic

Index > Help Tutorials > Install Opsi on Linux
Fix the hosts file to reflect the correct IP for the host (dont change for localhost)
nano /etc/hosts
Install necessary packages
apt-get install wget lsof host python-mechanize p7zip-full cabextract openbsd-inetd -y
apt-get install samba samba-common smbclient smbfs samba-doc -y && apt-get install mysql-server -y
Add the download entry in Ubuntu repository
echo deb http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40/xUbuntu_12.04 ./ >> /etc/apt/sources.list
Get the release and add it
wget -O - http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40/xUbuntu_12.04/Release.key | apt-key add -
Verify it
apt-key list
You would see one line like following, if you did then we good to move forward
pub 1024D/4DC87421 2010-07-23 [verfällt: 2012-09-30] + uid home:uibmz OBS Project 
Lets do the update and upgrade if needed
aptitude update && aptitude safe-upgrade
Remove unnecessary packages
aptitude remove tftpd && update-inetd --remove tftpd
Install new packages
aptitude install opsi-atftpd -y && aptitude install opsi-depotserver -y && aptitude install opsi-configed -y
Run the update and install Java
aptitude update && aptitude install openjdk-7-jre icedtea-plugin -y
Configure MySQL and answer the questions carefully
opsi-setup --configure-mysql
Now edit the file to reflect the back end changes
nano /etc/opsi/backendManager/dispatch.conf
I would comment everything in the file and paste the following at the end of the file
backend_.*         : file, mysql, opsipxeconfd 
host_.*            : file, opsipxeconfd 
productOnClient_.* : file, opsipxeconfd 
configState_.*     : file, opsipxeconfd 
license.*          : mysql 
softwareLicense.*  : mysql 
audit.*            : mysql 
.*                 : file  
Initialize the new configuration and set the correct permissions
opsi-setup --init-current-config && opsi-setup --set-rights
Restart the services
/etc/init.d/opsiconfd restart && /etc/init.d/opsipxeconfd restart
Set password for opsi-admin
opsi-admin -d task setPcpatchPassword
Verify java if needed
java -version
Add admin user and set the unix and samba passwords
useradd -m -s /bin/bash adminuser && passwd adminuser && smbpasswd -a adminuser
Add the above user to correct group
usermod -aG opsiadmin,pcpatch adminuser
Install dhcp server and auto configure it
aptitude install isc-dhcp-server -y && opsi-setup --auto-configure-dhcpd
If you are using external dhcp server the remove the dhcp packages
aptitude remove dhcp3-server && aptitude remove isc-dhcp-server
Re-initialize the current configuration and set the correct permissions
opsi-setup --init-current-config && opsi-setup --set-rights && opsi-setup --set-rights /etc/opsi
Restart the services
/etc/init.d/opsiconfd restart && /etc/init.d/opsipxeconfd restart
Update opsi products, re-initialize the configuration and set the correct permissions
opsi-product-updater -i -vv && opsi-setup --init-current-config && opsi-setup --set-rights
Restart the services
/etc/init.d/opsiconfd restart && /etc/init.d/opsipxeconfd restart
Now you should be able to login to your new opsi server at following url, change the host name accordingly https://opsi:4447/configd

Deploy Software with OPSI

First of all you need to install opsi client on the computer(s), there are two possible ways to do so