Installation of PagerMon Client on RPi

Throughout my investigation in HAM Radio, I have been learning about POCSAG which is a basic communication method used by billions of Pagers world-wide.

Here are my notes on installing the client on a RPi and sending the decoded messages to a PagerMon Server.

PLEASE NOTE: Instructions still a work in progress…


#Set console to Root Account
sudo su

#Install Dependences
apt-get install nodejs npm git multimon-ng rtl-sdr libusb-1.0-0-dev cmake

#Create directory to install PagerMon into
cd /
mkdir app
cd /app

#Create file ready for RTL-SDR Dongle
cat <<EOF >no-rtl.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
EOF
mv no-rtl.conf /etc/modprobe.d/

#Download RTL-SDR Software
git clone git://git.osmocom.org/rtl-sdr.git

#Install RTL-SDR Software
cd rtl-sdr/
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
make install
sudo ldconfig
cd /app
cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/

#Reboot to apply settings
reboot

#Reconnect to Terminal Session
sudo su
cd /app

#Perform RTL-SDR Dongle Test
rtl_test

#Download PagerMon
git clone https://github.com/pagermon/pagermon.git
cd pagermon/

#Remove PagerMon Server App (Only if installing on seperate device from server)
rm -R server

#Move into the Client App Folder
cd client/

#Install Client Application
npm install

#Edit reader.sh file to imput frequencies
nano reader.sh

#Create Configuration File
cd config/
cp default.json config.json

#Edit Configuration File to point to PagerMon Server
nano config.json

#Set node environment to production
export NODE_ENV=production

#Setup pm2 for logfile rotation
pm2 install pm2-logrotate
sudo env PATH=$PATH:/home/$USER/.nvm/versions/node/v10.15.3/bin pm2 logrotate -u $USER

#Move back to PagerMon Client Folder and Create an Application
cd /app/pagermon/client/
nano app.json


pm2 start /app/pagermon/client/package.json
pm2 save
sudo env PATH=$PATH:/home/$USER/.nvm/versions/node/v10.15.3/bin /home/$USER/.nvm/versions/node/v10.15.3/lib/node_modules/pm2/bin/pm2 startup systemd -u $USER --hp /home/$USER

Comments: