Skip to content

Instantly share code, notes, and snippets.

@vladshub
Last active December 5, 2016 20:00
Show Gist options
  • Select an option

  • Save vladshub/90e51166e1c3852a2c8b02abca182730 to your computer and use it in GitHub Desktop.

Select an option

Save vladshub/90e51166e1c3852a2c8b02abca182730 to your computer and use it in GitHub Desktop.
Setting up new Ubuntu on Lenovo P50
#!/bin/bash
# Fix wifi broken firmware for Intel Corporation Wireless 8260 (rev 3a)
read -p "Fix wifi broken firmware for Intel Corporation Wireless 8260 (rev 3a) ? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
cd /lib/firmware
sudo mv iwlwifi-8000C-22.ucode iwlwifi-8000C-22.ucode.disable
cd
fi
# CUDA_LATEST_VERSION=$(curl http://http.download.nvidia.com/XFree86/Linux-x86_64/latest.txt | awk '{print $2}')
# wget http://http.download.nvidia.com/XFree86/Linux-x86_64/${CUDA_LATEST_VERSION}
read -p "Setup nvidia drivers for display ? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
sudo apt-get purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment