dotfiles/ubuntu/up.sh

32 lines
850 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -v
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
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
sudo systemctl enable --now syncthing@$USER.service
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$DIR/../"
2019-05-19 21:41:17 +01:00
DIR="$DIR" $DIR/common/up.sh