This shows you the differences between two versions of the page.
userspace:parallel_xz [2014/02/06 13:04] dkoch |
userspace:parallel_xz [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Include pixz/pxz into bootimage ====== | ||
- | This was tested with Version **20131121-1** of the bootimage from testing. Its possible that this also works on other version. If not please report it to me --- // | ||
- | The OPSI-Bootimage lacks support for parallel xz compression which was recommended in my environment so i included it. XZ has compressed an image of 10GB to 4,4GB compared to gzip while more or less decompressing it as fast as gzip. I am using this with ntfs-write-image and ntfs-restore-image. | ||
- | |||
- | ===== Requirements ===== | ||
- | * Webserver of choice | ||
- | * pre-execute parameter of bootimage | ||
- | |||
- | ==== Setup Webserver ==== | ||
- | Get the files need for pxz and pixz from my Webserver | ||
- | |||
- | [[http:// | ||
- | [[http:// | ||
- | |||
- | and store them in your document root of the Webserver. ( /var/www/ is the default if you are running apache2 for example ) | ||
- | If you don't have a webserver yet install it on your opsi-server by executing these commands ( these include download of required packages and fixing permissions ) | ||
- | < | ||
- | apt-get install apache2 -y | ||
- | wget -N blackhole.triple6.org/ | ||
- | wget -N blackhole.triple6.org/ | ||
- | chown www-data: | ||
- | </ | ||
- | |||
- | Create another file named post-boot.sh in your document root as follows: | ||
- | < | ||
- | #!/bin/bash | ||
- | |||
- | wget -N domain-of-the-webserver/ | ||
- | wget -N domain-of-the-webserver/ | ||
- | # If you do not want to setup your own webserver you can insert my public webserver blackhole.triple6.org ( this is not recommended! ) | ||
- | |||
- | tar xaf pxz.tar.gz | ||
- | tar xaf pixz.tar.gz | ||
- | |||
- | cp -a lib/* /lib/ | ||
- | cp -a usr/* /usr/ | ||
- | |||
- | exit 0 | ||
- | </ | ||
- | |||
- | This script will download pxz and pixz from // | ||
- | |||
- | ==== Setup Opsi ==== | ||
- | |||
- | |||
- | In order to execute it you have to add this value to your opsiconfd-settings (host-parameters) | ||
- | < |