- Check if venv module is installed
python -m venv --help
If venv is not available, we might need to install python3-venv
#!/bin/bash | |
FFMPEG_URL="https://github.com/nwjs-ffmpeg-prebuilt/nwjs-ffmpeg-prebuilt/releases/download" | |
FFMPEG_VER="0.93.0" | |
ARCH="x64" | |
OPERA_LIB="/usr/lib/x86_64-linux-gnu/opera/lib_extra" | |
TMP_DIR="/tmp/operalib" | |
if [ -f "${OPERA_LIB}/libffmpeg.so" ]; then | |
echo "libffmpeg.so already exists in ${OPERA_LIB}. Exiting." |
#!/bin/bash | |
# -- ------------------------------------------------------------------------------------------------ | |
# Author: alexolinux | |
# This script to install and configure a Kubernetes cluster with control-plane and nodes. | |
# -- ------------------------------------------------------------------------------------------------ | |
# https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/ | |
# https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/ | |
# -- ------------------------------------------------------------------------------------------------ |
#!/bin/bash | |
# Detect RHEL version | |
if [ -f /etc/os-release ]; then | |
. /etc/os-release | |
RHEL_VERSION=$(echo $VERSION_ID | cut -d '.' -f1) | |
else | |
echo "Unable to determine OS version." | |
exit 1 | |
fi |
#!/bin/bash | |
NODE="kube-node-02" | |
kubectl cordon $NODE | |
kubectl drain $NODE --ignore-daemonsets --delete-emptydir-data | |
kubectl delete node $NODE |
#!/bin/bash | |
sudo yum update -y | |
sudo yum install -y httpd | |
sudo yum install -y git | |
export TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` | |
export META_INST_ID=`curl http://169.254.169.254/latest/meta-data/instance-id -H "X-aws-ec2-metadata-token: $TOKEN"` | |
export META_INST_TYPE=`curl http://169.254.169.254/latest/meta-data/instance-type -H "X-aws-ec2-metadata-token: $TOKEN"` | |
export META_INST_AZ=`curl http://169.254.169.254/latest/meta-data/placement/availability-zone -H "X-aws-ec2-metadata-token: $TOKEN"` |