Add instructions for running myNode on other device types

This commit is contained in:
Taylor Helsper 2019-09-09 21:15:41 -05:00
parent 189e2c4025
commit 1a38a96a66
3 changed files with 91 additions and 0 deletions

View File

@ -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!

48
scripts/setup_new_other.sh Executable file
View File

@ -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://<device ip>/"
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 ""

View File

@ -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