Bonjour

Pour mon expérience personnelle et aussi pour pouvoir partager des fichiers autres que en ddl avec mes amis, j'aimerais essayer d'installer un "mini tracker" sur mon dedie.

J'ai un kimsufi KS-2 sous debian wheezy avec d'installer dessus une seedbox.

Voilà mes questions :

- Comment faire ce "mini tracker" ?
- Comment récupérer facilement l'url d'announce

Etant un "noob" pour tout ce qui est serveur, j'aimerais si possible qu'on m'explique pas à pas comment faire si ça ne vous dérange pas. Bon déjà j'arrive à me connecter en ssh, à muxer avec mkvmerge et à change d'utilisateur avec la commande su, c'est pas mal non ?

Merci d'avance pour l'aide que vous pourrez me fournir

Edit : Je précise bien que je ne veux pas d'interface web, si il n'y a qu'un seeder et que c'est moi, c'est pas grave puisque le fichier sera hébergé sur mon serveur.
Bonsoir Will,

Perso, c'est bittorrent que j'utilise pour rapatrier les fichiers sur mon dédié vers mon pc, celui-ci est sans interface, juste une adresse announce pour partager ses fichiers sur son tracker torrent :

Un petit tuto rapide :
apt-get install bittorrent
puis, un petit script pour que celui-co soit lancé à chaque boot :
nano /etc/init.d/tracker_torrent.sh
placer le contenu suivant à l'intérieur :
# ! /bin/sh
# /etc/init.d/tracker_torrent.sh
# Script de lancement d'un tracker torrent
bttrack --port 6969 --dfile dstate  --logfile /tmp/log_tracker.log
echo "Démon du Tracker Torrent lancé"
la commande suivante pour le rendre éxectuable :
chmod +x /etc/init.d/tracker_torrent.sh
enfin, la commande pour l'exécuter à chaque boot :
update-rc.d tracker_torrent.sh start 90 S
une fois lancé, tu dois aller a :

http://ipadressdudédié:6969 pour avoir une page d'information seulement du tracker :

l'adresse announce du tracker est la même sauf avec announce à la fin comme celle-ci :

http://ipadressdudédié:6969/announce, et c'est ok,

si tu n'as pas compris une étape, dis le moi

source : http://juju.and.co.free.fr/linux/Tutorial/torrent.htm
Bonjour, merci de ta réponse, je vais tester ça de suite
Bon alors, j'ai fais les étapes une par une y compris mettre les fichiers (si tu pouvais vérifier) mais je n'arrive pas à accéder à la page http://ipadressdudédié:6969

ta essayé de lancer le script en ligne de commande pour voir?
tu tapes ca :
/etc/init.d/tracker_torrent.sh
dans un terminal, ça devrait marcher normalement.
Salut, je c'est pas mais moi il me dit ça :
BitTorrent download info

tracker version: 3.4.2
server time: 2014-08-16 20:53 UTC
not tracking any files yet...
j'ai tenté de me dl des torrents mais il se mette en rouge direct ^^
salut,

peux-tu essayer de taper la commande suivante dans un terminal, et me dire, ce que celle-ci te donne, et si tu accèdes a l’adresse indiquée plus haut.
bttrack --port 6969 --dfile dstate  --logfile /tmp/log_tracker.log
heu, bah heu, je sais pas trop, elle me donne rien

C'est bon réussi, quelques petits truc à la con qui ont fait que ça ne fonctionnais pas. Merci à Actually de m'avoir aider
4 mois plus tard
Génial, c'est juste ce que je cherchais !

Quand je lance le démon, j'ai un avertissement par contre :
/usr/lib/pymodules/python2.6/BitTorrent/track.py:17: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import sha]
Du coup, il ne se lance pas correctement ; Le shell garde la commande active, si je le ferme, le tracker ne fonctionne plus.

Une idée ?
13 jours plus tard
Bonjour,

Je viens mettre mon grain de sel

J'avais trouvé ce tuto mais j ai jamais réussi à la faire fonctionner

