- Manually trigger Windows Update to Windows 10 19.03+
- Launch an administrative powershell and enable WSL via
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- After the reboot, install Ubuntu, Ubuntu 18.04 and Windows Terminal (Preview) from the Windows Store.
- Start each Ubuntu distro once to set up users.
- Open Windows Terminal.
- In the dropdown, choose Settings. Choose a JSON editor if asked.
- Pull a new icon - likely ubuntu_32px.png - from https://github.com/yanglr/WindowsDevTools/tree/master/awosomeTerminal/icons
- Save the icon to C:\Users\shawn\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState
- Copy an existing profile block and make the following changes:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
hostname: boxboat | |
rancher: | |
network: | |
interfaces: | |
eth*: | |
dhcp: true | |
dns: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
# For version 0.55 and beyond, you must explicitly enable | |
# or disable authentication with "auth" entries in [global]. | |
auth cluster required = cephx | |
auth service required = cephx | |
auth client required = cephx | |
[osd] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Debug stuff | |
set -o errexit; | |
set -o pipefall; | |
set -o nounset; | |
set -o xtrace; | |
# Add repo, package and service | |
sudo add-apt-repository ppa:gluster/glusterfs-4.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
logMessage() { | |
local MESSAGE=$1; | |
local TIMESTAMP=""; | |
TIMESTAMP=$(date +%Y-%m-%dT%H:%M:%S.%3NZ); | |
local CALLER=""; | |
CALLER=$(readlink -f "$0"); | |
echo "$TIMESTAMP: [$CALLER] $MESSAGE"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] | |
aws_access_key_id=XXXXXXXXXXXXXXXXXXXX | |
aws_secret_access_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
aws_region=us-east-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Updates | |
sudo apt-get update | |
# Prereqs | |
# Gnome-keyring - vscode uses, local secrets management | |
sudo apt-get install -y \ | |
gnome-keyring | |
# Node/NPM/NVM | |
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homeassistant | s6-rc: info: service s6rc-oneshot-runner: starting | |
homeassistant | s6-rc: info: service s6rc-oneshot-runner successfully started | |
homeassistant | s6-rc: info: service fix-attrs: starting | |
homeassistant | s6-rc: info: service fix-attrs successfully started | |
homeassistant | s6-rc: info: service legacy-cont-init: starting | |
homeassistant | s6-rc: info: service legacy-cont-init successfully started | |
homeassistant | s6-rc: info: service legacy-services: starting | |
homeassistant | services-up: info: copying legacy longrun home-assistant (no readiness notification) | |
homeassistant | s6-rc: info: service legacy-services successfully started | |
homeassistant | [33m2023-01-03 17:03:52.653 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration pyscript which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant[0m |
OK, so I love the idea of SELinux. I like the idea of process permissions and quasi-sandboxing. What I hate about SELinux is:
- The lack of good, straightforward documentation
- The awful UI/UX
- The inconsistency and community split between AppArmor and SELinux
Let's see if I can help myself (and maybe you!) understand it a bit better.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on: https://dev.to/christianpaez/simplifying-path-management-with-bash-4870 | |
# Install via: | |
# sudo curl -o /usr/bin/add-path -L https://gist.githubusercontent.com/shawngmc/954ef4ccee03a26f1774c5b922e27777/raw/add-path | |
# sudo chmod 755 /usr/bin/add-path | |
unset dir_to_add | |
unset force_add | |
unset do_add |