RSS Feed

Category Archives: Mac

Mac : How to fix MAMP when MySql is not working

Posted on

Hey Friends, Today i was trying to use MAMP to do some local PHP development on Lion OSx. But when i start the MAMP, it is not showing green signal for MySql “Error: Could not connect to MySQL server!”. May be it was already running somewhere. So we need to kill running MySql. Here’s a fix:

1. Quit MAMP
2. Open the terminal and type: killall -9 mysqld
3. Restart MAMP

It works… !!

How to create a password-protected (encrypted) disk image in Mac OS X 10.3 or later

You can move files to or from an encrypted disk image as easily as you can from a non-encrypted disk image. Follow these steps to create an encrypted disk image:

  1. Open Disk Utility (/Applications/Utilities/).
  2. Mac OS X 10.4, 10.5 or later: Click the New Image button, or choose New > Blank Disk Image from the Disk Utility File menu.
    Mac OS X 10.3 through 10.3.9: Choose New from the Disk Utility Image menu.
  3. Enter a name in the Save As field. This name is used for the disk image (.dmg) file.
  4. Change the save destination if you wish to.
  5. Select a size for the image file from the Volume Size pop-up menu (Size in Mac OS X 10.3) .
  6. Choose a volume format if you don’t want to use the default Mac OS X Extended (Journaled).
  7. Choose an image format. You can use “sparse disk image” for a disk image that only uses as much space as it needs, rather than a set amount of space. If you’re not sure, use “read/write disk image” choice.
  8. Choose 128-bit AES (and/or 256-bit AES in Mac OS X 10.5 or later) from the Encryption pop-up menu to encrypt the image’s contents with a password. If you don’t choose an encryption, your new image won’t be encrypted.
  9. Click the Create button.
  10. Enter and verify a good password in the dialog window that appears. This password will be saved in your keychain by default, or you can deselect “Remember password (add to keychain)” if you don’t want that. You can store the password in the keychain both for convenience and for reducing risk of password loss.
  11. Click OK.

Important: If you forget the password, data stored in the encrypted disk image cannot be retrieved. If you have saved the password in the keychain file, the password will be available to you there.

 

!! Cheers !!

Multiple Skype Accounts on Mac OS X

Posted on

I needed to run multiple Skype instances on Mac OS X and here is the way to do it.

1. Create a new user from System Configuration > Users.

2. Login with this new user, might not be necessary, but I did it to see if everything is ok.

3. Go back to your normal user and open a Terminal.

4. Type su newuser. It will ask for the user’s password. Replace newuser with the user you created

5. Type /Applications/Skype.app/Contents/MacOS/Skype and the new Skype instance should appear in the dock

You have to leave the Terminal open, if you close the terminal the other Skype will close. Also note, that preferences and files are saved in the newuser‘s directory.

nohup /Applications/Skype.app/Contents/MacOS/Skype might also work to run Skype in the background so it’s not closed when the terminal is closed. Hope it saves you some time.

 

!!Enjoy!!