Prepares a disk image for Linux workstation install.
-
Debian/Ubuntu host OS
-
Required packages on host system:
sudo apt install extlinux mmdebstrap qemu-utils fdisk
Build a Linux workstation disk image:
sudo ./setup-image.sh linux-desktop.imgYou can test the new image using qemu:
sudo apt install qemu-system-gui
sudo qemu-system-x86_64 -m 1G -net user linux-desktop.imgThen write the prepared disk image to a real disk:
sudo dd status=progress bs=64M if=linux-desktop.img of=/dev/XXXMake sure to use the correct target device name instead of /dev/XXX below. This was tested with an SSD disk connected using a USB-SATA adapter.
Afterwards connect the newly flashed SSD disk to your new computer and Linux desktop should boot up.
After the image boots, it will start installing extra packages. Internet access will be needed.
On each boot, the /root/setup/setup-xfce-workstation.sh script is run via
/etc/rc.local. This script is self updating from git. You can change the branch
from which it updates by creating a /root/setup/branch file with the branch
name. Default is no file and the master branch.
Additionally this script executes:
hosts/all/setup.shwith current dir set tohosts/allhosts/<hostname>/setup.shwith current dir set tohosts/<hostname>(<hostname>is the fully qualified hostname from DHCP, e.g. pc1.lan)....
Note that these autoupdate and autosetup mechanisms are not designed to be secure.