User Tools

Site Tools


userspace:parallel_xz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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  --- //[[koch.daniel.89@googlemail.com|dkoch]] 2014/02/06 13:23// \\ 
  
-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://blackhole.triple6.org/opsi/pixz.tar.gz]] 
-[[http://blackhole.triple6.org/opsi/pxz.tar.gz]] 
- 
-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 ) 
-<code> 
-apt-get install apache2 -y 
-wget -N blackhole.triple6.org/opsi/pixz.tar.gz -O /var/www/pixz.tar.gz 
-wget -N blackhole.triple6.org/opsi/pxz.tar.gz -O /var/www/pxz.tar.gz 
-chown www-data:www-data /var/www/ -R 
-</code> 
- 
-Create another file named post-boot.sh in your document root as follows: 
-<code> 
-#!/bin/bash 
- 
-wget -N domain-of-the-webserver/pxz.tar.gz 
-wget -N domain-of-the-webserver/pixz.tar.gz 
-# 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 
-</code> 
- 
-This script will download pxz and pixz from //domain-of-the-webserver// and patches the boot image before CLIENT_DATA scripts are executed.  
- 
-==== Setup Opsi ==== 
- 
- 
-In order to execute it you have to add this value to your opsiconfd-settings (host-parameters) 
-<code> opsi-linux-bootimage.append pre-execute=http://domain-of-the-webserver/post-boot.sh</code> 
userspace/parallel_xz.txt ยท Last modified: 2021/08/23 08:37 (external edit)