The goal is to add multiple essential configuration steps after installing an OS on a Raspberry Pi. By adding multiple steps to fine tune the Pi after the OS installation
- 1. Download this script on GitHub. (wget https://github.com/Nauorac/SetUpMyPi---SUMP/blob/be8722a17298d73014512bf180e19df78cdec993/SUMP.sh)
- 2. Give execution rights.
- 3. Run the script. [SUMP.sh]
This script is downloaded and run with this command : wget -O SUMP.sh 'https://github.com/Nauorac/SetUpMyPi---SUMP/blob/be8722a17298d73014512bf180e19df78cdec993/SUMP.sh' && chmod +x SUMP.sh && sudo bash SUMP.sh
- Main Script [SUMP.sh]
- 1. create log file
- 2. Creation of parameter file - settings.txt - Or ask if it already exists to download it.
- a. Static IP choice ? Y/N - Choice
- b. Choice raspberry pi name ? Y/N - (hostname)
- c. Choice SSH port ? Y/N - (To see if in fine one would not change that by the method with certificate)
- d. Define WIFI network(s)? Y/N - SSID + pwd
- e. Choice of a backup system ? Y/N - (For the moment just a USB key)
- 1. Choose the frequency of the backup
- 2. Add backup commands to crontab (3:00 am)
- 3. Add update commands to crontab (4:00 am)
- 4. Add restart commands to crontab (5:00 am)
- f. Proposed installation of NO-IP Y/N - Ask credentials
- g. Proposed installation of Docker and docker-compose ? Y/N
- h. Proposal to download and run dockerfile.yml/docker-compose.yml
- 3. Launching the functions taking up points a, b, c, d. [config_raspi.sh]
- a. Each step will be checked to make sure that everything is in order.
- 4. Launch the functions for point e. [backup.sh]
- a. Check and control to make sure that everything is in order.
- 5. Launch the NO-IP installation script (if f.=Y) [noip.sh] [ ] 6.
- 6. Launch the Docker and docker-compose script (if g.=Y) [setup_docker.sh] [ ] 7.
- 7. Launch the download script and launch the dockerfile.yml/docker-compose.yml containers (if h.=Y) [my_cont.sh] [ ] 8.
- 8. Finalize the script & clean up
- a. Delete all uploaded files and the user settings file (AskUser.txt).
- b. Display the log file.