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 / !proxmox_k3s_cluster.sh
Created September 16, 2021 00:25 — forked from ilude/!proxmox_k3s_cluster.sh
Proxmox k3s cluster creation scripts
#!/bin/bash
# curl -s https://gist.githubusercontent.com/ilude/457f2ef2e59d2bff8bb88b976464bb91/raw/cluster_create_setup.sh?$(date +%s) > ~/bin/setup_cluster.sh; chmod +x ~/bin/setup_cluster.sh; setup_cluster.sh
echo "begin cluster_create_setup.sh"
export CREATE_TEMPLATE=1 #false
while test $# -gt 0; do
case "$1" in
--template)
export CREATE_TEMPLATE=0 #true
@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
#!/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
# 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
@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