- Listen for Chromecast, using nc
nc -v -l 808
- Tell chromecast to fetch a page, using catt project
catt cast_site http://192.168.1.10:8080
| #!/bin/bash | |
| _backupdir='./dev' | |
| _now=`date -Isec | tr -d "\:"` | |
| _archive="./dev.${_now}.tgz" | |
| # WSL2-ism to free disk cache | |
| echo 1 | sudo tee /proc/sys/vm/drop_caches > /dev/null | |
| #!/usr/bin/bash | |
| # from: https://hub.docker.com/r/jacobalberty/unifi | |
| set -euo pipefail | |
| set -x | |
| _sharedir="/var/mnt/vmshare" | |
| mkdir -p "${_sharedir}/unifi/data" | |
| mkdir -p "${_sharedir}/unifi/log" |
Getting it working under BHYVE follows the same general steps as https://github.com/churchers/vm-bhyve/#quick-start
pkg install vm-bhyve
| #!/bin/sh | |
| # music.sh | |
| # Music without external files | |
| # Author: Antonio Macchi | |
| # Used in ABS Guide with permission. | |
| # | |
| # revised for SH by BB | |
| # 1. Some echo's don't support -e -n, so use printf instead |
| # | |
| # Refresh WSL's DNS | |
| # for .bashrc | |
| # | |
| type dnsfix &> /dev/null | |
| if [ $? -ne 0 ]; then | |
| dnsfix () { | |
| local search=$(grep -F "search" /etc/resolv.conf); | |
| local ipv4dnsraw=$(/mnt/c/Windows/system32/netsh.exe interface ip show dns | tr -d '\r'); | |
| local ipv6dnsraw=$(/mnt/c/Windows/system32/netsh.exe interface ipv6 show dns | tr -d '\r'); |
| #!/bin/sh | |
| grub-bhyve -r host -M 1024 -d . -m device.map rancherOs1 < grub.cfg | |
| grub_exit=$? | |
| if [ $grub_exit -ne 0 ] ; then | |
| echo "Not starting. grub exited code ${grub_exit}" | |
| fi |