The idea here is to give a set of "common sense" defaults for running Amazon Linux 2 on Lightsail. These defaults include:
- Automatic Updates
- Live Kernel Patching
- Automatic Reboots when Required by Updates
# Install python3 and OVS | |
sudo apt install python3-pip openvswitch-switch -y | |
# Install os-net-config | |
sudo pip3 install os-net-config | |
# Create os-net-config file | |
sudo mkdir -p /etc/os-net-config | |
sudo touch /etc/os-net-config/config.yaml |
import random | |
shuffle_key = "QRUzaKNB4V5pparzJWTa" | |
# Imagine we have a list of images that's 200k items long | |
frame_list = [*range(1,200000)] | |
# Shuffle the frame list with the key | |
random.Random(shuffle_key).shuffle(frame_list) |
#!/bin/bash | |
if [ -f /etc/os-release ]; then | |
# freedesktop.org and systemd | |
. /etc/os-release | |
OS=$NAME | |
VER=$VERSION_ID | |
elif type lsb_release >/dev/null 2>&1; then | |
# linuxbase.org | |
OS=$(lsb_release -si) |
We download the latest release of pfSense as a gzipped ISO, then extract it and pass it to virt-install
to get the VM up and running. Interactive portions of setup are handled with a VNC viewer because the pfSense installer doesn't seem to be able to work with virt-install
's native console redirection, at least not out of the box. I'd love a tip from anyone if it's possible to fix that somehow.
CentOS 8 instructions are this way.
Find the latest release here.
This process is an outline of the steps I followed to get my two first-gen 640GB ioDrive Duo cards working on Oracle Linux 7. After we install the driver, we're going to perform the optional step of formatting the cards to use native 4k sectors, since it offers marginally better throughput and a decent reduction to memory usage.
Go to the SanDisk support site and download the packages that correspond to your device and kernel. I'm using 64-bit Oracle Linux 7.
On the support site, we pick out our device,
If you want to install a package like Docker Community Edition on OEL, you'll have to add the CentOS Extras repo, which as of release 7 is built-in to CentOS and not added on later like EPEL is. As a result, instructions for adding it to EL7 are hard to find. This should work for any build of Enterprise Linux that does not already include the CentOS Extras repo. I have absolutely no idea if it's apporpriate to use this repo on a build of Linux other than CentOS, but it should be.
This was tested on Oracle Enterprise Linux 7, but should be copy-pastable on any version or EL build assuming things don't change too much.
# Get OS Release number
Create a Synthetic Record for Dynamic DNS. Copy the script and substitute your synthetic record's username, password, and FQDN in the config section.
Go to Administration > Commands tab and paste the code into the Command box, then click Save Custom Script.
Go to Administration > Management tab. Scroll down to the Cron section, and toggle Cron: Enable
In the Additional Cron Scripts section, put:
I wanted to create a jumpbox where the default shell was zsh, but I couldn't actually change the default shell of the users that would be connecting to the box. I also wanted to manage some symlinks in the user profile dynamically with Dotbot.
My initial idea was to add a script to /etc/profile.d
that would just dump users into /bin/zsh
, but this had several different problems, including the all-important question of "But what if I want to run Bash on purpose?"
Through a little bit of trial and error, I settled on this script located at /etc/profile.d/dotbot.sh
#!/bin/bash | |
which jq > /dev/null 2>&1 | |
if [ "$?" -ne 0 ]; then | |
>&2 echo Error: this script requires jq; exit 1 | |
fi | |
which aws > /dev/null 2>&1 | |
if [ "$?" -ne 0 ]; then | |
>&2 echo Error: this script requires awscli; exit 1 |