Cloud-Init is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, one can configure network
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 | |
set -e | |
if [ -z "$2" ]; then | |
echo "Script to set up router advertising proxy for one peer" | |
echo "Usage: setup_ipv6_hacky_router UPLINK DOWNLIK" | |
echo "Example: setup_ipv6_hacky_router eth0 wlan0" | |
exit 1 | |
fi |
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
# Virtual Environment Setup | |
mkdir /opt/certbot | |
cd /opt/certbot | |
git clone https://github.com/certbot/certbot | |
cd certbot | |
git checkout v0.22.0 | |
sudo ./certbot-auto --os-packages-only | |
./tools/venv.sh | |
source venv/bin/activate |
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 | |
# The script below documents the steps needed to install the NVIDIA GPU operator on MicroK8s 1.21 (for Ubuntu OS) | |
# 1. install microk8s and enable required addons | |
sudo snap install microk8s --classic --channel 1.21 | |
microk8s enable dns | |
microk8s enable helm3 | |
# 2. install nvidia drivers |
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
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: test | |
namespace: default | |
spec: | |
controlPlaneRef: | |
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | |
kind: MicroK8sControlPlane | |
name: test-control-plane |
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 | |
# wget -qO 0-pve.sh https://gist.github.com/sugoidogo/4684e4659431e17d15be20171160c1f9/raw/ && bash 0-pve.sh | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
export APT_LISTCHANGES_FRONTEND=none | |
function download { wget $* || curl -fLO $*; } | |
function stream { wget -qO- $* || curl -fsSL $*; } | |
function package { apt $* || dnf $*; } | |
echo "This script will download and run the installation script in a screen session" | |
echo "The installation script will download post-installation scripts to $HOME and reboot the system upon successful installation" |
- Make sure the domain you picked points at the IP of your Redash server.
- Switch to the
root
user (sudo su
). - Create a folder named
nginx
in/opt/redash
. - Create in the nginx folder two additional folders:
certs
andcerts-data
. - Create the file
/opt/redash/nginx/nginx.conf
and place the following in it: (replaceexample.redashapp.com
with your domain name)upstream redash { server redash:5000; }
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/sh | |
# non-interactive kde installer for alpine | |
# apk add curl && curl -L https://cutt.ly/alpine_kde | sh | |
echo "I will make Alpine Linux a Desktop Linux.. ." | |
## Desktop user |
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
sudo fallocate -l 4G /swapfile | |
sudo mkswap /swapfile | |
sudo chmod 600 /swapfile | |
# "UUID" & create | |
#SWAP_UUID=`sudo blkid -s UUID /swapfile | grep -Po '[\w*-]*\w'| tail -1` | |
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab | |
sudo swapon -a |
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
Information: | |
[VirtEngine Website](https://virtengine.com) | |
[Public Cloud.tc Multi-Provider](https://cloud.tc) | |
[VirtEngine Installation](https://docs.virtengine.com) | |
[OpenNebula 5.6 Installation](https://docs.opennebula.org/5.6/deployment/node_installation/kvm_node_installation.html) | |
# Prep System: | |
apt-get update |
OlderNewer