Installazione di Debian da remoto via rete
Jump to navigation
Jump to search
| Attenzione questo articolo è ancora incompleto. Sentiti libero di contribuire cliccando sul tasto edit. |
- Download the right debian installer boot image. Pay attention to "amd64" here since your architecture might be different. - http://d-i.debian.org/daily-images/amd64/daily/hd-media/boot.img.gz
- Gunzip boot.img.gz.
- Transfer the image to the USB flash drive using `dd if=boot.img of=/dev/<tokendev>`. It will give you a few files in the USB flash drive. It's like you are mirroring what's in boot.img into it. Syslinux will be there.
- Download an ISO image - http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/. I've got netinst. Pay attention again to the architecture (amd64).
- Mount the USB flash drive.
- Copy the ISO image as is to the root directory of the USB flash drive. Using cp, yeah.
- At this point you have all that you need to do a regular install using an USB flash drive and it's kinda of well documented. Well, we still need to change it to make it work without a keyboard and give you the ability to ssh into the installer.
- Create a preseed.cfg in the root directory of the USB flash drive containing the following:
d-i netcfg/get_hostname string HOSTNAME d-i netcfg/get_domain string DOMAIN d-i anna/choose_modules string network-console d-i network-console/password password INSERT_A_PASSWORD_HERE d-i network-console/password-again password INSERT_A_PASSWORD_HERE
- Edit syslinux.cfg in the root directory of the USB flash drive to look like this:
default netinst prompt 0 timeout 5 label netinst menu label netinst kernel linux append auto=true vga=normal file=/preseed.cfg initrd=initrd.gz priority=critical
- Umount the USB flash drive.
- Boot your new machine using the USB flash drive.
- d-i should do its thing and show and only stop to show you the screen pointing out that you can ssh as installer@<ip>.
- ssh from another machine as user installer to <ip>. Remember you've provided the password in the preseed.cfg above. You will be all set to install from there.
- My wishlist to the d-i hackers out there:
- A boot-ssh.img.gz with the syslinux.cfg and preeseed.cfg above. In this case, it would be much more trivial to document in the installer manual how to use such a great feature.