mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-14 09:29:15 +00:00
1.1 KiB
1.1 KiB
Setup Base Image (Other)
-
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
-
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 sudo shutdown -h now
-
Make image now (if imaging)
To make image:
- Shutdown device
- Remove SD Card
- Backup SD card on PC (something like https://howchoo.com/g/nmexndnlmdb/how-to-back-up-a-raspberry-pi-on-windows)
- Now, you can reflash and start over from this point if necessary by flashing image onto SD card
Final results:
- Image with SSH access
- Root user disabled
- Default user admin with password bolt