-
Notifications
You must be signed in to change notification settings - Fork 3
/
post-install.sh
executable file
·109 lines (88 loc) · 4.41 KB
/
post-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/bin/bash
# Consider this to be Strycore Linux
# This script is why everything always works for me.
# Only run this on Ubuntu 18.04 based systems.
set -e
# Fix terminal for Tilix
if [ ! -e /etc/profile.d/vte.sh ]; then
sudo ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh
fi
# Add Pop!_OS PPA
sudo add-apt-repository --yes --no-update --enable-source ppa:system76/pop
# Add KeepassXC PPA
sudo add-apt-repository --yes --no-update --enable-source ppa:phoerious/keepassxc
# Add GCDEmu PPA
sudo add-apt-repository --yes --no-update --enable-source ppa:cdemu/ppa
# Add Docker repository
sudo apt install --yes curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository --yes --no-update "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Add SC-Controller repository
wget -nv https://download.opensuse.org/repositories/home:kozec/xUbuntu_18.04/Release.key -O - | sudo apt-key add -
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/kozec/xUbuntu_18.04/ /' > /etc/apt/sources.list.d/home:kozec.list"
# Add WineHQ repository
wget -nc https://dl.winehq.org/wine-builds/Release.key -O - | sudo apt-key add -
sudo apt-add-repository --yes --no-update "https://dl.winehq.org/wine-builds/ubuntu/"
# Add VirtualBox repository
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-add-repository --yes --no-update "deb https://download.virtualbox.org/virtualbox/debian bionic contrib"
# Add Lutris repository
ver=$(lsb_release -sr); if [ $ver != "18.04" -a $ver != "16.04" ]; then ver=18.04; fi
echo "deb http://download.opensuse.org/repositories/home:/strycore/xUbuntu_$ver/ ./" | sudo tee /etc/apt/sources.list.d/lutris.list
wget -q http://download.opensuse.org/repositories/home:/strycore/xUbuntu_$ver/Release.key -O- | sudo apt-key add -
# Install packages
sudo apt --yes update
sudo apt --yes full-upgrade
sudo apt --yes install git keepassxc apt-file pavucontrol htop gimp chrome-gnome-shell vim-gnome synaptic \
lm-sensors kdeconnect gcdemu python-dev python3-dev python3-pip silversearcher-ag lxd lxd-tools \
nmap ncdu docker-ce exuberant-ctags postgresql gnash libvulkan-dev libpng-dev libwayland-dev libxcb1-dev \
meson ninja-build w3m devscripts git-buildpackage libgirepository1.0-dev debhelper mono-complete \
neofetch jstest-gtk sc-controller mesa-utils mesa-vulkan-drivers linux-tools-common linux-tools-generic \
winehq-staging gimp inkscape lutris virtualbox-5.2 tilix zsh cmake dconf-editor gnome-tweaks \
gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1 libc++abi1 libgconf-2-4 libindicator7 \
gnome-shell-extension-pop-suspend-button pop-fonts pop-gnome-shell-theme pop-gtk-theme pop-icon-theme python-apt \
libsystemd-dev vulkan-utils chromium-browser picard gnome-mpv audacious gstreamer1.0-plugins-bad gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly exfat-utils xbindkeys libgcc-8-dev:i386 libc6-dev:i386
if [ ! -e /opt/google/chrome ]; then
# Install Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
fi
if [ ! -e /usr/bin/discord ]; then
# Install Discord
wget https://dl.discordapp.net/apps/linux/0.0.5/discord-0.0.5.deb
sudo dpkg -i discord-0.0.5.deb
rm discord-0.0.5.deb
fi
if [ ! -e /usr/bin/steam ]; then
wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb
sudo dpkg -i steam.deb
rm steam.deb
fi
if [ ! -e /usr/bin/gamemoded ]; then
cd /tmp
git clone https://github.com/FeralInteractive/gamemode.git
cd gamemode
git checkout 1.2
./bootstrap.sh
rm -rf build
export CFLAGS=-m32
export CXXFLAGS=-m32
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
meson --prefix=/usr build -Dwith-daemon=false -Dwith-examples=false -Dwith-systemd=false --libdir='/usr/lib/i386-linux-gnu'
ninja -C build
ninja -C build install
cd /tmp
rm -rf gamemode
unset CFLAGS
unset CXXFLAGS
unset PKG_CONFIG_PATH
fi
# TODO Add Google Music Manager: https://dl.google.com/linux/direct/google-musicmanager-beta_current_amd64.deb
sudo -H pip3 install flake8
sudo -H pip3 install pylint
sudo -H pip3 install virtualenvwrapper
sudo lxd init
newgrp lxd