Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dholdaway/8aacb454e6229defa8d6b7cd1e71d04a to your computer and use it in GitHub Desktop.
Save dholdaway/8aacb454e6229defa8d6b7cd1e71d04a to your computer and use it in GitHub Desktop.
Rock64 Install (Adjust IPs/Hostnames/DNS to your deployment)
# Rock64 Install (Adjust IPs/Hostnames/DNS to your deployment)
Disable NetworkManager and DHCP Client
sudo systemctl stop dhcpcd
sudo systemctl stop NetworkManager
sudo systemctl disable dhcpcd
sudo systemctl disable NetworkManager
sudo systemctl daemon-reload
Configure network
sudo vi /etc/network/interfaces.d/eth0
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
Set DNS
rm /etc/resolv.conf
touch /etc/resolv.conf
vi /etc/resolv.conf
nameserver 192.168.1.1
Change Hostname
sudo vi /etc/hosts
sudo vi /etc/hostname
sudo hostname newhostname
sudo service networking restart
Disable IPv6
sudo vi /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
sudo sysctl -p
Add user to Sudoers:
visudo # Add to end of file:
rock64 ALL=(ALL) NOPASSWD:ALL
Install Docker/Kubernetes components with https://gist.github.com/carlosedp/0e72aab68c89ca5accc6ad9c14d11a87
Add user to docker group:
sudo usermod -aG docker $USER
Create SSH Keys
ssh-keygen -t rsa
Update packages
sudo apt-get update
sudo apt-get upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment