This script ist to use dynmic dns updates with the new Hetzner cloud API.
Login via ssh to your Dream Machine.
Create Folder: mkdir -p /data/hetzner_ddns
Add the following config to /data/hetzner_ddns/hetzner-cloud-ddns.conf
Einrichtung einer Master-Master Replikation mit MariaDB auf zwei Knoten (DB1 und DB2) unter Rocky Linux 9.5.
Der Datenbankzugriff erfolgt bevorzugt auf DB1 via keepalived, mit einer virtuellen IP. Bei Split-Brain soll weiterhin Schreibzugriff auf beide Nodes bestehen.
Quelle: https://github.com/jomyg/MariaDB-Master-Master-Replication
Here are a few collected ways I like to customize Ubuntu 22.04 servers. I used to love Ubuntu, but I hate auto updates and snaps. They also put ads and other usless ads diguised as "news" in MOTD. ESM FUD is spread throughout the OS including simple apt functions. You do not need ESM and thus Ubuntu 22.04 has become super annoying. unattended-upgrade is an automatic installation of security (and other) upgrades without user intervention. Consider the ramifications of disabling this service.
The Unattended Upgrades feature is enabled by default and it runs at system boot without the user's permission. The configuration is stored in /etc/apt/apt.conf.d/20auto-upgrades
Disable:
sudo dpkg-reconfigure unattended-upgrades then a TUI will come up, select "No"
This will not permantently disable the function. After an update it will be enabled. In the file /etc/apt/apt.conf.d/20auto-upgrades change these values from 1 to 0. Even doing this it will
| # Configure Systemd-Resolved | |
| $ sudo apt install -y systemd-resolved | |
| $ cat <<EOF | sudo tee /etc/systemd/resolved.conf | |
| # This file is part of systemd. | |
| # | |
| # systemd is free software; you can redistribute it and/or modify it | |
| # under the terms of the GNU Lesser General Public License as published by | |
| # the Free Software Foundation; either version 2.1 of the License, or | |
| # (at your option) any later version. |
| # Configure Systemd-Timesyncd | |
| $ sudo apt install -y systemd-timesyncd | |
| $ cat <<EOF | sudo tee /etc/systemd/timesyncd.conf | |
| # This file is part of systemd. | |
| # | |
| # systemd is free software; you can redistribute it and/or modify it | |
| # under the terms of the GNU Lesser General Public License as published by | |
| # the Free Software Foundation; either version 2.1 of the License, or |
| #Install WinGet | |
| #Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901 | |
| #Which I found here: https://chrislayers.com/2021/08/01/scripting-winget/ | |
| $hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' | |
| if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") { | |
| "Installing winget Dependencies" | |
| Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' | |
| $releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' |
| #!/bin/bash | |
| bindir="/usr/local/bin" | |
| binuser="root" | |
| bingroup="root" | |
| unamearch=$(uname -m) | |
| case $unamearch in | |
| (i386) arch=386;; | |
| (x86_64) arch=amd64;; |
Run Satisfactory Dedicated Server on Ubuntu 20.04.
SteamUser="steam"
GameDirectory="satisfactory_dedicated_server"
Last Updated: 2021/01/19
Forked this to provide better details for our environment, you should be able to copy paste most of the commands from the command blocks
I wanted to run an OpenVPN server on the USG. Since it has a Radius server built in, I figured this would be a much better way to handle OpenVPN authentication. Make sure you have the Radius server enabled on your USG under Settings > Services > Radius > Server in the controller. Add OpenVpn users under Settings > Services > Radius > Server.