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 with git clone https://github.com/Flood-UI/flood.git and cd into the directory with cd flood.
  5. Run npm install, then run npm run build, this should compile Flood.
  6. To start the service as a deamon, 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 runFlood 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 is not supported by Bytesized so any possible issues with these steps have to be resolved on your own.

Last Author Contributors Versions Last update
nilcha 5 Sat, 23 Dec 2023 00:39:54 +0100