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 with
git clone https://github.com/Flood-UI/flood.git
and cd into the directory withcd flood
. - Run
npm install
, then runnpm run build
, this should compile Flood. - To start the service as a deamon, 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 runFlood 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 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 |