July 30

OS X Lion mysql sock path

I just installed Lion and for some reasons my internal website stopped working due to the mysql lock file not being found. I found out that the new osx installation changed the mysql sock file default path from /var/mysql/mysql.sock to /tmp/mysql.sock.

So, to re-enable everything, do:

  1. shut down your Web Sharing
  2. cp /etc/php.ini.default /etc/php.ini (for some reasons my old php.ini got renamed to php.ini.default php.ini-5.2-previous…)
  3. modify /etc/php.ini, change ALL /var/mysql/mysql.sock to /tmp/mysql.sock
  4. enable Web Sharing
Category: Lion | Comments Off on OS X Lion mysql sock path
July 29

Dealing with Lion’s Hidden Library

Accessing the Library Folder in Lion — While Apple clearly believes that most users shouldn’t be messing around in the ~/Library folder, the company is aware that many of us do need quick access to it. So the new way of viewing ~/Library is to hold the Option key and choose Go > Library in the Finder. You can even press Option after you drop the Go menu. Of course, you could also choose Go > Go to Folder (Command-Shift-G) and enter ~/Library in the dialog that appears, but that’s unnecessary effort.Once you can see the ~/Library folder, you can drag its icon (or its proxy icon from a Finder window’s title bar) to either the toolbar or sidebar of a Finder window. Once there, accessing it is merely a matter of clicking the icon.

If you’d just like your ~/Library to be visible normally in the Finder, that’s easy too; just enter this command in Terminal:

chflags nohidden ~/Library

And if you wish to reverse that action, just repeat the command without no, as in:

chflags hidden ~/Library

That’s all there is to it — regardless of whether you agree with Apple’s decision to hide the ~/Libraryfolder, there’s no reason it has to get in your way.

Category: Lion | Comments Off on Dealing with Lion’s Hidden Library
July 23

OS X Lion – Enable the user Library folder

Enable the user Library folderBy default, Lion hides the user Library.
Though there’s other workarounds, the easiest is just to open up Terminal and type
“chflags nohidden ~/Library”,
without quotes, and press enter. Your library folder should now be visible.

Category: Mac, Technical | Comments Off on OS X Lion – Enable the user Library folder
July 19

Make An OS X Lion Boot Disc

Lion may be the first release of the Mac OS to be delivered as a digital download, but there has been a circulating method to burn the Lion download onto a bootable DVD. The process still works for the Golden Master version of Lion and is a pretty straightforward process for Mac users who are comfortable making their way around the Finder. 

An email from Steve Jobs suggested the only way to perform a completely clean install of Lion was to first install Snow Leopard, then install Lion on top of that. That is a pain in the neck, to say the least. By burning your own Lion disc, you can painlessly do clean installs on all your machines.Another reason to have a physical install disc is if you have Macs in an area with poor or no Internet. Apple has suggested that Mac owners come into Apple Retail Stores and download Lion on the store Internet connection — useful for some, but some people live hours from the nearest Apple Store. By burning a disc, users can download Lion only once, and install it easily on all their Macs. Here’s how to do it.This method should work in the final retail release of Lion:
 Once Lion is released, purchase and download it from the Mac App Store.
 Locate the OS X Lion installer and right-click on it. Select ‘Show Package Contents’.
 Inside the ‘Contents’ folder, there is a ‘SharedSupport’ folder. Inside that is the Lion Installer. It’s called ‘InstallESD.dmg”.
 Copy ‘InstallESD.dmg’ to the Desktop by clicking and dragging it while holding down the Option-key. You should see a little green plus icon if you did it right.
 Open Disk Utility. Head to the Go menu in the Finder and select ‘Utilities’. Disk Utility should be in there.
 Click the burn button.
 Select ‘InstallESD.dmg’ from the Desktop, insert a blank 4.7GB DVD and wait. Once it’s finished, you’ll have a shiny new Lion install DVD.
You can now install Lion on whatever machines you like, just as if you’d purchased the install disc from your local Apple Store. Lion is expected to launch on the Mac App

Category: Mac, Technical | Comments Off on Make An OS X Lion Boot Disc