Skip to content

Instantly share code, notes, and snippets.

@rn
rn / arm64-server-setup.md
Created April 6, 2020 23:41
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

Keybase proof

I hereby claim:

  • I am rn on github.
  • I am rneugeba (https://keybase.io/rneugeba) on keybase.
  • I have a public key ASB_Rjs5gkkaSc4lZz2dIe_LLN4d70M7XZENMAqNy-_0BAo

To claim this, I am signing this object:

@rn
rn / kernel-compile.md
Last active January 7, 2018 19:34
KPTI performance impact

packet.net Type 2

  • 24 cores Dual Intel Xeon E5-2650v4 @ 2.2 GHz
  • 256G of memory

Built a custom LinuxKit VM which boots, then downloads and compiles (3 times) a 4.14.1 kernel. The YAML file is here and the Linuxkit kernel compile package is here.

@rn
rn / EFI-Fun.md
Last active September 19, 2017 17:45
# choco based setup
choco install golang
choco install git
# Get tools
go get -u github.com/moby/tool/cmd/moby
go get -u github.com/linuxkit/linuxkit/src/cmd/linuxkit
@rn
rn / LCOW-Linuxkit.md
Last active August 29, 2020 10:12
LCOW Linuxkit

Get latest build of dockerd and docker and run dockerd

Invoke-WebRequest -UseBasicParsing -OutFile dockerd.exe https://master.dockerproject.org/windows/x86_64/dockerd.exe
Invoke-WebRequest -UseBasicParsing -OutFile docker.exe https://master.dockerproject.org/windows/x86_64/docker.exe

Add LinuxKit images

@rn
rn / packet.net.md
Last active November 14, 2017 14:52
arm64 server setup

This document outlines steps and common tasks for setting up a arm64 dev machine for LinuxKit.

Notes on packet.net

If you set up a server on packet.net using the docker account please use your name/slackhandle/initials in the machine name. We will garbage collect machine and whack machine not adhering to this policy without warning :).

Deploy a Ubuntu 16.04 LTS server on packet.net and ssh in as root.

linux: docker swarm init --advertise-addr 172.16.10.187
windows: docker swarm join --token SWMTKN-1-5uh7ngqugobziornkhqiw5o414mii26ohehuuoqimfnuegg2qm-egbpl6vsjirswg5l81eanam8v 172.16.10.187:2377
linux: docker node update --label-add node.labels.os=linux rn-ub-vm
linux: docker node update --label-add node.labels.os=windows win-nuc1
linux: docker network create --subnet 10.100.0.0/24 --gateway 10.100.0.1 -d overlay mynet
linux: docker service create --network mynet --constraint 'node.labels.os==linux' --detach -p 8080:80 --name nginx nginx
linux: docker service create --network mynet --constraint 'node.labels.os==windows' --detach --name nano microsoft/nanoserver
Create a container running squid:
```
docker run --name squid -d -p 3128:3128 sameersbn/squid:3.3.8-14
```
Create a `proxy.pac` file (change IP address as needed):
```
function FindProxyForURL(url, host)
{
return "PROXY 172.16.10.36:3128" ;