Monday, February 13, 2012

Most Famous logos and its meaning

Hi Friends ,

This is  a simple but very good link to know famous Logo's and meanings associated with it.

Click here 

Best Regards,
Girish



Wednesday, February 1, 2012

Mysql installation on MAC OS X version 10.6.8


Hi,
Untar mysql in /usr/local/mysql  --> tar -zxvf filename .
As per instructions from INSTALL_BINARY (mysql) , we need to add groups , users , set permissions.

Once done , go to :

1. /usr/local/musql/bin
2. execute ./mysqladmin -u root -p Newpassword (Change root password for MySql)
3. ./mysql -u root -p
4. Enter new set password.

Once connected, you can list databases using

mysql> show databases;
mysql> use databasename;
mysql> show tables;
mysql> create table customer (custid INT , name TEXT);
mysql> insert into customer values(12,'Girish');

Database name --> test
Table name --> customer

While trying to connect using PHP we got following error :
------------------------------------------------------------
warning mysql_connect() function.mysql-connect 2002 no such file or directory (trying to connect via unix:///

Refer Link:
http://stackoverflow.com/questions/3968013/cakephp-no-such-file-or-directory-trying-to-connect-via-unix-var-mysql-mysq

Code :
--------


$con = mysql_connect("localhost","peter","abc123");
...
Error was with above line.

Solution :
----------
mysql defaults to use local unix domain sockets if you use localhost. Switching to the IP forces it to use TCP sockets instead

In above code insted of localhost we user 127.0.0.1 ip , and it worked Fine!!!!


Regards,
Girish

Tuesday, January 31, 2012

Thursday, December 29, 2011

error: PAM: authentication error for root from xxx.xxx.xxx.xxx

Hi,

I recently installed freebsd 8.2 on my lap, its very good experience using this OS. I had simple issue after installation. While doing ssh to FreeBSD installed on vmware I came up with above error.

Which clearly states that issue is with authentication , which we need to configure in ssh service.

We need to add below three options in /etc/ssh/sshd_config

PermitRootLogin yes 
PasswordAuthentication yes 
AllowUsers root


Thats it, we are done , now we can ssh to FreeBSD installed in vmware, one common mistake I did ,was adding these above lines in /etc/ssh/ssh_config.

So there are 2 files in /etc/ssh/ directory i.e /etc/ssh/ssh_config & /etc/ssh/sshd_config


We are suppose to configure above 3 options in sshd_config  then only it will work like charm!

Regards,
Girish

Monday, December 19, 2011

Determining IP Information for eth0... failed; no link present. Check cable?

Hi,


While working on RHEL5 installed on VMWARE I got this error restarting network service.

Little bit around 1 min I noticed that Ethernet option for VMWARE is off !!! that's the reason RHEL5 thrown this error.
 










Regards,
Girish

Sunday, December 18, 2011

httpd-2.2.3-31.el5.i386: Cannot find a valid baseurl for repo: Server

Hi All,


Actually its very basic mistake, in such type of errors if you have http repository setup, check once if http url is accessible from client or not.


If not accessible the probably problem with http service, but if accessible then ? ? ? ?

Then problem was very simple, it was wrong baseurl in /etc/yum.repos.d/yumconf.repo file

Here is sample of wrong configuration :

[root@station2 ~]# cat /etc/yum.repos.d/yumrepos.repo
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
basurl=http://192.168.152.130/Server
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Error was quite simple, instead of "baseurl" it is "basurl"

Correct it and your problem will be solved quickly!!!

Regards,
Girish