In this tutorial we will learn how to install TagoCore on Raspberry PI.
Create folder structure, download and test tagocore binary.
# 1º
cd
# 2º
mkdir tagocore
# 3º
cd tagocore
# 4º
wget https://downloads.tagocore.com/tagocore.tar.gz -O tagocore.tar.gz
# 5º
tar -zxvf tagocore.tar.gz
# 6º
rm tagocore.tar.gz
# 7º
./tagocore
Output
pi@raspberrypi:~/tagocore $ ./tagocore
Plugin "SQLite" is now fully loaded.
Access http://localhost:8888 to use TagoCore!
The tagocore service is running on port 8888!
Create systemd file for the TagoCore service.
# 1º
cd /lib/systemd/system/
# 2º
sudo vim tagocore.service
Put the contents in tagocore.service:
[Unit]
Description=TagoCore Server
Documentation=https://tagocore.com/
Wants=network-online.target
After=network-online.target
[Service]
User=pi
Group=pi
ExecStart=/home/pi/tagocore/tagocore
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=tagocore.service
Done! Now, reload daemon and start the tagocore service.
# 1º - Daemon reload
sudo systemctl daemon-reload
# 2º - Service Status
sudo systemctl status tagocore
# 3º - Service start
sudo systemctl start tagocore
Check the tagocore service logs:
sudo systemctl status tagocore
Output:
pi@raspberrypi:/lib/systemd/system $ sudo systemctl status tagocore
● tagocore.service - TagoCore Server
Loaded: loaded (/lib/systemd/system/tagocore.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-12-20 14:08:56 -03; 5s ago
Docs: https://tagocore.com/
Main PID: 18130 (tagocore)
Tasks: 11 (limit: 4915)
CPU: 3.621s
CGroup: /system.slice/tagocore.service
└─18130 /home/pi/tagocore/tagocore
Dec 20 14:08:56 raspberrypi systemd[1]: Started TagoCore Server.
Dec 20 14:08:59 raspberrypi tagocore[18130]: Plugin "SQLite" is now fully loaded.
Dec 20 14:08:59 raspberrypi tagocore[18130]: Access http://localhost:8888 to use TagoCore!
Done!
TagoCore is running on: http://RASPBERRY_IP:8888
Regards,
Douglas Zuqueto