Flood Installation Guide - Bytesized Hosting Wiki
Installing Flood on your BYSH seedbox
- Start by going to the Flood GitHub.
- Copy the link of the flood.git on the GitHub page (probably https://github.com/jesec/flood.git).
- SSH into your seedbox.
- Clone the git repository with
git clone https://github.com/jesec/flood.git
and enter into the directory withcd flood
. - Run
npm install
, then runnpm run build
. These steps allow Flood to run. - To start the service as a daemon, run
screen -dmS flood npm run start -- --host 0.0.0.0 --port 3000
. - Go to your seedbox domain with :3000 added (or whatever port you run Flood on).
- Make an account and add the rTorrent socket, which is located at
$HOME/.config/rtorrent/session/rpc.socket
- Flood should now work!
Alternatively, you can run Flood via npx flood
, with arguments like (--host 0.0.0.0) added.
Start flood automatically on box reboots
Run mkdir $HOME/.config/flood/
and add the following script to ~/.startup/flood
:
#!/bin/bash
export TMPDIR=$HOME/tmp
PID_FILE=$HOME/.config/flood/flood.pid
LOG_FILE=$HOME/.config/flood/flood.log
APP_DIR=$HOME/apps/flood/
/sbin/start-stop-daemon \
-S --pidfile $PID_FILE --make-pidfile -u $USER -d $HOME --chdir $APP_DIR -b -a \
/bin/bash -- -c "exec \
/usr/bin/npm run start -- \
--host 0.0.0.0 \
--port 3081 \
> $LOG_FILE 2>&1"
NOTE: This app isn't currently supported by Bytesized, so you'll need to resolve any problems you encounter on your own.
Last Author | Contributors | Versions | Last update |
---|---|---|---|
Snazzy5915 | 6 | Sat, 08 Jun 2024 07:38:27 +0200 |