From 98e0c2d4392f460460ec5e96b9d7d61cc377626c Mon Sep 17 00:00:00 2001 From: Michio Honda Date: Tue, 3 Nov 2020 15:43:54 +0000 Subject: [PATCH] README: Add installation --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 2583c21..6a59b99 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ # tm - testbed manager [![Build Status](https://travis-ci.org/micchie/tm.svg?branch=master)](https://travis-ci.org/micchie/tm) + +## Installation +Assuming the group is set to the users of tm: +``` +sudo cp tm.py /usr/local/bin/tm +sudo chmod 754 /usr/local/bin/tm +sudo mkdir /usr/local/tm +sudo chmod 775 /usr/local/tm +``` +In Ubuntu 18.04 +``` +sudo cp tm-cleanup.* /lib/systemd/system/ +``` +In Ubuntu 20.04 +``` +sudo cp tm-cleanup.* /usr/lib/systemd/system/ +``` +``` +sudo systemctl enable tm-cleanup.timer +sudo systemctl start tm-cleanup.timer +systemctl start list-timers +``` +In the UNIT and ACTIVATES rows, tm-cleanup.timer and tm-cleanup.service should +appear, respectively.