This repository has been archived by the owner on May 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
Install flood with a service account
Alexandre ZANNI edited this page Mar 6, 2019
·
7 revisions
https://rawsec.ml/en/archlinux-install-rtorrent-flood-sftp/
This example is given for ArchLinux or derivated, others distros may adjust some commands.
- Follow pre-requisites part of the README.
- Install nodejs and npm globally, don't do a per user installation:
# pacman -Syy
# pacman -S nodejs npm
- Create a flood user:
# useradd -m flood
# passwd flood
- Install flood in
/srv/flood
and connect as flood user:
# cd /srv
# git clone https://github.com/jfurrow/flood.git flood
# chown -R flood:flood /srv/flood
# cd /srv/flood
# su flood
- Follow Compiling assets and starting the server
- Create the file
/etc/systemd/system/flood.service
:
[Unit]
Description=Flood rTorrent Web UI
After=network.target
[Service]
WorkingDirectory=/srv/flood
ExecStart=/usr/bin/npm start /srv/flood
User=flood
[Install]
WantedBy=multi-user.target
- Start flood:
# systemctl start flood.service
-
Follow pre-requisites part of the README.
-
Create a flood user:
# useradd -m flood
# passwd flood
- Install flood in
/srv/flood
and connect as flood user:
# cd /srv
# git clone https://github.com/jfurrow/flood.git flood
# chown -R flood:flood /srv/flood
# cd /srv/flood
# su flood
- Install nodenv
- Once nodenv was fully installed and that you installed a compatible node version (eg: v10), in flood root folder do
nodenv local 10.14.0
(to set the node version to use for flood) - Follow Compiling assets and starting the server
- Create the file
/etc/systemd/system/flood.service
:
[Unit]
Description=Flood, web interface for rTorrent
After=network.target
[Service]
User=flood
ExecStart=/home/flood/.nodenv/bin/nodenv exec npm start /srv/flood
WorkingDirectory=/srv/flood/
Restart=on-failure
[Install]
WantedBy=multi-user.target
- Start flood:
# systemctl start flood.service
original author: noraj