Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile

First of all, I must say that I'am not a fan or user of Ubuntu. This is just a guide for newcomers, and colleagues that are struggling after the new release with the system changes.

Repositories configurations and system upgrade

Right after fresh install, you must do a system update. Don't delay it, but first, let's configure repositories. Delete the new config for repositories, this can cause problems or new users can get lost configuring it, have friends reporting me that:

sudo rm /etc/apt/sources.list.d/ubuntu.sources
@zoonderkins
zoonderkins / gl-inet-router-init-script.sh
Created July 28, 2024 04:48
gl-inet router init script
#!/bin/bash
## Model that I use
## 1. AXT-1800
## 2. AR-750s
####
# Replace 172.20.10.1 and 172.20.10.6 to your mobile 4g/5g hotspot
# I use Iphone
# 172.20.10.1 is the gateway
# 172.20.10.6 is the IP address for client
@zoonderkins
zoonderkins / rc-local-default.sh
Created July 8, 2024 16:38
rc-local-locale-linux
# You got this warning -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
# Solution
locale-gen en_US.UTF-8
# Choose en_US.UTF-8
dpkg-reconfigure locales
# Edit
nano /etc/default/locale
@zoonderkins
zoonderkins / linode-speedtest-script.sh
Created July 8, 2024 06:29
linode-speedtest-script
#!/bin/bash
readonly -a locations=("atlanta" \
"dallas" \
"frankfurt" \
"fremont" \
"london" \
"mumbai1" \
"newark" \
"singapore" \
@zoonderkins
zoonderkins / caddy-webdav-auth-multiple-user-linux.md
Created July 3, 2024 07:58
Caddy webdav for multiple user with its own directory on Linux

Caddy Webdav for Multiple users with their own directory + password auth on Linux

route /dav* {
	rewrite /dav /dav/
	basicauth {
		bob <password>
		alice <password>
	}
@zoonderkins
zoonderkins / xmrig-install-ubuntu-debian.sh
Created March 28, 2024 05:33
xmrig-install-ubuntu-debian
#!/bin/bash
# GitHub user/repo
GITHUB_REPO="xmrig/xmrig"
# Use GitHub API to fetch the latest release information
LATEST_RELEASE_INFO=$(curl -s https://api.github.com/repos/$GITHUB_REPO/releases/latest)
# Parse version and tarball URL from the release information
XMRIG_VERSION=$(echo "$LATEST_RELEASE_INFO" | jq -r '.tag_name')
@zoonderkins
zoonderkins / linux-nftables-set-ttl-65.md
Created December 11, 2023 05:06
Linux nftables set ttl 65 on GL-inet router

Config on GL-inet router

mkdir -p /usr/share/nftables.d/chain-pre/mangle_postrouting/
echo "ip ttl set 65" >  /usr/share/nftables.d/chain-pre/mangle_postrouting/01-set-ttl.nft
fw4 reload

@zoonderkins
zoonderkins / remove-old-kernel-linux.md
Last active December 11, 2023 05:04
remove-old-kernel-linux.sh

Usage

chmod +x ./remove-old-kernel-linux.sh

./remove-old-kernel-linux.sh exec
@zoonderkins
zoonderkins / fresh-caddy-install-with-xcaddy-webdav-module.md
Created November 16, 2023 08:22
Fresh caddy install on debian with xcaddy + webdav module

Install Caddy

apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
@zoonderkins
zoonderkins / one-click-install-dnsproxy.sh
Created November 14, 2023 09:59
one click install dnsproxy
#!/bin/bash
# Function to download file
download_file() {
url=$1
file_name=$2
if command -v wget > /dev/null; then
wget "$url" -O "$file_name"
elif command -v curl > /dev/null; then