Dirk's Tech Findings

RaspberryPi/Raspbian: Use raspi-config via command line

Publication date: 2020-07-18

Issue: raspi-config is used via a menu only

"raspi-config" is used via a menu but I wanted to use it via command line interface.

Solution: Use appropriate command line arguments

Enable ssh:

raspi-config nonint do_ssh 0

Get ssh status:

raspi-config nonint get_ssh

A list of options can be found in the source code of "rc_gui" here: https://github.com/raspberrypi-ui/rc_gui/blob/master/src/rc_gui.c

Hint towards the solution

Hint on inverse logic: http://www.knight-of-pi.org/raspi-config-raspberry-pi-configuration-with-terminal-commands/

Back to topic list...