How to Install ActivityWatch on OpenBSD

ActivityWatch is an open-source time tracker that helps users to keep track of their computer usage. Here's how you can install ActivityWatch on your OpenBSD system.

Prerequisites

Before we begin, make sure you have the following requirements:

Steps to Install ActivityWatch

  1. First, open a terminal window or log in to your OpenBSD system.
  2. Update the package list by running the command:
sudo pkg_add -u
  1. Next, install the necessary packages that ActivityWatch requires. ActivityWatch requires Python and Git to be installed. Run the following command to install the packages:
sudo pkg_add python git
  1. Now that we have the dependencies installed. Let's clone the activitywatch repository from GitHub. In the terminal window, run the command:
git clone https://github.com/ActivityWatch/activitywatch.git
  1. Next, navigate to the activitywatch directory using the command:
cd activitywatch
  1. Create and activate a new Python virtual environment with the command:
python3 -m venv env && . ./env/bin/activate
  1. Install the dependencies by running the command:
pip install -r requirements.txt
  1. Install the activitywatch service using the command:
./aw-server --install
  1. Start the activitywatch service using the command:
sudo service aw-server start
  1. Finally, you can access the ActivityWatch web interface on your local machine by navigating to http://localhost:5600 in your web browser.

Congratulations! You have successfully installed ActivityWatch on your OpenBSD system. You can now start tracking your computer usage using ActivityWatch.

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!