Comment envoyer des SMS en ligne de commande sur RPI ?

Se procurer ce dongle 3g assuré de fonctionner sur RPI : ici, sur Amazon par exemple.

sudo usb_modeswitch  -W -v 05c6 -p f000 -K
sudo aptitude install gammu
sudo aptitude install gammu-smsd
sudo vim /etc/gammu-smsdrc
[gammu]
port = /dev/serial/by-id/usb-Qualcomm__Incorporated_Qualcomm_CDMA_Technologies_MSM_357619049490994-if00-port0
connection = at19200
[smsd]
Service = files
PIN = 1234
LogFile = syslog
InboxPath = /var/spool/sms/inbox/
OutboxPath = /var/spool/sms/outbox/
SentSMSPath = /var/spool/sms/sent/
ErrorSMSPath = /var/spool/sms/error/
sudo mkdir /var/spool/sms/inbox/
sudo mkdir /var/spool/sms/outbox/
sudo mkdir /var/spool/sms/inbox/
sudo mkdir /var/spool/sms/sent/
sudo chmod 777 /var/spool/sms/*
gammu-smsd-inject TEXT 0632265912 -text "MESSAGE"