Now Kannel can send and recieve messages
Problem : When I run bearerbox. It gives Generic error: ERROR
Solution : In kannel.conf file

By default sim-buffering = true
I change to this
sim-buffering = false

I get hint from Alvaro Cornejo reply on kannel mailing list.

RE: As you can see; it seems that your modem does not support SM (SIM) storage. Try defining equipment storage “EM” as yoru store. Check guide for details.

I help my friends Jaspreet Sarao, Damanpreet in mysql.
Jaspreet problem is in while loop of query.
Daman problem is how to get know about table is empty or not.
I suggest to use count function.

Outreach Program For Women

I want to participate in this internship program.

Process of program:
(i) Contribute any one organization in project.
(ii) Write application, give detail of done project and resume.
Submission date is 3 december.
(iii) Selected students are going for internship.

I am interested in these organizations and related projects.
1. OpenITP

(i) Integration between dokuwiki and etherpad-lite : pad-like interface for simultaneous multi-person DokuWiki editing that respects ACLs, can handle SSL.
(ii) UX designer at large : UX design task for a free software anti-censorship or anti-surveillance project

2. Deltacloud

(i) Improve deltacloud website : Improve site navigation, styling and documentation of Deltacloud in HTML, CSS

3. Wikimedia

(i) Write extension for pulling files from git repository : Write an extension that would accomplish most of the features offered by large pastebin websites, with the added bonus of being able to add code to a wiki page without copying and pasting.
(ii) Create an extention of mediawiki : Creating extensions to MediaWiki is a great way to make it better. It contributes something new and cool to the community, and the Wikimedia sites (including Wikipedia!) might even decide to deploy your software, if it’s really neat.

 

My 7210 Nokia phone finally connected with kannel.
It show status OK.
But not sending messages.

