Difference between revisions of "Talk:RTorrent"

From ArchWiki
Jump to: navigation, search
(network.http.ssl_verify_peer.set=0)
(Improve Systemd services using tmux section: new section)
 
(21 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== Thanks ==
+
== network.http.ssl_verify_peer.set=0 ==
 +
It seems to me "set network.http.ssl_verify_peer.set=0 " would open the door for man-in-the-middle attacks[[User:Rwd|Rwd]].
 +
 
 +
 
 +
== rtorrent with dtach as service? ==
 +
There are 3 service files so far, with tmux and screen. But can it be done with dtach? /usr/bin/dtach -n /home/dustball/.dtach/rtorrent /usr/bin/rtorrent doesn't seem to cut it. [[User:Dustball|Dustball]]
 +
 
 +
(moved my solution to the page proper)[[User:Sanjeev K Sharma|Sanjeev K Sharma]] ([[User talk:Sanjeev K Sharma|talk]]) 13:32, 11 July 2015 (UTC)
 +
 
 +
I  could not figure oun a way to go even more minimalist - start rtorrent "bare", just with systemd's sockets like so:
 +
 
 +
ExecStart=-/home/sam/bin/rtr_new -n -o import=/home/sam/.config/rtorrent/new_.rc
 +
 
 +
 
 +
and if I need the interactivity, take over the sockets later like this:
 +
 
 +
reptyr -T `pgrep -fn rtr_new_ `
  
I would like to thank the people that corrected my spelling and grammar mistakes. Also, I know some of the commands in the wiki are noobish but it helps beginners learn new things(like the nano commands for example and pacman -Sy for updates). [[User:Azimuth|Azimuth]]
+
https://github.com/nelhage/reptyr
  
== network.http.ssl_verify_peer.set=0 ==
+
(it's in one of the Arch repositories)
It seems to me "set network.http.ssl_verify_peer.set=0 " would open the door for man-in-the-middle attacks[[User:Rwd|Rwd]].
+
 
 +
Reptyr's man page says it does not work with rtorrent but I find reptyr can successfully steal from dtach once.  After that a 2nd reptyr won't steal rtorrent from the 1st reptyr.  Sometimes it seems to work for a few seconds then rtorrent just goes away.
 +
 
 +
also I can do this repeatedly (separate terminals) - neercs steals from reptyr, reptyr from neercs and repeat as many times as you like;
 +
 
 +
<pre>neercs -P `pgrep -fn rtr_new_` &
 +
 
 +
reptyr  `pgrep -fn rtr_new_ `</pre>
 +
 
 +
and rtorrent keeps running fine
 +
https://aur.archlinux.org/packages/neercs-git/
 +
 
 +
so the problem's not with reptyr per se
 +
 
 +
== why don't we just assume for simplicity that there is only one session? ==
 +
 
 +
My intent was to answer more questions in minimal space by extending the examples to more use cases (--user, multiple instances per user). [[User:Sanjeev K Sharma|Sanjeev K Sharma]] ([[User talk:Sanjeev K Sharma|talk]]) 13:26, 11 July 2015 (UTC)
 +
 
 +
== Creating multiple rtorrent sessions this way is far from perfect ==
 +
 
 +
perhaps a separate section is needed?
 +
 
 +
last time I lurked on rtorrent discussions this question came up regularly.
 +
 
 +
I'd like to have another way to do multiple sessions, preferably  integrated with systemd [[User:Sanjeev K Sharma|Sanjeev K Sharma]] ([[User talk:Sanjeev K Sharma|talk]]) 14:07, 11 July 2015 (UTC)
 +
 
 +
== This page use deprecated commands ==
 +
 
 +
https://github.com/rakshasa/rtorrent/wiki/rTorrent-0.9-Comprehensive-Command-list-(WIP)
 +
 
 +
And example config from {{Pkg|rtorrent}} too.
 +
 
 +
--[[User:Althathwe|Althathwe]] ([[User talk:Althathwe|talk]]) 17:13, 2 August 2016 (UTC)
 +
 
 +
:I replaced the commands with the new syntax equivalents.  
 +
 
 +
:[[User:Nicolahinssen|Nicola Hinssen]] ([[User talk:Nicolahinssen|talk]]) 00:26, 20 January 2018 (UTC)
 +
 
 +
== Improve Systemd services using tmux section ==
 +
 
 +
It's not possible to start any command with tmux if the user is a daemon / service account (that has /usrb/bin/nologin or /sbin/nologin as a shell that can be changed for extra security for SFTP user for example), even if /sbin/nologin is added to /etc/shells.
 +
 
 +
The only post talking of that on internet I found is this reddit thread https://www.reddit.com/r/linuxadmin/comments/7am99j/systemd_service_unit_file_uses_the_users_login/.
 +
 
 +
Also for ''With tmux running as user rtorrent (restart rtorrent if crashed)'' should we add '''ReamainAfterExit=yes''' because tmux is detached? And also should we change '''sendkeys -t rtorrent''' into '''sendkeys -t rtorrent:rtorrent''' in order to target the right window if there is several windows inside the session?
 +
 
 +
[[User:Noraj|Noraj]] ([[User talk:Noraj|talk]]) 18:18, 4 February 2018 (UTC)

Latest revision as of 18:18, 4 February 2018

network.http.ssl_verify_peer.set=0

It seems to me "set network.http.ssl_verify_peer.set=0 " would open the door for man-in-the-middle attacksRwd.


rtorrent with dtach as service?

There are 3 service files so far, with tmux and screen. But can it be done with dtach? /usr/bin/dtach -n /home/dustball/.dtach/rtorrent /usr/bin/rtorrent doesn't seem to cut it. Dustball

(moved my solution to the page proper)Sanjeev K Sharma (talk) 13:32, 11 July 2015 (UTC)

I could not figure oun a way to go even more minimalist - start rtorrent "bare", just with systemd's sockets like so:

ExecStart=-/home/sam/bin/rtr_new -n -o import=/home/sam/.config/rtorrent/new_.rc


and if I need the interactivity, take over the sockets later like this:

reptyr -T `pgrep -fn rtr_new_ `

https://github.com/nelhage/reptyr

(it's in one of the Arch repositories)

Reptyr's man page says it does not work with rtorrent but I find reptyr can successfully steal from dtach once. After that a 2nd reptyr won't steal rtorrent from the 1st reptyr. Sometimes it seems to work for a few seconds then rtorrent just goes away.

also I can do this repeatedly (separate terminals) - neercs steals from reptyr, reptyr from neercs and repeat as many times as you like;

neercs -P `pgrep -fn rtr_new_` &

reptyr  `pgrep -fn rtr_new_ `

and rtorrent keeps running fine https://aur.archlinux.org/packages/neercs-git/

so the problem's not with reptyr per se

why don't we just assume for simplicity that there is only one session?

My intent was to answer more questions in minimal space by extending the examples to more use cases (--user, multiple instances per user). Sanjeev K Sharma (talk) 13:26, 11 July 2015 (UTC)

Creating multiple rtorrent sessions this way is far from perfect

perhaps a separate section is needed?

last time I lurked on rtorrent discussions this question came up regularly.

I'd like to have another way to do multiple sessions, preferably integrated with systemd Sanjeev K Sharma (talk) 14:07, 11 July 2015 (UTC)

This page use deprecated commands

https://github.com/rakshasa/rtorrent/wiki/rTorrent-0.9-Comprehensive-Command-list-(WIP)

And example config from rtorrent too.

--Althathwe (talk) 17:13, 2 August 2016 (UTC)

I replaced the commands with the new syntax equivalents.
Nicola Hinssen (talk) 00:26, 20 January 2018 (UTC)

Improve Systemd services using tmux section

It's not possible to start any command with tmux if the user is a daemon / service account (that has /usrb/bin/nologin or /sbin/nologin as a shell that can be changed for extra security for SFTP user for example), even if /sbin/nologin is added to /etc/shells.

The only post talking of that on internet I found is this reddit thread https://www.reddit.com/r/linuxadmin/comments/7am99j/systemd_service_unit_file_uses_the_users_login/.

Also for With tmux running as user rtorrent (restart rtorrent if crashed) should we add ReamainAfterExit=yes because tmux is detached? And also should we change sendkeys -t rtorrent into sendkeys -t rtorrent:rtorrent in order to target the right window if there is several windows inside the session?

Noraj (talk) 18:18, 4 February 2018 (UTC)