mynode/setup/setup_base_image_rockpro64.txt

43 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-12-05 01:05:52 +00:00
###
### Setup Base OS
###
# After Armbian Flash
# - Login with root / 1234
# - Change root password to something longish like boltbolt
# - Create admin user with password bolt
# Login as admin
# Delete root password
sudo passwd -d root
# Set hostname
echo "myNode" | sudo tee /etc/hostname
sudo sed -i 's/rockpro64/myNode/g' /etc/hosts
# OR armbian-config -> Personal -> Hostname
# Update packages
sudo apt-get update
sudo apt-get -y upgrade
# Install some necessary tools
sudo apt-get -y install network-manager tmux
2020-02-06 00:01:44 +00:00
sudo apt-get -y install lua5.3 lua5.3-dev gcc make git
2019-12-05 01:05:52 +00:00
# Regenerate MAC Address for RockPro64
. /usr/lib/armbian/armbian-common
CONNECTION="$(nmcli -f UUID,ACTIVE,DEVICE,TYPE connection show --active | tail -n1)"
UUID=$(awk -F" " '/ethernet/ {print $1}' <<< "${CONNECTION}")
get_random_mac
nmcli connection modify $UUID ethernet.cloned-mac-address $MACADDR
nmcli connection modify $UUID -ethernet.mac-address ""
# Sync
sync
######################
### MAKE IMAGE NOW ###
2020-02-06 00:01:44 +00:00
######################