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
| # Note: This will only work on (which?) GPUs. | |
| # Install Conda (latest from https://docs.conda.io/en/latest/miniconda.html#linux-installers) | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
| bash Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
| # follow the prompts, restart your Terminal session, and run `conda` to confirm it installed. | |
| # Install git and curl, and clone the stable-diffusion repo | |
| sudo apt install -y git curl | |
| cd Downloads |
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
| # Note: This will only work on Navi21 GPUs (6800/6900+). | |
| # See: https://github.com/RadeonOpenCompute/ROCm/issues/1668#issuecomment-1043994570 | |
| # Install Conda (latest from https://docs.conda.io/en/latest/miniconda.html#linux-installers) | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
| bash Miniconda3-py39_4.12.0-Linux-x86_64.sh | |
| # follow the prompts to install it, and run `conda` to make sure it's working. | |
| # Install git and curl, and clone the stable-diffusion repo | |
| sudo apt install -y git curl |
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
| # Download the pivariety driver install script and make it executable | |
| wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh | |
| chmod +x install_pivariety_pkgs.sh | |
| # Install libcamera dev and apps | |
| ./install_pivariety_pkgs.sh -p libcamera_dev | |
| ./install_pivariety_pkgs.sh -p libcamera_apps | |
| # Install the Hawk-Eye kernel driver | |
| ./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver |
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 | |
| # | |
| # Jeff Geerling's super-rudimentary fan controller script for the CM4. | |
| # | |
| # Use: | |
| # 1. Download this script to a path like `/opt/cm4-fan.sh` | |
| # 2. Run it with: `nohup bash /opt/cm4-fan.sh` | |
| # 3. Profit! | |
| # | |
| # You should wrap it in a systemd unit file if you want it to persist and come |
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 | |
| # Photogrammety automation script. | |
| # | |
| # Based on https://peterfalkingham.com/2018/04/01/colmap-openmvs-scripts-updated/ | |
| # Adapted from https://www.instructables.com/Free-Photogrammetry-on-Mac-OS-From-Photos-to-3D-Mo/ | |
| # | |
| # See full guide on Jeff Geerling's blog: | |
| # TODO | |
| # | |
| # Usage: |
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 | |
| # The default BAR address space available on the CM4 may be too small to allow | |
| # some devices to initialize correctly. To avoid 'failed to assign memory' | |
| # errors on boot, you can increase the range of the PCIe bus in the Raspberry | |
| # Pi's Device Tree (a .dtb file specific to each Pi model). | |
| # | |
| # You should probably read up on Device Trees if you don't know what they are: | |
| # https://www.raspberrypi.org/documentation/configuration/device-tree.md | |
| # |
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 | |
| # Attempt to set up the Nvidia GeForce GT 710 on a Pi CM4. | |
| # | |
| # I have tried both armv7l and aarch64 versions of the proprietary driver, in | |
| # addition to the nouveau open source driver (which needs to be compiled into | |
| # a custom Raspberry Pi kernel). | |
| # | |
| # tl;dr - None of the drivers worked :P |
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
| # Minecraft Server deployment for Kubernetes clusters via Ansible's Helm module. | |
| # | |
| # The Helm module is part of the Kubernetes collection. Install it with: | |
| # | |
| # ansible-galaxy collection install community.kubernetes | |
| # | |
| # Then run the playbook: | |
| # | |
| # ansible-playbook main.yml | |
| # |
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 | |
| # | |
| # See: https://docs.travis-ci.com/user/docker/#installing-a-newer-docker-version | |
| # | |
| # Add the following in your .travis.yml file to upgrade Docker prior to your build: | |
| # | |
| # before_install: | |
| # - curl https://gist.githubusercontent.com/geerlingguy/ce883ad4aec6a5f1187ef93bd338511e/raw/36612d28981d92863f839c5aefe5b7dd7193d6c6/travis-ci-docker-upgrade.sh | sudo bash | |
| # | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |