2022-05-14 11:32:28 +00:00
|
|
|
# how to install:
|
|
|
|
## dependencies
|
2022-05-14 11:30:12 +00:00
|
|
|
```bash
|
2023-08-01 17:31:22 +00:00
|
|
|
sudo pacman -S nodejs npm ffmpeg yt-dlp ffmpegthumbnailer postgresql imagemagick git mime-types
|
2022-05-14 11:30:12 +00:00
|
|
|
```
|
|
|
|
## postgres
|
|
|
|
```bash
|
2022-05-14 11:32:28 +00:00
|
|
|
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)
|
|
|
|
sudo systemctl enable --now postgresql
|
|
|
|
#(if you're retarded or lazy, append postgresql and postgresql-libs to your ignorepkg)
|
|
|
|
sudo -u postgres createuser -S -D -R -e f0ck
|
2022-05-14 11:47:33 +00:00
|
|
|
sudo -u postgres createdb f0ck -O f0ck
|
2022-05-14 11:30:12 +00:00
|
|
|
```
|
|
|
|
## install f0ck
|
|
|
|
```bash
|
2022-05-14 11:32:28 +00:00
|
|
|
sudo useradd f0ck -m
|
|
|
|
sudo -iu f0ck
|
|
|
|
cd ~
|
|
|
|
git clone https://git.lat/f0ck/f0ckv2.git
|
|
|
|
cd f0ckv2
|
|
|
|
#(for developers: git checkout dev)
|
|
|
|
npm i
|
|
|
|
psql f0ck < f0ck.sql
|
2022-05-22 04:15:26 +00:00
|
|
|
mkdir -p public/ca deleted/{ca,b,t}
|
2022-05-14 11:32:28 +00:00
|
|
|
cp config_example.json config.json
|
|
|
|
- edit config.json
|
|
|
|
- set up clients, as described here: https://git.lat/keinBot/cuffeo
|
2022-05-14 11:30:12 +00:00
|
|
|
npm start
|
|
|
|
```
|