Rathorian
Salut,
Merci de ton aide.
Tu trouveras ci-dessous une copie des logs.
Pour info, un HDD externe Ext4 (nommé Seedbox) est raccordé par USB au pi.
pi@raspberrypi:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.1 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Fetched 40.1 kB in 1s (37.0 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
pi@raspberrypi:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libmicrodns0
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo apt install transmission-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
transmission-daemon is already the newest version (2.94-2).
The following package was automatically installed and is no longer required:
libmicrodns0
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
transmission-daemon.service: Unit transmission-daemon.service not loaded.
pi@raspberrypi:~ $ sudo mkdir -p /media/Seedbox/torrent-inprogress
pi@raspberrypi:~ $ sudo mkdir -p /media/Seedbox/torrent-complete
pi@raspberrypi:~ $ sudo chown -R pi:pi /media/Seedbox/torrent-inprogress
pi@raspberrypi:~ $ sudo chown -R pi:pi /media/Seedbox/torrent-complete
pi@raspberrypi:~ $ sudo nano /etc/transmission-daemon/settings.json
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": true,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/media/Seedbox/torrent_complete",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/media/Seedbox/torrent-inprogress",
"incomplete-dir-enabled": true,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"prefetch-enabled": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": true,
"rpc-password": "XXXX",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "pi",
"rpc-whitelist": "192.168.*.*",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true
pi@raspberrypi:~ $ sudo nano /etc/init.d/transmission-daemon
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: transmission-daemon
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the transmission-daemon.
# Description: Enable service provided by transmission-daemon.
### END INIT INFO
NAME=transmission-daemon
DAEMON=/usr/bin/$NAME
USER=pi
STOP_TIMEOUT=30
export PATH="${PATH:+$PATH:}/sbin"
[ -x $DAEMON ] || exit 0
[ -e /etc/default/$NAME ] && . /etc/default/$NAME
. /lib/lsb/init-functions
start_daemon () {
if [ $ENABLE_DAEMON != 1 ]; then
log_progress_msg "(disabled)"
log_end_msg 255 || true
else
start-stop-daemon --start \
--chuid $USER \
$START_STOP_OPTIONS \
--exec $DAEMON -- $OPTIONS || log_end_msg $?
log_end_msg 0
fi
}
case "$1" in
start)
log_daemon_msg "Starting bittorrent daemon" "$NAME"
start_daemon
;;
stop)
log_daemon_msg "Stopping bittorrent daemon" "$NAME"
start-stop-daemon --stop --quiet \
--exec $DAEMON --retry $STOP_TIMEOUT \
--oknodo || log_end_msg $?
log_end_msg 0
;;
reload)
log_daemon_msg "Reloading bittorrent daemon" "$NAME"
start-stop-daemon --stop --quiet \
--exec $DAEMON \
--oknodo --signal 1 || log_end_msg $?
log_end_msg 0
;;
restart|force-reload)
log_daemon_msg "Restarting bittorrent daemon" "$NAME"
start-stop-daemon --stop --quiet \
--exec $DAEMON --retry $STOP_TIMEOUT \
--oknodo || log_end_msg $?
start_daemon
;;
status)
status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
;;
*)
log_action_msg "Usage: /etc/init.d/$NAME {start|stop|reload|force-reloa$
exit 2
esac
exit 0
pi@raspberrypi:~ $ sudo nano /etc/systemd/system/multi-user.target.wants/transmission-daemon.service
4. Within this file, we need to go ahead and change the “User=” line so
that it points to the “pi” user instead.[Unit] Description=Transmission
BitTorrent Daemon After=network.target
[Service] User=pi Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error ExecStop=/bin/kill
-s STOP $MAINPID ExecReload=/bin/kill -s HUP $MAINPID user=pi [Install]
WantedBy=multi-user.target Once done, we need to save and quit by
pressing Ctrl + X then pressing Y and then ENTER. 5. Now we need to tell
the service manager to reload all service configuration files by running
the following command. Otherwise, systemctl will try to use the older
version of the service file. sudo systemctl daemon-reload 6. As we have
changed the user from “debian-transmission” to “pi” we will need to go
ahead and take ownership of the “/etc/transmission-daemon” folder. We
can do this by running the following command. sudo chown -R pi:pi
/etc/transmission-daemon 7. Next, we need to create a directory where
the transmission-daemon will access the “setting.json” file. We also to
need to create a symbolic link back to the settings file that we edited
earlier on in the tutorial. The file will exist in both directories
thanks to the symbolic link. sudo mkdir -p
/home/pi/.config/transmission-daemon/ sudo ln -s
/etc/transmission-daemon/settings.json
/home/pi/.config/transmission-daemon/ sudo chown -R pi:pi
/home/pi/.config/transmission-daemon/ 8. Now that we have finally
configured everything correctly, we can go ahead and start back up the
Transmission daemon service on our Raspberry Pi. To start up the
service, you need to run the following command. sudo systemctl start
transmission-daemon Accessing Transmission’s Web Interface 1. We can
finally check out Transmissions web interface by going to the Raspberry
Pi’s IP address followed by the port “:9091“. If you don’t know what
your Pi’s local IP address is, you can retrieve it by using the command
“hostname -I” on your Raspberry Pi. Replace “<IPADDRESS>” in the URL
below with your Pi’s local IP address to go to Transmission’s web
interface. http://<IPADDRESS>:9091 2. Before you can proceed to the
Transmission web interface, you will be first asked to enter the
username and password that you set earlier on in this guide. Within the
web interface, you can add and remove torrents, change settings, set
schedules, and much more. Transmission Web App There are other Torrent
clients that you might want to investigate installing if you decide you
do not like Transmission. The range is pretty limited for the Raspberry
Pi but be sure to check them out. At this point you should now have
successfully setup the Transmission torrent client on the Raspberry Pi.
If you run into any issues, feel free to drop a comment below. Setting
the Screen Resolution of your Raspberry Pi Raspberry Pi ScratchGetting
Started with Scratch on the Raspberry Pi SMD ResistorsThe Basics to an
SMD Resistor Raspberry Pi Home Assistant ThumbnailSetting up Home
Assistant on the Raspberry Pi Raspberry Pi AlexaRaspberry Pi Alexa:
Build your own Amazon Echo Raspberry Pi WiFi BridgeEasy Raspberry Pi
WiFi Bridge Get tutorials delivered to your inbox weekly. 4 Comments
stefano on April 29, 2020 at 11:14 pm many thanks i was becoming
crazy with other incomplete tutorial, this work fine.
Michael on January 14, 2020 at 9:35 am It’s worth noting that mounted
drives must be formatted with a linux fs otherwise chown wont work.
Steve on September 16, 2019 at 11:11 pm Thanks for a complete write-up
that addresses permission issues that I’ve spent countless hours trying
to resolve. Did a clean install using these steps and it works
flawlessly. Would also like instructions on installing transgui but it
should be easy to do on my own. AnecronoxA on September 8, 2019 at 5:09
am I am eternally grateful for this guide, as it is correctly assigning
permissions which is missed in many how-tos. Leave a Reply Your email
address will not be published. Required fields are marked * Name * Email
* Notify me of follow-up comments by email. Go Ad-Free Sidebar Trending
Raspberry Pi MicrophoneUsing a Microphone with a Raspberry Pi Raspberry
Pi Mathematica ThumbnailInstalling Mathematica on the Raspberry Pi
Raspberry Pi Flint OSRaspberry Pi Flint OS: Powered By Chrom
pi@raspberrypi:~ $ sudo systemctl daemon-reload
pi@raspberrypi:~ $ sudo chown -R pi:pi /etc/transmission-daemon
pi@raspberrypi:~ $ sudo mkdir -p /home/pi/.config/transmission-daemon/
pi@raspberrypi:~ $ sudo ln -s /etc/transmission-daemon/settings.json /home/pi/.config/transmission-daemon/
ln: failed to create symbolic link '/home/pi/.config/transmission-daemon/settings.json': File exists
pi@raspberrypi:~ $ sudo chown -R pi:pi /home/pi/.config/transmission-daemon/
pi@raspberrypi:~ $ sudo systemctl start transmission-daemon
Failed to start transmission-daemon.service: Unit transmission-daemon.service failed to load properly: Bad message.
See system logs and 'systemctl status transmission-daemon.service' for details.