Saturday, July 13, 2013

Cisco 7975 Factory Reset

Factory Reset of Cisco 7975:

  1. Unplug the power cable from the ip phone and then plug it back in.
  2. While the phone is powering up, and before the Speaker button flashes on and off, press and hold the hash # key.
  3. Continue to hold # until each line button flashes on and off in sequence in orange color.
  4. Now release the hash # key and type the following sequence 123456789*0#

Factory Erase including Splash Screen:

Follow the above instructions, For the key sequence in Step 4 use this

3491672850*#

 Start the ftp server. It should be loading the firmware.

Disposable Linux TFTP Server

Whenever we talk about a server, always it need not be highly configurable.

I was looking for a simple tftp server to upgrade phone firmware. Either it comes with xinetd or service related things with all unwanted security settings etc..

Would you argue what is safe?

I just need a standalone executable to serve files via tftp and dispose it off. Not as a installed service or xinetd crap.

tftpgui under linux did a pretty awesome job.

Run in the  command line  

kans@kansmac14 ~/Downloads/tftpgui $ sudo ./tftpgui.py

You are given a simple UI to select the folder to serve file and logging.

Pretty Simple and Awesome ! Simple Engineering need to be Simple.

Saturday, April 27, 2013

Cisco 7975G / 7975 into trouble again


I want to change my SIP proxy (asterisk) from my router to my QNAP NAS.
Had to configure tftp with the right config on xmls.

Awesome tftpd-ha setup made me a round trip.

/etc/default/tftpd-ha - need to be configured with right user and the root folder should be with the correct permissions.

TFTP_USERNAME="root"
RUN_DAEMON="yes"
OPTIONS="-l -s -c /home/username/Downloads/test"
TFTP_DIRECTORY="/home/username/Downloads/test"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"

Make sure you have dhcp options 150 set with right IP Address.

Again I'm pleased with the voice and mic quality of Cisco Phone !

 

Wednesday, July 11, 2012

Installing a Laser Printer on Linux

HL2270DW - Brother Laser Printer Installation in few seconds. No drivers to Install

Used the URI I used was: ipp://$IP/pcl_p1 and the driver I chose was "Generic PCL Laser Printer" with the Duplex option checked. And it's worked perfectly since then!! How awesome is that.

Wednesday, February 29, 2012

RhodeCode - Awesome Mercurial Management Tool (Including User Management)

Apache Configuration



    ServerName yourservername
    ErrorLog /var/log/httpd/namedserver-error_log
    CustomLog /var/log/httpd/namedserver-access_log common
    WSGIDaemonProcess pylons user=apache group=root processes=1 \
    threads=4 \
    python-path=/usr/lib/python2.6/site-packages/
    WSGIScriptAlias / /var/www/vhosts/servername/rhodecodewsgi/dispatch.wsgi
    WSGIPassAuthorization On


Ldap Configuration:

User Management:


General Usage Process:

Saturday, February 11, 2012

Mercurial Clone without SubRepositories


Clone Mercurial without its Repositories.

hg clone --noupdate repo  destdir



Thursday, May 5, 2011

Cloud Internet Telephony Services - SaaS

Interesting Sites:

http://www.tropo.com/
http://www.twilio.com/
http://www.teleku.com/
http://www.phono.com/


Thursday, February 3, 2011

Basic Linux Network Setup


Basic Linux Network Setup.

To change IP and make network up:

ifconfig eth0 10.50.110.205 netmask 255.255.255.0 up
This make the NIC to have an ip address

To add default route:

route add default gw 10.50.110.1
This makes the IP packets to flow through the gateway

To resolve name:

vim /etc/resolve.conf   (add nameservers or a local search)


Friday, January 21, 2011

SugarCRM as a Matrimony Website

I was thinking of having Matrimony website for our community needs. I found SugarCRM as a better framework for the same.

http://matrimony.musugundan.com

Another Open Source benefiting the community.

Better termed to be as Open Source Matrimonial Software.

Friday, December 31, 2010

Apache Error PHPMotion The requested URL /upload-media was not found on this server

When you setup PHPMotion video website you will encounter the following error first,

The requested URL /upload-media was not found on this server.

It happens due to the error in Apache Config. Add the following Directory Element to the config file.

<Directory "/var/www/htdocs/htdocs">

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

</Directory>



The above directory entry assumes that you have installed phpmotion in /var/www/htdocs/htdocs.

It all happens since .htaccess is denied to run from those directories.

Thursday, December 16, 2010

Worked in Command Line but not through Apache

If something works locally and if that is not working through Apache or outside of the box in a linux system. It cab be of two problems.

1. iptables
2. selinux


With iptables, mostly outgoing connection will not be a problem if the NAT is set properly.
SELinux works on top of it.

setsebool -P httpd_can_network_connect=1

Will all outside the box connectivity with Apache or any other resources.

Add VMware Tools into CentOS 5.5

Sometimes, adding an existing software can be of pain with less documentation. This is one the scenario I had to face it. Lab manager from VMWare provides easy spinning of virtual servers, to get the template complete you need to get the necessary tools installed before you publish. When I click on install, it actually mounts the ISO to the directory but it does not installs it.

find . | grep VMware
mount (found dev)  localdir
cp VMware....  ~/
tar zxvf VMware.....tar.gz
cd vmware-tools-distrib
./vmware-install.pl


You are done. It installs all the Guest Additions before you publish the machine template.

Friday, December 10, 2010

Splitting PCAP or CAP Files

Tool that comes with Wireshark has inbuilt split of the captures. In case if you set the file to higher size, then you can split the file as below.


C:\Program Files\Wireshark\editcap.exe  -c numberofpackets   infile outfile

