-
Notifications
You must be signed in to change notification settings - Fork 1
/
Aptfile
48 lines (43 loc) · 1.36 KB
/
Aptfile
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
#!/usr/bin/env bash
set -e
# CLI basics
sudo apt update && sudo apt install -y \
autoconf \
bat \
ca-certificates \
curl \
ffmpeg \
fzf \
git \
gnupg \
htop \
imagemagick \
libbz2-dev \
liblzma-dev \
libreadline-dev \
libssl-dev \
libyaml-dev \
lsb-release \
vim \
xsel \
zsh
# Bat gets installed as 'batcat'; alias it to 'bat'
mkdir -p ~/.local/bin
ln -s /usr/bin/batcat ~/.local/bin/bat
# Add extra repos for docker & sublime
# docker: https://docs.docker.com/engine/install/ubuntu/
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg --yes
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# sublime-text: https://www.sublimetext.com/docs/linux_repositories.html#apt
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Refresh apt with new repos
sudo apt update && sudo apt install -y \
docker-ce \
docker-ce-cli \
containerd.io \
docker-compose-plugin \
sublime-text