Skip to content

Instantly share code, notes, and snippets.

@rootsec1
Last active January 21, 2022 09:24
Show Gist options
  • Save rootsec1/9b95e174b54503ed27f6f66828d562bc to your computer and use it in GitHub Desktop.
Save rootsec1/9b95e174b54503ed27f6f66828d562bc to your computer and use it in GitHub Desktop.
Script to setup NVIDIA Optimus on Pop OS
apt install python-pip
pip install apt-select
apt-select -C IN
cp /etc/apt/sources.list /etc/apt/sources.list.backup
cp ~/.sources.list /etc/apt/sources.list
apt update
apt upgrade -y
apt install -y tlp htop powertop preload vim gdebi curl git python3-pip gnome-tweak-tool ubuntu-restricted-extras
service preload start
tlp start
powertop --auto-tune
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb?src=0&filename=google-chrome-stable_current_amd64.deb
wget https://az764295.vo.msecnd.net/stable/c7d83e57cd18f18026a8162d042843bda1bcf21f/code_1.35.1-1560350270_amd64.deb
gdebi google-chrome-stable_current_amd64.deb
gdebi code_1.35.1-1560350270_amd64.deb
rm code_1.35.1-1560350270_amd64.deb google-chrome-stable_current_amd64.deb
snap install spotify insomnia
echo "Selecting Intel graphics"
system76-power graphics intel
echo "Rebooting to finish setup..."
sleep 3
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment