-
Notifications
You must be signed in to change notification settings - Fork 0
/
deb.sh
executable file
·111 lines (102 loc) · 2.35 KB
/
deb.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
110
#!/bin/bash
packages=(
# chromium-codecs-ffmpeg-extra
curl
docker.io
dropbear-initramfs
ethtool
fonts-noto-color-emoji
fzf
gimp
gnome-sushi
gnome-tweak-tool
gnupg
golang
heif-thumbnailer
htop
hub
ifuse
jq
kubectl
libbz2-dev
libffi-dev
libreadline-dev
libsqlite3-dev
libssl-dev
make
mpv
neofetch
net-tools
nodejs
nmap
npm
openshot
openssh-server
postgresql-client
psensor
python3
python3-pip
python3-virtualenv
python3-wheel
ranger
signal-desktop
silversearcher-ag
stow
systemd-coredump
tailscale
testdisk
tmux
vault
vim-gtk3
virtualenvwrapper
vsftpd
wireshark-gtk
xclip
zsh
zsh-syntax-highlighting
wireguard
)
snaps=(
chromium
discord
doctl
opera
spotify
telegram-desktop
)
classic_snaps=(
code
helm
intellij-idea-community,
microk8s
)
beta_snaps=(
kafka
)
# Fetch aptitude keys.
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
curl https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | sudo apt-key add -
curl https://keybase.io/docs/server_security/code_signing_key.asc | sudo apt-key add -
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8cf63ad3f06fc659' | sudo apt-key add -
curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
# Add extra repositories.
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
echo "deb http://ppa.launchpad.net/jonathonf/vim/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/jonathonf.list
echo "deb http://prerelease.keybase.io/deb stable main" | sudo tee /etc/apt/sources.list.d/keybase.list
curl https://pkgs.tailscale.com/stable/ubuntu/focal.list | sudo tee /etc/apt/sources.list.d/tailscale.list
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
echo "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/hashicorp.list
sudo apt update
sudo apt install -y "${packages[@]}"
if (which snap >/dev/null); then
for snap in "${snaps[@]}"; do
sudo snap install "${snap}"
done
for snap in "${classic_snaps[@]}"; do
sudo snap install --classic "${snap}"
done
for snap in "${beta_snaps[@]}"; do
sudo snap install --beta "${snap}"
done
fi