2017-12-03 09:51:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -v
|
|
|
|
|
2019-05-23 13:27:43 +01:00
|
|
|
sudo apt update
|
|
|
|
sudo apt -y upgrade
|
2019-05-24 11:08:02 +01:00
|
|
|
sudo apt -y --fix-missing install apt-file aptitude aria2 atop cmake curl git glances gnupg2 keepass2 mercurial pv python-dev python-pip python3-pip ruby-dev tmux vim whois zsh dirmngr syncthing net-tools coreutils xclip wget scdaemon flatpak gnome-software-plugin-flatpak
|
|
|
|
|
|
|
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
2019-05-23 15:08:39 +01:00
|
|
|
|
|
|
|
# gsconnect
|
|
|
|
sudo ufw allow 1714:1764/udp
|
|
|
|
sudo ufw allow 1714:1764/tcp
|
|
|
|
sudo ufw reload
|
2017-12-03 09:51:58 +00:00
|
|
|
|
|
|
|
if [[ -z $USER ]]; then
|
|
|
|
USER=`whoami`
|
|
|
|
fi
|
|
|
|
|
|
|
|
sudo usermod -aG docker $USER
|
|
|
|
|
|
|
|
if [[ -z $NO_SYSTEMCTL ]]; then
|
|
|
|
sudo systemctl enable docker
|
|
|
|
sudo systemctl restart docker
|
2019-05-19 20:40:19 +01:00
|
|
|
sudo systemctl enable --now syncthing@$USER.service
|
2017-12-03 09:51:58 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
DIR="$DIR/../"
|
2019-05-19 21:41:17 +01:00
|
|
|
DIR="$DIR" $DIR/common/up.sh
|