summaryrefslogtreecommitdiff
path: root/INSTALL.sh
blob: daf0e9c2150c17cf3d39f4d047f7e95adc7e079e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# 1. Git clone to ~/dashboard (`INSTALL.sh` and `systemd/*.service` assume that path)
# 2. Run `./INSTALL.sh`
# 3. Run `make`
# 4. Go to http://localhost:41198
#
# 5. (Optional) I set by Firefox homepage to that (configured at
#    about:preferences#home), and use
#    https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/
#    to have the new-tab-page be my homepage.

set -ex

sudo pacman -S --needed -- \
     go \
     ruby-nokogiri \
     ruby-sass \
     yarn \
     wget

mkdir -p -- ~/.config/systemd/user/
ln -srf -- ~/dashboard/systemd/* ~/.config/systemd/user/
systemctl --user enable --now dashboard-daily.timer dashboard-httpd.socket