I have setup Manjaro-ARM-xfce-rpi4-21.12 on a Raspberry Pi 3b+ and done the following:
sudo pacman-mirrors -g && sudo pacman -Syyu
sudo pacman -S --needed git vi base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
yay -S peertube
The next step according to the docs is $ sudo useradd -m -d /var/www/peertube -s /bin/bash -p peertube peertube
, but I get the error
[user@pi ~]$ sudo useradd -m -d /var/www/peertube -s /bin/bash -p peertube peertube
sudo passwd peertube
cd /var/www/peertube
and I get directory does not exist.
sudo mkdir -p /var/www/peertube
cd /var/www/peertube
sudo -u postgres createuser -P peertube
Then I do:
[user@pi peertube]$ sudo -u postgres createuser -P peertube
Enter password for new role:
Enter it again:
createuser: error: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/run/postgresql/.s.PGSQL.5432"?
[user@pi peertube]$ sudo systemctl start redis postgresql
Job for postgresql.service failed because the control process exited with error code.
See "systemctl status postgresql.service" and "journalctl -xeu postgresql.service" for details.