Skip to content
Browse files

Add font for Monitorix graphs

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 24, 2019
1 parent 5cb52f8 commit 9a6ec705a017f59d63d452a7140e06bff8ea40e8
Showing with 40 additions and 12 deletions.
  1. +27 −0 build/160-aws
  2. +13 −12 build/165-monitorix
@@ -0,0 +1,27 @@
echo $0 > /var/www/html/userfiles/nems-build.cur

platform=$(/usr/local/bin/nems-info platform)

if (( $platform == 22 )); then

# Log that patch (resize) has been applied to this system.
# Doesn't apply to VM so just do it here.
# Activates features such as
if ! grep -q "PATCH-000002" /var/log/nems/patches.log; then
echo "PATCH-000002" >> /var/log/nems/patches.log

addition="# Amazon Web Services Hostname Override\n/root/nems/nems-admin/build/200-hostname\n\n"
if grep -q "exit" /etc/rc.local; then
# This file contains an exit command, so make sure our new command comes before it
/bin/sed -i -- 's,exit,'"$addition"'exit,g' /etc/rc.local
# No exit command within the file, so just add it
echo "PLACEHERE" >> /etc/rc.local
/bin/sed -i -- 's,PLACEHERE,'"$addition"'exit 0,g' /etc/rc.local
/bin/systemctl stop rc-local.service
/bin/systemctl start rc-local.service

@@ -9,20 +9,21 @@ wget --no-check-certificate -O /tmp/monitorix.deb $debpack

# Remove Izzy Repos
rm -f /etc/apt/sources.list.d/monitorix.list
apt update
apt-get update

# Install dependencies
apt install -y rrdtool
apt install -y perl
apt install -y libwww-perl
apt install -y libmailtools-perl
apt install -y libmime-lite-perl
apt install -y librrds-perl
apt install -y libdbi-perl
apt install -y libxml-simple-perl
apt install -y libhttp-server-simple-perl
apt install -y libconfig-general-perl
apt install -y libio-socket-ssl-perl
apt-get install -y rrdtool
apt-get install -y perl
apt-get install -y libwww-perl
apt-get install -y libmailtools-perl
apt-get install -y libmime-lite-perl
apt-get install -y librrds-perl
apt-get install -y libdbi-perl
apt-get install -y libxml-simple-perl
apt-get install -y libhttp-server-simple-perl
apt-get install -y libconfig-general-perl
apt-get install -y libio-socket-ssl-perl
apt-get install -y xfonts-terminus

# Install Monitorix
dpkg -i /tmp/monitorix.deb

0 comments on commit 9a6ec70

Please sign in to comment.
You can’t perform that action at this time.