-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup-debian-derivs.sh
87 lines (66 loc) · 2.5 KB
/
setup-debian-derivs.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
#!/usr/bin/env bash
. _helpers.sh
banner_text "Starting Debian deriv setup"
#####################################
# setup internal proxy if available #
# it makes downloads so much faster #
#####################################
# install netcat, or update and then install netcat
sudo apt-get -qy install netcat || (sudo apt-get update && sudo apt-get -qy install netcat)
bash setup-internal-proxy.sh
# update and install some basics
sudo apt-get update
sudo apt-get -qy install software-properties-common
# setup heroku
sudo apt-get -qy install snapd && sudo snap install heroku --classic
# other essentials
sudo apt-get -qy install \
build-essential \
vim
# fonts
sudo apt-get -qy install \
fonts-roboto \
fonts-noto \
fonts-lmodern \
fonts-powerline \
fonts-open-sans \
fonts-firacode \
fonts-liberation2
# make capslock into escape
if command -v gsettings; then
gsettings set org.gnome.desktop.input-sources xkb-options "['grp:alt_shift_toggle', 'caps:escape']"
elif command -v dconf; then
dconf write /org/gnome/desktop/input-sources/xkb-options "['grp:alt_shift_toggle', 'caps:escape']"
fi
# elementaryOS-specific stuff
if [[ "$(lsb_release --id --short)" == "elementary" ]]; then
sudo apt-get -qy install \
fonts-raleway-elementary
gsettings set io.elementary.terminal.settings font 'FiraCode 12'
if [[ "$(lsb_release --codename --short)" == "hera" ]]; then
sudo add-apt-repository ppa:philip.scott/elementary-tweaks
sudo apt install elementary-tweaks
else
# we're probably on something newer, which switched to Pantheon
sudo add-apt-repository ppa:philip.scott/pantheon-tweaks
sudo apt install pantheon-tweaks
fi
fi
# ChromeOS terminal essentials
if [[ "$(hostname)" == "penguin" ]]; then
if [[ "$(lsb_release --id --short)" == "Debian" ]]; then
# setup Debian backports
sudo tee /etc/apt/sources.list.d/debian-backports.list <<- DEBCONF
deb http://deb.debian.org/debian $(lsb_release --codename --short)-backports main
DEBCONF
sudo apt-get update
# install flatpak
sudo apt install flatpak/$(lsb_release --codename --short)-backports
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# install some flatpak packages
flatpak install flathub org.videolan.VLC
fi
fi
echo "Installing Keybase..."
curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
sudo apt install ./keybase_amd64.deb && rm ./keybase_amd64.deb