Friday, February 15, 2013

/bin/bash: Permission denied


[root@host /]# su - user1
/bin/bash: Permission denied

Scenario:  My system is not responsive to any process, so i was forced to reboot. Suddenly i cannot login as ordinary user  "user1" 

Solution:  I look the permission of /bin/bash

[root@host ~]$ ls -l /bin/bash
-rwx------. 1 root root 938736 May 10  2012 /bin/bash

tried to change the permission 
[root@host ~]$ chmod 700 /bin/bash
-rwxr-xr-x. 1 root root 938736 May 10  2012 /bin/bash

Then I try to change the permission of the whole /bin  directory

[root@host ~]$ chmod -R 755 /bin

NOW I  CAN login...


Saturday, February 2, 2013

Database Mysql/MSaccess to Oracle migration all weekend


Its been almost a week trying to solve this database migration. The source in msaccess, mysql, csv and text file and my target database is oracle. 

Here are the following steps in my migration path:

1. Install oracle database server Oracle Database 11gR2 on CentOS 6.3 64 bit

2.  Install Sqldeveloper on MacOSX 10.6.8 64bit plus third party database connection (jtds driver, mysql driver and access driver)

3.  Oracle database repository preparation 

4.  Actual migration process using sqldeveloper migration tool.

5. Test and verify migration process.

Details of this process is not part of this post.

Thursday, January 17, 2013

From: The Zen of Python


    Beautiful is better than ugly.
    Explicit is better than implicit.
    Simple is better than complex.
    Complex is better than complicated.
    Flat is better than nested.
    Sparse is better than dense.
    Readability counts.
    Special cases aren't special enough to break the rules.
    Although practicality beats purity.
    Errors should never pass silently.
    Unless explicitly silenced.
    In the face of ambiguity, refuse the temptation to guess.
    There should be one-- and preferably only one --obvious way to do it.
    Although that way may not be obvious at first unless you're Dutch.
    Now is better than never.
    Although never is often better than *right* now.
    If the implementation is hard to explain, it's a bad idea.
    If the implementation is easy to explain, it may be a good idea.
    Namespaces are one honking great idea -- let's do more of those!

Friday, August 24, 2012

Nagios



Perfect monitoring tool for networking equipments, servers, network services and more.

With Nagios you can:
  • Monitor your entire IT infrastructure
  • Spot problems before they occur
  • Know immediately when problems arise
  • Share availability data with stakeholders
  • Detect security breaches
  • Plan and budget for IT upgrades
  • Reduce downtime and business losses

Servers and services are increasing,  to meet the expectation of our client there must be some ways to monitor  our infrastructure.  
With nagios almost all the features you need is already there, you just need a little tweak on the configuration. 


Monday, March 5, 2012

3rd Party Sip Setting on CUCM

Steps in configuring third party sip phone for CUCM v 7.0.2

CUCM Configuration:
1. Create a security phone profile for 3rd party sip devices with digest authentication

2. Create End User account with digest credentials

3. Add a new device with a third party SIP (basic as phone type)

4. Input the mac address of the device and fillup all the required settings
*associate it with your user id

5. Associated with your directory number information

6. Save the changes and try to test with your device.



Client configuration
X-lite:
1. Account Name:
2. User Id:
3. Domain:
4. Password:
5. Authorization name:

Sip client for iphone
1. Userid
2. password:
3. host:

Tuesday, February 7, 2012

My notes for the Day

I am inherently lazy and i need to think on how to make my life easier.
I don't like repetitive job coz i find it boring.
I will try to automate things and break the complicated into small pieces.
Stay happy & hungry.


When we learn we become a better person.