Ubuntu Single User Mode without root password for maintenance


Hello Friends,

I came across problem , while resetting ubuntu password , Generally when we reset password for RHEL 5 OS , we enter into single user mode through grub by editing Kernel line with Single or 1  , and simply you will boot into single user mode.

But with Ubuntu it was a kinda different.


1.Reboot your machine; press 'Esc' to get to the GRUB menu; select your image; press 'e' to edit; select the Kernel line.

2.Press 'e' to edit the kernel line. Edit the line to get rid of quiet and splash; change 'ro' to 'rw'; and add 'init=/bin/bash'. The line should look something like this:

kernel /vmlinuz-2.6.15-27-386 root=/dev/mapper/Ubuntu-root rw init=/bin/bash3.Press 'enter' then 'b' to boot with these new settings.

Then you can fire up passwd command to reset root password.

Reffered from : http://www.noah.org/wiki/Single_User_Mode

It Works!

Best Regards,
Girish

Samsung Duos GT C-3222 Secrete code


Hello Friends,

You can play around with *#52828378#  code , I have tested it on my duos , and working fine with me.
I wanted to install java application on my duos , for that you need to get in :
OTA test basic >> set Maximum JAR size (kb)" between 500 to  650 , and you will be able to install small java applications on your duos , upto 650 to 700 Kb

Best Regards,
Girish...

Now we can have chat !

Hello Readers,

I have included simple chat plugin , so that we can have chat on technical topics.
We can share our views and get to know each other.

Thank & Regards,
Girish

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



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

Working with PHP 5 on MAC OS (Apple)

Hi,

Recently we had a chance to work on MAC OS X for php development.

Check Link Below :

http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/

Regards,
Girish

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

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

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







Google Wave Sunsetting in 2012

Dear Wavers,

More than a year ago, we announced that Google Wave would no longer be developed as a separate product. At the time, we committed to maintaining the site at least through to the end of 2010. Today, we are sharing the specific dates for ending this maintenance period and shutting down Wave.
As of January 31, 2012, all waves will be read-only, and the Wave service will be turned off on April 30, 2012. You will be able to continue exporting individual waves using the existing PDF export feature until the Google Wave service is turned off. We encourage you to export any important data before April 30, 2012.
If you would like to continue using Wave, there are a number of open source projects, including Apache Wave. There is also an open source project called Walkaround that includes an experimental feature that lets you import all your Waves from Google. This feature will also work until the Wave service is turned off on April 30, 2012.

For more details, please see our help center.
Yours sincerely,
The Wave Team

© 2011 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
You have received this mandatory email service announcement to update you about important changes to your Google Wave account.