Add files via upload
This commit is contained in:
19
MOK_Enroll.sh
Normal file
19
MOK_Enroll.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!\bin\bash
|
||||
#Quick script written by Will Russell for MOK enrollment kickoff on secureboot
|
||||
#enabled linux systems - debian/Ubuntu based OS.
|
||||
#SecureBoot has been enabled but for some reason your key didn't get cached
|
||||
#Generally affects initializable drivers like NVIDIA GPU and other
|
||||
#Load at boot system services that need a signature.
|
||||
|
||||
#disable secureboot in shim-signed:
|
||||
echo "This script will ask for a password momentarily - please assign"
|
||||
echo "the same key that you intend to enroll as your secureboot passphrase"
|
||||
sleep 5
|
||||
|
||||
sudo mokutil --disable-validation
|
||||
|
||||
sleep 5
|
||||
echo "Key captured, Restarting system in 10 seconds"
|
||||
sleep 10
|
||||
sudo shutdown -r now
|
||||
|
||||
49
NVIDIA_drivers.sh
Normal file
49
NVIDIA_drivers.sh
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
#This script will add the Ubuntu-targeted NVIDIA drivers PPA, run an update
|
||||
#And then install the recommended package for this machine. Could be
|
||||
#Added to the the pre-stage scripts if applicable.
|
||||
#Standalone installer for now
|
||||
#Written by: William Russell for use in Duke University Heath system
|
||||
#11/6/19
|
||||
|
||||
#Ensure no pending updates:
|
||||
apt-get update && apt upgrade -y
|
||||
sleep 3
|
||||
clear
|
||||
|
||||
#add the PPA
|
||||
add-apt-repository ppa:graphics-drivers/ppa
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
#check for new updates:
|
||||
apt-get update
|
||||
sleep 2
|
||||
clear
|
||||
|
||||
#scan for drivers:
|
||||
ubuntu-drivers devices
|
||||
sleep 5
|
||||
ubuntu-drivers autoinstall
|
||||
sleep 5
|
||||
clear
|
||||
|
||||
#blacklist the Nouveau driver so it doesn't initialize:
|
||||
sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
|
||||
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
|
||||
sleep 2
|
||||
cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
|
||||
sleep 4
|
||||
clear
|
||||
|
||||
#update the kernel to reflect changes:
|
||||
echo "updating initramfs..."
|
||||
sleep 3
|
||||
sudo update-initramfs -u
|
||||
clear
|
||||
|
||||
#end of script output
|
||||
echo "Script completed - NVIDIA drivers installed"
|
||||
echo "please restart your machine to initialize correctly"
|
||||
|
||||
Reference in New Issue
Block a user