Thanks for guidance. I will try.
I have found AIS Dispatcher also has user name asi, which caused conflict with the same user name used by my bash script for AIS-catcher. As a result, the Dispatcher failed to install. I then modified my script to use user name “aiscat” instead of “ais”. This resolved the conflict.
I have also found solution to the bug which was causing @SweetPea11’s AIS-catcher to fail to find Dongle when started by Systemd command sudo systemctl start aiscatcher
. The problem was caused because AIS-catcher’s service file was run by user “ais” which did NOT have access to Dongle. Adding user “ais” to group plugdev gave user ais the power to access the Dongle. This required following command:
sudo usermod -a -G plugdev ais
After above command, the Pi is required to reboot to detect and grab the Dongle.
sudo reboot
In view of above bugs, I have done following 3 modifications to the “install-aiscatcher” bash script:
(1) Changed user name from “ais” to “aiscat”
(2) Added command sudo usermod -a -G plugdev aiscat
(3) Added instructions “REBOOT Pi” to be displayed in red in PuTTY when installation completes.