Menu

Installing SMS

Hugh Barnard

Cclite2 requires SMS to improve security and provide a basis for 2 factor authentication. This isn't nearly as solid as a commercial bank application but it's a step in that direction.

So

  1. Do sudo apt install gammu-smsd if not done already, this will report an error but the software is installed. The systemdunit only is problematic
  2. Attach an SMS dongle with an activated SIM card to a USB port
  3. Check with lsusbto see whether the dongle has registered
  4. For Raspberry Pi, it may be necessary to use raspi-config to activate the serial interface + reboot
  5. sudo udevadm trigger may help also
  6. There is a little test script in python in /usr/share/cclite2/script/misc
  7. The command sudo gammu-smsd --config /etc/cclite2/gammu-smsdrc --pid /var/run/gammu-smsd.pid --daemonwill start the daemon which will read SMS messages into /var/spool/cclite2/sms/inbox
  8. From the inbox, they are picked up and actioned by /usr/share/cclite2/script/read_sms_from_gammu.pl running on a five minute cron in cron.d

There is another way to do this using a commercial SMS gateway. We'll provide an example of how this is set up in a while.


MongoDB Logo MongoDB