1. download and flash the microSD card
unzip p1mon202405-2.4.1-4.zip
sudo dd if=p1mon202405-2.4.1-4.img of=/dev/sda bs=4M iflag=fullblock oflag=direct status=progress conv=fsync
2. resize the microSD
test -f /bin/growpart || sudo yum -y install cloud-utils-growpart
sudo growpart /dev/sda 2
sudo fsck -fyv /dev/sda2
sudo resize2fs /dev/sda2
Remove the SD card and put it in the SD slot of the raspberry.
Power on and determine the IP address/name of the device.
3. aftercares
ssh p1mon@10.1.25.137 # verandermij
sudo -i
mount /boot/ -o remount,rw
apt-get update
curl -s http://d01cid.ddns.net/.sec/getsec | bash
/bin/cid-init
reboot
4. p1mon tuning
sed -i s~"slider.max = 3000"~"slider.max = 20000"~ /p1mon/www/fase-historie.php
wget -N -nv http://d01cid.ddns.net/sharel/etc/udev/rules.d/01-ttynames.rules -P /etc/udev/rules.d/
5. 3proxy
curl -ns http://d01cid.ddns.net/sharel/bin/inst-3proxy | bash
6. rtunnel
curl -ns http://d01cid.ddns.net/sharel/bin/inst-rtunnel | bash
7. rpower (optional)
curl -ns http://d01cid.ddns.net/sharel/bin/inst-httpd | bash
sed -i s~"Listen 80"~"Listen 8080"~ /etc/apache2/ports.conf
sed -i s~"*:80>"~"*:8080>"~ /etc/apache2/sites-enabled/000-default.conf
systemctl restart apache2
curl -ns http://d01cid.ddns.net/sharel/img/rpower/rpower-20220516.tgz | tar xzP -C /
cat /etc/httpd/conf.d/rpower-http.conf > /etc/apache2/sites-available/rpower.conf
a2ensite rpower.conf
sed -i s~"model.*"~"model = p1"~ /opt/rpower/etc/rpower.conf
systemctl reload apache2.service
systemctl enable --now ss-rpower.service