2020-03-15 18:05:15 +00:00
|
|
|
# Setup Base Image (ROCKPro64)
|
|
|
|
|
|
|
|
1. After Armbian Flash
|
|
|
|
|
|
|
|
- Login with root / 1234
|
|
|
|
- Change root password to something longish like boltbolt
|
|
|
|
- Create admin user with password bolt
|
|
|
|
|
|
|
|
2. Login as admin
|
|
|
|
|
|
|
|
3. Delete root password
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo passwd -d root
|
|
|
|
```
|
|
|
|
|
|
|
|
4. Set hostname
|
|
|
|
|
|
|
|
```sh
|
2023-12-01 22:06:57 +00:00
|
|
|
echo "mynode" | sudo tee /etc/hostname
|
|
|
|
sudo sed -i 's/rock64/mynode/g' /etc/hosts
|
2020-03-15 18:05:15 +00:00
|
|
|
# OR armbian-config -> Personal -> Hostname
|
|
|
|
```
|
|
|
|
|
|
|
|
5. Update packages
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y upgrade
|
|
|
|
```
|
|
|
|
|
|
|
|
6. Install some necessary tools
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get -y install network-manager tmux
|
|
|
|
```
|
|
|
|
|
|
|
|
7. Regenerate MAC Address for RockPro64
|
|
|
|
|
|
|
|
```sh
|
|
|
|
. /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 ""
|
|
|
|
```
|
|
|
|
|
|
|
|
8. Sync
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sync
|
2022-03-27 18:41:13 +00:00
|
|
|
sudo shutdown -h now
|
2020-03-15 18:05:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
9. Make image now (if imaging)
|