mirror of
https://codeberg.org/Computertruhe/Setup-Skripte.git
synced 2025-06-28 19:36:21 +02:00
44 lines
1.6 KiB
Text
44 lines
1.6 KiB
Text
#Anleitung zur Erstellung einer Custom Linux-Mint ISO:
|
|
|
|
#Benötigt wird:
|
|
#
|
|
# - Eine Linux-Distribution
|
|
# - Standard Linux-Mint-ISO
|
|
# - das Programm mkisofs zum erstellen der neuen ISO
|
|
# - die Datei computertruhe.seed
|
|
|
|
#erstelle zuerst einmal ein paar Ordner (diese sind frei wählbar, nur müssen dann die Kommandos entsprechend angepasst werden):
|
|
|
|
sudo mkdir /mnt/iso /opt/mintiso
|
|
|
|
#Mounte nun die Standard Linux-Mint-ISO an die korrekte Stelle (hier bsw. Mit der linux Mint ISO 19.3):
|
|
|
|
sudo mount -o loop /[Pfad-zur-ISO]/linuxmint-19.3-cinnamon-64bit.iso /mnt/iso
|
|
|
|
#Damit wir mit der ISO arbeiten können müssen wir die Inhalte der ISO an eine andere Stelle kopieren, da die ISO nur schreibgeschützt (read-only) gemountet wird:
|
|
|
|
sudo cp -rT /mnt/iso/ /opt/mintiso/
|
|
|
|
#Wechsele nun in das Verzeichnis der Kopie der ISO:
|
|
|
|
sudo cd /opt/mintiso/
|
|
|
|
#Kopiere nun den Preseed der Computertruhe nach /opt/mintiso/preseed:
|
|
|
|
sudo cp /[Pfad-zum-Preseed]/computertruhe.seed /opt/mintiso/preseed
|
|
|
|
#editiere nun noch die isolinux/isoliux.cfg um das preseed einzubinden.
|
|
|
|
nano/vim isolinux/isolinux.cfg
|
|
|
|
#ersetze dabei "linuxmint.seed" durch "computertruhe.seed"
|
|
|
|
#Erstelle nun noch die ISO mithilfe von mkisofs
|
|
|
|
mkisofs -D -r -V "UNATTENDED_MINT" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /[outputfolder]/linuxmint-unattended.iso /opt/mintiso
|
|
|
|
#Am Ende kann das vorher gemountete ISO wieder ausgehängt werden.
|
|
|
|
sudo umount /mnt/iso
|
|
|
|
#Das erstellte ISO kann nun ganz normal auf einen USB-Stick kopiert werden und Linux-Mint kann damit normal installiert werden.
|