Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/.docker/test

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-01-13 21:05:38 +13:00
#!/bin/bash
# usefull debugging tools pavucontrol htop x11vnc
sudo mkdir -p /var/run/dbus /etc/neko
sudo /etc/init.d/dbus start
2020-01-14 22:39:47 +13:00
sudo cp default.pa /etc/pulse/default.pa
sudo cp firefox/neko.js /usr/lib/firefox-esr/mozilla.cfg
sudo cp firefox/autoconfig.js /usr/lib/firefox-esr/defaults/pref/autoconfig.js
sudo cp firefox/policies.json /usr/lib/firefox-esr/distribution/policies.json
2020-01-13 21:05:38 +13:00
sudo cp supervisord.conf /etc/neko/supervisord.conf
sudo cp openbox.xml /etc/neko/openbox.xml
2020-01-14 00:28:14 +13:00
2020-01-13 21:05:38 +13:00
if [ ! -f /usr/lib/firefox-esr/distribution/extensions/uBlock0@raymondhill.net.xpi ]; then
sudo mkdir -p /usr/lib/firefox-esr/distribution/extensions
sudo curl -o /usr/lib/firefox-esr/distribution/extensions/uBlock0@raymondhill.net.xpi https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/addon-607454-latest.xpi
fi
if [ ! -f ../server/bin/neko ]; then
echo "build server before testing"
exit 1
fi
if [ ! -d ../client/dist/ ]; then
echo "build client before testing"
exit 1
fi
sudo cp ../server/bin/neko /usr/bin/neko
sudo cp -R ../client/dist /var/www/
sudo rm -rf $HOME/.mozilla
sudo rm -rf /var/run/supervisord.pid
mkdir -p $HOME/.config/pulse
echo "default-server=unix:/tmp/pulseaudio.socket" > $HOME/.config/pulse/client.conf
export NEKO_DISPLAY=0
export NEKO_WIDTH=1280
export NEKO_HEIGHT=720
export NEKO_URL=https://www.youtube.com/embed/QH2-TGUlwu4
export NEKO_PASSWORD=neko
export NEKO_BIND=0.0.0.0:80
export NEKO_KEY=
export NEKO_CERT=
supervisord --configuration ./supervisord.dev.conf