This repository has every file which is needed to make a preseeded installation of the Zorin OS 15.x
This directory will be copied to the /home/ directory on the target system. This can be used to make changes on the target system after the installation.
This file gives the commands to Ubiquity for the preseeded installation.
This file is nearly identical to the file ks.preseed. There is only one additional command. The command executes the bash-script "erase.sh". It is executed before the partitioning.
This file is nearly identical to the file er.preseed. There is only one additional command. The command executes the bash-script "erase_sus.sh". It is executed before the partitioning.
This file is similar to ks.preseed but copies scripts at the end of the installation to the Desktop.
This file is similar to er.preseed but copies scripts at the end of the installation to the Desktop.
This file is similar to ersus.preseed but copies scripts at the end of the installation to the Desktop.
This file is a bash script, which searches for memory devices and excecutes the hpdarm.sh script for each of them. Only the last device is excluded, because this is mostly the install medium. Because the livesystem, which makes the installation, has the most memory devices declared as frozen, the script suspends the computer automatically. It must be "waked up" manually by pressing the power button after the screen turns black.
This file is the same as erase.sh. But the suspend of the computer is removed. This is due to the problem that some old computers aren't unable to suspend and reawaken.
This file is a bash script, which erases a memory device. It use hpdarm. If it fails, it uses dd to overwrite the device with random numbers.
This file is found in the directory isolinux of the original image. It is used to generate the bootmenu for the legacy boot. Every boot entry has the Ubiquity removed. The installation will be started from the livesystem.
This file contains the localization of the system. It is copied from a manually installed system. The presseded installation will copy it to the directory /etc/default. In a single user system this will set the localisation. At the moment a copy of this file exists in the directory files and will be copied a second time through the personalisation step in the installed system.
This file is found in the directory boot/grub of the original image. It is used to generate the bootmenu for the EFI boot. The first half of the file is for the visual expression and can be ignored. The second part is similar to menuentries.cfg and has the same parameters. Every bootentry has the Ubiquity removed. The installation will be started from the live system.
Some Macbooks have problems with the camera-driver. This script reloads a free driver from github and sets it up.
This script is a reduced version of "script.sh". This is for times when the kernel is reinstalled due to the updates. This reloads the driver and recompile it.
Use a Linux machine to do this. Windows can be used to build an ISO file for testing with VirtualBox, but the Windows-built ISO file won't be suitable for burning to a USB stick (it won't have been treated with isobybrid
).
- Install the
syslinux-utils
to obtainisohybrid
. This is needed to make the USB stick bootable:
sudo apt install syslinux-utils
- Clone this repo somewhere:
git clone https://github.com/Untitled-Document-1/Zorin-preseed
- Download Zorin OS Lite/Core/Ultimate from https://zorinos.com/download/
Mount the ISO file, and copy the ISO contents to a directory named ISO
:
mkdir mnt-dir
mount -o loop Zorin-OS-15.3-Lite-64-bit.iso mnt-dir/
rsync -a mnt-dir/ ISO/
umount mnt-dir && rm -rf mnt-dir
chmod +x copyfilesmakeiso.sh
and run./copyfilesmakeiso.sh
. This will copy the files to the correct location in theISO
directory, and build an ISO file. Note that theISO
directory must be at the same directory level as the cloned repo. For Windows users,copyfilesmakeiso.cmd
is provided. Note that this Windows script is more "hands-off", i.e. fewer manual steps are required. See the/?
option for more details.- Burn the ISO file to your USB stick with:
blkid # identify USB disk (/dev/sdX)
dd if=/zorin-files/unattended-Zorin.iso of=/dev/sdX bs=4M; sync
If you're stuck with a Windows build machine, and your target device has UEFI firmware, it should be possible to avoid the ISO file building. Format the stick as FAT32
. Copy all the repo files/directories into the ISO
directory, per copyfilesmakeiso.cmd
, and then copy the ISO
directory contents onto the USB stick. The stick should then be bootable in UEFI mode.
If there should be additional packages installed, the file steps.txt
has the commands to do so.
- Boot from the boot device.
- Select the right option. There are four preseeded option and two backup options:
- preseeded installation without erasing of the memory devices.
- preseeded installation with erasing of the memory devices.
- preseeded installation with erasing of the memory devices without suspend.
- preseeded installation without erasing of the memory devices for Apple.
- preseeded installation with erasing of the memory devices for Apple.
- preseeded installation with erasing of the memory devices without suspend for Apple.
- The installation isn't fully unattended. Because of an unknown reason this is not possible. There must be a minimum one command uncommented.
- The computer restarts directly after the installation. So if the boot priority of the USB device is higher than the boot priority of the HDD, the computer could end up in an endless loop of installations. At the moment the option to continue the installation will be shown, if there are other installed operating systems.
- The language and the keyboard layout are set to english and en_US. These things are individualized after the installation is finished.