{{Header}} {{title|title= Derivative-Maker - Debian based Linux Bootable Image Builder }} {{#seo: |description=Can build Debian Derivatives such as Kicksecure and Whonix. }} {{intro| [https://github.com/derivative-maker/derivative-maker Derivative-Maker] is capable of building Debian Derivatives like Kicksecure and Whonix. }} = Introduction = A Linux distribution is - if done professionally - is built by a build script. This means no clicks by mouse and no running of manual commands is permissible. For example, it would be very much inappropriate to: * go to [https://extensions.gnome.org/extension/615/appindicator-support/ extensions.gnome.org] and press the 'Install' button. * click File Manager -> Settings -> changing any settings. This is also a requirement for: * consistent builds (custom rebuilds by third-parties, users, other developers resulting in an image with the same properties); * maintenance (it would be tedious to re-create new builds very time by manually installing Debian, then running commands to modify it and clicking) * It is also a prerequisite for reproducible builds. See also: * [https://www.whonix.org/wiki/Dev/Porting#Porting_Simplicity Learn about porting simplicity] * [https://www.whonix.org/wiki/Dev/Virtualization_Platform#Other_Virtualization_Platforms other virtualization platforms] = Existing Derivative-Maker Features = == Essential Derivative-Maker Features == * '''Automated Dependencies:''' Install all necessary build dependencies on the host system automatically. * '''Build Kicksecure VM Images:''' Create virtual machine images for Kicksecure. * '''Build Whonix VM Images:''' ** '''Whonix-Gateway:''' Generate Whonix-Gateway virtual machine images. ** '''Whonix-Workstation:''' Generate Whonix-Workstation virtual machine images. ** '''Unified Images:''' Construct a single OVA that includes both Whonix-Gateway and Whonix-Workstation. ** '''Whonix Windows Installer:''' Build an installer for Whonix on Windows systems. * '''Package Downloads:''' Fetch newer packages from third-party repositories such as The Tor Project APT repository and the VirtualBox APT repository. * '''Tor Browser Integration:''' Include Tor Browser by default in Whonix-Workstation builds. * '''APT Cache Support:''' Utilize an APT Cache to accelerate the build process. * '''VirtualBox Image Building:''' Use --target virtualbox to build VirtualBox OVA images. ** '''Custom VirtualBox Settings:''' Adjust VirtualBox VM settings using commands like VBoxManage modifyvm "$VMNAME" --synthcpu on. * '''KVM Image Building:''' Employ --target qcow2 to construct KVM images. ** '''Archive Creation:''' Generate xz archives. ** '''Libvirt XML Integration:''' Include libvirt xml files in the xz archives. * '''User Account Setup:''' Establish a default login with username user and password changeme. * '''Strict Error Handling:''' Implement strict error handling with comprehensive exit code checks. * '''No Binary Base Boxes Required:''' Avoid the use of non-deterministic binary base boxes (vagrant VirtualBox images) to prevent depending on the base box being non-malicious. * '''Signature Verification:''' Ensure all digital software signatures are authenticated. * '''Future-Proofing:''' Lay the groundwork for creating deterministic images, preparing for when this becomes an achievable goal. * '''Unicode Scan:''' Scans the source code folder (which includes all packages to be built from source code) for unicode to mitigate [[Unicode|Invisible Malicious Unicode Risks]]. == Non-Essential Derivative-Maker Features == * '''Development Flexibility''': Build steps can be executed manually to expedite the development process. * '''Build Customization''': Integration of custom build steps is possible. * '''Environment Customization''': Ability to create VM images without a desktop environment. ** Kicksecure options: --flavor kicksecure-xfce, --flavor kicksecure-cli. ** Whonix equivalents are also available. * '''Application Selection''': Build VM images excluding default applications. == Undecided Priority Derivative-Maker Features == * '''Automated Dependency Installation''': Installs all required build dependencies on the host system. * '''Architecture Support''': --arch parameter for specifying architecture (e.g., --arch amd64, --arch i386, potential arm64 support). * '''Kernel Options''': --kernel and --headers parameters for kernel and headers customization (e.g., --kernel linux-image-amd64 --headers linux-headers-amd64). * '''Custom Repository Usage''': Optionally (non-default) install derivative packages from a custom remote repository. * '''Interactive Error Handling''': Error handler to repeat commands, open a shell, or ignore errors interactively. * '''Target Specification''': --target root option for building with physical isolation in mind. * '''Raw Image Creation''': --target raw for building raw disk images. * '''ISO Image Building''': --target iso (coming soon) for creating ISO images. * '''Package Customization for Virtualization''': Install specific packages for different virtualization platforms, like VirtualBox (virtualbox-guest-x11) and KVM (e.g., spice). * '''Combined VirtualBox/KVM Builds''': --target virtualbox and --target qcow2 can be built at the same time. * Disadvantage is that the resulting image contains both, the VirtualBox (guest additions) and the KVM specific packages (spice). * https://forums.whonix.org/t/non-qubes-whonix-13-0-0-1-0-x-issues/2443/4 . * '''Dual Boot Compatibility''': (coming soon) Build images supporting both legacy BIOS and EFI booting. * '''Secure Boot Feature''': (coming soon) Support for Secure Boot during the boot process. * '''Build Security''': Build from a local self-built apt repository instead of a binary remote repository for enhanced security. * '''Source Code Trust''': During the build process no contents from kicksecure.com (or whonix.org) are used and no binaries created by the Kicksecure (or Whonix) project are used [[Trust#Builds_from_Source_Code_versus_Builds_including_Binary_Packages|Builds from Source Code versus Builds including Binary Packages]]. * '''Verification and Signature''': Image digital software signatures. Creation of hash sum verification and GPG signatures for digital software verification. * '''Remote Repository Exclusion''': Build images that never had the derivative's remote/binary repository enabled for security. * '''Local Package Installation''': Build and install all derivative packages during the derivative image build process. * '''Onion Source Building''': Use onion apt sources for enhanced security during the build. * '''Build Stability''': Protection mechanisms against unexpected build issues. ** '''Uncommitted Changes Check''': Option to break or continue the build when uncommitted changes are detected. This is useful to avoid temporary files and other unexpected changes to leak into the image to be build. ** '''Tag Compliance''': Enforces to build from a git tags during the build, which optionally can be disabled. This is useful to avoid users from accidentally building from arbitrary commit hashes (git head) and then wondering if the build process is broken or why the resulting image is not the version that the user intended to build. * '''Configuration Directory''': --confdir /path/to/config/dir to specify a custom configuration directory. * '''Tor Browser Installation Control''': --tb none|closed|open to manage Tor Browser installation behavior. ** none: Do not install Tor Browser. ** closed: Fail the build if Tor Browser cannot be installed. ** open: Continue the build even if Tor Browser cannot be installed. * '''Virtual Machine Customization''': Custom VM settings during build, which can be adjusted by the user post-build, such as: ** --vmram 128 for RAM allocation. ** --vram 12 for video memory allocation. ** --vmsize 200G for virtual disk size. * '''Build Process Customization''': Easy implementation for creating other image types (like raw images). * '''Build Cleanup Command''': Command to remove temporary files and/or images post-build. * '''Build Step Skipping''': Feature to optionally skip certain build steps. * '''User Freedom''': All options and checks are optional as much as possible without requiring to derivative-maker source code modifications. = Footnotes = [[Category:Design]] [[Category:Development]] {{Footer}}