Skip to content

Instantly share code, notes, and snippets.

@ericem
ericem / alpine-zfs-grub-uefi.md
Created September 12, 2021 15:56 — forked from kongkrit/alpine-zfs-grub-uefi.md
Install Alpine Linux on ZFS Root - grub bootloader on UEFI

Alpine Linux Installation on ZFS Root with grub on UEFI

  • References [ ref1 | ref2 | ref3 ]
  • Boot from alpine-extended [ download ]
  • login as root without any password
  • setup network interfaces and start networking:
    setup-interfaces
    /etc/init.d/networking start
    
  • add, config, and enable openssh:
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
cdrom
text
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp --noipv6
rootpw --plaintext vagrant
@ericem
ericem / .gitignore
Created February 2, 2021 14:35 — forked from chrisdone/.gitignore
Linux + BusyBox + QEMU/VirtualBox/USB boot recipe
output/
@ericem
ericem / README.md
Created February 2, 2021 14:31 — forked from gdamjan/README.md
run a minimal alpine based initramfs in VM machine

in 5 easy steps

1

get cloud-hypervisor or firecracker

2

compile a kernel (use the provided x_kernel_config file), you'll need the stripped ELF file in arch/x86/boot/compressed/vmlinux.bin or the compressed bzImage for cloud-hypervisor.

@ericem
ericem / alpine-install.sh
Last active September 12, 2021 15:18 — forked from thde/alpine-install.sh
A script to install alpine linux on a dedicated server.
#!/bin/sh
set -ex
PATH=/bin:/sbin:/usr/bin:/usr/sbin
KEYMAP="us us"
HOST=alpine
USER=anon
ROOT_FS=ext4
BOOT_FS=ext4
@ericem
ericem / yq
Last active September 19, 2017 14:27 — forked from earonesty/yq
#!/usr/bin/env python
import yaml
import sys
import json
import argparse
from subprocess import Popen, PIPE
import argparse
import os
# VXLAN - Management
auto vxlan-mgmt
iface vxlan-mgmt inet manual
pre-up ip link add vxlan-mgmt type vxlan id 10 group 239.0.0.10 dev em1 || true
up ip link set \$IFACE up
down ip link set \$IFACE down
post-down ip link del vxlan-mgmt || true
# VXLAN - VXLAN
auto vxlan-vxlan
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@ericem
ericem / muttrc
Created November 8, 2013 16:15
Muttrc
set folder="$HOME/Library/Mail";
set record="+sent";
set mbox="+mbox";
set postponed="+draft"
set timeout=5;
set markers=no;
color hdrdefault white default
color quoted magenta default
color signature red default