README.md: add informations about specific configurations for preseed

This commit is contained in:
Jeremy Gardais 2016-07-26 14:09:38 +02:00
parent d9b4638012
commit fd25c940ab
1 changed files with 61 additions and 49 deletions

View File

@ -66,26 +66,27 @@ A preseed file can be loaded by the Debian-Installer to answer all questions
Preseeding provides a way to set answers to questions asked by the Debian-Installer, without having to manually enter the answers. This makes it possible to fully automate most types of installation and even offers some features not available during normal installations. More informations on [Debian wiki][preseed informations].
#### Commons configurations
* Localization:
* Localization:
* Language: English
* Country: France
* Locale: en_US.UTF-8 (US English)
* Keyboard: fr-latin9 (French)
* Hardware:
* Hardware:
* Network configuration (IP, hostname, domain): automatic (from DHCP server)
* Load additionnals firmwares if availables.
* Account:
* Account:
* Create a root account.
* root password: SHA-256 hash of the password
* Don't create a normal user (be sure to **allow remote connection for root**! See [late_command info][debian latecommand howto]).
* Timezone
* Timezone
* Timezone: Europe/Paris
* NTP server: ntp.univ-rennes1.fr
* Partitionning
* Partitionning
* Use the entire first disk (sda or vda aka virtual hdd) with LVM.
* Purge all LVM, RAID,… partitions or informations already set on the first disk.
* Partitionning:
| Device | Mount point | Size | Description |
| Device | Mount point | Size (Min - Max) | Description |
|-----------|-------------|------------------------|------------------------------------------------------------------------|
| /dev/sda1 | /boot | 200 - 250 Mb | Bootloader (Grub) |
| /dev/sda2 | LVM | 16 Gb - 100% | Physical Volume for LVM |
@ -98,14 +99,14 @@ Preseeding provides a way to set answers to questions asked by the Debian-Instal
| lv_opt | /opt | 512 MB - 4 Gb | Optional application |
| lv_swap | SWAP | 512 Mb - 100% RAM size | Swap sapce |
| lv_free | /mnt/free | free space | See below |
* APT:
* APT:
* Installation from internet (repository: ftp.fr.debian.org)
* Add a repository for Puppet (http://apt.puppetlabs.com) and the GPG key.
* Select **ssh-server** and **standard** in _tasksel_ for installation.
* Add additionnals packages: **tmux**, **puppet**, **zsh** and **tftp-hpa** (to be able to download the [latecommand archive from the PXE server][debian latecommand howto]).
* Bootloader:
* Bootloader:
* Install Grub on the MBR of the first disk.
* late_command
* late_command
* Define ZSH as the default shell.
* Permit root login via SSH with it's password.
* Download and extract a _latecommand_ archive from [this repository][debian latecommand description].
@ -116,30 +117,41 @@ Preseeding provides a way to set answers to questions asked by the Debian-Instal
lv_free - /mnt/free
: The preseed's partitionning need to allocate all the disk space. If it's not define, it will put it in the last defined partition all extra free space. So **lv_free** is a temporary LV that you can destroy and use the space to resize any other LV.
#### Specific configurations
* You can choose a desktop environment:
* Debian Stable (aka Jessie): Cinnamon, Mate or Gnome3
* Debian oldStable (aka Wheezy): Gnome3
* Partitionning differences for Debian with a desktop environment:
| Device | Mount point | Size (Min - Max) | Description |
|---------|-------------|------------------|-------------------------------------------------------------|
| lv_root | / | 1 - **3** Gb | root partition |
| lv_home | /home | 2 - **10** Gb | User's home directories (saved files, personnal settings,…) |
| lv_srv | NOT PRESENT | NOT PRESENT | |
### Scripts
See the [scripts's README.md][scripts readme.md] file for more informations.
## How to use it
* Put the data of this repository on the PXE server:
* Put the data of this repository on the PXE server:
* Clone the repository with https URL or with SSH to **/var/lib/tftpboot**.
* Download the last archive: `wget https://git.ipr.univ-rennes1.fr/cellinfo/tftpboot/archive/master.tar.gz`
* Install a TFTP server (`tftpd-hpa` package for Debian's based systems or `tftp-server` for Redhat's based systems).
* Start the tftpd's service:
* Install a TFTP server (`tftpd-hpa` package for Debian's based systems or `tftp-server` for Redhat's based systems).
* Start the tftpd's service:
* `sudo service tftpd-hpa start`
* `sudo systemctl start tftpd-hpa`
* You can test if the TFTP server provide the files with a TFTP client (`tftp-hpa`) by downloading a file with the command:
* You can test if the TFTP server provide the files with a TFTP client (`tftp-hpa`) by downloading a file with the command:
* `tftp $IP.SRV.TFTP -c get README.md /tmp/README.md_from_tftpd_server`
* Set your IP in some files instead of the default one *129.20.27.239*:
* Set your IP in some files instead of the default one *129.20.27.239*:
* [debian menu.cfg][debian menu.cfg] to be able to load the preseed files (**preseed/url=tftp://SRV.IP.AD.DR/**)
* [Jessie preseed file][preseed jessie] to download the postinstall script from your TFTPD server (**in-target /usr/bin/tftp SRV.IP.AD.DR**)
* [Wheezy preseed file][preseed wheezy] to download the postinstall script from your TFTPD server (**in-target /usr/bin/tftp SRV.IP.AD.DR**)
## TODO
* Add a tiny preseed file that could be loaded for a manual install.
* Download the latecommand archive from this repository instead of the TFTPD server?
* Add Debian Stretch support #1
* Add a tiny preseed file that could be loaded for a manual install.
* Download the latecommand archive from this repository instead of the TFTPD server?
* Add Debian Stretch support #1