GoatCounter is a simple self-hosted web analytics tool. Here's how to install it on Void Linux in just a few simple steps.
Before we begin, make sure you have the following:
go
and git
You'll need to have Go and Git installed on your system. You can install them both using the following command:
# xbps-install -S go git
Clone the GoatCounter repository from GitHub by running the following command:
$ git clone https://github.com/zgoat/goatcounter.git
Navigate to the GoatCounter directory and build the binary using Go:
$ cd goatcounter
$ go build .
Create a config.toml
file in the GoatCounter directory with the following contents:
[server]
port = 8080
BindAddr = "0.0.0.0:8080"
[db]
engine = "sqlite3"
dsn = "sqlite3://./db/goatcounter.sqlite3"
[auth]
public_key = "<YOUR_PUBLIC_KEY>" # Replace with your public key
Start the GoatCounter server:
$ ./goatcounter serve
GoatCounter should now be accessible at http://localhost:8080.
That's all there is to it! You now have a running instance of GoatCounter on your Void Linux server. Happy tracking!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!