SSH headless install possible?
I'm trying to install arch on a box I have which isn't connected to a keyboard or monitor and, because of it's age, I don't think I could connect it to any monitor that I have without buying an adapter - which I'd rather avoid.
Is there any way of installing to a headless box over ssh? I did find [this](https://bbs.archlinux.org/viewtopic.php?id=169674), but it's fairly old now and the script linked to no longer works.
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- e3ip09
6 comments
The install process happens through a chroot. You could boot on something that does have a display and keyboard, install the bits you need, and then move it over to the other machine. SSH from then on, and just don't break your networking.
Try archboot, it enables ssh on boot of the iso.
It's absolutely possible, I did it a couple if times already. Just follow this guide: https://wiki.archlinux.org/index.php/Install_from_SSH
You have to enter the first commands blindly, until your sshd is running.
I've installed using SSH plenty of times. But not without having a monitor at the beginning. I usually :
And then I can ssh in and install as normal. Basically you'd have to do these tasks blind which isn't beyond the realms of possibility. You might not need the first step, I just don't know what the password of the default user is, you might want to google that. Also, you could figure out your ip address with your router or something.
You might have other issues, like if you're using wifi, or your dhcpcd doesn't just automatically work. Also, you're going to have a hard time if you need to see your BIOS to boot into the USB. If it doesn't automatically boot (which I'm not sure how you'd tell), you'd be best googling what the button is to change the boot order for that boot only (as opposed to going into the BIOS and changing the boot order, you're never going to make that work).
If you manage it, make sure to install/enable sshd.service while you're in your chroot environment before you reboot, and I'd advise a static ip. If you're installing blind, you're not going to want to go through that hardship again, so making sure you can easily SSH back into your box before you reboot after the install should be a priority.
I once had to install a laptop with a broken screen and non-working video output. That was Debian, and the only way for me was to use the Debian installer for the blind with TTS. It was terrible and I actually had to run a VM next to it to be able to see what the TTS talked to me.
So with that info - try TalkingArch.
For headless servers, IPMI can make your life easier