2020-01-13 21:05:38 +13:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# usefull debugging tools pavucontrol htop x11vnc
|
|
|
|
|
2020-01-19 12:30:09 +13:00
|
|
|
# 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
|
|
|
|
|
2020-01-13 21:05:38 +13:00
|
|
|
sudo mkdir -p /var/run/dbus /etc/neko
|
2020-01-27 14:28:39 +13:00
|
|
|
sudo rm -rf /var/run/dbus.pid
|
2020-01-13 21:05:38 +13:00
|
|
|
|
2020-01-27 14:28:39 +13:00
|
|
|
sudo cp files/firefox/neko.js /usr/lib/firefox/mozilla.cfg
|
|
|
|
sudo cp files/firefox/autoconfig.js /usr/lib/firefox/defaults/pref/autoconfig.js
|
|
|
|
sudo cp files/firefox/policies.json /usr/lib/firefox/distribution/policies.json
|
2020-01-14 22:39:47 +13:00
|
|
|
|
2020-01-27 14:28:39 +13:00
|
|
|
sudo cp files/dbus /usr/bin/dbus
|
|
|
|
sudo cp files/default.pa /etc/pulse/default.pa
|
|
|
|
sudo cp files/supervisord.conf /etc/neko/supervisord.conf
|
|
|
|
sudo cp files/openbox.xml /etc/neko/openbox.xml
|
2020-01-14 22:39:47 +13:00
|
|
|
|
2020-01-27 14:28:39 +13:00
|
|
|
if [ ! -f /usr/lib/firefox/distribution/extensions/uBlock0@raymondhill.net.xpi ]; then
|
|
|
|
sudo mkdir -p /usr/lib/firefox/distribution/extensions
|
|
|
|
sudo curl -o /usr/lib/firefox/distribution/extensions/uBlock0@raymondhill.net.xpi https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/addon-607454-latest.xpi
|
2020-01-13 21:05:38 +13:00
|
|
|
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
|
|
|
|
|
2020-01-27 14:28:39 +13:00
|
|
|
export USER=vscode
|
|
|
|
export SCREEN_WIDTH=1280
|
|
|
|
export SCREEN_HEIGHT=720
|
|
|
|
export SCREEN_DEPTH=24
|
|
|
|
export DISPLAY=:99.0
|
|
|
|
|
2020-01-13 21:05:38 +13:00
|
|
|
export NEKO_PASSWORD=neko
|
2020-01-27 14:28:39 +13:00
|
|
|
export NEKO_BIND=:8080
|
2020-01-13 21:05:38 +13:00
|
|
|
export NEKO_KEY=
|
|
|
|
export NEKO_CERT=
|
|
|
|
|
2020-01-27 14:28:39 +13:00
|
|
|
supervisord --configuration ./supervisord.conf
|