Flood Installation Guide - Bytesized Hosting Wiki

Installing Flood on your BYSH seedbox

  1. Start by going to the Flood GitHub.
  2. Copy the link of the flood.git on the GitHub page (probably https://github.com/jesec/flood.git).
  3. SSH into your seedbox.
  4. Clone the git repository with git clone https://github.com/jesec/flood.git and enter into the directory with cd flood.
  5. Run npm install, then run npm run build. These steps allow Flood to run.
  6. To start the service as a daemon, run screen -dmS flood npm run start -- --host 0.0.0.0 --port 3000.
  7. Go to your seedbox domain with :3000 added (or whatever port you run Flood on).
  8. Make an account and add the rTorrent socket, which is located at $HOME/.config/rtorrent/session/rpc.socket
  9. 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