From a1987ef44615281d347b12789eecb96e05df1e24 Mon Sep 17 00:00:00 2001 From: Reznov <56686898+andwati@users.noreply.github.com> Date: Mon, 19 May 2025 21:15:30 +0300 Subject: [PATCH] Create debian.sh --- scripts/debian.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/debian.sh diff --git a/scripts/debian.sh b/scripts/debian.sh new file mode 100644 index 0000000..5f04b76 --- /dev/null +++ b/scripts/debian.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# fail on errors +set -e + +# this fixes .ssh and .gnupg directory permissions +find ~/.gnupg -type d -exec chmod 700 {} \; +find ~/.gnupg -type f -exec chmod 600 {} \; +chmod 600 ~/.ssh/* && chmod 700 ~/.ssh && chmod 644 ~/.ssh/*.pub + +sudo apt install qbittorrent git vlc + +# onedrive for linux +echo 'deb http://download.opensuse.org/repositories/home:/obs_mhogomchungu/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:obs_mhogomchungu.list +curl -fsSL https://download.opensuse.org/repositories/home:obs_mhogomchungu/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_obs_mhogomchungu.gpg > /dev/null +sudo apt update +sudo apt install media-downloader + +systemctl enable onedrive@ian.service +systemctl start onedrive@ian.service