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 | |
# ===== Version ===== | |
# k8s_version=1.28 | |
# HOSTNAME=ubuntu-pve | |
if [ $# -gt 1 ]; then | |
k8s_version=$1 | |
shift | |
else | |
exit 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
#!/bin/sh | |
# ===== Prepare ===== | |
sudo apt-get update | |
sudo apt-get install -y ca-certificates curl gnupg lsb-release | |
# ===== Install ===== | |
# ----- Docker ----- | |
sudo mkdir -m 755 -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
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 | |
# Reference: https://docs.openvino.ai/2022.3/home.html | |
# System Requirements | |
# Raspberry Pi OS (Debian Bullseye) | |
# - Python 3.9.2 | |
sudo apt update | |
sudo apt install -y wget tar python3-pip | |
# ================================================== |
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
KUBE_VERSION=1.23 | |
# containerd=v1.6.0+,1,5.8+ | |
CNI_VERSION="v0.8.2" | |
CRICTL_VERSION="v1.23.0" | |
KUBELET_SERVICE_RELEASE_VERSION="v0.4.0" | |
KUBERNETES_RELEASE="$(curl -sSL https://dl.k8s.io/release/stable-${KUBE_VERSION}.txt)" | |
ARCH=$(dpkg --print-architecture) | |
# ===== Prepare ===== |
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 | |
sudo apt-get update | |
sudo apt-get install -y ca-certificates curl gnupg | |
sudo mkdir -m 0755 -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
sudo chmod a+r /etc/apt/keyrings/docker.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update |
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 | |
sudo apt update | |
sudo apt install -y nfs-kernel-server | |
sudo mkdir -m 777 /export | |
sudo sed -i '$a /export *(rw,fsid=0,sync)' /etc/exports | |
sudo exportfs -ar | |
sudo cat /proc/fs/nfsd/versions | |
sudo exportfs -v |
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 | |
mkdir Share | |
sudo -S apt update && sudo apt install -y gcc make perl | |
sudo usermod -aG vboxsf $USER | |
sudo init 0 |