- Using a ready-to-use Ubuntu image
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
# 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 |
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 |
curl -sSL https://get.docker.com | sh
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
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 |
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
# 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
# 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
# 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
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 |
OlderNewer