IkeTwitter

Rtorrent + Rutorrent + lighttpd

Dec 6th, 2019 (edited)
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. Metodo de instalaçao facil de Rtorrent 0.9.8 + Rutorrent V3.10 + lighttpd Em Arch Linux By :
  2.  
  3.  
  4. Ike Santos (Update 27/01/2022)
  5.  
  6. 1: Instalar rtorrent + webserver lighttpd (Nao Root)
  7.  
  8. sudo pacman -S rtorrent wget lighttpd php php-cgi fcgi zip unzip mediainfo unrar ffmpeg tmux
  9.  
  10. 2: Download da configuraçao para o rtorrent(Nao Root)
  11.  
  12.  
  13. # wget https://cld.pt/dl/download/2d21d8b0-40ce-4f40-a622-d10ea3dfa407/rtorrent.rc.zip?download=true
  14.  
  15. Descompactar :
  16.  
  17. unzip rtorrent.rc.zip
  18.  
  19. Criar Pasta com nome Torrents no vosso {home}e alterar no rtorrent.rc o nome de {ike} pelo vosso user
  20.  
  21.  
  22. 3: Editar lighttpd.conf (root):
  23.  
  24. nano /etc/lighttpd/lighttpd.conf
  25.  
  26. Colar o seguinte :
  27.  
  28. server.modules += ( "mod_fastcgi" )
  29. server.modules += ( "mod_scgi" )
  30.  
  31. Como esta screen : http://i.imgur.com/XHnQNCP.png
  32.  
  33. 4:Colar no fim do file
  34.  
  35. scgi.server = ( "/RPC2" =>
  36. ( "127.0.0.1" =>
  37. (
  38. "host" => "127.0.0.1",
  39. "port" => 5050,
  40. "check-local" => "disable"
  41. )
  42. )
  43. )
  44. fastcgi.server = ( ".php" => ((
  45. "bin-path" => "/usr/bin/php-cgi",
  46. "socket" => "/tmp/php.socket"
  47. )))
  48.  
  49.  
  50. #Como esta screen : http://i.imgur.com/zBue3nE.png
  51. #ctrl+o para salvar e ctrl+x para sair
  52.  
  53. 5:Instalar Rutorrent 3.9 : Como (Root)
  54.  
  55. # cd /srv/http
  56.  
  57. # wget wget https://github.com/Novik/ruTorrent/archive/master.zip
  58.  
  59. # unzip master.zip
  60.  
  61. # rm master.zip
  62.  
  63. 6:Editar Porta Rutorrent (root)
  64.  
  65. nano /srv/http/ruTorrent-master/conf/config.php
  66.  
  67. Linha : 30 $scgi_port = 5050;
  68. Linha : 31 $scgi_host = "127.0.0.1";
  69.  
  70.  
  71.  
  72. #Como screen : http://i.imgur.com/UqFLYpK.png
  73.  
  74.  
  75. Mesmo file linha 60 Mudar : $tempDirectory = "/tmp/rutorrent/";
  76.  
  77. #Como screen : http://i.imgur.com/hRM8CSg.png
  78.  
  79. #ctrl+o para salvar e ctrl+x para sair
  80.  
  81. 7: Permissao ao Rutorrent: cd /srv/http (Root)
  82.  
  83. #chown -R http ruTorrent-master
  84.  
  85. #sair da pasta http
  86.  
  87. 8: Permissoes Rutorrent (Root)
  88.  
  89. chmod 777 /srv/http/ruTorrent-master/
  90.  
  91. 9: Criar Diretorias (Nao Root)
  92.  
  93. # cd /srv/http/ruTorrent-master/
  94.  
  95.  
  96. Pasta para Sessao : mkdir .session
  97.  
  98. 10 : Reiniciar Webserver e Iniciar Rtorrent (nao Root) Pede pass se necessario
  99.  
  100. #systemctl restart lighttpd
  101.  
  102. #systemctl enable lighttpd
  103.  
  104. # tmux new -s rtorrent -d rtorrent
  105.  
  106.  
  107. Rtorrent : #Iniciar o rtorrent e webserver no boot Criar app de arranque com este comando
  108.  
  109.  
  110. # tmux new -s rtorrent -d rtorrent
  111.  
  112. 11: Para finalizar vamos ao navegador e abrimos o Rutorrent
  113.  
  114. Link : http://local.ip/ruTorrent-master/
  115.  
  116.  
  117.  
  118.  
  119.  
  120. Ao Fim irao ter algo parecido com esta screen :
  121.  
  122. http://i.imgur.com/AKH7OYb.png
  123.  
  124. Tuturial feito por : Ike Santos
Add Comment
Please, Sign In to add comment