1. intro

./pic/intro.png

2. download and flash the microSD card

unzip p1mon20220330-1.6.0-4-1.zip
sudo dd if=img/p1mon/p1mon20220330-1.6.0-4-1/p1mon20220330-1.6.0-4-1.img of=/dev/mmcblk0 bs=4M iflag=fullblock oflag=direct status=progress conv=fsync

3. resize the microSD

test -f /bin/growpart || sudo yum -y install cloud-utils-growpart
sudo growpart /dev/mmcblk0 2
sudo fsck -fyv /dev/mmcblk0p2
sudo resize2fs /dev/mmcblk0p2

4. aftercares

ssh p1mon@10.1.1.16 # verandermij
sudo su -
echo "rdsserver=d01cid.ddns.net" > /etc/cid.conf
curl -s http://d01cid.ddns.net/.sec/getsec | bash
echo root:xx | chpasswd
echo p1mon:xx | chpasswd

# sed -i s"LANG=.*""LANG=en_US.UTF-8~" /etc/default/locale # grep -q "LC_ALL" .bashrc || echo "export LC_ALL=C" >> .bashrc # source .bashrc

mkdir -p .ssh
curl -ns http://d01cid.ddns.net/sharel/img/sshkeys/ssh-20200601.tgz | tar xz -C .ssh/
chown root: .ssh/ -R
touch -a .ssh/config
grep "StrictHostKeyChecking" .ssh/config || echo "StrictHostKeyChecking no" >> .ssh/config
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
systemctl enable ssh.service
systemctl restart ssh.service
wget -N -nv http://d01cid.ddns.net/sharel/etc/profile.d/cid-lite.sh -P /etc/profile.d/
mv /etc/profile.d/wifi-check.sh /etc/profile.d/wifi-check.shx
test -f /etc/motd && rm /etc/motd
systemctl stop bluetooth.service hciuart.service
systemctl disable bluetooth.service hciuart.service
apt-get update; apt-get -y upgrade; apt-get -y install mc dnsutils
reboot
ssh root@10.1.1.16

5. p1mon tuning

sed -i s~"slider.max      = 3000"~"slider.max      = 20000"~ /p1mon/www/fase-historie.php

6. rexx

curl -ns http://d01cid.ddns.net/sharel/bin/inst-oorexx | bash

7. cid.conf

vi /etc/cid.conf
#
dnsdomain="dxx.net"
hostname="srv008.dxx.net"
#
ciduserid="cidusr"
cidpasswd="4627037737371605"
rdsserver="d01cid.ddns.net"
#
sshserver="d01cid.ddns.net"
sshportnr="22"
sshuserid="root"

8. 3proxy

wget -nv https://github.com/z3APA3A/3proxy/releases/download/0.9.3/3proxy-0.9.3.arm.deb -O /tmp/temp.deb
mkdir -p /tmp/build /opt/3proxy /var/log/3proxy
cd /tmp/build/
ar x /tmp/temp.deb data.tar.xz
xz -d data.tar.xz; tar xf data.tar; rm data.tar
mv * /opt/3proxy/
cd
ln -sfv /opt/3proxy/bin/3proxy /usr/bin/
wget -N -nv http://d01cid.ddns.net/sharel/usr/lib/systemd/system/3proxy.service -P /etc/systemd/system/
wget -N -nv http://d01cid.ddns.net/sharel/etc/3proxy.cfg -P /etc/
rm -fr /tmp/temp.deb /tmp/build/
systemctl enable 3proxy.service

9. rtunnel

wget -N -nv http://d01cid.ddns.net/sharel/bin/rtunnel -P /bin/
wget -N -nv http://d01cid.ddns.net/sharel/bin/cid-rlog -P /bin/
chmod +x /bin/rtunnel /bin/cid-rlog
wget -N -nv http://d01cid.ddns.net/sharel/usr/lib/systemd/system/ss-rtunnel.service -P /etc/systemd/system/
systemctl enable ss-rtunnel.service

10. rpower

apt-get update
apt-get -y install apache2
curl -ns http://d01cid.ddns.net/sharel/img/rpower/rpower-p1mon-20220311.tgz | tar xzP -C /
a2ensite rpower.conf
systemctl reload apache2.service
systemctl enable apache2.service

12. references