Installation from Source
Download latest version of mybatop source tarball or zip file from
Downloads
page.Open terminal and navigate to the directory where the downloaded file is located.
e.g.
bashcd ~/Downloads
unzip the tarball or extract the zip file.
e.g.
bashtar -xvf mybatop-*.tar.gz
or
bashunzip mybatop-*.zip
Navigate to the extracted directory.
e.g.
bashcd mybatop-*
create
mybatop
directory in /opt foldere.g.
bashsudo mkdir /opt/mybatop
Move all the contents of
filesystemd
directory to/etc/systemd/system/
directory.e.g.
bashsudo cp filesystemd/* /etc/systemd/system/
Remove filesystemd directory (Optional)
e.g.
bashrm -rf filesystemd
Copy the extracted files to
/opt/mybatop
directory.e.g.
bashsudo cp -r * /opt/mybatop
make a link to the binary file in
/usr/bin
directory.e.g.
bashsudo ln -s /opt/mybatop/scripts/runscript/mybatop /usr/bin/mybatop
Reload systemd daemon
e.g.
bashsudo systemctl daemon-reload
Start the service
e.g.
bashsudo systemctl enable --now mybatop-startup.service sudo systemctl enable --now mybatop-shutdown.service sudo systemctl enable --now mybatop-status.service sudo systemctl enable --now mybatop-lowpower.service
Check the status of the service
e.g.
bashsystemctl status mybatop-startup.service systemctl status mybatop-shutdown.service systemctl status mybatop-status.service systemctl status mybatop-lowpower.service
Check installation is done successfully
e.g.
bashmybatop --version
Done! mybatop is installed successfully.