install tuptime [debian, ubuntu-mate]

based on:
https://github.com/rfrail3/tuptime

install tuptime:
git clone https://github.com/rfrail3/tuptime.git
sudo cp tuptime/src/tuptime /usr/bin/tuptime
sudo chmod ugo+x /usr/bin/tuptime
sudo adduser --quiet --system --no-create-home --group \
--home "/var/lib/tuptime" \
--shell '/bin/sh' \
--gecos 'Tuptime execution user,,,' tuptime
sudo chown -R tuptime:tuptime /var/lib/tuptime
sudo cp tuptime/src/systemd/tuptime.service /lib/systemd/system/
sudo chmod 644 /lib/systemd/system/tuptime.service
sudo rm -r tuptime
systemctl enable tuptime.service #accept with typing root passwd
sudo systemctl enable tuptime.service

Run first with a privileged user:
sudo tuptime

useage tuptime:
tuptime -h
tuptime -l #list option
tuptime -t #table option

change the uptime log:
sudo apt-get install -y sqlitebrowser
sudo sqlitebrowser

choose open file and paste into filename:
/var/lib/tuptime/tuptime.db

backup the log:
sudo cp /var/lib/tuptime/tuptime.db ~/Schreibtisch

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s