From 1f8991e6b5ea949f57757137db81e4c75446e9fc Mon Sep 17 00:00:00 2001 From: openoms Date: Sun, 27 Jan 2019 13:25:30 +0000 Subject: [PATCH] do not change dietpi user --- DietPi/initial_setup_output_after1st_reboot | 926 ++++++++++++++++++++ DietPi/install.md | 32 +- build.sdcard/raspbianStretchDesktop.sh | 18 +- 3 files changed, 963 insertions(+), 13 deletions(-) create mode 100644 DietPi/initial_setup_output_after1st_reboot diff --git a/DietPi/initial_setup_output_after1st_reboot b/DietPi/initial_setup_output_after1st_reboot new file mode 100644 index 000000000..899d404e2 --- /dev/null +++ b/DietPi/initial_setup_output_after1st_reboot @@ -0,0 +1,926 @@ + ──────────────────────────────────────────────── + DietPi | Sun 27/01/19 - 10:45 + ──────────────────────────────────────────────── + v6.19.7 | Odroid XU3/XU4/HC1/HC2 (armv7l) + ──────────────────────────────────────────────── + eth0 | 192.168.1.175 + ──────────────────────────────────────────────── + DietPi Team : Daniel Knight (founder), MichaIng, K-Plan + Image : DietPi Core Team (pre-image: Meveric) + Web : https://DietPi.com | https://twitter.com/dietpi_ + Patreon Legends : PINE64 community + Donate : https://DietPi.com/#donate + DietPi Hosting : Powered by https://MyVirtualServer.com + + dietpi-launcher = All the DietPi programs in one place. + dietpi-config = Feature rich configuration tool for your device. + dietpi-software = Select optimized software for installation. + htop = Resource monitor. + cpu = Shows CPU information and stats. + +Starting the main menu ... +ls: cannot access '/mnt/hdd/raspiblitz.conf': No such file or directory +setup still in progress - setupStep(60) +checking bitcoind - please wait .. +can take longer if device was off or first time + + RaspiBlitz 192.168.1.175 - Welcome + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌──────────────────────────────────────┐ + │ Waiting for bitcoind to get ready. │ + │ ---> Verifying blocks... │ + │ Can take longer if device was off. │ + └──────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + + + + RaspiBlitz 192.168.1.175 - Welcome + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌──────────────────────────────────────┐ + │ Waiting for bitcoind to get ready. │ + │ ---> Verifying blocks... │ + │ Can take longer if device was off. │ + └──────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + + + + RaspiBlitz 192.168.1.175 - Welcome + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌──────────────────────────────────────┐ + │ Waiting for bitcoind to get ready. │ + │ ---> Verifying blocks... │ + │ Can take longer if device was off. │ + └──────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + + + + RaspiBlitz 192.168.1.175 - Welcome + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌──────────────────────────────────────┐ + │ Waiting for bitcoind to get ready. │ + │ ---> Verifying blocks... │ + │ Can take longer if device was off. │ + └──────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + + + + RaspiBlitz 192.168.1.175 - Welcome + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌──────────────────────────────────────┐ + │ Waiting for bitcoind to get ready. │ + │ ---> Verifying blocks... │ + │ Can take longer if device was off. │ + └──────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + + RaspiBlitz () + ──────────────────────────────────────────────────────────────────────────────────────────────────── + + + + + + + + + + + + + + + + + + + + + + + ┌────────────────────── / ────────────────────────┐ + │ Lightning Filtering Blockchain │ + │ Progress: ?/ │ + │ Please wait - this can take some long time. │ + │ Its OK to close terminal and ssh back in later. │ + └───────────────────────────────────────────────────┘ + + + + + + + + + + + + + + + + + + + + + + + + +./80scanLND.sh: line 1: /mnt/hdd/raspiblitz.conf: No such file or directory +usage: sudo -h | -K | -k | -V +usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] +usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] +usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] + [VAR=value] [-i|-s] [] +usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file + ... +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory +(standard_in) 1: syntax error +tail: cannot open '/mnt/hdd/lnd/logs//net/lnd.log' for reading: No such file or directory + diff --git a/DietPi/install.md b/DietPi/install.md index bfd72a1cb..bfe5a8e83 100644 --- a/DietPi/install.md +++ b/DietPi/install.md @@ -1,6 +1,6 @@ Working with the ODroid HC1 and this image: https://dietpi.com/downloads/images/DietPi_OdroidXU4-ARMv7-Stretch.7z -https://dietpi.com/phpbb/viewtopic.php?f=8&t=9#p9 +Getting started with DietPi: https://dietpi.com/phpbb/viewtopic.php?f=8&t=9#p9 Login to DietPi username = root @@ -9,8 +9,9 @@ DietPi also comes pre-installed with Dropbear SSH Server. `ssh root@[IP-OF-YOUR-DIETPI]` password: `dietpi` - +Ok > Cancel > Cancel automatic apt update & apt upgrade on first logon and reboots +Opt out of survey > Ok > Ok `ssh root@[IP-OF-YOUR-DIETPI]` @@ -18,26 +19,43 @@ automatic apt update & apt upgrade on first logon and reboots @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -run: `ssh-keygen -f "/home/buidl/.ssh/known_hosts" -R "dietpi.IP"` +run (copy from the terminal output): `ssh-keygen -f "/home/buidl/.ssh/known_hosts" -R "dietpi.IP"` `ssh root@[IP-OF-YOUR-DIETPI]` -Ok in the menu -"Do you wish to continue with DietPi as a pure minimal image?" -Ok +Ok > Choose Install > "Do you wish to continue with DietPi as a pure minimal image?" > Ok Reboots again `ssh root@[IP-OF-YOUR-DIETPI]` Now only the bash prompt opens +`userdel dietpi && rm -r dietpi` +`useradd -m pi` +`exit` + +`ssh pi@[IP-OF-YOUR-DIETPI]` +password: `dietpi` + + +now at: +`dietpi@DietPi:~$` use: wget https://raw.githubusercontent.com/[GITHUB-USERNAME]/raspiblitz/[BRANCH]/build.sdcard/raspbianStretchDesktop.sh && sudo bash raspbianStretchDesktop.sh [BRANCH] [GITHUB-USERNAME] `wget https://raw.githubusercontent.com/openoms/HardwareNode/OdroidHC1Debug/build.sdcard/raspbianStretchDesktop.sh && sudo bash raspbianStretchDesktop.sh OdroidHC1Debug openoms` +```usermod: user dietpi is currently used by process 1340 +chpasswd: (user pi) pam_chauthtok() failed, error: +Authentication token manipulation error +chpasswd: (line 1, user pi) password not changed +``` +user remains dietpi +need to run as root: +`sudo usermod -l pi dietpi` + see my output: [sdcard_build_output](sdcard_build_output.html) The only fault appears to be with `fail2ban` -`ssh admin@[IP-OF-YOUR-DROIDBLITZ]`. +`ssh admin@[IP-OF-YOUR-DROIDBLITZ]` password: raspiblitz The raspiblitz GUI and setup worked I until I needed to get the blockchain data. diff --git a/build.sdcard/raspbianStretchDesktop.sh b/build.sdcard/raspbianStretchDesktop.sh index 25614ed50..26fbd054b 100644 --- a/build.sdcard/raspbianStretchDesktop.sh +++ b/build.sdcard/raspbianStretchDesktop.sh @@ -92,8 +92,8 @@ sudo apt-get upgrade -f -y --allow-change-held-packages if [ "${baseImage}" = "dietpi" ]; then echo "" echo "*** PREPARE DietPi ***" - echo "renaming dietpi user to pi" - sudo usermod -l pi dietpi + # echo "renaming dietpi user to pi" + # sudo usermod -l pi dietpi echo "install pip" sudo apt-get update sudo apt-get remove -y fail2ban @@ -457,10 +457,16 @@ sudo bash -c "echo './00mainMenu.sh' >> /home/admin/.bashrc" # bash aoutstart for pi # run as exec to dont allow easy physical access by keyboard # see https://github.com/rootzoll/raspiblitz/issues/54 -sudo bash -c 'echo "# automatic start the LCD info loop" >> /home/pi/.bashrc' -sudo bash -c 'echo "SCRIPT=/home/admin/00infoLCD.sh" >> /home/pi/.bashrc' -sudo bash -c 'echo "# replace shell with script => logout when exiting script" >> /home/pi/.bashrc' -sudo bash -c 'echo "exec \$SCRIPT" >> /home/pi/.bashrc' +# sudo bash -c 'echo "# automatic start the LCD info loop" >> /home/pi/.bashrc' +# sudo bash -c 'echo "SCRIPT=/home/admin/00infoLCD.sh" >> /home/pi/.bashrc' +# sudo bash -c 'echo "# replace shell with script => logout when exiting script" >> /home/pi/.bashrc' +# sudo bash -c 'echo "exec \$SCRIPT" >> /home/pi/.bashrc' + +sudo bash -c 'echo "# automatic start the LCD info loop" >> /home/dietpi/.bashrc' +sudo bash -c 'echo "SCRIPT=/home/admin/00infoLCD.sh" >> /home/dietpi/.bashrc' +sudo bash -c 'echo "# replace shell with script => logout when exiting script" >> /home/dietpi/.bashrc' +sudo bash -c 'echo "exec \$SCRIPT" >> /home/dietpi/.bashrc' + # create /home/admin/setup.sh - which will get executed after reboot by autologin pi user cat > /home/admin/setup.sh <