Installer Transmission sur OMV5

Install transmission

sudo apt-get install transmission-cli transmission-common transmission-daemon

Configure

There are many settings which can be configured. This how-to focus on tweaking the default configuration file for use with Debian/Ubuntu server. transmission-daemon will start automatically each time you start your server, with the settings defined in /var/lib/transmission-daemon/info/settings.json

Make sure the Transmission daemon is not running when changing the config file otherwise your changes will be over written.

sudo service transmission-daemon stop
edit /var/lib/transmission-daemon/info/settings.json
sudo nano /var/lib/transmission-daemon/info/settings.json

Watch dir
"watch-dir": "/srv/dev-disk-by-label-ssd/transmission/aux_aguets",
"watch-dir-enabled": true,

Username and Password

The default web/rpc-username and password is “transmission

Change if increased security is required

Change it to whatever you want (any password will work). After next restart the password will be rewritten in SHA1 encrypted format for security reasons.

"rpc-password": "{62b16db87b89a91dd49a5110a7cafc06d20eb4f2wtK6kqPj",
"rpc-username": "transmission",

Whitelist
This must be changed for remote access. rpc-whitelist defines access to transmission. Localhost (127.0.0.1) is defined by default. I added ,192.268.*.* to allow any machine on my LAN access.

"rpc-whitelist": "127.0.0.1,192.168.*.*",

“umask” parameter
You will also have to set the “umask” parameter in Transmission’s settings file to “2” (default is 18) for the account user to have full access to files/folders created by Transmission.

"umask": 2,

Transmission Restart
After configuration change, restart transmission

sudo service transmission-daemon start

Default File Directory
Place a torrent file in this directory for automatic file download

/var/lib/transmission-daemon/downloads/

Configure Users and Permissions
It is recommended that Transmission runs under it’s own username for security reasons. This creates a few issues with file and folder access by Transmission as well as your account (let us assume it is user). Add the username user to the group debian-transmission:

sudo usermod -a -G debian-transmission user

NOTE: Change “user” to you own Ubuntu user login name.

NOTE: When adding a user to a new group, the user must log out and log back in for it to take affect. A reboot will also accomplish this.

Starting and Stopping Transmission Daemon
After install Transmission, the daemon will be started automatically (but not accessible yet). You can start and stop Transmission daemon using the following commands

sudo service transmission-daemon start
sudo service transmission-daemon stop
sudo service transmission-daemon reload

Note:Restarting (or reloading) Transmission daemon can be tricky. Restarting the the daemon (while it is already running) would rewrite the Transmission settings files to its original state. In other words, restarting the Transmission daemon would reset all the custom settings you saved.

Bash Aliases
Create shortcuts add the following bash aliases to /home/user/.bash_aliases

sudo nano /home/user/.bash_aliases
alias t-start='sudo service transmission-daemon start'
alias t-stop='sudo service transmission-daemon stop'
alias t-reload='sudo service transmission-daemon reload'
alias t-list='transmission-remote -n 'transmission:transmission' -l'
alias t-basicstats='transmission-remote -n 'transmission:transmission' -st'
alias t-fullstats='transmission-remote -n 'transmission:transmission' -si'

source /home/user/.bash_aliases

Example

user@SVR:~$ t-list

will run

transmission-remote -n 'transmission:transmission' -l

Web Interface
With your browser you can now add torrents, download and seed. You can also configure many transmission settings.

http://server-ip:9091

Port Forward

If you port says “closed” you will need to configure your internet router to forward the correct port to your Transmission server/client. Google “How to port forward”

If you don’t use “Port Forward” another option is “UPnP”. Once again this depends on you internet router setup.

Command Line Interface
With a headless server full control of Transmission requires CLI

Transmission Create
Create a torrent file with transmission CLI. Torrent files can be generated from either a single file or directories. The example below is a directory example

transmission-create -o /var/lib/transmission-daemon/downloads/files.torrent -c "My comments" -t udp://tracker.openbittorrent.com:80 -t udp://open.demonii.com:1337 -t udp://tracker.coppersurfer.tk:6969 -t udp://tracker.leechers-paradise.org:6969 ~/torrent/complete/
-o /var/lib/transmission-daemon/downloads/files.torrent

New torrent name and where to store the torrent

-c “My comments”

Any comments to be attached to the file

-t udp://tracker.openbittorrent.com:80

-t udp://open.demonii.com:1337

-t udp://tracker.coppersurfer.tk:6969

-t udp://tracker.leechers-paradise.org:6969

Trackers for the torrents, more than one tracker is recommended in case one or more goes down.

~/torrent/complete/

Directory to be made into a torrent. If a single file is required use this format “/var/lib/transmission-daemon/downloads/MyFile.txt”

For more information about “transmission-create”

transmission-create -h

Add a Torrent
To add a torrent to the daemon, use this command:

transmission-remote -a [path to file].torrent
transmission-remote -n 'transmission:transmission' -a /var/lib/transmission-daemon/downloads/files.torrent 

Torrent Information
Display information about torrent’s being downloaded

List all torrents
Note Authentication is required

transmission-remote -n 'username:password' -l
transmission-remote -n 'transmission:transmission' -l 

Basic Stats All Torrents

transmission-remote -n 'transmission:transmission' -st
transmission-remote -n 'transmission:transmission' -q

Sources :
https://tweenpath.net/installing-transmission-torrent-client-debian/
https://www.unixmen.com/transmission-daemon-setting-transmission-web-debian/

Finstere Flure

Règles en français

Se connecter à un fournisseur VPN


There are easy ways to connect to your VPN from Ubuntu. A lot of VPNs provide excellent Linux clients. Even if they don’t, you can use the Network Manager applet to set up a VPN connection. However, if you want to connect without a GUI or you want your connection to run automatically as a service for all users, those options won’t really work.

Most of the best VPN services are built on OpenVPN. OpenVPN is a free and open-source VPN server that you can actually use to set up your own VPN. There’s no need to do that, though. You only need the client part of OpenVPN.

When you install OpenVPN on Ubuntu, you also get the client. You can use the OpenVPN client to connect to any OpenVPN server, regardless of the VPN service or whether they have a GUI client or not. OpenVPN is a service, so it can run on startup on your computer, which means you don’t have to remember to start it up, and you won’t have to configure the connection separately for every user.
Install OpenVPN

Before you can connect to your VPN service, you need to install OpenVPN on Ubuntu. It’s available right in the repositories, so use apt to get that.

sudo apt install openvpn

You can also install Openvpn from your package manager, regardless of the distro you are using.
Download Your VPN Configuration

Most VPN providers have available configurations for OpenVPN. Check to see if your VPN provider supports OpenVPN (it probably does) and look around for their configuration files.

VPN Provider Downloads

They may have a page dedicated to providing them, or they might just have a big “.zip” package with all of their available configurations. Either way, you can download what you want or need. If they are individual files, they’re usually named after the server location, and they end in the “.ovpn” extension.
Copy the Configuration

Once you have your file or archive, you’ll need to place it in OpenVPN’s directory. If you need to extract the files from a zip file, do that first.

unzip openvpn.zip

Copy the file to the OpenVPN directory and rename it “openvpn.conf.”

sudo cp ~/Downloads/OpenVPN/’Northeast US.ovpn’ /etc/openvpn/openvpn.conf

Your path and file name will be different. The examples here are made up, but a lot of VPNs use a structure like the examples.
Automatic Login

It sort of defeats the purpose of having OpenVPN start automatically if you need to enter your username and password every time you connect. Thankfully, OpenVPN supports automatic login with a file.

OpenVPN Configuration

Open “/etc/openvpn/openvpn.conf” with sudo. Look for a line that contains “auth-user-pass.” It’ll probably be sitting there alone with nothing else on the line. After it, add “auth.txt” on the same line. Save the file and close it.

Create a new file in “/etc/openvpn” called “auth.txt.” On the first line of the file, place your username. Include your password on the second line. There is no need for anything else in the file. Save and close it.
Restart and Test

That’s all you need to do to connect to your VPN. Restart the OpenVPN service for the changes to take effect.

OpenVPN Service Running

sudo systemctl restart openvpn

To make sure that OpenVPN starts up every time you start your computer, enable it with systemd. It is probably already enabled, but it’s not a bad idea to double-check.

sudo systemctl enable openvpn

DNS Leak Test Result

Finally, test out your VPN connection with dnsleaktest.com. When you arrive at the site, you should see the IP address and location of your VPN. Click on the button below to run the extended test and see that no DNS information is leaking out.

Articles

J’ai enfin fini mes articles !!!

Après 42 articles, je peux enfin avoir Snapchat.

Pierres précieuses

Les pierres précieuses ont une signification très importantes et particulières. J’ai acheté un bracelet en Allemagne avec des pierres de quartz rose lors du jumelage en 6e.
Le Quartz rose permet de resserrer les liens familiaux.
L’améthyste a des propriétées apaisantes et déstressantes.
Le Lappy Lazzuly est fait pour trouver l’âme sœur.
L’agathe permet d’éloigner au maximum toutes les maladies.
Personnellement, je n’y crois pas trop mais Agathe est là professionnelle des pierres précieuses !! Elle connaît tout, si un jour vous vous posez une question sur les pierres elle saura vous répondre sans problèmes 😉

Équitation

Comme je l’ai déjà mentionné dans certains articles, je fais de l’équitation depuis maintenant 6 ans. J’adore ça, les sensations que ça procure, l’impression d’être libre et de pouvoir tout surmonté. Bref en clair j’adoooooooooooooooooooooooooooooore l’équitation.

Depuis que j’ai commencé, je suis dans le même club, je me suis fait des amies à et je me suis attachée aux chevaux. Mais depuis quelques temps je me demande si je ne voudrais pas changé de club. Mais pour le moment rien de certain. 🐴

Pandora

Pandora est une marque de bijoux, magnifiques.

Personnellement, j’ai un Pandora argenté avec pour le moment 3 charms:

  • Un fer à cheval 🍀(pour me porter chance)
  • Un C ©️(car je m’appelle Chloé)
  • Le signe du Sagittaire ♐(car je suis Sagittaire😅)

Les studios Ghibli

Les studios Ghibli ont bercé mon enfance. Avec leurs animations style manga/animés, ils sont enfantin, joyeux et dégagent des good vibes

Mon Miasaki préféré et Ponyo sur la falaise

Musique

J’adore écouter de la musique !! C’est un moment que j’adore lors de ma journée !!
Après une journée de dure labeur, je me détend dans le bus en m’enfermant dans ma bulle à l’aide de mes écouteurs ❤️
C’est un moment où je peux décompresser, déconnecter et qui est très important pour moi !

Collège

A l’école je n’aime pas les mathématiques, je n’y comprends jamais rien .
Je préfère le français même si je n’aime pas trop la professeur les cours sont très intéressants !!
J’aime également la SVT car mon papa peut m’expliquer les leçons que je n’ai pas comprise 🙃
Mais JE DÉTESTE le sport car en ce moment on fait du badminton et je ne suis vraiment pas douée 😭😂 Mais bon, j’ai quand même réussi à monter de quelque terrains dans la montante descendante et je suis plutôt fière de moi 😁