Here we have 7 steps that you need to follow one step at a time and in order.
Please stop, do not continue to the next step, and post questions in playSMS Forum when you experienced difficulties or found error during following this manual.
Let's start.
-
Make sure you have root access
sudo su -
-
Install Gammu via
apt-get
apt-get install gammu gammu-smsd
-
Create required directories
mkdir -p /var/log/gammu /var/spool/gammu/{inbox,outbox,sent,error}
Note:
- The directory names are case-sensitive
-
Setup Gammu spool directories owner and permission
In this example your webserver's user and group is
www-data
chown www-data:www-data -R /var/spool/gammu/*
You can also set files and folders permission to world-writable
chmod 777 -R /var/spool/gammu/*
-
Get example of
gammu-smsdrc
from playSMS package and copy to/etc/
wget -c https://raw.githubusercontent.com/antonraharja/playSMS/master/contrib/gammu/linux/gammu-smsdrc cp gammu-smsdrc /etc/
Note:
- Before continue to the next step you have to take a look at
/etc/gammu-smsdrc
and edit the file accordingly - Try to identify your modem by running
gammu --config /etc/gammu-smsdrc identify
- You may need to adjust the
port
andconnection
options - Mostly you do not need to change other options
- Do not change the file or directory paths
- Before continue to the next step you have to take a look at
-
Run gammu-smsd
/etc/init.d/gammu-smsd start
-
Verify if
gammu-smsd
is runningps ax | grep -v grep | grep gammu-smsd
Monitor Gammu smsd log file:
tail -f /var/log/gammu/smsd.log