In linux,

path of wireshark in most of the systems will be in the PATH

editcap -c numberofpackets infile outfile

should split the files into smaller size.

Wednesday, October 20, 2010

Need Digital Frame From Apple

One of the things I liked from Apple Technologies, every product works good for layman without much difficulty.

Apart from all the range of products like mp3 players to iPod, phone to iPhone, tablet to iPad, tv to AppleTV etc., Like this I want to see something like iFrame just to see pictures in the wall. Ideally I would like to see 6 to 23 inch screens to see the clarity of the pictures taken these days. I'm not convinced with any of the manufactures so far.

Specifications:

  1. 6 to 23 inches
  2. Update over the wifi
  3. Physical Network Capable
  4. Auto Contrast
  5. Video Capable
  6. Read the images from rss feeds, standard hosting websites.
  7. Touch screen settings

Monday, August 23, 2010

Iphone 4 - Free Bumper Case - Steve Jobs Design

With the greatness and trust on Steve Jobs and his team's design on iPhone4. Bought that little gadget. Claims were made for the signalling problems (also applied some magic formula to show the signal strength high) and the creators compared with the all the phones available in the market to show they are not worst compared to others. All for making money sake and not to accept their poor design.



I ordered the poor Apple's Bumper another wrong assumption that their creation is great. I used to listen to songs and audiobooks on my travel using the Panasonic Noise Cancellation Headphones. This little bumper cannot even accept the standard stereo plug into the socket of the iPhone4 with the Bumper. If you plug it in it throws it away automatically. Please don't blame to Apple, Steve Jobs will bring all phone and insert the stereo plugs to those phones and will create a web page like this.

Last but not the least, I throwed the Apple's Bumper to the shelves and got another one from Costco which did the same job plus it accepted all types of stereo plugs.

Worthless Free Case. Another poor design from a creative company.

Trust me. I'm not a regular phone user. I like using Applications based upon Data. Iphone4 is not good as a phone, but somewhat good for data applications with a better graphics.

Friday, August 20, 2010

php-cgi.exe exceeds the current memory limitation

Problems:
Memory on php-cgi runs out when executing php-scripts.
Formula for Instances:

Ideal Instances: (TotalMemory in GB/Instances) < 2

Recommended Instances: (TotalMemory in GB / Instances) < 1

If you are using IIS or apache check for the following parameters which affects the performance of php,

These are settings in
php.ini Settings:
session.gc_probability = 1
session.gc_divisor     = 100
session.gc_maxlifetime = 14400 - After 4 hours it resets all the Garbage collected Data.


Web Server Settings:

NumberofRequest Per Instance
MaxRequests for the CGI
Maximum Number of Instances

It works charm with distributed memory on the distributed instances.

Thursday, August 19, 2010

How to find whether a mail is sent or Received?

I was thinking of a way to find whether an email in a folder whether it is Sent or Received mails. It may happen through any of the existing protocol (POP3, IMAP).

Check for "Received" header in the email headers. If you have values on the received headers then it is a Sent Email otherwise it is a received email to that mailbox.

Sunday, August 8, 2010

Warning: Cannot modify header information - PHP error on packages - Solved

Warning: Cannot modify header information

You can resolve this error in three ways. This recently happened on a plain vannila wordpress install just modifying the wp_config.php in windows. The file encoding got changed to UTF (With BOM).

As a normal user if you are just installing the package or if you edited a file then this is purely a encoding problem on the file.

Use editor like notepad++ and change the encoding of the file (Encoding Menu) to ANSI or if the File is in UTF-8  then encode in Encode in UTF-8 Without BOM. This should resolve the problem.

If you are developer having code problem,

  1. Chances you have space or empty lines or characters going out of your code before the
  2. Use ob_start(); function. If you cannot control the output then use ob_start(); function at top the page, then your problem of "modify header" will be resolved. ob_start() is output controlling function. This is an urgent way of fixing it but not a clean way.


Hope this helps.

Wednesday, August 4, 2010

SugarCRM Relationship Error - Solved

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in E:\SugarCRM\modules\Relationships\Relationship.php

If you get error like this means your cache is having a problem. Delete all the files and rebuild the cache twice. It is also wise to copy the cache directory from a working SugarCRM instance and rebuid the cache twice.

Enjoy.

Tuesday, June 8, 2010

IPhone 4 - 3G - SIP

I'm using iphone right from the first generation. Somehow apple made a nice user interface which is much appreciated. Eventhough it still needs reboot like windows after using sometimes.

One thing much appreciable about the 4th Version is the open standard. HTML5 and the SIP. With SIP it must be easily interoperable with many services and easier to extend the services to enterprise market. Extending SIMPLE to Iphone 4, also let know about the presence of the user before we call them. So we can avoid voicemails and hit calling them. We can also make automated relaxed call as soon as the other person is available.

I foresee Mobileme will bring video from iphone and you should be able to watch Iphone video from Browser through your http connection. No extras fittings.


Thanks to Endgadget for the photo.

Nice list with the nice interface.

H.264 & AAC is the codec
SIP - Session Intiation Protocol
STUN - Session Traversal Utilities for NAT
TURN - Traversal Using Relay NAT
ICE - Interactive Connectivity Establishment
RTP - Realtime Protocol
SRTP - Secure RealTime Protocol

Also on my dreams I should be able to have more than one phone number for my mobile. With these technologies you have any country phone number to your mobile. Providers such as localphone are readily available on Open Standards to connect with them.

Thanks to Jeff Pulver for creating me interests on these technologies. He made me to make the first VoIP Call to Newyork, USA from London, United Kingdom in 2002. Kudos to Steve Jobs for making the nice graphics workable box again.