This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install and setup MYSQL | |
sudo apt install phpmyadmin | |
http://xxx.xxx.xxx.xxx/phpmyadmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
NewerOlder