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_setup.sh
Created September 2, 2021 21:03 — forked from ilude/proxmox-setup-notes.md
How to setup a community version of Proxmox VE 5.x-6.x (and I think 7.x, but not tested yet)
# copy and paste oneliner below to run
# curl -s https://gist.githubusercontent.com/ilude/32aec45964bc1207810f7e6e49544064/raw/proxmox_setup.sh?$(date +%s) | /bin/bash -s
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# setup no nag script to run on upgrade
@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 / Ubuntu_Debian_Cloud_images_in_Proxmox.md
Created October 17, 2021 21:29 — forked from chriswayg/Ubuntu_Debian_Cloud_images_in_Proxmox.md
Ubuntu and Debian Cloud images in Proxmox
@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

@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
#!/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
# 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
# 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
# install and setup MYSQL
sudo apt install phpmyadmin
http://xxx.xxx.xxx.xxx/phpmyadmin
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