installer icon indicating copy to clipboard operation
installer copied to clipboard

SSH server for installation

Open nemanjan00 opened this issue 6 years ago • 7 comments

It would be cool if we could install anarchy over SSH, for systems without monitor/serial

nemanjan00 avatar Aug 23 '19 22:08 nemanjan00

Can we discuss how this would work? Anarchy installs the whole OS, it isn't used for systems with Arch preinstalled. So I don't really know what you would want to do with this option or how you would get it on a system that doesn't have an OS installed yet.

erazemk avatar Aug 24 '19 09:08 erazemk

I would install OS to that machine by connecting to live arch from another machine.

I think this could be implemented by for example reading file from image, for configuration and if there is SSH enabled, it would start ssh server.

nemanjan00 avatar Aug 24 '19 11:08 nemanjan00

Oh, now I get it. Yes, this approach could work. Something like what the Raspberry Pi does.

If you think you could implement something like this you're welcome to do it and submit a PR, otherwise I'll look into it.

erazemk avatar Aug 24 '19 16:08 erazemk

I was thinking about adding some more configuration to it also.

Will look into how rpi does it tomorrow.

I guess they have ssh service enabled in systemd and start ssh if file exists.

nemanjan00 avatar Aug 24 '19 16:08 nemanjan00

What kind of configuration do you mean? Like setting the default login info? Because I think that a simple check that would allow acces to the current (root) user would be more than enough for the installation process. I can't think of any other configuration for now.

erazemk avatar Aug 24 '19 17:08 erazemk

I was thinking about implementing some more pre-boot anarchy installer configuration, while I already am at implementing ssh configuration...

For example, prefilling some settings inside installer.

nemanjan00 avatar Aug 24 '19 17:08 nemanjan00

I'm still not quite sure exactly what you mean but yeah, go right ahead, and good luck.

erazemk avatar Aug 24 '19 19:08 erazemk