Enable headless install by starting sshd when booting from ISO

I use a PC that is not connected to a display as a server. I would like to install Manjaro KDE minimal on it, but sshd is not started when booting on the ISO, so I cannot connect to the server.

Please have the ISO start the sshd service.

That is the worst idea i have heard in a long time. Maybe ever.
If you are really an experienced linux user running servers, you would know why (and you would never come up with that insane idea).

Maybe if it is limited to listening only for local connections…still, this is not a soho router, it is a desktop os and it is a big security problem.

P.s. if you are remote, how did you insert the iso usb? If you are local and just do not have a monitor you can always hit ctrl alt f3 and start the ssh blindly typing 2-3 commands, if this is really what you want.

3 Likes

What @Teo said. I also honestly do not know why one would want to install one of the prettiest, if not the prettiest, most eye-pleasing GUIs without a way to see it…

Please use manjaro-tools to build your own ISO.

To have ssh daemon started - simply add sshd to the profile.conf

There is two options
The first enable sshd on the installed system as well as live

enable_systemd=('bluetooth' 'cronie' 'ModemManager' 'NetworkManager' 'cups' 'haveged' 'systemd-timesyncd')

The second enables sshd only for live ISO

# enable_systemd_live=('manjaro-live' 'mhwd-live' 'pacman-init' 'mirrors-live')

But - there is a huge but - you will have to install by hand.

If you want to install headless then your best option is the community project GitHub - manjaro-architect/download: Download Manjaro Architect - Developer Builds

2 Likes

@Teo: The server PC is not connected to a keyboard, mouse or display, only to my local LAN, which is behind a router configured to deny incoming connections. Limiting sshd on the server to only accept connections from the LAN could be secure enough during the installation. The server will boot on its own disk after installation, and users and passwords will not be as on the ISO.

@linux-aarhus: I am lazy. I thought an active sshd on the ISO would be useful and a quick fix. I will follow your suggestions and see if that is easier than digging out the server and connect it to my keyboard, mouse and display.

That’s OK - I am merely pointing the way - I don’t think the official ISO will ever be distributed with open ports :slight_smile:

I took a quick look that architect profile - the ssh daemon in not active

You may also need to edit the downloaded iso-profiles - I don’t know if the profiles used by architect to build desktop installations is up-to-date.

It might be easier to build your own ISO.

//EDIT - it was time for a rebuild - you can borrow my architect ISO - it has ssh enabled.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.