Debian install

Install the mini  net version and enable ssh

Add to path


export PATH=$PATH:/usr/sbin/

export PATH=$PATH:/sbin/

Enable sudo command

su -l

apt install sudo

adduser <user> sudo





sudo apt -y install php php-common

sudo apt -y install php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd  php-mbstring php-curl php-xml php-pear
sudo apt install php-[extname]

Install Webmin

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python unzip

Find latest version and note the number:


sudo dpkg --install webmin_2.021_all.deb

sudo apt --fix-broken install

Install firewall

sudo apt install ufw

sudo ufw status verbose

It shuld be inactive

Open some ports

sudo ufw allow from to any port 22 proto tcp 

sudo ufw allow from to any port 22 proto tcp 

sudo ufw allow 10000/tcp  #Webmin

sudo ufw allow 3000/tcp  #Grafana

sudo ufw allow 8088/tcp  #Influx

sudo ufw allow 8086/tcp  #Influx

sudo ufw allow 1880/tcp  #Webmin

sudo ufw allow 1883/tcp  #Mosquitto

sudo ufw allow 1880/tcp  #Node-RED

sudo ufw enable # to activate

sudo ufw status verbose

Apache mod-rewrite

sudo a2enmod rewrite

Install InfluxDB

Follow this:

sudo apt update

sudo apt install -y gnupg2 curl wget

wget -qO- | sudo apt-key add -

echo "deb $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

sudo apt update

sudo apt install -y influxdb

sudo systemctl enable --now influxdb

systemctl status influxdb

InfluxDB default configuration file is located under /etc/influxdb/influxdb.conf

Install Grafana

sudo apt-get install -y gnupg2 curl

curl | sudo apt-key add -

sudo apt-get install software-properties-common

sudo apt-get update

sudo add-apt-repository "deb stable main"

sudo apt-get update

sudo apt-get -y install grafana

sudo systemctl start grafana-server

systemctl status grafana-server

Install Node-RED

bash <(curl -sL

sudo npm install -g pm2

pm2 start /usr/bin/node-red -- -v

sudo systemctl enable nodered.service

Force Reeboot

To force the kernel to reboot the system we will be making use of the magic SysRq key. The magic_SysRq_key provides a means to send low level instructions directly to the kernel via the /proc virtual file system.

To enable the use of  the magic SysRq option type the following at the command prompt:

    echo 1 > /proc/sys/kernel/sysrq

Then to reboot the machine simply enter the following:

    echo b > /proc/sysrq-trigger