Quand je lance
update-rc.d tracker_torrent.sh start 90 S
ca me mets (de ce que j'ai compris c est pas méchant):
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'tracker_torrent.sh' missing LSB tags and overrides
Par contre, quand je lance /etc/init.d/tracker_torrent.sh ca ne fait rien, j'ai juste un retour a la ligne sans même un curseur.Comme si c'etait bloqué

Si je fais un ctrl+c j'ai ca :
^CTraceback (most recent call last):
File "/usr/lib/pymodules/python2.7/BitTorrent/RawServer.py", line 214, in listen_forever
events = self.poll.poll(period * timemult)
KeyboardInterrupt
Démon du Tracker Torrent lancé
on dirait qu'il tourne mais bon :
ps -ef |grep tracker_torrent.sh
root 6268 5497 0 17:13 pts/0 00:00:00 grep tracker_torrent.sh
Auriez vous une idée ?

Merci
djinlemage wrote:Bonjour,

Je viens mettre mon grain de sel

J'avais trouvé ce tuto mais j ai jamais réussi à la faire fonctionner

Quand je lance
update-rc.d tracker_torrent.sh start 90 S
ca me mets (de ce que j'ai compris c est pas méchant):
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'tracker_torrent.sh' missing LSB tags and overrides
Par contre, quand je lance /etc/init.d/tracker_torrent.sh ca ne fait rien, j'ai juste un retour a la ligne sans même un curseur.Comme si c'etait bloqué

Si je fais un ctrl+c j'ai ca :
^CTraceback (most recent call last):
File "/usr/lib/pymodules/python2.7/BitTorrent/RawServer.py", line 214, in listen_forever
events = self.poll.poll(period * timemult)
KeyboardInterrupt
Démon du Tracker Torrent lancé
on dirait qu'il tourne mais bon :
ps -ef |grep tracker_torrent.sh
root 6268 5497 0 17:13 pts/0 00:00:00 grep tracker_torrent.sh
Auriez vous une idée ?

Merci
Quand tu lances ta commande ajoute juste un & à la fin de celle-ci. Et tu devrais avoir un truc du genre [1] Un nombre.
Essaye à nouveau.
ps -ef |grep tracker_torrent.sh
root 6268 5497 0 17:13 pts/0 00:00:00 grep tracker_torrent.sh
Effectivement, ton grep fonctionne, mais à première vu ton script ne tourne pas
Salut

Alors déjà merci de ton aide !

En effet avec un & derrière ca passe mieux mais pourquoi ?
root@seedboxdjin:~# /etc/init.d/tracker_torrent.sh &
[1] 3664
root@seedboxdjin:~# ps -ef |grep tracker_torrent.sh
root      4354  4275  0 01:21 pts/0    00:00:00 grep tracker_torrent.s
Et après, en suivant le tuto, pour creer le torrent on doit passer cette commande :
btmakemetafile http://nom_DNS_du_tracker:6969/announce emplacement_du_fichier/repertoire_source

Pour moi je mets tester le partage du fichier de log :
btmakemetafile http://@ip:6969/announce /tmp/log_tracker.log
J'ai ca :
Traceback (most recent call last):
  File "/usr/bin/btmakemetafile", line 152, in <module>
    comment = config['comment'], target = config['target'])
  File "/usr/bin/btmakemetafile", line 43, in make_meta_file
    info = makeinfo(file, piece_length, flag, progress, progress_percent)
  File "/usr/bin/btmakemetafile", line 105, in makeinfo
    size = getsize(file)
  File "/usr/lib/python2.7/genericpath.py", line 49, in getsize
    return os.stat(filename).st_size
OSError: [Errno 2] No such file or directory: '/tmp/http:/@ip:6969/announce''
La j'en perds mon latin !!!

J'ai mal compris la procédure ?

Merci
djinlemage wrote:Salut

Alors déjà merci de ton aide !

En effet avec un & derrière ca passe mieux mais pourquoi ?
root@seedboxdjin:~# /etc/init.d/tracker_torrent.sh &
[1] 3664
root@seedboxdjin:~# ps -ef |grep tracker_torrent.sh
root      4354  4275  0 01:21 pts/0    00:00:00 grep tracker_torrent.s
Le & ou "et commercial" te permet de lancer une commande en arrière plan. En contrepartie il te communique un numéro de Job et le PID qui lui es attribué.

Ton PS ne te dis pas que le script tourne, il te dis juste que ta commande grep tourne, grosomodo pour pas trop rentrer dans la théorie, dès que tu lances une commande sur ton shell le système créé un processus.

Grosomodo
root@seedboxdjin:~# ps -ef |grep tracker_torrent.sh #Ta commande pour lister les proccesus comportant "tracker_torrent.sh
root@seedboxdjin:~# ps -ef |grep tracker_torrent.sh
root      4354  4275  0 01:21 pts/0    00:00:00 grep tracker_torrent.sh #La tu vois juste le processus de ta commande grep qui tourne
Donc, ton script sh ne fonctionne pas enfin il c'est arrêté.

Tu peux faire un ls -al dans le répertoire ou se trouve ton script et donner la sortie de celui-ci ici ?

De plus je suis curieux de voir à quoi ressemble ton tracker_torrent.sh.

En vu de ton message d'erreur, tu dois avoir un problème de configuration quelque part, grosomodo le message d'erreur te dit que le chemin absolut suivant :
'/tmp/http:/@ip:6969/announce'' n'existe pas. Ce qui est logique car c'est pas censé être un chemin de File System mais une addresse url
salut

voila le ls -al
root@seedboxdjin:/etc/init.d# ls -al
total 312
drwxr-xr-x  2 root root 4096 Dec 23 17:04 .
drwxr-xr-x 79 root root 4096 Dec 23 17:04 ..
-rw-r--r--  1 root root 1685 Dec 26 00:52 .depend.boot
-rw-r--r--  1 root root  818 Dec 26 00:52 .depend.start
-rw-r--r--  1 root root  794 Dec 26 00:52 .depend.stop
-rw-r--r--  1 root root 2427 Oct 15  2012 README
-rwxr-xr-x  1 root root 2227 Apr 15  2013 acpid
-rwxr-xr-x  1 root root 1071 Jun 25  2011 atd
-rwxr-xr-x  1 root root 1276 Oct 15  2012 bootlogs
-rwxr-xr-x  1 root root 1281 Jul 14  2013 bootmisc.sh
-rwxr-xr-x  1 root root 3816 Jul 14  2013 checkfs.sh
-rwxr-xr-x  1 root root 1099 Jul 14  2013 checkroot-bootclean.sh
-rwxr-xr-x  1 root root 9673 Jul 14  2013 checkroot.sh
-rwxr-xr-x  1 root root 1379 Dec  9  2011 console-setup
-rwxr-xr-x  1 root root 3033 Jul  3  2012 cron
-rwxr-xr-x  1 root root 2813 Nov 24 14:54 dbus
-rwxr-xr-x  1 root root 2855 Dec 23 14:38 djin-rtorrent
-rwxr-xr-x  1 root root 6435 Jul 20 19:16 exim4
-rwxr-xr-x  1 root root 6307 Jun 25  2014 fail2ban
-rwxr-xr-x  1 root root 1329 Oct 15  2012 halt
-rwxr-xr-x  1 root root 1423 Oct 15  2012 hostname.sh
-rwxr-xr-x  1 root root 3880 Dec 11  2012 hwclock.sh
-rwxr-xr-x  1 root root 7592 Apr 28  2012 kbd
-rwxr-xr-x  1 root root 1591 Oct  1  2012 keyboard-setup
-rwxr-xr-x  1 root root 1293 Oct 15  2012 killprocs
-rwxr-xr-x  1 root root 1990 May 20  2012 kmod
-rwxr-xr-x  1 root root  995 Oct 15  2012 motd
-rwxr-xr-x  1 root root  670 Feb 24  2013 mountall-bootclean.sh
-rwxr-xr-x  1 root root 2128 Feb 24  2013 mountall.sh
-rwxr-xr-x  1 root root 1508 Jul 14  2013 mountdevsubfs.sh
-rwxr-xr-x  1 root root 1413 Jul 14  2013 mountkernfs.sh
-rwxr-xr-x  1 root root  678 Feb 24  2013 mountnfs-bootclean.sh
-rwxr-xr-x  1 root root 2440 Oct 15  2012 mountnfs.sh
-rwxr-xr-x  1 root root 5843 Jul 28  2010 mpt-statusd
-rwxr-xr-x  1 root root 1731 Jul 14  2013 mtab.sh
-rwxr-xr-x  1 root root 4322 Mar 14  2013 networking
-rwxr-xr-x  1 root root 6491 May 11  2013 nfs-common
-rwxr-xr-x  1 root root 3668 Sep 16 16:06 nginx
-rwxr-xr-x  1 root root 1814 Dec 20 18:29 ntp
-rwxr-xr-x  1 root root 4483 Dec 19 20:32 php5-fpm
-rwxr-xr-x  1 root root 1346 May 20  2012 procps
-rwxr-xr-x  1 root root 6120 Oct 15  2012 rc
-rwxr-xr-x  1 root root  782 Oct 15  2012 rc.local
-rwxr-xr-x  1 root root  117 Oct 15  2012 rcS
-rwxr-xr-x  1 root root  639 Oct 15  2012 reboot
-rwxr-xr-x  1 root root 1074 Jul 14  2013 rmnologin
-rwxr-xr-x  1 root root 2344 Jun 15  2012 rpcbind
-rwxr-xr-x  1 root root 4395 Oct  4  2011 rsync
-rwxr-xr-x  1 root root 3054 Oct  7 23:31 rsyslog
-rwxr-xr-x  1 root root 1163 Sep 16  2012 screen-cleanup
-rwxr-xr-x  1 root root 3200 Oct 15  2012 sendsigs
-rwxr-xr-x  1 root root  590 Oct 15  2012 single
-rw-r--r--  1 root root 4290 Oct 15  2012 skeleton
-rwxr-xr-x  1 root root 3881 Jun 28 15:22 ssh
-rwxr-xr-x  1 root root 2849 Dec 23 14:39 tom-rtorrent
-rwxr-xr-x  1 root root  195 Dec 23 17:04 tracker_torrent.sh
-rwxr-xr-x  1 root root 8827 Nov  9  2012 udev
-rwxr-xr-x  1 root root 1179 Aug 19  2012 udev-mtab
-rwxr-xr-x  1 root root 2721 Apr 10  2013 umountfs
-rwxr-xr-x  1 root root 2195 Apr 10  2013 umountnfs.sh
-rwxr-xr-x  1 root root 1122 Oct 15  2012 umountroot
-rwxr-xr-x  1 root root 3111 Oct 15  2012 urandom
-rwxr-xr-x  1 root root 2321 Jan  8  2012 vsftpd
-rwxr-xr-x  1 root root 2666 Mar  2  2012 x11-common
et voici le fichier tracker_torrent.sh
# ! /bin/sh
# /etc/init.d/tracker_torrent.sh
# Script de lancement d'un tracker torrent
bttrack --port 6969 --dfile dstate  --logfile /tmp/log_tracker.log
echo "Démon du Tracker Torrent lancé"
Merci