#!/bin/bash

# WARNING: to use "--binary-images hdd", see this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773833
# WARNING: to get persistence encryption working, apply this fix: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767195

# architectures amd64 i386
# linux-flavours  686 686-pae amd64

lb config \
--distribution trixie \
--architectures amd64 \
--debian-installer live \
--binary-images iso-hybrid \
--linux-flavours "amd64" \
--debconf-frontend dialog \
--chroot-filesystem squashfs \
--parent-mirror-bootstrap http://mirrors.kernel.org/debian/ \
--parent-mirror-binary http://mirrors.kernel.org/debian/ \
--mirror-bootstrap http://mirrors.kernel.org/debian/ \
--mirror-binary http://mirrors.kernel.org/debian/ \
--archive-areas "main non-free non-free-firmware contrib" \
--apt-options "--force-yes --yes" \
--bootappend-live "boot=live components quiet splash locales=es_ES.UTF-8 keyboard-layouts=es" \
--iso-volume DebCipres \
--iso-publisher "DebCipres; http://dominio.com; user@mail.com" \
--iso-application "DebCipres Live"



# install kde
echo "task-kde-desktop task-spanish-kde-desktop" > config/package-lists/desktop.list.chroot

# UTILITIES
echo "keepassxc hplip cups printer-driver-cups-pdf libreoffice-l10n-es nano w-scan partitionmanager testdisk lshw hwinfo hardinfo inxi most ark zip unzip gzip bzip2 rar unrar arj lzma byobu gnupg2 kate ruby ruby-rmagick python3 python3-pygame python3-scapy python3-tk python3-nmap python3-ephem python3-requests python3-pip openjdk-21-jre openjdk-21-jre-headless live-build mc aptitude" > config/package-lists/utiles.list.chroot

# GRAPHICS TOOLS
echo "xsane inkscape python3-libxml2 python3-numpy blender gimp imagemagick create-resources" > config/package-lists/graphics.list.chroot

# AUDIO/VIDEO
echo "ffmpeg vlc gstreamer1.0-libav libavcodec-extra jackd qjackctl puredata gem chuck vorbis-tools" > config/package-lists/audiovideo.list.chroot

# web
echo "firefox-esr firefox-esr-l10n-es-es rtmpdump nmap htop openssh-client ntpsec-ntpdate curl net-tools wireless-tools filezilla wget git  wireshark mtr fping" > config/package-lists/web.list.chroot


# GIS
# echo "qgis grass qgis-provider-grass" > config/package-lists/gis.list.chroot

# MORE DEVELOPMENT/PROGRAMMING/SCRIPTING TOOLS
echo "build-essential make automake cmake autoconf" > config/package-lists/development.list.chroot

# MORE ENCRYPTION TOOLS
# echo "iptables-persistent tor tor-geoipdb tor-arm torbrowser-launcher" > config/package-lists/privacy.list.chroot