mynode/setup/setup_base_image_other.txt

46 lines
656 B
Plaintext
Raw Normal View History

###
### Setup Base OS
###
# Login as administrator
# Set hostname
hostname myNode
2019-10-03 03:10:20 +00:00
# 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
2019-11-07 03:55:05 +00:00
# Install some basics
sudo apt-get -y install tmux
# 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