diff --git a/dietpi/README.md b/dietpi/README.md index 4d9ab41b9..354f07897 100644 --- a/dietpi/README.md +++ b/dietpi/README.md @@ -14,10 +14,11 @@ See the [hardware comparison](hw_comparison.md). The HDMI screen tested: https://www.aliexpress.com/item/3-5-inch-LCD-HDMI-USB-Touch-Screen-Real-HD-1920x1080-LCD-Display-Py-for-Raspberri/32818537950.html --- +## Specific instructions and downloads: -### Downloads and walkthrough for the [Odroid HC1 / HC2 / XU3 / XU4](Odroid_HC1_HC2.md) +[Odroid HC1 / HC2 / XU3 / XU4](Odroid_HC1_HC2.md) -### Instructions for the [Raspberry Pi](RaspberryPi.md) +[Raspberry Pi](RaspberryPi.md) --- diff --git a/dietpi/RaspberryPi.md b/dietpi/RaspberryPi.md index 1b71ce80f..acb713220 100644 --- a/dietpi/RaspberryPi.md +++ b/dietpi/RaspberryPi.md @@ -1,44 +1,39 @@ # ⚡️ RaspiBlitz-on-DietPi ⚡️ ## Tested on the Raspberry Pi 3 B + -### Automated the SDcard building process: +### The automated building process: -* Download the DietPi image for the Raspberry Pi: +1) Download the DietPi image for the Raspberry Pi: https://dietpi.com/downloads/images/DietPi_RPi-ARMv6-Stretch.7z -* Burn it to the SD card with [Etcher](https://www.balena.io/etcher/) -* Right click and download the following two files: [DietPi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/dietpi.txt), [Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/Automation_Custom_Script.sh) -* Copy them to the /boot directory of the DietPi SDcard: +2) Burn it to the SD card with [Etcher](https://www.balena.io/etcher/) + +3) Right click and download the following two files: [DietPi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/dietpi.txt), [Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/Automation_Custom_Script.sh) + +4) Copy them to the /boot directory of the DietPi SDcard [DietPi.txt](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/dietpi.txt): Overwrites the default dietpi.txt. Modified the settings to automate the DietPi setup. (see the details [here](https://github.com/rootzoll/raspiblitz/tree/dev/dietpi#excerpts-from-the-customized-dietpitxt)) [Automation_Custom_Script.sh](https://raw.githubusercontent.com/rootzoll/raspiblitz/dev/dietpi/boot/Automation_Custom_Script.sh): Runs after DietPi installation is completed. Contains the link to download and run the build_sdcard.sh from the dev branch of @rootzoll. (Optionally open the file with a text editor and uncomment (remove the `#` from the front of) the line with the branch you want to build the SDcard from.) -* Insert the SDcard into your Raspberry Pi. +5) Assemble and boot the Raspberry Pi -* Connect the HDD, network cable and power supply to boot. (The optional default LCD will be setup automatically.) - -* Login from a terminal (Putty from Windows) with -`ssh root@[IP-OF-RASPIBLITZ]` -password: `dietpi` - - The ssh keys might change during the process: - @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ - @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ - To solve run (can be copied from the terminal output): - `ssh-keygen -f "/home/[your-linux-username]/.ssh/known_hosts" -R "dietpi.IP"` + Insert the SDcard, connect the HDD, network cable and power supply to boot. + (The default LCD will be set up automatically) + The automated setup will continue and the Raspberry Pi will restart at least twice during the process. This will take up to an hour. + To follow along: login with `root`. The output of the build_sdcard.sh script can be seen with: + `tail -n1000 -f /var/tmp/dietpi/logs/ dietpi-automation_custom_script.log` -* The automated setup will continue and the Raspberry Pi will restart at least twice during the process. This will take up to an hour. Log in with `root` if you want to follow along. The build_sdcard.sh script output can be seen with: `tail -n1000 -f /var/tmp/dietpi/logs/dietpi-automation_custom_script.log` -* When the setup is finished log in as `admin`: +6) When the setup is finished log in as `admin`: `ssh admin@[IP-OF-RASPIBLITZ]` password: `raspiblitz` -* From here he setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/master/README.md#setup-process-detailed-documentation) + The setup continues with the [RaspiBlitz Setup Process](https://github.com/rootzoll/raspiblitz/blob/master/README.md#setup-process-detailed-documentation) -## To build manually -* Follow the generic DietPi install process to [build your own SDCard](https://github.com/rootzoll/raspiblitz/tree/dev/dietpi#general-guide-for-the-raspiblitz-on-dietpi) +--- +### To build manually: +[Follow the generic DietPi install process.](https://github.com/rootzoll/raspiblitz/tree/dev/dietpi#general-guide-for-the-raspiblitz-on-dietpi) diff --git a/dietpi/boot/dietpi.txt b/dietpi/boot/dietpi.txt index 55ae60cae..780917286 100644 --- a/dietpi/boot/dietpi.txt +++ b/dietpi/boot/dietpi.txt @@ -68,11 +68,7 @@ AUTO_SETUP_GLOBAL_PASSWORD=dietpi #AUTO_SETUP_INSTALL_SOFTWARE_ID=23 #will install Desktop LXDE #AUTO_SETUP_INSTALL_SOFTWARE_ID=74 #will install LAMP webserver stack #AUTO_SETUP_INSTALL_SOFTWARE_ID=44 #will install Bittorrent transmission - -# install fail2ban -AUTO_SETUP_INSTALL_SOFTWARE_ID=73 -# AUTO_SETUP_INSTALL_SOFTWARE_ID=0 # install OpenSSH Client -# AUTO_SETUP_INSTALL_SOFTWARE_ID=105 # install OpenSSH Server +AUTO_SETUP_INSTALL_SOFTWARE_ID=73 # install fail2ban # DietPi-Software Choice System # SSH Server Selection: @@ -126,7 +122,7 @@ AUTO_SETUP_KEYBOARD_LAYOUT=gb # Option 1 = Copy your script to /boot/Automation_Custom_Script.sh and it will be executed automatically. # Option 2 = Host your script online, then use AUTO_SETUP_CUSTOM_SCRIPT_EXEC=http://myweb.com/myscript.sh , it will be downloaded and executed automatically. | 0=disabled # NB: Executed script log /var/tmp/dietpi/logs/dietpi-automation_custom_script.log -AUTO_SETUP_CUSTOM_SCRIPT_EXEC=1 +AUTO_SETUP_CUSTOM_SCRIPT_EXEC=0 #Disable HDMI (and GPU/VPU where supported) output for supported devices: # RPi | Odroid C1 | Odroid C2 @@ -172,7 +168,7 @@ CONFIG_BOOT_WAIT_FOR_NETWORK=2 #DietPi checks for updates (allows dietpi to check for updates on a daily basis and boot using a <1kb file download.) CONFIG_CHECK_DIETPI_UPDATES=1 # Optional: Automatically update DietPi when updates are available. | requires CONFIG_CHECK_DIETPI_UPDATES=1 -CONFIG_AUTO_DIETPI_UPDATES=1 +CONFIG_AUTO_DIETPI_UPDATES=0 #NTPD Update Mode: 0=disabled | 1=boot only | 2=boot + daily | 3=boot + hourly | 4=Daemon + Drift CONFIG_NTP_MODE=2 diff --git a/dietpi/dietpi.display.sh b/dietpi/dietpi.display.sh index 57e950c61..5fa10dcb1 100644 --- a/dietpi/dietpi.display.sh +++ b/dietpi/dietpi.display.sh @@ -114,7 +114,7 @@ if [ "${baseImage}" = "dietpi" ]; then sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo sudo cp -rf ./usr/99-calibration.conf-35 /etc/X11/xorg.conf.d/99-calibration.conf sudo cp -rf ./usr/99-fbturbo.conf /usr/share/X11/xorg.conf.d/ - sudo cp ./usr/cmdline.txt /DietPI/ + sudo cp ./usr/cmdline.txt /DietPi/ sudo cp ./usr/inittab /etc/ sudo cp ./boot/config-35.txt /DietPi/config.txt echo "***"