Jeremy Gardais 94ca13cca6 | ||
---|---|---|
.. | ||
latecommand | ||
.gitignore | ||
README.md | ||
download_debian.sh | ||
download_ubuntu.sh | ||
make_debian_initrd_with_firmware.sh |
README.md
Scripts
Description
Set of scripts to download and generate necessary files to allow differents GNU/Linux distributions to boot through the network.
Scripts list
download_debian.sh
The script will provide netboot installers for all Debian (>=Stable) for both i386 and amd64 :
- Store the files to /var/lib/tftpboot (default).
- Download Debian Linux kernel and initrd files for all Debian distributions (Stable : Jessie; Testing : Stretch; Unstable : Sid) and for i386 and amd64 architectures.
- Offer an example menu file to use with a TFTP server (default_path/installer/debian/menu.cfg.example).
download_ubuntu.sh
The script will provide netboot installers for the latest LTS and latest advanced Ubuntu distribution for both i386 and amd64 :
- Store the files to /var/lib/tftpboot (default).
- Download Ubuntu Linux kernel and initrd files for the two lasts Ubuntu distributions (LTS-16.04 : xenial; 15.10 : wily) and for i386 and amd64 architectures.
- Make a symlink to access to the LTS (default_path/installer/ubuntu/lts) instead of it's codename.
make_debian_initrd_with_firmware.sh
The script will provide Debian's netboot installers with additionnals firmwares for all Debian (>=Stable) for amd64 only :
- Store the files to /var/lib/tftpboot (default).
- Download Debian's initrd files for all Debian distributions (Stable : Jessie; Testing : Stretch; Unstable : Sid) for amd64 architecture only.
- Download additionnals firmwares :
- bnx2 : For Broadcom NetXtremeII network adapters.
- linux-nonfree : For Tigon network adapters.
- myricom : For Myricom Myri-10G Ethernet adapters (IBM server).
- qlogic : For QLogic Infiniband, SCSI, Fibre Channel/FCoE adapters.
- Extract initrd and firmwares packages to build a new initrd.
latecommand
Description
Some useful configurations after a Debian installation :
-
Smarter rsyslog (more directories and less files in /var/log).
-
Smarter logrotate (add timestamp, move some old log files to the same directory,…).
-
Remove some useless packages.
-
…
-
/etc/rsyslog.conf
- Shorter configuration file and use more files from /etc/rsyslog.d/
-
/etc/rsyslog.d/99syslog.conf
Logs Original path New path kern /var/log/kern.log /var/log/kernel/kernel.log user /var/log/user.log /var/log/security/user.log mail /var/log/mail.… /var/log/mail/mail.… daemon /var/log/daemon.log /var/log/syslog/daemon.log auth /var/log/auth.log /var/log/security/auth.log lpr /var/log/lpr.log /var/log/lpr/lpr.log cron /var/log/cron.log /var/log/cron/cron.log localX /var/log/localX.log /var/log/syslog/localX.log syslog /var/log/syslog.log /var/log/syslog/syslog.log authpriv … /var/log/security/authpriv.log
How-to use it
- First, make an archive of the script and directories :
tar czvf finish.tar.gz latecommand/
- Then, it can be use at the end of a Debian preseed file :
d-i preseed/late_command string in-target chsh -s /bin/zsh ; \
in-target /usr/bin/tftp ${IP.SRV.TFTP} -c get ${PATH/TO/TFTPD/ROOT}/finish.tar.gz /tmp/finish.tar.gz ; \
in-target tar xzf /tmp/finish.tar.gz -C /tmp/ ; \
in-target /bin/sh /tmp/latecommand/post.sh