hacks/bionic-defaults/setup.sh

64 lines
1.6 KiB
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
2018-10-10 10:49:27 +00:00
golang-go
2018-10-02 07:26:31 +00:00
iptables-persistent
2018-10-02 05:47:10 +00:00
iptraf-ng
jq
less
lsof
2018-10-02 07:26:31 +00:00
mosh
2018-10-10 15:41:29 +00:00
ntp
2018-10-02 07:26:31 +00:00
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/*
2018-10-02 21:16:32 +00:00
# install ipget v0.3.0 amd64:
# sneak@nostromo-2:~$ ipfs name resolve /ipns/dist.ipfs.io/ipget/v0.3.0/ipget_v0.3.0_linux-amd64.tar.gz
# /ipfs/QmUDECZXueqXdcBEu3SLf8J19QfubhksdrDZeh1exCVMDz/ipget/v0.3.0/ipget_v0.3.0_linux-amd64.tar.gz
# sneak@nostromo-2:~$ ipfs resolve /ipfs/QmUDECZXueqXdcBEu3SLf8J19QfubhksdrDZeh1exCVMDz/ipget/v0.3.0/ipget_v0.3.0_linux-amd64.tar.gz
# /ipfs/QmQcKL42JqZtWKjbcCys27iaAKybRcchSFWaD9sF8LEUKL
HASH="QmQcKL42JqZtWKjbcCys27iaAKybRcchSFWaD9sF8LEUKL"
if [[ "$(arch)" = "x86_64" ]]; then
if [[ ! -x /usr/local/bin/ipget ]]; then
curl -f https://cloudflare-ipfs.com/ipfs/$HASH > /tmp/ipget_v0.3.0_linux.amd64.tar.gz && \
cd /tmp && \
tar zxvf ./ipget_v0.3.0_linux.amd64.tar.gz && \
mv ipget/ipget /usr/local/bin/ipget && \
chmod +x /usr/local/bin/ipget
fi
fi