Skip to content

Instantly share code, notes, and snippets.

@rn
Created April 6, 2020 23:41
Show Gist options
  • Save rn/14419f53008be1fce1de1bd79d18812e to your computer and use it in GitHub Desktop.
Save rn/14419f53008be1fce1de1bd79d18812e to your computer and use it in GitHub Desktop.
packet.net arm64 server setup for LinuxKit

Packet.net c2.large.arm with Ubuntu 18.04

as root

apt update
apt upgrade -y
reboot

Install basics (+emacs)

as root

apt-get install -y jq expect qemu-kvm golang tmux emacs-nox apsell

Install docker

as root

apt remove docker docker-engine docker.io containerd runc
apt install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
sudo add-apt-repository \
   "deb [arch=arm64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
apt update
apt install -y docker-ce docker-ce-cli containerd.io

Install notary

as root

git clone git@github.com:theupdateframework/notary.git && cd notary
git checkout v0.6.1
docker run --rm -ti -v $(pwd):/go/src/github.com/theupdateframework/notary arm64v8/debian:stretch
# in container
export GOPATH=/go
apt-get update && apt-get install -y libltdl-dev golang-go git make
cd go/src/github.com/theupdateframework/notary/
make client
exit
# now install the binary
cp ./bin/notary /usr/bin

Install manifest tool

as root

curl -fsSL  -o manifest-tool https://github.com/estesp/manifest-tool/releases/download/v1.0.2/manifest-tool-linux-arm64
chmod ugo+x manifest-tool
cp manifest-tool /usr/bin

Create users

as root

USER=rneugeba
adduser $USER # or adduser --disabled-password $USER
usermod -aG docker $USER
usermod -aG kvm $USER
usermod -aG sudo $USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment