Debian install

Install the mini  net version and enable ssh

Add to path

su

export PATH=$PATH:/usr/sbin/

export PATH=$PATH:/sbin/

-----------

Enable sudo command


su -l

apt install sudo

adduser <user> sudo

logout

logout

login

PHP 

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 unzip

Find latest version and note the number:

https://sourceforge.net/projects/webadmin/files/webmin/

wget http://prdownloads.sourceforge.net/webadmin/webmin_2.111_all.deb

sudo dpkg --install webmin_2.111_all.deb

sudo apt --fix-broken install


APRS install

sudo apt-get update

sudo apt-get install -y git gcc g++ make cmake libasound2-dev libudev-dev libavahi-client-dev alsa-utils

cd ~

git clone https://www.github.com/wb2osz/direwolf

cd direwolf

mkdir build && cd build

cmake ..

make -j4

sudo make install

make install-conf

Finn audio device:

arecord -l   (Eks ADEVICE plughw:1,0 )

Rediger config:

nano ~/direwolf.conf 

Start Direwolf:

direwolf -c ~/direwolf.conf

Use alsamixer to fine-tune audio levels for optimal performance: 

alsamixer

Automatic Startup:

sudo nano /etc/systemd/system/direwolf.service 

Legg inn(Replace yourusername with your actual username. ):


[Unit]

Description=Dire Wolf APRS Software TNC

After=sound.target network.target


[Service]

ExecStart=/usr/local/bin/direwolf -c /home/hes/direwolf.conf

WorkingDirectory=/home/hes

User=hes

Restart=on-failure


[Install]

WantedBy=multi-user.target


Kjør så:

sudo systemctl enable direwolf 

sudo systemctl start direwolf 

sudo systemctl daemon-reload 

sudo systemctl start direwolf 

systemctl status direwolf 


For å monitorere:

sudo journalctl -u direwolf -f


Config for iGate:


ADEVICE - plughw:1,0

ACHANNELS 1

CHANNEL 0

MYCALL LA8DKA-3

MODEM 1200

AGWPORT 8000

KISSPORT 8001

IGSERVER euro.aprs2.net

IGLOGIN LA8DKA-3 19622

IGTXVIA 0 WIDE1-1

IGTXLIMIT 6 10

PERSIST 63

SLOTTIME 12

RETRY 5

FRACK 5

MAXFRAME 4

PACLEN 128

DWAIT 0

TXDELAY 50

TXTAIL 40



Install firewall

sudo apt install ufw

sudo ufw status verbose

It shuld be inactive

Open some ports

sudo ufw allow from 192.168.0.0/24 to any port 22 proto tcp 

sudo ufw allow from 192.168.20.0/24 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:

https://computingforgeeks.com/how-to-install-influxdb-on-debian-linux/

sudo apt update

sudo apt install -y gnupg2 curl wget

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -

echo "deb https://repos.influxdata.com/debian $(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 https://packages.grafana.com/gpg.key | sudo apt-key add -

sudo apt-get install software-properties-common

sudo apt-get update

sudo add-apt-repository "deb https://packages.grafana.com/oss/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 https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

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


Install TightVNC server for LMDE Mint Cinamon

Mirror current screen, not start new session!

sudo apt update

sudo apt install tightvncserver

sudo apt install x11vnc

x11vnc -storepasswd


Make and edit file:

sudo nano /etc/systemd/system/x11vnc.service

Add the following content to the service file. NB! Set user home:

-----8<-----

[Unit]

Description=Start x11vnc at startup.

After=multi-user.target


[Service]

Type=simple

Environment="HOME=/home/your_username"

ExecStart=/usr/bin/x11vnc -forever -usepw -display :0 -auth guess


[Install]

WantedBy=multi-user.target

-----8<------


Reload systemd to recognize the new service:

sudo systemctl daemon-reload


Enable the service to start at boot:

sudo systemctl enable x11vnc.service


Start the x11vnc service immediately:

sudo systemctl start x11vnc.service