Last active
July 29, 2021 22:18
-
-
Save splch/ecf58447733f5e93c8807038320d90e0 to your computer and use it in GitHub Desktop.
script for setting up my linux machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# add signal repo | |
curl https://updates.signal.org/desktop/apt/keys.asc -o keys.asc | |
sudo apt-key add keys.asc | |
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list | |
rm keys.asc | |
# add usability repos | |
sudo add-apt-repository multiverse | |
# update system | |
sudo apt update | |
sudo apt -y full-upgrade | |
# download software | |
# dependencies | |
sudo apt -y install wget gcc linux-headers-generic software-properties-common apt-transport-https | |
# python | |
sudo apt -y install python3 python3-pip python-dev jupyter-notebook | |
# vscode | |
sudo apt -y install code | |
# signal | |
sudo apt -y install signal-desktop | |
# gimp | |
sudo apt -y install gimp | |
# vlc | |
sudo apt -y install vlc | |
# audacity | |
sudo apt -y install audacity | |
# virtualbox | |
sudo apt -y install virtualbox | |
# openshot video editor | |
sudo apt -y install openshot | |
if [ $1 == "Darwin" ] | |
then | |
# add vivaldi repo | |
curl http://repo.vivaldi.com/stable/linux_signing_key.pub -o linux_signing_key.pub | |
sudo apt-key add linux_signing_key.pub | |
echo "deb http://repo.vivaldi.com/stable/deb/ stable main" | sudo tee -a /etc/apt/sources.list | |
rm linux_signing_key.pub | |
# add spotify repo | |
curl https://download.spotify.com/debian/pubkey_0D811D58.gpg -o pubkey_0D811D58.gpg | |
sudo apt-key add pubkey_0D811D58.gpg | |
echo "deb http://repository.spotify.com stable non-free" | sudo tee -a /etc/apt/sources.list | |
rm pubkey_0D811D58.gpg | |
# vivaldi | |
sudo apt -y install vivaldi-stable | |
# spotify | |
sudo apt -y install spotify-client | |
# https://github.com/Dunedan/mbp-2016-linux | |
# improve suspend & hibernation | |
echo 0 | sudo tee /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allowed | |
# fix audio on mac | |
git clone https://github.com/davidjo/snd_hda_macbookpro.git | |
cd snd_hda_macbookpro/ | |
sudo ./install.cirrus.driver.sh | |
# usability | |
# wifi driver repository | |
sudo add-apt-repository ppa:kelebek333/kablosuz | |
sudo apt update | |
sudo apt -y install ubuntu-restricted-extras bcmwl-kernel-source rtl8822bu-dkms | |
fi | |
if [ $1 == "Linux" ] | |
then | |
curl -o install-wine-runner.sh https://gist.githubusercontent.com/splch/c8c60345e11ff2320da13d3c94ab2195/raw/install-wine-runner.sh | |
chmod +x install-wine-runner.sh | |
./install-wine-runner.sh | |
fi | |
echo "Reboot for changes to take effect." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo apt install rtl8822bu-dkms enables usb wifi adapter