From fd25c940ab5a90517f6afb4398a5bfc6b5c74a7c Mon Sep 17 00:00:00 2001 From: Gardais Jeremy Date: Tue, 26 Jul 2016 14:09:38 +0200 Subject: [PATCH] README.md: add informations about specific configurations for preseed --- README.md | 110 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 61 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 0ca66ff..fa0cdbd 100644 --- a/README.md +++ b/README.md @@ -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 : - * Language : English - * Country : France - * Locale : en_US.UTF-8 (US English) - * Keyboard : fr-latin9 (French) - * Hardware : - * Network configuration (IP, hostname, domain) : automatic (from DHCP server) - * Load additionnals firmwares if availables. - * 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 : Europe/Paris - * NTP server : ntp.univ-rennes1.fr - * 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 | +* Localization : + * Language : English + * Country : France + * Locale : en_US.UTF-8 (US English) + * Keyboard : fr-latin9 (French) +* Hardware : + * Network configuration (IP, hostname, domain) : automatic (from DHCP server) + * Load additionnals firmwares if availables. +* 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 : Europe/Paris + * NTP server : ntp.univ-rennes1.fr +* 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 (Min - Max) | Description | |-----------|-------------|------------------------|------------------------------------------------------------------------| | /dev/sda1 | /boot | 200 - 250 Mb | Bootloader (Grub) | | /dev/sda2 | LVM | 16 Gb - 100% | Physical Volume for LVM | @@ -98,48 +99,59 @@ 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 : - * 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 : - * Install Grub on the MBR of the first disk. - * 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]. - * Run the script from +* 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 : + * Install Grub on the MBR of the first disk. +* 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]. + * Run the script from ------ 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 : - * 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 : - * `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 : - * `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* : - * [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**) +* 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 : + * `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 : + * `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* : + * [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