Hello.
I want to create a customised Trisquel ISO / Live USB with a bunch of extra
software packages (and the latest security updates), that can be installed to
hard drive and result in a secure OS with additional software without needing
to download multiple times (or even be online).
I found an apparently empty wiki page at
https://trisquel.info/en/wiki/customizing-trisquel-iso
Wayback has a version from December, but it's unformatted/garbled:
https://web.archive.org/web/20161208034447/https://trisquel.info/en/wiki/customizing-trisquel-iso
Now that I have an account, the edit option is visible which reveals the
MediaWiki source - preview is still blank, so I used Wikipedia to get HTML
which I've pasted back in, but not sure the pre-formatted blocks are correct.
(e.g. I would expect the first rsync command to be "rsync
--exclude=/casper/filesystem.squashfs -a tmp/ src/" all on one line without
the double backslashes?)
Formatting issues aside, is that wiki page the recommended approach for what
I want? Looks like a lot of "optional" steps that aren't entirely clear why
they should or should not be done.
I was originally thinking to use APT to download packages then install from a
local source - seems like it achieves basically the same thing with less
setup effort than following that guide in exchange for a little bit on the
install side - something like:
# Setup:
apt-get update
cp -v /var/lib/apt/lists /media/usb/apt-lists
apt-get dist-upgrade --download-only --option APT::Clean-Installed=off
apt-get install --download-only --option APT::Clean-Installed=off list of
package names
cd /var/cache/apt/archives && tar -cvf /media/usb/apt-archives.tar ./*
# Local Installs:
cd /var/cache/apt/archives && tar -xf /media/usb/apt-archives.tar
apt-get dist-upgrade --no-download --option
Dir::State::Lists=/media/usb/apt-lists
apt-get install --no-download --option Dir::State::Lists=/media/usb/apt-lists
list of package names
Does this approach make sense and is there any advantage/disadvantage?
Thanks.