-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddeps.sh
executable file
·60 lines (55 loc) · 1.64 KB
/
ddeps.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
#!/bin/bash
#These are the programs I expect to find on any install
function dpkg_url() {
local tmp_deb="$(mktemp)"
local src_url=$1
local args=${@:2}
wget -q --show-progress -O $tmp_deb $src_url &&
sudo dpkg -i $tmp_deb $args &&
{ rm -f $tmp_deb; true; } || # commands above succeeded, remove tmp file
{ rm -f $tmp_deb; false; } # commands above failed, remove tmp file anyway
}
# installing base dependencies
sudo apt-get -my install \
git \
vim \
stow \
etckeeper \
tmux \
zsh \
powerline\
htop \
mc \
curl \
aptitude \
nnn \
ack \
fzf \
ripgrep \
grc \
fd-find \
ncdu \
exa \
trash-cli \
bat \
nala \
duf \
tree \
make \
wget
read -n1 -p $'\nDoes this system need a ssh server?\n' REPLY
if [[ $REPLY == [Yy] ]]; then
sudo apt-get install openssh-server fail2ban
fi
read -n1 -p $'\nDoes this system have a GUI?\n' REPLY
if [[ $REPLY == [Yy] ]]; then
sudo apt-get install synaptic flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
fi
#This section installs software outside apt
dpkg_url https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_amd64.deb
dpkg_url https://github.com/bootandy/dust/releases/download/v1.1.1/du-dust_1.1.1-1_amd64.deb
dpkg_url https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_amd64.deb
dpkg_url https://github.com/ClementTsang/bottom/releases/download/0.10.2/bottom_0.10.2-1_amd64.deb
dpkg_url https://github.com/sharkdp/bat/releases/download/v0.24.0/bat_0.24.0_amd64.deb
dpkg_url https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb