mirror of
https://codeberg.org/Computertruhe/Setup-Skripte.git
synced 2025-06-28 11:26:18 +02:00
add preseed file for Linux-Mint to the repo.
This commit is contained in:
parent
ef663fc3f6
commit
554dc97286
2 changed files with 131 additions and 0 deletions
44
Mint/Anleitung Linux Mint Custom ISO
Normal file
44
Mint/Anleitung Linux Mint Custom ISO
Normal file
|
@ -0,0 +1,44 @@
|
|||
#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.
|
87
Mint/computertruhe.seed
Normal file
87
Mint/computertruhe.seed
Normal file
|
@ -0,0 +1,87 @@
|
|||
# My working preseed file for LinuxMint 18 Cinnamon
|
||||
|
||||
d-i debian-installer/locale string de_DE
|
||||
d-i localechooser/supported-locales de_DE.UTF-8
|
||||
d-i keyboard-configuration/xkb-keymap select de
|
||||
d-i keyboard-configuration/layoutcode string de
|
||||
|
||||
d-i debian-installer/splash boolean false
|
||||
d-i console-setup/ask_detect boolean false
|
||||
d-i console-setup/layoutcode string de
|
||||
d-i console-setup/variantcode string
|
||||
|
||||
### Partitioning
|
||||
# If the system has free space you can choose to only partition that space.
|
||||
# This is only honoured if partman-auto/method (below) is not set.
|
||||
#d-i partman-auto/init_automatically_partition select biggest_free
|
||||
|
||||
# Alternatively, you may specify a disk to partition. If the system has only
|
||||
# one disk the installer will default to using that, but otherwise the device
|
||||
# name must be given in traditional, non-devfs format (so e.g. /dev/sda
|
||||
# and not e.g. /dev/discs/disc0/disc).
|
||||
# For example, to use the first SCSI/SATA hard disk:
|
||||
#d-i partman-auto/disk string /dev/sda
|
||||
# In addition, you'll need to specify the method to use.
|
||||
# The presently available methods are:
|
||||
# - regular: use the usual partition types for your architecture
|
||||
# - lvm: use LVM to partition the disk
|
||||
# - crypto: use LVM within an encrypted partition
|
||||
#d-i partman-auto/method string regular
|
||||
|
||||
# You can choose one of the three predefined partitioning recipes:
|
||||
# - atomic: all files in one partition
|
||||
# - home: separate /home partition
|
||||
# - multi: separate /home, /var, and /tmp partitions
|
||||
#d-i partman-auto/choose_recipe select atomic
|
||||
|
||||
#d-i partman/default_filesystem string ext3
|
||||
#d-i partman/choose_partition select finish
|
||||
|
||||
# If one of the disks that are going to be automatically partitioned
|
||||
# contains an old LVM configuration, the user will normally receive a
|
||||
# warning. This can be preseeded away...
|
||||
#d-i partman-lvm/device_remove_lvm boolean true
|
||||
# The same applies to pre-existing software RAID array:
|
||||
#d-i partman-md/device_remove_md boolean true
|
||||
# And the same goes for the confirmation to write the lvm partitions.
|
||||
#d-i partman-lvm/confirm boolean true
|
||||
#d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
|
||||
# Just in case, the positive answer to all other imagineable conformation questions:
|
||||
#d-i partman-partitioning/confirm_write_new_label boolean true
|
||||
#d-i partman/confirm boolean true
|
||||
#d-i partman/confirm_nooverwrite boolean true
|
||||
#d-i partman/confirm_write_new_label boolean true
|
||||
#d-i partman-md/confirm boolean true
|
||||
|
||||
# Time
|
||||
d-i time/zone string Europe/Berlin
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string ntp.ubuntu.com
|
||||
|
||||
# LinuxMint will *demand* a user during installation, ignoring the value
|
||||
# of the passwd/make-user flag, so we need to provide the user data here.
|
||||
# You should not preseed the password in clear text, this is just an example!
|
||||
d-i passwd/user-fullname string user
|
||||
d-i passwd/username string user
|
||||
d-i passwd/user-password password 12345
|
||||
d-i passwd/user-password-again password 12345
|
||||
d-i passwd/root-login boolean false
|
||||
d-i user-setup/encrypt-home boolean false
|
||||
d-i user-setup/allow-password-weak boolean true
|
||||
|
||||
|
||||
# Use non-free packages
|
||||
ubiquity ubiquity/use_nonfree boolean true
|
||||
|
||||
# -------- Customize at the end of a successful installation.
|
||||
|
||||
# Ubiquity completly ignores the debian installer command 'preseed/late_command',
|
||||
# instead we need to use 'ubiquity/success_command'.
|
||||
|
||||
d-i preseed/late_command string wget -O - https://setup.computertruhe.de/linux_mint.sh | bash
|
||||
|
||||
# Finish off the install by rebooting the freshly installed Linux Mint desktop
|
||||
#d-i ubiquity/reboot boolean true
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue