From 4783a1ae65b72847e7f1bcb5e757ea9d5e93fe26 Mon Sep 17 00:00:00 2001 From: openoms Date: Sun, 3 Feb 2019 12:12:59 +0000 Subject: [PATCH] add netcat and OpenSSH server to DietPi installation --- build.sdcard/raspbianStretchDesktop.sh | 4 +++- dietpi/boot/dietpi.txt | 5 ++++- dietpi/install_on_DietPi.md | 12 ++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/build.sdcard/raspbianStretchDesktop.sh b/build.sdcard/raspbianStretchDesktop.sh index a55d29e..e7554e2 100644 --- a/build.sdcard/raspbianStretchDesktop.sh +++ b/build.sdcard/raspbianStretchDesktop.sh @@ -110,7 +110,9 @@ if [ "${baseImage}" = "dietpi" ]; then #to display hex codes sudo apt install -y xxd # setuptools needed for Nyx - sudo pip install setuptools + sudo pip install setuptools + # netcat for 00infoBlitz.sh + sudo apt install -y netcat fi diff --git a/dietpi/boot/dietpi.txt b/dietpi/boot/dietpi.txt index 12e9cd9..447ee15 100644 --- a/dietpi/boot/dietpi.txt +++ b/dietpi/boot/dietpi.txt @@ -70,8 +70,11 @@ AUTO_SETUP_GLOBAL_PASSWORD=dietpi #AUTO_SETUP_INSTALL_SOFTWARE_ID=44 #will install Bittorrent transmission # install fail2ban AUTO_SETUP_INSTALL_SOFTWARE_ID=73 -# install openssh client +# install OpenSSH Client AUTO_SETUP_INSTALL_SOFTWARE_ID=0 +# install OpenSSH Server +AUTO_SETUP_INSTALL_SOFTWARE_ID=105 + # DietPi-Software Choice System diff --git a/dietpi/install_on_DietPi.md b/dietpi/install_on_DietPi.md index ee0c680..8fbe992 100644 --- a/dietpi/install_on_DietPi.md +++ b/dietpi/install_on_DietPi.md @@ -97,6 +97,18 @@ DietPi-Automation settings, applied on the 1st boot of DietPi, ONCE Sample: https://github.com/Fourdee/DietPi/blob/master/dietpi.txt +### DietPi-Software to automatically install. +Requires `AUTO_SETUP_AUTOMATED=1 ` +For a list of software index's (ID's), run '/DietPi/dietpi/dietpi-software list' +No limit on number entries, add as many as you need and uncomment the line. +DietPi will automatically install all pre-reqs (eg: ALSA/XSERVER for desktops etc) +>install fail2ban +AUTO_SETUP_INSTALL_SOFTWARE_ID=73 +install OpenSSH Client +AUTO_SETUP_INSTALL_SOFTWARE_ID=0 +install OpenSSH Server +AUTO_SETUP_INSTALL_SOFTWARE_ID=105 + ### Custom Script (post-networking and post-DietPi install) Runs after DietPi installation is completed