Patch Cacti - Debian and Original

Install Ubuntu Patch Utility
1) In a terminal window in your Ubuntu VM
2) Enter Command: sudo apt-get install patch
3) Enter the sudo (root) password if prompted


Download Debian Specific Patches
1) Open the Firefox browser in your Ubuntu VM
2) Open the Debian Patch Site: http://patch-tracking.debian.net/package/cacti/0.8.7e-1
3) Select "Download" - 01_config.php.patch
4) Select "Download" - 05_no-adodb.patch
5) Select "Download" - 06_config_settings.php_cactid_path.patch
6) Select "Download" - cli-include-path.patch


Copy Patches from "home/your_user_name/Desktop" to /tmp
1) In the same terminal window in your Ubuntu VM
2) Enter Command: sudo cp /home/open4energy/Desktop/01_config.php.patch /tmp/01_config.php.patch
3) Enter the sudo (root) password when/if prompted
4) Enter Command: sudo cp /home/open4energy/Desktop/05_no-adodb.patch /tmp/05_no-adodb.patch
5) Enter Command: sudo cp /home/open4energy/Desktop/06_config_settings.php_cactid_path.patch /tmp/06_config_settings.php_cactid_path.patch
6) Enter Command: sudo cp /home/open4energy/Desktop/cli-include-path.patch /tmp/cli-include-path.patch


Download Official Cacti Patches
1) In the same terminal window in your Ubuntu VM
2) Enter Command: cd /tmp
3) Enter Command: wget http://www.cacti.net/downloads/patches/0.8.7e/cli_add_graph.patch
4) Enter Command: wget http://www.cacti.net/downloads/patches/0.8.7e/snmp_invalid_response.patch
5) Enter Command: wget http://www.cacti.net/downloads/patches/0.8.7e/template_duplication.patch


Apply Debian and Official Cacti Patches
Note: We suggest you check the 7 downloaded patches are present in /tmp!

1) In the same terminal window in your Ubuntu VM
2) Enter Command: cd /usr/share/cacti/site
3) Enter Command: patch -p1 -N < /tmp/01_config.php.patch
4) Enter Command: patch -p1 -N < /tmp/05_no-adodb.patch
5) Enter Command: patch -p1 -N < /tmp/06_config_settings.php_cactid_path.patch
6) Enter Command: patch -p1 -N < /tmp/cli-include-path.patch
7) Enter Command: patch -p1 -N < /tmp/cli_add_graph.patch
8) Enter Command: patch -p1 -N < /tmp/snmp_invalid_response.patch
9) Enter Command: patch -p1 -N < /tmp/template_duplication.patch


Patches Completed
1) Do not proceed if Patches do not apply correctly
2) See image for example of correct completion


Next Page ==> Setup 0.8.7e