AnarchyLinux / installer

Anarchy Linux - A simple and intuitive Arch Linux installer. https://anarchyinstaller.org/
GNU General Public License v2.0
1.23k stars 157 forks source link

SSH server for installation #824

Open nemanjan00 opened 5 years ago

nemanjan00 commented 5 years ago

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

erazemk commented 5 years ago

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.

nemanjan00 commented 5 years ago

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.

erazemk commented 5 years ago

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.

nemanjan00 commented 5 years ago

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.

erazemk commented 5 years ago

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.

nemanjan00 commented 5 years ago

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.

erazemk commented 5 years ago

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