{"id":41,"date":"2012-03-21T15:39:42","date_gmt":"2012-03-21T15:39:42","guid":{"rendered":""},"modified":"2012-06-08T12:42:26","modified_gmt":"2012-06-08T04:42:26","slug":"gnokii-oh-gnokii","status":"publish","type":"post","link":"https:\/\/matnet.my\/blog\/2012\/03\/gnokii-oh-gnokii\/","title":{"rendered":"gnokii oh gnokii"},"content":{"rendered":"<p>Salam all,<\/p>\n<p>1. It&#8217;s most one and half year l left this blog, exactly i forgot that i have blog \ud83d\ude42<\/p>\n<p>2. As usual i wrote this blog is for myself for be my referer on the future.<\/p>\n<p>3. Today i&#8217;ll put some tutorial or it can be HOW to regarding GNOKII the sms gateway.<\/p>\n<p>4. I have been a while trying others sms gateway such as smstools3, gammu and bla bla.. but i&#8217;m fall in with gnokii. (actually it&#8217;s because i only succeed with gnokii not the others :p )<\/p>\n<p>5. Ok lets start. The recipes are:<\/p>\n<p>i. OS (i used Ubuntu 10.10 or 11.10 as u wish)<br \/>\nii. apache+php+mysq+phpmyadmin+and+some+some+tools+to+make+ur+<br \/>\nweb+server+running+perfectly<br \/>\niii. Oldskool phone &#8211; I&#8217;m tested with Motorola L7 and Nokia 3120 Classic<br \/>\niv. Suitable cable for those phones.<br \/>\nv. Machine or Box or Oldskool PC or Laptop<\/p>\n<p>6. How :<\/p>\n<p>a. install OS<br \/>\nb. apt-get update<br \/>\nc. apt-get install -y apache2 mysql-server php5 php5-cli php5-cgi php-pear php-db phpmyadmin libapache2-mod-php5 gcc sendmail<br \/>\nd. apt-get install gnokii gnokii-smsd gnokii-smsd-mysql<br \/>\ne. Plug in your phone &#8211; 1st example Motorola L7<br \/>\nf. configure gnokii config file at \/etc\/xdg\/gnokii\/config<\/p>\n<p>Just edit this value :<br \/>\nport = \/dev\/ttyACM0<br \/>\nmodel = AT<br \/>\nconnection = serial<\/p>\n<p>g. copy config to your home example -&gt; \/home\/ayam\/.config\/gnokii\/config<br \/>\nh. See wheter your phone connected or not : lsusb<\/p>\n<p>i. should show something like this :<\/p>\n<p>root@sms:\/etc\/xdg\/gnokii# lsusb<br \/>\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br \/>\nBus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br \/>\nBus 002 Device 002: ID 22b8:4902 Motorola PCS Triplet GSM Phone (AT)<\/p>\n<p>j. Then running gnokii &#8211;identify<\/p>\n<p>root@sms:\/etc\/xdg\/gnokii# gnokii &#8211;identify<br \/>\nGNOKII Version 0.6.30<br \/>\nIMEI : IMEI358011005412676<br \/>\nManufacturer : Motorola CE, Copyright 2000<br \/>\nNo flags section in the config file.<br \/>\nModel : GSM900&#8243;,&#8221;GSM1800&#8243;,&#8221;GSM1900&#8243;,&#8221;GS<br \/>\nProduct name : GSM900&#8243;,&#8221;GSM1800&#8243;,&#8221;GSM1900&#8243;,&#8221;GS<br \/>\nRevision : R4513_G_08.B7.DCR_R<\/p>\n<p>k. Create mysql db for example smsdb and run this sql<\/p>\n<p>mysql -u root smsdb &lt; \/usr\/share\/doc\/gnokii-smsd-mysql\/sms.tables.mysql.sql<\/p>\n<p>l. Then run the sms daemon<\/p>\n<p>smsd &#8211;module mysql -u root -p urpasswd -d smsdb<\/p>\n<p>m. Tadaa.. now all sms will get into table inbox , if u want to send just insert it into outbox table.<\/p>\n<p>Done for Motorola L7 config, for Nokia 3120 Classic it&#8217;s quite tricky<\/p>\n<p>a. Install libusb<\/p>\n<p>apt-get install libusb-dev<\/p>\n<p>b. Copy \/usr\/share\/doc\/gnokii\/sample\/45-nokiadku2.rules in \/etc\/udev\/rules.d\/ and replugging<br \/>\nthe phone.<\/p>\n<p>c. Edit gnokii config files<\/p>\n<p>port = 1<br \/>\nmodel = series40<br \/>\nconnection = dku2libusb<\/p>\n<p>d. try running gnokii &#8211;identify<\/p>\n<p>root@tukangsms-HP-Pavilion-g4-Notebook-PC:~# gnokii &#8211;identify<br \/>\nGNOKII Version 0.6.29<br \/>\nIMEI : 354193033708210<br \/>\nManufacturer : Nokia<br \/>\nModel : RM-364<br \/>\nProduct name : RM-364<br \/>\nRevision : V 09.41<\/p>\n<p>Walla wehhH.. sudah detect<\/p>\n<p>EOF<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Salam all, 1. It&#8217;s most one and half year l left this blog, exactly i forgot that i have blog &hellip; <a href=\"https:\/\/matnet.my\/blog\/2012\/03\/gnokii-oh-gnokii\/\" class=\"more-link\">More <span class=\"screen-reader-text\">gnokii oh gnokii<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-bsd-nix","standard"],"_links":{"self":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":4,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":57,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions\/57"}],"wp:attachment":[{"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matnet.my\/blog\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}