This file contains hidden or 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 | |
| # Full NVIDIA/CUDA removal for common Linux distros (Ubuntu/Debian/RHEL/CentOS/Rocky/Fedora/AMZN) | |
| set -eu | |
| status() { echo ">>> $*" >&2; } | |
| error() { echo "ERROR: $*" >&2; exit 1; } | |
| warning() { echo "WARNING: $*" >&2; } | |
| TEMP_DIR="$(mktemp -d)" |
This file contains hidden or 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 | |
| # This script installs Nvidia Drivers on Linux. | |
| set -eu | |
| status() { echo ">>> $*" >&2; } | |
| error() { echo "ERROR $*"; exit 1; } | |
| warning() { echo "WARNING: $*"; } | |
| TEMP_DIR=$(mktemp -d) |
This file contains hidden or 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
| # http://askubuntu.com/questions/505446/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer | |
| # http://askubuntu.com/questions/660023/how-to-install-ubuntu-14-04-64-bit-with-a-dual-boot-raid-1-partition-on-an-uefi%5D | |
| sudo -s | |
| apt-get -y install mdadm grub-efi-amd64 | |
| sgdisk -z /dev/nvme0n1 | |
| sgdisk -z /dev/nvme1n1 | |
| sgdisk -n 1:0:+100M -t 1:ef00 -c 1:"EFI System" /dev/nvme0n1 | |
| sgdisk -n 2:0:0 -t 2:fd00 -c 2:"Linux RAID" /dev/nvme0n1 | |
| sgdisk /dev/nvme0n1 -R /dev/nvme1n1 -G |
This file contains hidden or 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 update | |
| sudo apt upgrade -y | |
| sudo systemctl stop open-webui | |
| cd open-webui | |
| git pull origin main |
This file contains hidden or 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 | |
| # Install necessary packages | |
| sudo apt update | |
| sudo apt install -y git curl python3 python3-pip python3-venv uvicorn | |
| # Install Node.js | |
| curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - | |
| sudo apt-get install -y nodejs |
This file contains hidden or 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 | |
| # Cloudflare as Dynamic DNS | |
| # From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/ | |
| # Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/ | |
| # Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/ | |
| # Update these with real values | |
| auth_email="[email protected]" | |
| auth_key="global_api_key_goes_here" | |
| zone_name="example.com" |