Forked from carlosedp/gist:4df3cd58a489a3c4022f97a474439b90
Created
March 21, 2019 00:41
-
-
Save dholdaway/8aacb454e6229defa8d6b7cd1e71d04a to your computer and use it in GitHub Desktop.
Rock64 Install (Adjust IPs/Hostnames/DNS to your deployment)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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