Český úvod
Zde jsou moje skripty, které používám k přípravě upravených DVD Ubuntu s upraveným složením programů a offline-repozitářem o velikosti 7 GB.
Od uživatele vyžadují, aby si je přečetl, pochopil a upravil podle svého. Jsou okomentované v angličtině. Výsledkem je ISO hotové k vypálení.
Najdete je v příloze: ubudvd-scripts-v3-0.tar.bz2
Documentation for UbuDVD scripts 3.0
Overview
The UbuDVD scripts for Bash were written to create double-layer DVDs containing customised Ubuntu. The DVDs behave as standard desktop CDs, but contain also extensive offline-repository of over 7 GB packages with mostly used programs. There are some additional modifications for the European/Czech environment. After the installation of the system, it is easy to enable it as the only source of packages on computers with poor/no internet connection.
These 10 scripts were written for my own purposes and are not intended to be used out-of-the-box. You should rather read, understand and modify them.
The calling order is: 1) preprocess.sh - unpacks the original CD image, prepares the chroot scripts 2) chroot:download.sh - removes, upgrades, installs or downloads all essential
- packages (~ 100 MB), makes some modifications
3) chroot:autodownload.sh - optional, scans the system list to
- download all the programs available in "Add/remove" installer (over 8 GB)
4) chroot:extended-download - download a lot of additional packages to reach the image size between
- 8,450E9 and 8,480E9 bytes to fit the DVD-DL
5) chroot:process.sh - indexes the packages and create an "offline repository" on the DVD 6) patches.sh - copies additional data from patch_iso and patch_squashfs, performs
- arbitrary changes
7) update-pkg-cache.sh - optional, copies downloaded packages to a directory on your disk
(./packages_cache/<arch>/ to avoid redownloading
8) trimdvd.sh - a script that should be ran in the ./packages_cache/ directory to fit the
- packages to the DVD
9) postprocess.sh - pack the Squashfs and ISO images 10) calculate-md5.sh
Optionally, you can use the unpostprocess.sh script go back from a created ISO image to the state before calling process.sh. This is useful to fine tune the size of the ISO.
The creation of DVD takes quite a long time, needs about 20 GB of HDD space and a fast internet connection. After downloading several GB of packages, you can backup them to some different directory on your disk and use them for later experimenting with DVDs instead of downloading the same content repeatedly.
The scripts are release-specific, this version 3.0 is intended for Ubuntu 8.10 Hardy Heron. You will probably have to edit them to fit the newer versions!
Usage
For example, we will create an image of amd64 version. Download the Ubuntu desktop CD, for instance: ubuntu-8.04-desktop-amd64.iso. Begin with
- mkdir 01-ubuntu-firsttest-amd64 sudo su
export UBUDVD_PROJECT_DIR=pwd/ export UBUDVD_ARCH=amd64 cd 01-ubuntu-firsttest-amd64 cp ../ubuntu-8.04-desktop-amd64.iso ./ -s sudo ../preprocess.sh ubuntu-8.04-desktop-amd64.iso
...and then follow the instructions each script writes.
License
Writen and tested by Filip Dominec 2007 - 2008. You can write me at filip dododot dominec tatatat gmail dododot com.
Released as public domain. Of course, I provide NO WARRANTY, including, but not limited to, creating your own totally useless derivation of Ubuntu which will only consume your valuable time and disk space.
fd. 2008-dec-11