yanic/INSTALL.md
2017-03-05 20:59:03 +01:00

1.5 KiB

Howto install Yanic

go

Install

cd /usr/local/
wget https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz
tar xvf go1.8.linux-amd64.tar.gz
rm go1.8.linux-amd64.tar.gz

Configurate

put this lines into a shell place at root:

export GOPATH=/opt/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

put this lines also into a shell place to use go by normal user:

export GOPATH=~/go
export PATH=$PATH:$GOPATH/bin

Yanic

Compile

go get -v -u github.com/FreifunkBremen/yanic/cmd/...

Configurate

cp /opt/go/src/github.com/FreifunkBremen/yanic/config_example.toml /etc/yanic.conf

You only need to edit /etc/yanic.conf under section [respondd] the interface for a easy startup. And create the following folders:

mkdir -p /var/lib/collector
mkdir -p /var/www/html/meshviewer/data

Standalone

If you like to run a meshviewer standalone, just set enable under section [webserver] to true. Configurate the meshviewer to /data/ and put the build directory of this meshviewer under /var/www/html/meshviewer.

With webserver (Apache, nginx)

Change following path under section [nodes] to what you need. For nodes_path and graph_path should be under the same folder for a meshviewer.

Service

cp /opt/go/src/github.com/FreifunkBremen/yanic/init/linux-systemd/yanic.service /lib/systemd/systemd
systemctl daemon-reload
systemctl start yanic
systemctl enable yanic