Skip to content

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.

2 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
e3ip09

Author

72
posts
211
comments
6
media
View profile

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.

7 points

I've installed using SSH plenty of times. But not without having a monitor at the beginning. I usually :

  • change the password (passwd command + enter new password x2)
  • enable ssh (systemctl start sshd.service)
  • determine what ip address has been assigned

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.

1 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.