Skip to content

Instantly share code, notes, and snippets.

@carlosedp
Created February 21, 2018 16:25
Show Gist options
  • Select an option

  • Save carlosedp/4df3cd58a489a3c4022f97a474439b90 to your computer and use it in GitHub Desktop.

Select an option

Save carlosedp/4df3cd58a489a3c4022f97a474439b90 to your computer and use it in GitHub Desktop.

Revisions

  1. carlosedp created this gist Feb 21, 2018.
    67 changes: 67 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    # 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