Installation
Once you have plugged the USB Data cable and the T230 phone, you may have:
root@smsserver:~# lsusb
Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 001: ID 0000:0000
root@fr-c400-0257-l:~# ls -la /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 2007-03-22 10:17 /dev/ttyUSB0
root@smsserver:~#
You can test your configuration using minicom
root@smsserver:~# minicom -s
-s is for minicom setup on launch. You may configure the serial port to /dev/ttyUSB0 and the speed to 9600 8N1.
Welcome to minicom 2.2
OPTIONS: I18n
Compiled on Mar 7 2007, 15:10:03.
Port /dev/ttyUSB0
Press CTRL-A Z for help on special keys
AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
OK
AT&C1
OK
ATM0
OK
ATDT1234
NO CARRIER
ATM0
OK
AT+CPIN?
+CPIN: READY
OK
AT+CMGF=1
OK
AT+CMGS
ERROR
AT+CMGS="06XXXXXXXX"
> Hello World
+CMGS: 0
OK
gnokii settings
Edit the /etc/gnokiirc file:
port = /dev/ttyUSB0
[...]
model = AT
# model = 6510
[...]
use_locking = no
#use_locking = yes
[...]
serial_baudrate = 9600
# serial_baudrate = 19200
The use_locking setting has been modified as it may happen that I send SMS to more than one people at a time. The solution would be to use smsd…
From Mail to SMS
As we are using postfix and procmail, root user may not be used!
Let’s create a itroot user that will be the recipient of email notification to be turned into SMS.
Create a .procmailrc file for this user. A convention will be used for notification emails. The subject will contain [SMS] and only the subject of the email will be transfered as an SMS:
DEFAULT=/var/spool/mail/itroot
MAILDIR=$HOME/Mail
:0
* ^Subject:.*\[SMS\].*
| cat - | awk -F":” ‘$1 == “Subject” { for(i=2; i <=$NF; i++) $(i-1) = $i; print $0 }’ | sudo /usr/bin/gnokii –sendsms 06XXXXXXXX >> /var/log/SMS.log 2>&1
As you can see, due to permissions issue, itroot as been allowed to invoke gnokii using sudo without password. This implies the following line in /etc/sudoers:
itroot ALL = NOPASSWD: /usr/bin/gnokii
More over, a log file has been created with write permission for itroot user: /var/log/SMS.log". This log file will allow you to make sure that gnokii is doing its job
gLabels is a program for creating labels and business cards for the GNOME desktop environment. It is designed to work with various laser/ink-jet peel-off label and business card sheets that you’ll find at most office supply stores. gLabels is free software and is distributed under the terms of the GNU General Public License (GPL).
sshplus rename to sshplus.py
If there is no icon, change:
ind = appindicator.Indicator("simplestarter", "network-transmit-receive",