Skip to content

Instantly share code, notes, and snippets.

View mrimp's full-sized avatar
💭
I may be slow to respond.

mrimp mrimp

💭
I may be slow to respond.
  • La La Land
View GitHub Profile
@mrimp
mrimp / UDM Pro Using the WAN2 port as the WAN Port
Created April 19, 2022 20:59
UDM Pro Using the WAN2 port as the WAN Port
If you end up using the WAN2 SFP+ port on the UDM-PRO or UDM-PRO SE,
chances are you'll want to make the WAN2 port your primary port.
Note: These instructions are from the 1.11.0 UniFi OS Version. Newer or older versions may be slightly different.
Login to your UDM-PRO / UDM-PRO SE
Click on the Network app
On the left side, click on the Unifi Devices link
Click on your UDM-PRO / UDM-PRO SE in the main table. This will open a side-bar window to the right
In the side-bar menu click Settings
Proxmox 7.1-12
$ apt-get update
$ apt-get install ethtool
$ ethtool -e eno1 offset 0x58 length 1
Offset Values
------ ------
0x0058: fc
$ ethtool -E ens106f0 magic 0x10FB8086 offset 0x58 value 0xfd length 1
# Requirments
# WSL2 on Windows
# check version
wsl -l -v
# WSL2 if not upgrade
# open ubuntu term
sudo apt update && sudo apt upgrade -y
# install docker
sudo apt install docker.io -y
# check docker install
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
App Store Kali Linux
RESTART
KALI TERM
touch ~/.hushlogin
sudo apt update && sudo apt dist-upgrade
sudo apt install kali-win-kex
sudo apt install kali-linux-large
# install and setup MYSQL
sudo apt install phpmyadmin
http://xxx.xxx.xxx.xxx/phpmyadmin
# MYSQL
sudo apt install mariadb-server
sudo mysql_secure_installation
# WORDPRESS
cd /var/www/html
sudo wget http://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* ./
sudo rm -rf wordpress latest.tar.gz
sudo usermod -a -G www-data pi
# update,upgrade,depends
sudo apt-get update && sudo apt-get upgrade -y
sudo apt install dnsutils git qemu-guest-agent
# set static ip
sudo nano /etc/dhcpcd.conf
sudo dpkg-reconfigure --priority=low unattended-upgrades
# Verify unattended upgrades configuration file in your text editor of choice
nano /etc/apt/apt.conf.d/20auto-upgrades
# To disable automatic reboots by the automatic upgrades configuration edit the following file:
nano /etc/apt/apt.conf.d/50unattended-upgrades
#!/usr/bin/env bash
# Configure your settings
# Name for the cluster/configuration files
NAME="cluster"
# Ubuntu image to use (xenial/bionic)
IMAGE="focal"
# How many additional server instances to create
SERVER_COUNT_MACHINE="2"
# How many agent instances to create
@mrimp
mrimp / mariadb.yml
Last active November 25, 2021 21:13 — forked from geerlingguy/mariadb.yml
Wordpress in Kubernetes K3s on Raspberry Pi
# This manifest assumes 'wordpress' namespace is already present:
#
# kubectl create namespace wordpress
#
# Apply the manifest with:
#
# kubectl apply -f mariadb.yml
---
apiVersion: v1
kind: Secret
@mrimp
mrimp / README.md
Last active November 20, 2021 22:12
Personal K3S Cluster managed w/kr83

Install docker

curl -sSL https://get.docker.com | sh

Fix the user permissions for running docker (seeing errors in this section is OK)

sudo usermod -aG docker $USER sudo chown "$USER":"$USER" /home/"$USER"/.docker -R sudo chmod g+rwx "/home/$USER/.docker" -R sudo chown "$USER":"$USER" /var/run/docker.sock sudo chmod g+rwx /var/run/docker.sock -R sudo systemctl enable docker

Docker Compose