Skip to content

Instantly share code, notes, and snippets.

@SpotLabsNET
Last active September 7, 2017 13:29
Show Gist options
  • Save SpotLabsNET/0cdb71c3c1fe5a8ed17a96a88a7a1ed8 to your computer and use it in GitHub Desktop.
Save SpotLabsNET/0cdb71c3c1fe5a8ed17a96a88a7a1ed8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# install powershell
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install -y powershell
# patch the system
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
# install some mandatory stuffs
sudo apt-get install build-essential ubuntu-desktop -y
# Blacklist Noveau which has some kind of conflict with the nvidia driver
echo -e "blacklist nouveau\nblacklist lbm-nouveau\noptions nouveau modeset=0\nalias nouveau off\nalias lbm-nouveau off\n" | sudo tee /etc/modprobe.d/blacklist-nouveau.conf
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
sudo update-grub
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment