Skip to content

Instantly share code, notes, and snippets.

@gak4u
Last active November 27, 2021 19:39
Show Gist options
  • Save gak4u/3ca987130a4116c317a5473d46fb712c to your computer and use it in GitHub Desktop.
Save gak4u/3ca987130a4116c317a5473d46fb712c to your computer and use it in GitHub Desktop.
#/bin/sh
curl -o /opt/patch.sh https://raw.githubusercontent.com/keylase/nvidia-patch/master/patch.sh
chmod 744 /opt/patch.sh
/opt/patch.sh
cat > /etc/systemd/system/driver-patch.service <<EOF
[Unit]
After=network.service
[Service]
ExecStart=/opt/patch.sh
[Install]
WantedBy=default.target
EOF
chmod 664 /etc/systemd/system/driver-patch.service
systemctl daemon-reload
systemctl enable driver-patch.service
curl -sL https://deb.nodesource.com/setup_14.x | sh -
sudo apt-get install nodejs -y
npm install -g pm2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment