So I am not sure I understand correctly, what you write is a bit contradictive. A headless system is commonly one without a GUI, yet you mention a kiosk mode, so I’m thinking there is a GUI running and display attached.
If so:
- Ensure
ssh
is enabled: systemctl enable --now ssh
(sometimes also sshd
, depends on the distribtuion)
- Determine your display manager:
systemctl status display-manager.service
. This will show you the specific unit that display-manager is an alias for. If it is not enabled, ensure it is like above. If no unit is found, you are in fact running a headless system and first need to install one (preferably the default Debian one)
- Look up configuration for the display manager your system uses on how to do autologin for your user. Typically this achieved by simply setting one or two options in the corresponding configuration file in
/etc
.
- (if I understand your intentions correctly) Configure chromium to autostart. To do so place a link or copy to the chromium desktop file in your users
$XDG_CONFIG_HOME/autostart
(e.g., /home/youruser/.config/autostart/chromium.desktop
-> /usr/share/applications/chromium.desktop
)
- Restart your display manager:
systemctl restart display-manager
I hope this helps, I left the instructions intentionally general to explain the concept.