// FIELD NOTES
Broke it. Fixed it. Wrote it down.
Writeups, guides and long-form notes on things I broke and fixed — servers, networks, IRC, self-hosting. Every page is a fix I actually ran.
linux
14
create systemctl service.service
linux/create-systemctl-service-service
nano /etc/systemd/system/radio ipv6.service Create /etc/systemd/system/radio ipv6.service : Enable and start: If it dies again, check:
docker @ debian12
linux/docker-debian12
apt update && apt upgrade y && apt autoremove y && apt install y ca certificates curl gnupg install m 0755 d /etc/apt/keyrings chmod a+r /etc/apt/keyrings/docker.gpg apt update apt install y docker ce docker ce cli conta
debian + ipv6
linux/debian-ipv6
1. Disable cloud init networking (if not already) Create the disable file exactly as their own header suggests: This tells cloud init to stop reconfiguring network on boot so only your ifupdown files control eth0. 2. Bui
openVPN
linux/openvpn
1. Install OpenVPN and Easy RSA on Debian On harley : This installs the OpenVPN daemon, Easy‑RSA PKI tools, and iptables for NAT.[](https://www.server world.info/en/note?os=Debian 12&p=openvpn&f=1) 2. Create CA and serve
monitor + fail2ban
linux/monitor-fail2ban
ubuntu / debian for DEBIAN make sure rsyslog is installed and running : apt install rsyslog systemctl enable –now rsyslog .systemctl status rsyslog Configure SSH Logging Edit the SSH configuration to ensure proper loggin
portspoof
linux/portspoof
apt update apt upgrade apt install portspoof Configure iptables to redirect scans to portspoof iptables t nat A PREROUTING i eth0 p tcp –dport 1:65535 j REDIRECT –to port 4444 Start portspoof (runs on port 4444 by defaul
iptables / syn / traffic control
linux/iptables-syn-traffic-control
apt install iptables && netfilter persistent netfilter persistent save
.swap
linux/swap
sudo swapoff a sudo fallocate l 2G /swapfile sudo dd if=/dev/zero of=/swapfile bs=1M count=2048 sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo ‘/swapfile none swap sw 0 0’ | sudo tee a /etc/fst
Benchmarking VPS/Bare Metal
linux/benchmarking-vps-bare-metal
1. install git 2. git clone [https://github.com/masonr/yet another bench script](https://github.com/masonr/yet another bench script) 3. cd yet another bench script 4. chmod +x yabs.sh 5. ./yabs.sh
Configure RAID 1
linux/configure-raid-1
This example is based on the environment like follows. It shows to install new Disks [sdb] and [sdc] on this computer and configure RAID 1. Create a partition on new Disks and set RAID flag. Configure RAID 1. If a member
vsFTPd
linux/vsftpd
apt update apt install ftp vsftpd y systemctl status vsftpd ls ld /data /data/ftp ls la /data/ftp | head n 20 useradd d /data/ftp s /usr/sbin/nologin uid0ftp passwd uid0ftp useradd d /data/ftp s /usr/sbin/nologin uid1ftp
rsync with ssh key
linux/rsync-with-ssh-key
On our origin server, we will generate public SSH keys with no password: This is our public SSH key that can be placed on other hosts to give us access: Copy this key to your clipboard and login to your destination serve
unix2dos filename
linux/unix2dos-filename
installing ssh keys
linux/installing-ssh-keys
if root user not permited to log in
irc
5
blackbot install
irc/blackbot-install
apt update && apt upgrade y && apt autoremove y nano /etc/apt/sources.list Then replace the file contents with: apt update apt install y \ python3 python3 venv python3 pip \ git openssl ca certificates \ libssl dev libsq
anti-idle module
irc/anti-idle-module
for centos 7 for debian && THEN
perl install
irc/perl-install
screen S bot perl bot.pl To detach CTRL+A then D To reattach later – screen r bot
egg
irc/egg
apt get install tcl tcl dev cmake git gcc y apt get install tcl tls tcllib wget 4 hungarysamoans.com/irc/eggdrop.tar.gz tar zxvf eggdrop.tar.gz cd eggdrop ./configure make config make make install cd ~/eggdrop/scripts wg
znc
irc/znc
EOF
https
9
Nextcloud Server Installation Guide for Debian 12 (Root User)
https/nextcloud-server-installation-guide-for-debian-12-root-user
This guide provides detailed step by step instructions for installing Nextcloud Server on a fresh Debian 12 VM running as root, with Apache2, MariaDB, and SSL/TLS encryption via Let’s Encrypt. System Requirements and Pre
zabbix agent install ( ubuntu 22)
https/zabbix-agent-install-ubuntu-22
apt update apt upgrade y wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix release/zabbix release latest 7.2+ubuntu22.04 all.deb dpkg i zabbix release latest 7.2+ubuntu22.04 all.deb apt update apt
zabbix agent install (buster_10)
https/zabbix-agent-install-buster_10
nano /etc/apt/sources.list Replace its contents with the following (delete everything else): Disable “Valid Until” Check: Because these archived repos are frozen, you must tell apt to ignore package date expiry. Create (
zabbix agent install ( bookworm_12)
https/zabbix-agent-install-debian
Change the following lines: Replace with the IP address of your Zabbix server (parent VM) : Optional: To allow server and frontend connections, also set: (Optional but recommended) Set a hostname for this VM: Save and ex
.cloudflarED
https/cloudflared
1. wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared linux amd64.deb 2. dpkg i cloudflared linux amd64.deb 3. cloudflared tunnel login This will open a browser window with a Cloudflare l
LAMP install
https/lamp-install
APACHE INSTALL && CONFIG Syntax OK IF AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message Syntax OK T
certbot SSL (re)install
https/certbot-ssl-reinstall
with the result : Certificate is saved at: /etc/letsencrypt/live/domain.name/fullchain.pem Key is saved at: /etc/letsencrypt/live/domain.name/privkey.pem THEN: nano /etc/apache2/sites available/default ssl.conf sudo a2en
Certbot install
https/certbot-install
Find the existing ServerName and ServerAlias lines. They should be listed as follows: You should receive Syntax OK as a response. If you get an error, reopen the virtual host file and check for any typos or missing chara
How To: Change / Move Nextcloud data directory after installation
https/how-to-change-move-nextcloud-data-directory-after-installation
The solution is far simpler and less risky in data corruption concerns, but it does NOT fulfil the security recommendations . So if you just need to move the data directory for storage reasons, not for security reasons,