diff --git a/.static-ips.yml b/.static-ips.yml index 084b3ba..9f421d3 100644 --- a/.static-ips.yml +++ b/.static-ips.yml @@ -16,3 +16,6 @@ firefly-importer: 10.255.239.31 # 192.168.2.240/28 range is excluded for DHCP on the DHCP server, so we can use it for static ips # the range for the local lan network is 192.168.2.0/24 syncthing: 192.168.2.241 + + +MDNS_REFLECTOR_IP: 10.0.2.254 \ No newline at end of file diff --git a/_instructions/Adding a new NIC to a Docker container in a specific order.txt b/_instructions/Adding a new NIC to a Docker container in a specific order.txt new file mode 100644 index 0000000..11c2ccc --- /dev/null +++ b/_instructions/Adding a new NIC to a Docker container in a specific order.txt @@ -0,0 +1,26 @@ +https://forums.docker.com/t/adding-a-new-nic-to-a-docker-container-in-a-specific-order/19173/2 +Solution 1: +Just right after your solution, if you only need a different MAC address, just change the corresponding device’s MAC address in the container by some basic tools, say, ifconfig. If you don’t have it in your container, just install net-tools package. +To change the mac use this: ifconfig eth1 hw ether 08:00:AA:AA:AA:FF + +Solution 2: +Since docker is also using linux’s networking namespaces you can do this in the rock-bottom layer as well. Unfortunately, Docker tries to hide this from the user, but the namespaces are still existing under the hood. In order to get them to be managed by ip netns tool, do the following: + +get the process id (pid) of your running container: +$ sudo docker inspect -f '{{.State.Pid}}' +is not your label:tag name, it is the name that docker automatically assign to it once a container is fired up - get yours viadocker ps command and look for the last column (NAME). +create a symlink from the /proc/ filesystem to /var/run/ +2.1. First, create a netns directory in /var/run/ +$ sudo mkdir -p /var/run/netns +2.2. Using the PID you have just obtained, create the symlink +$ sudo ln -sf /proc//ns/net /var/run/netns/ +Now, if you execute ip netns list, you will see the networking namespace of your container. +From now on, there is no docker specific stuffs, just create a veth pair, bring them up, and attach one end of it to the container and you are fine: +$ sudo ip link add veth1_container type veth peer name veth1_root +$ sudo ifconfig veth1_container up +$ sudo ifconfig veth1_root up +$ sudo ip link set veth1_container netns +$ sudo ip netns exec ifconfig veth1_container up +The last command might be a bit overcomplicated, but it seemed that bringing up this interface natively in the container is not possible due to missing permissions :face_with_raised_eyebrow: + +Note that the MAC address could also be changed in the same way I have shown in solution 1, before attaching it to the container, or after - does not really matter, just different commands need to be used (recall the permission issue just mentioned above). \ No newline at end of file diff --git a/_instructions/Electric Eel install.txt b/_instructions/Electric Eel install.txt new file mode 100644 index 0000000..4fd7a08 --- /dev/null +++ b/_instructions/Electric Eel install.txt @@ -0,0 +1,10 @@ +Electric Eel +------------ +# After EE installation, and before starting Docker jail +# Go to Apps->Configuration - click down arrow and select Settings +# Update the following settings: +# Install NVIDIA Drivers: +# Click Save + +# Go to Apps->Configuration +# Click Choose Pool and select appropriate pool for your apps diff --git a/_instructions/add mapping for media.txt b/_instructions/add mapping for media.txt new file mode 100644 index 0000000..0c5bbbc --- /dev/null +++ b/_instructions/add mapping for media.txt @@ -0,0 +1,8 @@ +add mapping for media on container config +----------------------------------------- + +# assuming that the folder where media is stored is /mnt/tank/data1/Media: +# on Truenas shell: +jlmkr edit docker +# add the following args to "systemd_nspawn_user_args": +--bind='/mnt/tank/data1/Media:/mnt/media' diff --git a/_instructions/backup databases.txt b/_instructions/backup databases.txt new file mode 100644 index 0000000..385ab22 --- /dev/null +++ b/_instructions/backup databases.txt @@ -0,0 +1,171 @@ +NB!: List of filenames is at end of this file + +Log in to pgAdmin +User name: stuurmcp@telkomsa.net +Password: + +Connect to servers; refer to "connecting to servers.txt" + +Globals +******* +Navigate to Servers => authentik +Right click on authentik server and select Backup Globals... +Enter the following on the dialog box that opened: +General +------- +Filename: /2024-08-23/databases/authentik-cnpg-backup-globals.sql +Role name: postgres +Click Backup + +Servers +******* +Navigate to Servers => authentik +Right click on authentik server and select Backup Server... +Enter the following on the dialog box that opened (leave all other tabs with default settings): +General +------- +Filename: /2024-08-23/servers/authentik-cnpg-backup-servers.sql +Role name: postgres +Click Backup +----------------------------------------------------------------------------------------------------------------- +Databases +********* +Plain text backup +================= +Navigate to Servers => authentik -> Databases -> authentik +Right click on authentik database and select Backup... +Enter the following on the different tabs of dialog box that opened: +General +------- +Filename: /2024-08-28/authentik-backup.sql (this maps to: /mnt/stpool1/apps/pgadmin/storage/stuurmcp_telkomsa.net/2024-08-28/authentik-backup.sql on truenas) +Format: Plain +Encoding: UTF8 +Role name: authentik +Data Options +------------ +Sections: +Pre-data: +Post-data: -> Edit +# scroll to Postgresql; the password should be visible in the Password field +# Option 2: +# open truenas shell / ssh as root +cd /mnt/stpool1/Users//truestuff +./tcdbinfo.sh +# log in to pgAdmin +# from here onwards, it assumed that authentik is the server to be connected to: + +Register server +=============== +# If server is already registered, right click on authentik server and select Properties, otherwise: +# Right click on Servers and select Register -> Server... + +# Enter the following in the dialog box that opened: +General +------- +Name: authentik +Server group: Servers +Background: +Foreground: +Connect now? +Email: +UID: (note) +Create New Primary Group: