mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 17:13:41 +01:00
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
|
## Justfile (https://github.com/casey/justfile)
|
||
|
##
|
||
|
## pi1 - Orange Pi 5+
|
||
|
##
|
||
|
## Services:
|
||
|
## - qBittorrent
|
||
|
## - ProtonVPN via Wireguard
|
||
|
|
||
|
debian_codename := `grep "VERSION_CODENAME" /etc/os-release | awk -F= '{print $2}'`
|
||
|
run_user := env_var("USER")
|
||
|
|
||
|
qbt:
|
||
|
curl -1sLf 'https://dl.cloudsmith.io/public/qbittorrent-cli/qbittorrent-cli/gpg.F8756541ADDA2B7D.key' | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/qbittorrent-cli.gpg
|
||
|
sudo wget https://repos.fedorovich.com/debian/{{ debian_codename }}/qbittorrent-cli.list -O /etc/apt/sources.list.d/qbittorrent-cli.list
|
||
|
sudo apt update
|
||
|
sudo apt install -y qbittorrent-cli
|
||
|
mkdir ~/bin
|
||
|
cp -v "${PWD}/bin/qbth" ~/bin/
|
||
|
cp -v "${PWD}/bin/qbtlist" ~/bin/
|
||
|
|
||
|
install:
|
||
|
sudo apt install -y qbittorrent-nox wireguard-tools lynx parallel wget curl
|
||
|
|
||
|
enable:
|
||
|
sudo systemctl enable --now qbittorrent-nox@{{ run_user }}.service
|
||
|
|
||
|
scihub:
|
||
|
mkdir ~/scihub-torrent-urls
|
||
|
lynx -dump -nonumbers -listonly=on https://libgen.rs/repository_torrent/ | grep "\.torrent" | tee scihub-torrent-urls/urls.txt
|
||
|
cd scihub-torrent-urls && split -l 60 urls.txt torrent-
|
||
|
rm -fv scihub-torrent-urls/urls.txt
|