Skip to content

Instantly share code, notes, and snippets.

@jg3
jg3 / oracle-linux-firewall-notes.md
Created January 19, 2024 19:32
Oracle Linux firewall config

Oracle Linux Host Firewall Config

The default firewall configuration of Oracle Linux in the OCI environment basically denies everything. To enable traffic of any kind these following commands are needed.

sudo systemctl status firewalld
sudo firewall-cmd --list-all
sudo firewall-cmd --zone=public
sudo firewall-cmd --zone=public --add-port=5201/tcp --permanent
sudo firewall-cmd --zone=public --add-port=5201/udp --permanent
@jg3
jg3 / truenas_duplicati_jail_20231206.md
Last active February 26, 2024 20:22
Backup: Installing Duplicati into a TrueNAS Jail

WARNING: orphaned

This worked for me. It will probably work for you with minor touches if you insist. After I ran this for a while I didn't like how unreliable Duplicati was with the actual work of backing up and I began to investigate Duplicacy instead. I will leave this here for a year or so because it will probably remain more or less valid for that long and I did spend a lot of time putting it together to just thwack it because it's not useful to me. YMMV. GL. GG.

Duplicati on TrueNAS

This is a note on installing Duplicati, a free Backup server into a TrueNAS Core jail.

1 - Set up and configure the Jail

In TrueNAS create a Jail running the latest FreeBSD image available (13.2-RELEASE-p4). I am calling this jail instance backup

@jg3
jg3 / cloudshell-init.sh
Created May 9, 2024 15:46 — forked from ImIOImI/cloudshell-init.sh
AWS Cloudshell init script
#!/bin/sh
defaultUser="ImIOImI"
defaultEmail="troy.knapp@gmail.com"
rsaKeyFile=/home/cloudshell-user/.ssh/id_rsa
if [ ! -f "$rsaKeyFile" ]; then
#add rsa key
ssh-keygen -b 2048 -t rsa -f "$rsaKeyFile" -q -N ""
echo "Please copy the following into your GitHub profile here: https://github.com/settings/ssh/new
"