...
This commit is contained in:
parent
f63556e713
commit
dd95c52de6
40
README.md
40
README.md
|
@ -1,31 +1,31 @@
|
||||||
# how to install:
|
# how to install:
|
||||||
## dependencies
|
## dependencies
|
||||||
```bash
|
```bash
|
||||||
sudo pacman -S nodejs npm ffmpeg yt-dlp ffmpegthumbnailer postgresql python python-pip imagemagick git mime-types
|
sudo pacman -S nodejs npm ffmpeg yt-dlp ffmpegthumbnailer postgresql python python-pip imagemagick git mime-types
|
||||||
```
|
```
|
||||||
## postgres
|
## postgres
|
||||||
```bash
|
```bash
|
||||||
sudo -u postgres initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'
|
sudo -u postgres initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'
|
||||||
#(if it fails: sudo localectl set-locale en_US.UTF-8)
|
#(if it fails: sudo localectl set-locale en_US.UTF-8)
|
||||||
sudo systemctl enable --now postgresql
|
sudo systemctl enable --now postgresql
|
||||||
#(if you're retarded or lazy, append postgresql and postgresql-libs to your ignorepkg)
|
#(if you're retarded or lazy, append postgresql and postgresql-libs to your ignorepkg)
|
||||||
sudo -u postgres createuser -S -D -R -e f0ck
|
sudo -u postgres createuser -S -D -R -e f0ck
|
||||||
sudo -u postgres createdb test -O f0ck
|
sudo -u postgres createdb test -O f0ck
|
||||||
```
|
```
|
||||||
## install f0ck
|
## install f0ck
|
||||||
```bash
|
```bash
|
||||||
sudo useradd f0ck -m
|
sudo useradd f0ck -m
|
||||||
sudo -iu f0ck
|
sudo -iu f0ck
|
||||||
cd ~
|
cd ~
|
||||||
git clone https://git.lat/f0ck/f0ckv2.git
|
git clone https://git.lat/f0ck/f0ckv2.git
|
||||||
cd f0ckv2
|
cd f0ckv2
|
||||||
#(for developers: git checkout dev)
|
#(for developers: git checkout dev)
|
||||||
npm i
|
npm i
|
||||||
psql f0ck < f0ck.sql
|
psql f0ck < f0ck.sql
|
||||||
mkdir -p public/ca
|
mkdir -p public/ca
|
||||||
cp config_example.json config.json
|
cp config_example.json config.json
|
||||||
- edit config.json
|
- edit config.json
|
||||||
- set up clients, as described [here](https://git.lat/keinBot/cuffeo)
|
- set up clients, as described here: https://git.lat/keinBot/cuffeo
|
||||||
pip install nsfw_detector
|
pip install nsfw_detector
|
||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user