Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start unattended installation with script flag '-a' #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doctore74
Copy link

@doctore74 doctore74 commented Feb 18, 2021

If you start the installation with ./raspberry.sh -a you will not be asked if you want to configure MM auto start or disable the screensaver. This will all be done without asking. Useful for unattended installation. (I use a local Gitlab instance to store my configurations and Ansible to push them to the MM installation afterwards.)

For nearly complete unattended installation do the following with a Raspberry Pi 3 (in my case) and Raspberry Pi OS:

  1. burn Raspberry Pi OS (32bit) on a SD card
  2. copy the raspberry.sh file into the SD root
  3. copy a blank ssh file into the SD root (for enabled ssh.service)
  4. copy a file wpa_supplicant.conf with the following content also onto the SD card (for configured and enabled wifi):

WPA/WPA2 secured

network={
ssid="INSERT_YOUR_SSID"
scan_ssid=1
psk="INSERT_YOUR_PASS"
key_mgmt=WPA-PSK
}
#country=GB # United Kingdom
#country=CA # Canada
country=DE # Germany
#country=FR # France
#country=US # United States
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

  1. Insert the SD card into your Pi and boo
  2. start the MM installation with '/boot/raspberry.sh -a'. and wait with some coffee. The MM will appear on the monitor. Use the ALT key to activate the menu bar.

If you start the installation with ./raspberry.sh -a you will not be asked if you want to configure MM auto start or disable the screensaver. This will all be done without asking. Useful for unattended installation. (I use a local Gitlab instance to store my configurations and Ansible to push them to the MM installation afterwards.)

For complete unattended installation do the following with a Raspberry Pi 3 (in my case) and Raspberry Pi OS:
1. burn Raspberry Pi OS (32bit) on a SD card
2. copy a blank ssh file into the SD root (for enabled ssh.service)
3. copy a file wpa_supplicant.conf with the following content also onto the SD card (for configured and enabled wifi):
## WPA/WPA2 secured
network={
  ssid="INSERT_YOUR_SSID"
  scan_ssid=1
  psk="INSERT_YOUR_PASS"
  key_mgmt=WPA-PSK
}
#country=GB # United Kingdom
#country=CA # Canada
country=DE # Germany
#country=FR # France
#country=US # United States
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

4. Insert the SD card into your Pi, boot and wait with some coffee.
@doctore74 doctore74 changed the title Update raspberry.sh Start unattended installation with script flag '-a' Feb 18, 2021
@sdetweil
Copy link
Owner

that is not how i tell u to run it...

@doctore74
Copy link
Author

Hi, i know. You can now do it your way or with the -a flag. So it is usable in automation systems like Ansible.

@hechi
Copy link

hechi commented Feb 18, 2021

How would you like to see it @sdetweil probably we could adapt. Your script is amazing we just want to also be able to use it for automation like @doctore74 already mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants