#!/bin/sh
# https://www.gnu.org/licenses/gpl-3.0.txt

echo -e "\nFree space before installation:\n"
df -h /

sudo apt update && sudo apt upgrade -y || exit
sudo apt install wget curl curlftpfs clementine docker.io docker-compose flatpak git gnome-software-plugin-flatpak gparted htop keepassxc lftp maven neofetch notepadqq openjdk-11-jdk rhythmbox syncthing libappindicator1 libxss-dev python-is-python3 remmina sshpass virtualbox x11vnc filelight ncdu libreoffice k4dirstat gnome-tweaks keepassxc keepass2-plugin-keepasshttp kbreakout guvcview grsync gnome-calendar gnome-clocks gnome-contacts cheese digikam gimp software-properties-common git-gui gitweb gpart ffmpeg freerdp2-x11 remmina-plugin-exec remmina-plugin-kwallet remmina-plugin-www gimp-help-en gimp-data-extras gnome-video-effects-extra imagemagick libreoffice-lightproof-hu libreoffice-lightproof-en openclipart-libreoffice htop gcc make perl -y || exit

sudo apt autoremove -y || exit

sudo apt clean || exit

curl -Sso /tmp/viber.deb https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb || exit
sudo dpkg -i /tmp/viber.deb || exit
rm /tmp/viber.deb || exit

sudo addgroup docker
sudo adduser $(whoami) docker
echo "Reboot to use docker as" $(whoami)

#sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo || exit
#sudo flatpak install -y flathub org.kde.Platform/x86_64/5.15 || exit
#sudo flatpak install -y flathub com.toggl.TogglDesktop || exit

echo -e "\nFree space after installation:\n"
df -h /

