From 1a38a96a661b9f631de920ea8b9f5bba7f4f8ec9 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Mon, 9 Sep 2019 21:15:41 -0500 Subject: [PATCH] Add instructions for running myNode on other device types --- README.md | 1 + scripts/setup_new_other.sh | 48 ++++++++++++++++++++++++++++++++ setup/setup_base_image_other.txt | 42 ++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100755 scripts/setup_new_other.sh create mode 100644 setup/setup_base_image_other.txt diff --git a/README.md b/README.md index 50c36de4..bcd1a458 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ Once you are running myNode, you can easily modify and update the software yours * make setup_new_rock64 * make setup_new_raspi3 * make setup_new_raspi4 + * make setup_new_other 3. Follow Instructions 2. Reboot Device 4. Congratulations! You're running a new myNode device! diff --git a/scripts/setup_new_other.sh b/scripts/setup_new_other.sh new file mode 100755 index 00000000..bac5785a --- /dev/null +++ b/scripts/setup_new_other.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +LOCAL_IP=$(python ./scripts/get_local_ip.py) + +echo "" +echo "Finished updating rootfs and other files!" +echo "" + +clear +echo "Step 1: " +echo " Install your own Linux distro: Debain, Armbian, Raspbian, etc...:" +echo " Setup image for use with myNode:" +echo " See manual instructions in setup/setup_base_image_other.txt" +echo "" +echo "Press a key when complete..." +read -n 1 + +clear +echo "Step 2: " +echo " Reboot Device" +echo "" +echo "Press a key when complete..." +read -n 1 + +clear +echo "Step 3: " +echo " Login to device with username 'admin' and password 'bolt'" +echo " Run the following commands. Use bolt at password prompts." +echo " wget http://${LOCAL_IP}:8000/setup_device.sh -O setup_device.sh" +echo " chmod +x setup_device.sh" +echo " sudo ./setup_device.sh ${LOCAL_IP}" +echo "" +echo "Press a key when complete..." +read -n 1 + +clear +echo "Step 4:" +echo " Reboot your device." +echo "" +echo "Press a key when complete..." +read -n 1 + +clear +echo "Congratulations! Your device is now ready!" +echo " Access it via a web browser at http://mynode.local/ or http:///" +echo " Access it via SSH using the default credentials: admin / bolt" +echo " You should change your password on the settings page in the web GUI" +echo "" \ No newline at end of file diff --git a/setup/setup_base_image_other.txt b/setup/setup_base_image_other.txt new file mode 100644 index 00000000..0ac6439f --- /dev/null +++ b/setup/setup_base_image_other.txt @@ -0,0 +1,42 @@ +### +### Setup Base OS +### + +# Login as administrator + +# Set hostname +hostname myNode + + +# Add admin user +sudo useradd -p $(openssl passwd -1 bolt) -m -s /bin/bash admin +sudo adduser admin sudo + +# Update OS +sudo apt-get update +sudo apt-get -y upgrade + +# Reboot +sudo reboot + + +### Log back in as admin + + +# Delete default users for your specific device (if any) +# For example: +# sudo deluser pi +# sudo rm -rf /home/pi + +# Sync +sync + +###################### +### MAKE IMAGE NOW ### +###################### + + +# Final results +# - Image with SSH access +# - Root user disabled +# - Default user admin with password bolt