Skip to content

Instantly share code, notes, and snippets.

@dualvtable
dualvtable / setup_nvidia_drivers_rhel7.sh
Created Jan 7, 2021
Setting up drivers and fabric-manager on RHEL7
View setup_nvidia_drivers_rhel7.sh
#!/bin/sh
set -x
USERNAME=$1
PASSWORD=$2
sudo subscription-manager register --username ${USERNAME} --password ${PASSWORD} --auto-attach \
&& sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
&& sudo subscription-manager repos --enable="rhel-*-optional-rpms" --enable="rhel-*-extras-rpms" --enable="rhel-ha-for-rhel-*-server-rpms"
@dualvtable
dualvtable / setup_vmi_nvidia.sh
Created Oct 22, 2020
Simple script for setting up NVIDIA software on bare-metal
View setup_vmi_nvidia.sh
#!/usr/bin/env bash
# author: com/github/dualvtable
set -eo pipefail
check_root()
{
if [[ $EUID -ne 0 ]]; then
echo "This installer must be run as root."
exit 1
@dualvtable
dualvtable / setup_nvidia_centos8.sh
Last active Oct 21, 2020
Simple script for setting up NVIDIA drivers and Docker on CentOS 8
View setup_nvidia_centos8.sh
#!/usr/bin/env bash
set -euo pipefail
ARCH=$( /bin/arch )
distribution=rhel8
setup_prereq()
{
sudo dnf install -y tar bzip2 make automake gcc gcc-c++ pciutils elfutils-libelf-devel libglvnd-devel && \
View vimrc
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
set incsearch ic hlsearch
set backspace=eol,indent,start
set hidden
set tabstop=4 expandtab shiftwidth=4 smarttab
set textwidth=75
set autowrite
set wildmenu wildmode=longest,list,list:full