====== brimble.com Wiki Page ====== Welcome to the brimble.com wiki start page. I plan to have a handful of articles on here that mostly have to do with checklists and steps to build and setup my network, server, etc. As I am a rookie with wiki editing, this should be interesting! Lets start with the list of hardware currently used. * CPU: [[equipment:amdryzen7_3700x|AMD Ryzen 7 3700X]] 8-Core Processor * Motherboard: [[equipment:aorusprowifiX570|Gigabyte X570 AORUS PRO WIFI]] ATX AM4 Motherboard (REV 1.2) * CPU Cooler: [[equipment:amdwraithprism|AMD Wraith Prism cooler]] (AMD Stock Cooler) * Memory: 4 sticks of 16GB [[equipment:Crucial320016|Crucial Ballistix 3200 MHz]] DDR4 DRAM * Disks: * Unraid Flash: [[equipment:cruzerfit|SanDisk Cruzer Fit]] 16 GB USB Flash Drive (for boot) * NVME: * [[equipment:970evo|Samsung 970 EVO Plus]] 2TB NVME internal drive (for vms) * [[equipment:970evo|Samsung 970 EVO Plus]] 1TB NVME internal drive (for docker/rw) * Storage (for array): * 2 [[equipment:wd80efzz|Western Digital Red WD80EFZZ]] 8TB Hard Drives * 4 [[equipment:wd40efrx|Western Digital Red WD40EFRX]] 4TB Hard Drives * Video Card: [[equipment:rx6600xt|AMD Radeon RX 6600 XT]] 8 GB 64-Bit GDDR6 PCIE 4.0 x16 Video Card (passthru to Monterey) * Video Card: [[equipment:rx6650xt|AMD Radeon RX 6650 XT]] 8 GB 64-Bit GDDR6 PCIE 4.0 x16 Video Card (passthru to Win11) * Case: [[equipment:meshify2xl|Fractal Design Meshify 2 XL]] Black ATX Tower Case * Power Supply: [[equipment:seasonicgx750|Seasonic FOCUS GX-750]] 750W 80 Plus Gold Power Supply * Operating System: [[server:unraid|Unraid]] Operating System * USB Cards: [[equipment:inateckpcie|Inateck PCI-E to USB 3.0]] PCI Express Card (x2: 1 for Monterey, 1 for Win11) * Other: [[equipment:linkupcable|LINKUP Riser Cable]] PCIE 4.0 x16 Riser Cable (for RX 6600 XT) * KVM: [[equipment:kvm|Depzol]] 2 Port USB 3.0 KVM Switch DisplayPort for 2 Computers, 1 Monitor [[equipment:server|See previous iterations]] ---- ===== OPNsense Setup ===== The following link will guide you through setting up [[server:opnsense|OPNsense]]. Currently, [[server:opnsense|OPNsense]] is installed on a [[equipment:protectli_fw4c|Protectli FW4C Vault]]. * [[equipment:fw4c_opnsense|Setup OPNsense on FW4C Vault]]. ---- ===== EdgeRouter X Setup ===== The following link will guide you through the [[equipment:edgerouter_x|EdgeRouter X]] setup. It should contain all the steps required to configure the [[equipment:edgerouter_x|EdgeRouter X]]. * [[equipment:edgerouterX|Setup EdgeRouter X as router]]. * [[equipment:edgerouterXswitch|Setup EdgeRouter X as switch]] (used with OPNsense on FW4C due to "dumb" switching issues with the Unifi APs). ---- ===== Unify ac Lite Access Point Setup ===== The following link will guide you through the [[equipment:unifi_ac_lite_ap|UniFi ac Lite AP]] setup. It should contain all the steps required to configure the [[equipment:unifi_ac_lite_ap|UniFi ac Lite AP]]. * [[equipment:unifiaclite|Setup Unifi ac Lite AP]]. ---- ===== Travel router with WireGuard VPN on Raspberry Pi ===== The following link will guide you through setting up a travel router using OpenWRT on a [[equipment:rbpi4|Raspberry Pi 4]]. It should contain all the steps required to configure the [[equipment:rbpi4|Raspberry Pi 4]] to run OpenWRT as a travel router with dual Wifi and a WireGuard VPN connection. * [[equipment:rbpi_openwrt|Setup OpenWRT on Raspberry Pi]]. ---- ===== Proxmox Setup ===== The following pages will guide you through the [[server:proxmox|Proxmox]] setup and settings. This was a huge switch from having [[server:unraid|Unraid]] as the barebones system controlling everything to [[server:proxmox|Proxmox]] being the OS. Unraid was then moved to a vm with it's sole purpose being data storage and parity while Proxmox handled the vms. An standalone vm was then installed to handle the Docker responsibilities that Unraid previously had. ==== Proxmox Install ==== * [[server:proxmox8.2.4|Install Proxmox Hypervisor]]. ==== Virtual Machines ==== * [[proxmox:virtual:unraid|Install Unraid as a Virtual Machine]]. * [[proxmox:virtual:monterey|Install OSX as a Virtual Machine]]. * [[proxmox:virtual:win10|Install Windows as a Virtual Machine]]. * [[proxmox:virtual:piholeU20.04|Install Pi-hole as a Virtual Machine]]. * [[proxmox:virtual:openvpnU16.04|Install Virtual Router with OpenVPN as a Virtual Machine on Ubuntu 16.04]]. * [[proxmox:virtual:portainer|Install Portainer on an Ubuntu Virtual Machine]] to handle docker containers. ==== Dockers (installed on Ubuntu vm through Portainer) ==== * [[portainer:dockers:bazarr|Bazarr]] * [[portainer:dockers:delugevpn|Deluge VPN]] * [[portainer:dockers:dokuwiki|Doku Wiki]] * [[portainer:dockers:minecraft|Minecraft Server]] * [[portainer:dockers:mysql|MySQL]] * [[portainer:dockers:nextcloud|Nextcloud]] * [[portainer:dockers:plex|Plex Media Server]] * [[portainer:dockers:radarr|Radarr]] * [[portainer:dockers:sabnzbdvpn|SABnzbd with VPN]] * [[portainer:dockers:sonarr|Sonarr]] * [[portainer:dockers:swag|Swag]] * [[portainer:dockers:tautulli|Tautulli]] * [[portainer:dockers:tomcat|Tomcat]] * [[portainer:dockers:unifi-controller|Unifi Controller]] ===== Unraid Setup ===== The following pages will guide you through the [[server:unraid|Unraid]] setup and settings. It should contain all the steps gone through to configure brimble.com's [[server:unraid|Unraid]] setup. (this is no longer completely accurate as [[server:proxmox|Proxmox]] now runs the system with a basic Unraid running only the storage system (no dockers or vms). ==== Virtual Machines ==== * [[unraid:virtual:monterey|Install OSX as Unraid Virtual Machine]]. * [[unraid:virtual:win10|Install Windows as Unraid Virtual Machine]]. * [[unraid:virtual:piholeU20.04|Install Pi-hole as Unraid Virtual Machine]]. * [[unraid:virtual:openvpnU16.04|Install Virtual Router with OpenVPN as Unraid Virtual Machine on Ubuntu 16.04]]. * [[unraid:virtual:hoobsU20.04|Install Hoobs as Unraid Virtual Machine on Ubuntu 20.04]]. * [[unraid:virtual:hoobsF33|Install Hoobs as Unraid Virtual Machine on Fedora 33]]. * [[unraid:virtual:webpageU20.04|Install www.brimble.com as Unraid Virtual Machine on Ubuntu 20.04]]. ==== Dockers ==== * [[unraid:dockers:bazarr|Bazarr]] * [[unraid:dockers:delugevpn|Deluge VPN]] * [[unraid:dockers:dokuwiki|Doku Wiki]] * [[unraid:dockers:handbrake|HandBrake]] * [[unraid:dockers:icloudpd|iCloudPD]] * [[unraid:dockers:makeMKV|makeMKV]] * [[unraid:dockers:minecraft|Minecraft Server]] * [[unraid:dockers:mysql|MySQL]] * [[unraid:dockers:nextcloud|Nextcloud]] * [[unraid:dockers:plex|Plex Media Server]] * [[unraid:dockers:radarr|Radarr]] * [[unraid:dockers:sabnzbdvpn|SABnzbd with VPN]] * [[unraid:dockers:sonarr|Sonarr]] * [[unraid:dockers:swag|Swag]] * [[unraid:dockers:tautulli|Tautulli]] * [[unraid:dockers:tomcat|Tomcat]] * [[unraid:dockers:unifi-controller|Unifi Controller]] ==== Scripts ==== * fix_mysql_timeouts #!/bin/bash declare -r dockern="mysql" echo "checking if my.cnf is already updated" docker exec $dockern grep -q "wait_timeout = 600" /etc/my.cnf && a=1 || a=0 if [ $a == 1 ] then echo "it has already been updated... no changes made" else echo "it has not been updated... updating my.cnf to include new wait_timeout, interactive_timeout, and max_connection variables" docker exec $dockern sed -i '/user=mysql/a wait_timeout = 600\ninteractive_timeout = 600\nmax_connections = 500' /etc/my.cnf echo "done... restarting docker" sleep 5 docker container restart $dockern fi echo "script complete" * fix_tomcat_jar_links #!/bin/bash echo "fixing www.brimble.com" echo "creating simlinks for javax.activation.jar" docker exec website ln -sf /usr/local/tomcat/webapps/jar/javax.activation-1.2.0.jar /usr/local/tomcat/lib/javax.activation.jar echo "creating simlinks for javax.mail.jar" docker exec website ln -sf /usr/local/tomcat/webapps/jar/javax.mail.jar /usr/local/tomcat/lib/javax.mail.jar echo "creating simlinks for mysql-connector-java.jar" docker exec website ln -sf /usr/local/tomcat/webapps/jar/mysql-connector-j-8.0.32.jar /usr/local/tomcat/lib/mysql-connector-java.jar echo "done... restarting www.brimble.com" sleep 5 docker container restart website echo "fixing games.brimble.com" echo "creating simlinks for javax.activation.jar" docker exec games ln -sf /usr/local/tomcat/webapps/jar/javax.activation-1.2.0.jar /usr/local/tomcat/lib/javax.activation.jar echo "creating simlinks for javax.mail.jar" docker exec games ln -sf /usr/local/tomcat/webapps/jar/javax.mail.jar /usr/local/tomcat/lib/javax.mail.jar echo "creating simlinks for mysql-connector-java.jar" docker exec games ln -sf /usr/local/tomcat/webapps/jar/mysql-connector-j-8.0.32.jar /usr/local/tomcat/lib/mysql-connector-java.jar echo "done... restarting games.brimble.com" sleep 5 docker container restart games echo "done" * minecraft_backup #!/bin/bash sudo rsync -av --delete /mnt/disks/samsung_nvme/appdata/binhex-minecraftOreCity/minecraft/worlds/ /mnt/user/backup/minecraft/orecity/worlds/ sudo rsync -av --delete /mnt/disks/samsung_nvme/appdata/binhex-minecraftDirkland/minecraft/worlds/ /mnt/user/backup/minecraft/dirkland/worlds/ sudo rsync -av --delete /mnt/disks/samsung_nvme/appdata/binhex-minecraftDirklandII/minecraft/worlds/ /mnt/user/backup/minecraft/dirklandII/worlds/ cd /mnt/user/backup/minecraft/orecity tar -pzvcf $(date +%Y.%m.%d.%H.%M.%S).tar.gz worlds cd /mnt/user/backup/minecraft/dirkland tar -pzvcf $(date +%Y.%m.%d.%H.%M.%S).tar.gz worlds cd /mnt/user/backup/minecraft/dirklandII tar -pzvcf $(date +%Y.%m.%d.%H.%M.%S).tar.gz worlds * mysql_database_backup docker exec mysql /usr/bin/mysqldump -u"USERNAMEWITHNOQUOTES" -p"PASSWORDWITHNOQUOTES" --databases airports bracket casino chrono fantasy football logbook ncaab ncaaf nextcloud photoprism poker toddcard walk > /mnt/user/backup/webpage/mysql/mysqldump.sql cd /mnt/user/backup/webpage/mysql/ tar -pzvcf $(date +%Y.%m.%d.%H.%M.%S).tar.gz mysqldump.sql ---- ===== Depzol Hot Keys ===== * Hotkey Change: * Double click right CTRL then the new Hotkey you want then Enter (ie: CTRL CTRL NUMLOCK ENTER) * Turn on/off beep: * Double click Hotkey then B then Enter (ie: CTRL CTRL B ENTER) * Reset KVM: * Double click Hotkey then R then Enter (ie: CTRL CTRL R ENTER) ===== Standalone Server Setup ===== The following pages will guide you through setting up a Standalone Server. It should contain all the steps gone through to configure brimble.com's server setup. ==== Install Server ==== * [[server:ubuntu20.04|Install Ubuntu 20.04 LTS as Standalone Server]]. ==== Install Extras ====