Download the dark-collector
executable to /usr/local/bin
.
$> curl https://downloads.a.darkcubed.net/dark-collector/v0.1.0/dark-collector --output /tmp/dark-collector
$> sudo chown root:root /tmp/dark-collector
$> sudo chmod +x /tmp/dark-collector
$> sudo mv /tmp/dark-collector /usr/local/bin/dark-collector
Download the dark-collector.yml
config file to /etc/darkcubed/dark-collector.yml
.
$> curl https://downloads.a.darkcubed.net/dark-collector/v0.1.0/dark-collector.yml --output /tmp/dark-collector.yml
$> sudo chown root:root /tmp/dark-collector.yml
$> sudo mkdir /etc/darkcubed
$> sudo mv /tmp/dark-collector.yml /etc/darkcubed/dark-collector.yml
Edit the config file, updating the interface name to capture traffic on and the UUID for your sensor (from the Dark Cubed UI).
Download the dark-collector.service
SystemD service definition to /etc/systemd/system/dark-collector.service
.
$> curl https://downloads.a.darkcubed.net/dark-collector/v0.1.0/dark-collector.service --output /tmp/dark-collector.service
$> sudo chown root:root /tmp/dark-collector.service
$> sudo mv /tmp/dark-collector.service /etc/systemd/system/dark-collector.service
Enable and start the dark-collector
SystemD service.
$> sudo systemctl daemon-reload
$> sudo systemctl start dark-collector
Ensure the service is running.
$> systemctl status dark-collector