This is very easy task as you only need small Linux server and GSM terminal or any phone supported by Gammu.

<h3>
  First step
</h3>

<p>
  Install your favourite Linux distribution, <em>Gammu</em> and <em>Gammu SMS daemon</em> (<em>gammu-smsd</em>) with all dependencies (using <a href="http://download.opensuse.org/repositories/home:/Nijel/">packages</a> or <a href="http://wammu.eu/download/gammu/source/">source</a>).
</p>

<h3>
  Second step
</h3>

<p>
  Connect GSM terminal. I used Netkom MC55i GSM terminal and Serial to USB converter.
</p>

<p>
  You can see below that that I will use <em>/dev/ttyUSB1</em> device.
</p>

<pre lang="text">

$ dmesg […] [235112.037113] usb 2-1.2: new full-speed USB device number 23 using ehci_hcd [235112.130533] pl2303 2-1.2:1.0: pl2303 converter detected [235112.132486] usb 2-1.2: pl2303 converter now attached to ttyUSB1 […]

<p>
  Edit <em>/etc/gammurc</em> file:
</p>

<pre lang="text">

[gammu] device = /dev/ttyUSB1 connection = at

<p>
  Check GSM terminal:
</p>

<pre lang="text">

$ gammu –identify Urządzenie : /dev/ttyUSB1 Manufacturer : Siemens Model : unknown (MC55i) Firmware : REVISION 01.003 IMEI : 927041032653788 SIM IMSI : 160071362584927

<h3>
  Third step
</h3>

<p>
  Install web server with php support, MySQL database server and <a href="http://kalkun.sourceforge.net/">Kalkun</a>.
</p>

<p>
  <em>Kalkun</em> installation instructions can be found at <a href="https://github.com/back2arie/Kalkun/wiki">github.com/back2arie/Kalkun/wiki</a>.
</p>

<p>
  Final <em>/etc/gammu-smsdrc</em> configuration file should look like this:
</p>

<pre lang="text">

[gammu] device = /dev/ttyUSB1 connection = at [smsd] PIN=9999 runonreceive = /var/www/kalkun/scripts/daemon.sh logfile = /var/log/gammu.log commtimeout = 10 sendtimeout = 20 deliveryreport = log phoneid = mdsms transmitformat = auto

Storage - MySQL

service = SQL driver = native_mysql database = kalkun user = kalkun password = kalkun_password pc = localhost

Storage - Files

service = FILES

inboxpath = /home/milosz/sms/inbox/

outboxpath = /home/milosz/sms/outbox/

sentsmspath = /home/milosz/sms/sent/

errorsmspath = /home/milosz/sms/error/

inboxformat = standard

<p>
  To start <em>Gammu SMS daemon</em> execute command:
</p>

<pre lang="text">

$ gammu-smsd

<p>
  You can send SMS using console command (if you want to check configuration):
</p>

<pre lang="text">

$ gammu-smsd-inject TEXT 555333555 -text “Test message”

<p>
  Example log output from <em>Gammu SMS daemon</em> :
</p>

<pre lang="text">

Thu 2012/07/05 23:44:38 gammu-smsd[19711]: Connected to Database: kalkun on localhost Thu 2012/07/05 23:44:38 gammu-smsd[19711]: Connected to Database native_mysql: kalkun on localhost Thu 2012/07/05 23:44:38 gammu-smsd[19711]: Created POSIX RW shared memory at 0x7f781c13b000 Thu 2012/07/05 23:44:38 gammu-smsd[19711]: Starting phone communication… Thu 2012/07/05 23:45:07 gammu-smsd[19711]: Inserting phone info Thu 2012/07/05 23:45:40 gammu-smsd[19711]: Read 2 messages Thu 2012/07/05 23:45:40 gammu-smsd[19721]: Starting run on receive: /var/www/kalkun/scripts/daemon.sh 1 Thu 2012/07/05 23:45:40 gammu-smsd[19711]: Process finished successfully Thu 2012/07/05 23:45:40 gammu-smsd[19711]: Delivery report: Delivered to +48555666555 Thu 2012/07/05 23:45:40 gammu-smsd[19726]: Starting run on receive: /var/www/kalkun/scripts/daemon.sh Thu 2012/07/05 23:45:40 gammu-smsd[19711]: Process finished successfully