Now every phone present in my home connect with kannel.
Why kannel website provide wrong information(http://www.kannel.org/compatibility.shtml).

When I attach my Nokia 7210 phone to kannel and start bearerbox

bearerbox -v 1 kannel.conf

2012-11-18 21:32:58 [5100] [0] INFO: Debug_lvl = 1, log_file = <none>,
log_lvl = 0
2012-11-18 21:32:58 [5100] [0] INFO: MYSQL: Connected to server at localhost.
2012-11-18 21:32:58 [5100] [0] INFO: MYSQL: server version
5.5.28-0ubuntu0.12.04.2, client version 5.5.28.
2012-11-18 21:32:58 [5100] [0] INFO: DLR using storage type: mysql
2012-11-18 21:32:58 [5100] [0] ERROR: Couldn’t open logfile
`/var/log/kannel/bearerbox.log’.
2012-11-18 21:32:58 [5100] [0] ERROR: System error 2: No such file or directory
2012-11-18 21:32:58 [5100] [0] ERROR: Couldn’t open logfile
`/var/log/kannel/access.log’.
2012-11-18 21:32:58 [5100] [0] ERROR: System error 2: No such file or directory
2012-11-18 21:32:58 [5100] [0] INFO: SSL not supported, no SSL
initialization done.
2012-11-18 21:32:58 [5100] [0] INFO: HTTP: Opening server at port 13015.
2012-11-18 21:32:58 [5100] [0] INFO: BOXC: ‘smsbox-max-pending’ not
set, using default (100).
2012-11-18 21:32:58 [5100] [0] INFO: Set SMS resend frequency to 60 seconds.
2012-11-18 21:32:58 [5100] [0] INFO: SMS resend retry set to unlimited.
2012-11-18 21:32:58 [5100] [0] INFO: DLR rerouting for smsc id <Nokia> disabled.
2012-11-18 21:32:58 [5100] [0] INFO: AT2[Nokia]: configuration shows
modemtype <USB Modem>
2012-11-18 21:32:58 [5100] [0] INFO: AT2[Nokia]: modemtype not found,
revert to autodetect
2012-11-18 21:32:58 [5100] [0] INFO: —————————————-
2012-11-18 21:32:58 [5100] [0] INFO: Kannel bearerbox II version 1.5.0 starting
2012-11-18 21:32:58 [5100] [6] INFO: AT2[Nokia]: opening device
2012-11-18 21:32:58 [5100] [0] INFO: MAIN: Start-up done, entering mainloop
2012-11-18 21:32:59 [5100] [6] INFO: AT2[Nokia]: speed set to 115200
2012-11-18 21:33:01 [5100] [6] INFO: AT2[Nokia]: Closing device
2012-11-18 21:33:01 [5100] [6] INFO: AT2[Nokia]: detect speed is 115200
2012-11-18 21:33:01 [5100] [6] INFO: AT2[Nokia]: opening device
2012-11-18 21:33:02 [5100] [6] INFO: AT2[Nokia]: speed set to 115200
2012-11-18 21:33:05 [5100] [6] INFO: AT2[Nokia]: Closing device
2012-11-18 21:33:05 [5100] [6] INFO: AT2[Nokia]: opening device
2012-11-18 21:33:05 [5100] [6] INFO: AT2[Nokia]: Logging in
2012-11-18 21:33:05 [5100] [6] INFO: AT2[Nokia]: init device
2012-11-18 21:33:05 [5100] [6] INFO: AT2[Nokia]: speed set to 115200
2012-11-18 21:33:07 [5100] [6] INFO: AT2[Nokia]: AT SMSC successfully opened.
2012-11-18 21:33:07 [5100] [6] ERROR: AT2[Nokia]: Generic error: ERROR
It gives following error
Generic error: ERROR

Andreas Fink on kannel mailing list reply my mail
RE: Run it with debug level = 0 to see the AT comand.

Then I run bearerbox with this command
bearerbox -v 0 kannel.conf

But unable to find the problem

I use to run kannel on ubuntu 10.04.Because when ever I try to install kannel on ubuntu 12.04. Problem occur in sqlbox
configure: error: Kannel gwlib is required!
Solved by using this command
svn co https://svn.kannel.org/sqlbox/trunk sqlbox

Now kannel run on 12.04

kannel Compatible devices(http://www.kannel.org/compatibility.shtml)
Now the only problem is that I have no compatible device to run kannel.

The following command gives basic information about the modem port, speed, and init string, along with information about your Internet Service Provider (ISP), such as the phone number, your username, and your password.

$ wvdialconf
(with sudo permission)

PHP run in public_html of Debian Server

http://devplant.net/2010/05/04/linux-php-not-working-in-userdir-public_html/

Now I use stable version of kannel i.e kannel 1.4.3
when I run this command
bearerbox -v 1 kannel.conf

I got this error

2012-11-15 16:46:19 [11852] [6] PANIC: AT2[Nokia 7210]: Cannot detect
modem and generic not found
2012-11-15 16:46:19 [11852] [6] PANIC: bearerbox(gw_panic+0xd2) [0x80cd372]
2012-11-15 16:46:19 [11852] [6] PANIC: bearerbox() [0x806db53]
2012-11-15 16:46:19 [11852] [6] PANIC: bearerbox() [0x80c303b]
2012-11-15 16:46:19 [11852] [6] PANIC:
/lib/i386-linux-gnu/libpthread.so.0(+0x6d4c) [0xb775bd4c]
2012-11-15 16:46:19 [11852] [6] PANIC:
/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb7231d3e]

Kannel compatible phone devices

Nokia 6210
Nokia 7110
Nokia 9110i with WAP client
Siemens C35
Siemens S35i
Ericsson R320
Ericsson R380
Motorola Timeport P7389
Motorola TalkAbout T2288
Sony Z5
Alcatel OneTouch 501

I did not find any one of them.

When I tried to install kannel on ubuntu 12.04 LTS.
problem occur in sqlbox installation.
I use this version of kannel.
gateway-1.5.0.tar.bz2 development version.
I don’t know which version of kannel and sqlbox I use on ubuntu 12.04?

which GSM modem should I use to connect with kannel?

Gnokii
Gnokii is a suite of programs for communicating with mobile phones. It was initially only available for Nokia mobile phones, but later extended to support others. It is available for GNU/Linux, BSD unix, Windows, and Mac OS X and as source code.

Digital Puppetry
Digital puppetry is the manipulation and performance of digitally animated 2D or 3D figures and objects in a virtual environment that are rendered in real time by computers. Digital puppetry differs from conventional computer animation in that it involves performing characters in real time, rather than animating them frame by frame. Digital puppetry is also known as virtual puppetry, performance animation, living animation, live animation and real-time animation.

Jruby
JRuby is a Java implementation of the Ruby programming language. It is free software released under a three-way CPL/GPL/LGPL license. JRuby is tightly integrated with Java to allow the embedding of the interpreter into any Java application with full two-way access between the Java and the Ruby code.

Redmine
Redmine is a free and open source, web-based project management and bug-tracking tool. It includes a calendar and Gantt charts to aid visual representation of projects and their deadlines. It handles multiple projects. Redmine provides integrated project management features, issue tracking, and support for various version control systems. Redmine is written using the Ruby on Rails framework. It is cross-platform and cross-database.

Jenkins CI is the leading open-source continuous integration server. Jenkins is an award-winning application that monitors executions of repeated jobs, such as building a software project or jobs run by cron. Jenkins focuses on the following two jobs:
1.Building/testing software projects continuously,
2.Monitoring executions of externally-run jobs

The Joel Test (12 questions to test a code)
The neat thing about The Joel Test is that it’s easy to get a quick yes or no to each question. You don’t have to figure out lines-of-code-per-day or average-bugs-per-inflection-point.

Do you use source control?
Can you make a build in one step?
Do you make daily builds?
Do you have a bug database?
Do you fix bugs before writing new code?
Do you have an up-to-date schedule?
Do you have a spec?
Do programmers have quiet working conditions?
Do you use the best tools money can buy?
Do you have testers?
Do new candidates write code during their interview?
Do you do hallway usability testing?

I appear for placement drive of TIT Infotech.

Questions which asked to me are.

Introduce yourself
What is php?
What is current version of linux server?
I answer ubuntu 12.10
What is cpanel?
What is samba?
I smile and said samba is a character which played role in a sholay movie.
Where you get training and who is your mentor?
When you join us?
I answer after college.
when ?
May 2013

Cron is the time-based job scheduler in Unix-like computer operating systems. cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email.

I use crontab for this.

$ crontab -e //to edit crontab file
Select your favourite editor by pressing 1 or 2 // i use vim
Add following line in file
[1] [2] [3] [4] [5] /path/of/your/file.php

1.minute
2.hour
3.day
4.month
5.day of the week

example of file.php

#!/usr/bin/php
<?php
include ‘db.php’;
$query = mysql_query(“UPDATE users SET account=10″);
?>

This cron job execute cronjob.php at 1:47

47 1 * * * /var/www/api/cronjob.php

Write home page script for my project

Vigas give seminar on how to point domain on server.

Domain Name System

Name Server

13 main DNS server which define a route of website i.e a to m
These a to m contain database which redirect the request to main server.

BIND is the most widely used DNS software on the Internet, on Unix-like operating systems.
bind are of two types
master and slave

IP classes (A,B,C,D,E)
C(192-223) is most used class for LAN network.

Every modem has an ip address which connects various lan computers
That’s why it need once to login with cyber roam.

Command used to trace the route
traceroute

This one is for Checking the way, how NS are resolved.
$ dig + trace www.google.com

Today Me and Harman examine how ssh attack can be done on server.

Firstly We find that where ssh log information is store ssh logs store in auth.log file.

We assume
My laptop(experimental user or bot file)
Harman laptop(experimental server)
Satinder laptop(connect server)

I did ssh on harman laptop and user login information is store in auth.log file of harman’s laptop. From harman’s laptop I tried to ssh on satinder’s laptop by using different invalid users and check the satinder auth.log file and found that these logs were similar to those sent by connect. We were trying to find from the logs of satinder the traces about the user of harman’s laptop from which invalid user request were sent but We did not find any information about that user.

Here is satinder auth.log file

Nov 5 13:56:07 goraya sshd[8731]: Invalid user william from 192.168.7.110
Nov 5 13:56:07 goraya sshd[8731]: input_userauth_request: invalid
user william [preauth]
Nov 5 13:56:11 goraya sshd[8731]: pam_unix(sshd:auth): check pass; user unknown
Nov 5 13:56:11 goraya sshd[8731]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=angrybird.local
Nov 5 13:56:12 goraya sshd[8731]: Failed password for invalid user
william from 192.168.7.110 port 35595 ssh2
Nov 5 13:57:00 goraya sshd[8731]: pam_unix(sshd:auth): check pass; user unknown
Nov 5 13:57:01 goraya sshd[8731]: Failed password for invalid user
william from 192.168.7.110 port 35595 ssh2
Nov 5 13:57:03 goraya sshd[8731]: pam_unix(sshd:auth): check pass; user unknown
Nov 5 13:57:04 goraya sshd[8731]: Failed password for invalid user
william from 192.168.7.110 port 35595 ssh2
Nov 5 13:57:05 goraya sshd[8731]: Connection closed by 192.168.7.110 [preauth]
Nov 5 13:57:05 goraya sshd[8731]: PAM 2 more authentication failures;
logname= uid=0 euid=0 tty=ssh ruser= rhost=angrybird.local
Nov 5 13:57:28 goraya sshd[8736]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=angrybird.local
user=satinder
Nov 5 13:57:31 goraya sshd[8736]: Failed password for satinder from
192.168.7.110 port 35633 ssh2
Nov 5 13:57:39 sshd[8736]: last message repeated 2 times
Nov 5 13:57:39 goraya sshd[8736]: Connection closed by 192.168.7.110 [preauth]
Nov 5 13:57:39 goraya sshd[8736]: PAM 2 more authentication failures;
logname= uid=0 euid=0 tty=ssh ruser= rhost=angrybird.local
user=satinder
Nov 5 13:58:35 goraya sshd[8745]: Invalid user dummy from 192.168.7.110
Nov 5 13:58:35 goraya sshd[8745]: input_userauth_request: invalid
user dummy [preauth]
Nov 5 13:58:39 goraya sshd[8745]: pam_unix(sshd:auth): check pass; user unknown
Nov 5 13:58:39 goraya sshd[8745]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=angrybird.local
Nov 5 13:58:41 goraya sshd[8745]: Failed password for invalid user
dummy from 192.168.7.110 port 35657 ssh2
Nov 5 13:58:44 goraya sshd[8745]: pam_unix(sshd:auth): check pass; user unknown
Nov 5 13:58:46 goraya sshd[8745]: Failed password for invalid user
dummy from 192.168.7.110 port 35657 ssh2
Nov 5 13:58:48 goraya sshd[8745]: pam_unix(sshd:auth): check pass; user unknown
Nov 5 13:58:51 goraya sshd[8745]: Failed password for invalid user
dummy from 192.168.7.110 port 35657 ssh2
Nov 5 13:58:51 goraya sshd[8745]: Connection closed by 192.168.7.110 [preauth]
Nov 5 13:58:51 goraya sshd[8745]: PAM 2 more authentication failures;
logname= uid=0 euid=0 tty=ssh ruser= rhost=angrybird.local