Aller au contenu

Seedbox

Testé sur ubuntu 20.04 LTS.

Installer la distribution linux

  1. Installer une machine virtuelle ubuntu,debian (Dans ce tuto : ubuntu server 20.04).
  2. Une fois installé :
apt update && apt full-upgrade -y && apt autoremove -y

Installer qbittorrent

  1. Ajouter le PPA Qbittorrent :
add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable
apt update 
apt install -y qbittorrent-nox
  1. Lancer Qbittorrent comme un service
nano /etc/systemd/system/qbittorrent-nox.service

Ajouter le texte suivant dans le fichier précédment ouvert :

[Unit]
Description=qBittorrent client
After=network.target

[Service]
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8080
Restart=always

[Install]
WantedBy=multi-user.target

Changer le port en remplaçant 8080 : --webui-port=9090

  1. Démarrer le service
service qbittorrent-nox start
  1. Vérifier que le service fonctionne
service qbittorrent-nox status
  1. Activer le démarrage du service au démarrage du système
systemctl enable qbittorrent-nox

Qbittorrent est accessible par défault sur le port http://<ip_address>:8080.

Login : admin

password : adminadmin

Installer proton-vpn-cli

  1. Ajouter les dépendances du programmes
apt install -y openvpn dialog python3-pip python3-setuptools
  1. Installer proton-vpn
pip3 install protonvpn-cli
  1. Configurer proton-vpn
protonvpn init

Saisir les identifiants open-vpn présent sur votre compte protonvpn.

  1. Activer le kill switch
protonvpn configure

Taper : 5.

The Kill Switch will block all network traffic
if the VPN connection drops unexpectedly.

Please note that the Kill Switch assumes only one network interface being active.

1) Enable Kill Switch (Block access to/from LAN)
2) Enable Kill Switch (Allow access to/from LAN)
3) Disable Kill Switch

Choisir 1 ou 2 en fonction de vos besoins.

  1. Se connecter
protonvpn c --p2p

Installation de samba server

  1. Installer le paquet
apt install samba -y
  1. Activer le service au démarrage du système
systemctl enable smbd
  1. Vérifier que le service soit fonctionnel
systemctl status smbd
  1. Créer votre dossier partagé
mkdir votre_dossier
  1. Créer un utilisateur smb
(useradd <username>)
smbpasswd -a <username>
  1. Création du partage
nano /etc/samba/smb.conf

Ajouter ces lignes à la fin du fichier

[votre_dossier]
path = /chemin/votre_dossier
read only = no
valid users = <username>
  1. Rédémarrer le service
systemctl restart smbd

Sources

https://lindevs.com/install-qbittorrent-nox-on-ubuntu/

https://github.com/Rafficer/linux-cli-community

https://bytexd.com/how-to-setup-samba-server-in-ubuntu/