This requires root permissions, so use sudo on Ubuntu. (howtogeek.com)
On Ubuntu installation is simple: sudo apt install workrave will do the trick, but this of course varies depending on which distribution you're using. (howtogeek.com)
This command must be run with root permissions, so you'll need to prefix it with sudo on Ubuntu if you're not running it as the root user: (howtogeek.com)