Cool Apps

SQUID log analizer

By WladyX on 20 January, 2012 | Cool Apps, Squid | A comment?

Linux audit files to see who made changes to a file

By WladyX on | Cool Apps | A comment?

Mail to SMS using procmail

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 ;-)

source

By WladyX on 12 January, 2012 | Cool Apps, Scripts | A comment?

gLabels

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).

homepage

By WladyX on 29 December, 2011 | Cool Apps | A comment?

SSHplus

sshplus rename to sshplus.py

If there is no icon, change:
ind = appindicator.Indicator("simplestarter", "network-transmit-receive",

source source2

By WladyX on 14 October, 2011 | Cool Apps, Ssh, Ubuntu | 1 comment

Sending SMS with SMPP, Kannel and Java

By WladyX on 7 October, 2011 | Cool Apps, General | A comment?

DBeaver – free universal database tool

Supported (tested) databases:

  • MySQL
  • Oracle
  • PostgreSQL
  • IBM DB2
  • Microsoft SQL Server
  • Sybase
  • ODBC
  • Java DB (Derby)
  • Firebird (Interbase)
  • HSQLDB
  • SQLite
  • Mimer
  • H2
  • IBM Informix
  • SAP MAX DB
  • Cache
  • Ingres
  • Linter
  • Any JDBC compliant data source

download

By WladyX on 29 September, 2011 | Cool Apps, Mysql | A comment?

jNetMap

Advanced network scanner
jNetMap will ping all registered devices every x minutes, updating it’s status according to the result of the ping. Alternatively you can also monitor a specific port, such as port 80 for webservers. Available devices are green, unavailable devices are red. Gray means “unknown” and orange “not found”.
link
By WladyX on 7 June, 2011 | Cool Apps | A comment?

USB Multiboot

By WladyX on 14 February, 2011 | Cool Apps, General | A comment?

New theme promises seamless GTK apps in KDE

oxygen-gtk

source

By WladyX on 21 January, 2011 | Cool Apps, Style, X11 | A comment?