Kunaljain's Weblog

April 21, 2009

Apple:- No Battery Avaliable

Filed under: Mac — Kunal Jain @ 03:37
Tags: , ,

Just pulled the MacBookPro out of my bag and found that the battery meter showed on battery. When i clicked the pull-down menu it said “No battery available”

I google about this error and found the solution here

http://support.apple.com/kb/HT1411?viewlocale=en_US.

I followed the exact same instructions and my system starts working perfectly fine.

Here are the instructions that i follow

  1. If the computer is on, turn it off.
  2. Disconnect the AC adapter and remove the computer's battery.
  3. Press and hold the power button for 5 seconds and then release the button.
  4. Reconnect the battery and AC Adapter.
  5. Press the power button to restart the computer

September 1, 2008

Port 22: Connection refused(SSH)

Filed under: Mac — Kunal Jain @ 11:33

In Mac you have to enable the Remote Login first before SSHing into your Mac from remote.

goto System Preferences > Sharing > Remote Login > Start

Try to SSH into your machine now you will able to SSH remotely into your machine now.

August 28, 2008

Adding User to “sudoers” File

Filed under: Linux Tips & Tricks,Mac — Kunal Jain @ 13:30

To give a user the ability to use the sudo command you must add them to the sudoers file located in /ect/sudoers

Open the Terminal, Once the Terminal is Open login as root and open the file /etc/sudoers

sudo gedit /etc/sudoers

if you want to use vim you can simply enter the following into the Terminal

sudo visudo

Once you have the sudoers file open, scroll down to the line

root ALL=(ALL) ALL

Add the following line below the root line

user ALL=(ALL) ALL

***Replace “user” with the name of the account you want to give the sudo access***

Save and Close the file. The new user has now been added to the sudoers file and can use the sudo command

July 28, 2008

sudo : – set to setuid error solution

Filed under: Mac — Kunal Jain @ 07:51

-> Restart you Machine

-> While computer is restarting hold

Command-S

until you see text scrolling through the window. which boots the computer into single user mode

-> At the Localhost% prompt type

/sbin/mount -uw
/sbin/SystemStarter

After this various services will startup.

-> When the prompt Localhost% reappers type :

passwd root

it will prompt twice for the password

-> After entering the password type reboot

This will reboot your machine.

May 27, 2008

Migrating Outlook Mails to Apple Mail

Filed under: Mac — Kunal Jain @ 10:12

Following are the steps that i have done(With the help from several blogs and Websites)

1. Import all the mails from Microsoft Outlook to the Outlook Express.

2. Download and Install the Thunderbird.

3. Import all the mails from Outlook Express to Thunderbird.

4. After Import check the settings under Thunderbird to see where is stores the Email

(Generally C:\Documents and Settings\user\Application Data\Thunderbird\Profiles\ns3ytrch.default\Mail\Local Folders

5. Thunderbird organize each folder as separate directory. Copy all or selected folders you want to  copy to you Mac system.

6. Then in Apple Mail select File Menu -> Import Mailboxes -> Select Thunderbird and select the folder you want to import(That you have just copied on your system)

7. Apple Mail will import all the folders and put them under Import Folder.

Blog at WordPress.com.