flood icon indicating copy to clipboard operation
flood copied to clipboard

Installation guide for Debian 10

Open karibuTW opened this issue 5 years ago • 22 comments

Hello guys, I revisited my 2y old tutorial as I had several requests to do so.

I am just sharing how I installed rtorrent and flood on a fresh debian 10 https://freedif.org/how-to-install-flood-rtorrent-on-debian-10

It works well like this, but I guess I can do further tweak. If you have some amelioration ideas, please share.

Thank you

karibuTW avatar Mar 22 '20 03:03 karibuTW

-bash: npm: command not found

npm is not installed on debian by default

Commissar0617 avatar Mar 28 '20 02:03 Commissar0617

Hi, you are supposed to install it at step 4:

apt install curl build-essential git curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - apt install -y nodejs

Any issue there?

Thanks

karibuTW avatar Mar 28 '20 02:03 karibuTW

honestly, im not sure if that did much, as i was doing this on an LXC container on root, hence no sudo. i just went and apt installed npm and it seems to have worked.

Commissar0617 avatar Mar 28 '20 04:03 Commissar0617

so, i followed the instructions... but now all im getting is the default apache page... both flood and rtorrent show as running.

Commissar0617 avatar Mar 28 '20 21:03 Commissar0617

also ExecStop=/usr/bin/killall

gives an error if it's in there, as there is no /usr/bin/killall

Commissar0617 avatar Mar 28 '20 22:03 Commissar0617

You may have a very minimal system apt install psmisc

If this works, I will update the tutorial. Thanks

karibuTW avatar Mar 29 '20 02:03 karibuTW

still no flood UI on 80 or 3000.

Commissar0617 avatar Mar 29 '20 04:03 Commissar0617

possible some progress... I added a proxypass to /node and it give a 503 now instead of 404

Commissar0617 avatar Mar 29 '20 05:03 Commissar0617

https://github.com/Flood-UI/flood/wiki/Troubleshooting

the steps for being on a non-local got me in, but it won't connect to rtorrent now.

Commissar0617 avatar Mar 29 '20 06:03 Commissar0617

So you have access to flood UI now? What have you done? And for the rtorrent, you use the right port?

karibuTW avatar Mar 29 '20 11:03 karibuTW

if i start flood manually, yes. not if it is started as a service.(which is weird because the flood service literally uses the same script, i verified that)

and i am using port 5000 for rtorrent, which is the port i set in the UI the one time i could access it.

Commissar0617 avatar Mar 29 '20 13:03 Commissar0617

fixed the issue with it not running as a service, had file permission errors. i can now access the ui at port 3000, but it still can't talk to rtorrent.

edit: looks like rtorrent not listening on any port

Commissar0617 avatar Mar 29 '20 15:03 Commissar0617

You have this in your .rtorrent.rc?

SCGI port, used to communicate with Flood

network.scgi.open_port = 127.0.0.1:5000

It will open the communication port on 5000 for Flood to connect to it.

karibuTW avatar Mar 30 '20 00:03 karibuTW

yep. still nothing listening on 5000 ,and netstat -tulpn shows no rtorrent

Commissar0617 avatar Mar 30 '20 01:03 Commissar0617

root@ruskidown:/home/rtorrent# service rtorrent status

  • rtorrent.service - rTorrent Loaded: loaded (/etc/systemd/system/rtorrent.service; enabled; vendor preset: enabled) Active: inactive (dead) since Mon 2020-03-30 01:41:13 UTC; 5s ago Process: 1209 ExecStart=/usr/bin/screen -d -m -fa -S rtorrent /usr/bin/rtorrent (code=exited, status=0/SUCCESS) Main PID: 1209 (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 4915) Memory: 4.6M CGroup: /system.slice/rtorrent.service

Mar 30 01:41:13 ruskidown systemd[1]: Started rTorrent. Mar 30 01:41:13 ruskidown systemd[1]: rtorrent.service: Succeeded. root@ruskidown:/home/rtorrent#

this look right?

Commissar0617 avatar Mar 30 '20 01:03 Commissar0617

so im actually starting over using a VM instead of a ct. has issues with LXC privleges that wld keep it from working

edit: is working in a VM. seems LXC has some major security things, such as not allowing SMB shares, etc.

Commissar0617 avatar Mar 30 '20 02:03 Commissar0617

I'd recommend using nvm instead of nodejs from the debian repositories. Its friendlier for people that are new to node, and might have to change the node version for other projects.

Jogai avatar Apr 09 '20 15:04 Jogai

Thanks Jogai for the comment.

karibuTW avatar Apr 09 '20 15:04 karibuTW

Well I saw later you tie into the services, I dont know how well an nvm managed node works with that. In my setup I start it manually.

Jogai avatar Apr 09 '20 18:04 Jogai

hey @karibuTW I followed your guide to make a fresh install of flood on my Debian10.

I also added the https functionnality with the apache virtualhost. I can send you my config file if you want to add it to your guide

Thanks for your work!

Luth1ng avatar Apr 29 '20 14:04 Luth1ng

Super, you used letsencrypt or different? I should cover it I guess, so I'll be happy to get info from you.

Thank you

karibuTW avatar Apr 29 '20 15:04 karibuTW

Thank for your work @karibuTW :+1: I have used your guide to install my seedbox on raspbian 10.

I my case :

  • i change floodServerHost to '0.0.0.0' on flood/config.js
  • i have to rebuild node.sass package cause of ARM arch (before execute npm run build)
  • i have to execute all npm commands with --unsafe-perm options

acantepie avatar Dec 09 '20 19:12 acantepie