Skip to content

4 Updating to the Latest Version

jgyates edited this page Dec 12, 2022 · 4 revisions

You have a couple of options if you want to update a previously installed copy of genmon to the latest version. Both assume a PC is connected to the same network as your pi. Both of these examples assume an IP address of IPADDRESS (replace this with the actual IP address of your pi)

You will need the ssh tool for the first option and the tool scp for the second. If you use Windows, you can install PuTTY as it contains a graphical ssh / scp tool. These tools (ssh and scp) are included in linux and macOS.

Putty Download link

Method 1

Go to the "About" page in the web interface and click "Update Software". If you do not have an "Update Software" button then you are running quite old software. Proceed to Method 2

Method 2

Use a secure shell (ssh) to make a terminal connection on your PC into your pim then refresh your git repository. Open a command prompt on a linux or macOS system and type (use PuTTY for Windows):

ssh pi@IPADDRESS

you will be prompted for the username of the pi user on your pi. Then change directories into your genmon directory and update the git repository by typing:

git pull

This will update to the latest, or, if you have modified any files and want to overwrite them then type:

git fetch origin
git reset --hard origin/master

This command will update your entire repository to the latest. It will not overwrite your /etc/genmon.conf file. You will need to change the If you want to use any new options you will need to update your file manually. If you do a "git reset" you will need to type "sudo chmod 755 ./startgenmon.sh" to change the permissions again like you did during install. Once your files are updated you can restart genmon via the ./startgenmon.sh scripts, or just reboot your system (sudo reboot now)

The script file named "genmonmaint.sh" in the repository will perform the "git reset --hard origin/master" command. To update to the latest version of genmon with this script type:

bash ./genmonmaint.sh -u