hacks/bionic-defaults/setup.sh

46 lines
799 B
Bash
Raw Normal View History

2018-10-02 05:47:10 +00:00
#!/bin/bash
apt update
apt -y install lsb-release
PKGS="
apt-transport-https
2018-10-02 07:26:31 +00:00
bash-completion
build-essential
2018-10-02 05:47:10 +00:00
byobu
command-not-found
cryptsetup-bin
2018-10-02 07:26:31 +00:00
daemontools
iptables-persistent
2018-10-02 05:47:10 +00:00
iptraf-ng
jq
less
lsof
2018-10-02 07:26:31 +00:00
mosh
pbzip2
pv
2018-10-02 05:47:10 +00:00
runit
runit-systemd
2018-10-02 07:26:31 +00:00
socat
2018-10-02 05:47:10 +00:00
vim
wget
zfs-auto-snapshot
2018-10-02 07:26:31 +00:00
zfsutils-linux
2018-10-02 05:47:10 +00:00
"
MRUM="main restricted universe multiverse"
URL="mirror://mirrors.ubuntu.com/mirrors.txt"
cat > /etc/apt/sources.list <<__EOF__
deb $URL $(lsb_release -cs) $MRUM
deb $URL $(lsb_release -cs)-updates $MRUM
deb $URL $(lsb_release -cs)-backports $MRUM
deb $URL $(lsb_release -cs)-security $MRUM
__EOF__
export DEBIAN_FRONTEND=noninteractive
apt update
apt -y install $PKGS
rm -rf /var/lib/apt/lists/*