Archive

Archive for the ‘lion’ Category

Install Postgres on Mac OS X Lion with homebrew howto

July 20, 2012 3 comments

1) This is the easiest part, simply

$ brew install postgres

2) this step is not obvious but you can’t move on without it (would be nice if brew can automate this step too :D)

$ initdb /usr/local/var/postgres

3) add /usr/local/bin to $PATH if it’s not already there, one way to do that is

$ echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile && . ~/.bash_profile

without this step you will end up using /usr/bin/psql, which is installed by default in Lion, while trying to access db, which would give you the following error:

psql: could not connect to server: Permission denied
Is the server running locally and accepting
connections on Unix domain socket “/var/pgsql_socket/.s.PGSQL.5432”?

[added 7/26/2012]
3.5) start postgres server

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

4) access postgres db

psql postgres your_username

or

psql postgres `whoami`

assuming your_username is the one who runs step 2

5) if everything’s ok you should be able to see

psql (9.1.3)
Type “help” for help.

postgres=#

type \q to exit

6) if you want to create your first db, do (under system shell, not postgres) a

createdb mydb

and access it through

psql mydb your_username

Note: your_username in command psql is optional if the shell user is the creator of the db to be accessed, that is, you can simply type psql postgres or psql mydb to access the dbs.

Enjoy.

References:
http://archives.postgresql.org/pgsql-general/2009-09/msg00990.php
http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/ (didn’t use the method describe in this post but use the PATH method instead)
http://www.postgresql.org/docs/9.0/static/tutorial-createdb.html

Categories: lion, mac osx, postgresql

Mac Lion 10.7.2 on HP 4530S

December 10, 2011 2 comments

Followed instruction from http://www.tonymacx86.com/viewtopic.php?f=259&t=41546 to install Lion 10.7.2 on my newly bought HP 4530S (i3, 4GRAM, 320GB 7200RPM).

Notes:

  • Got a kernel panic upon reboot after installing hp installer, reset BIOS to factory default fixed that.
  • Alt key is the Command key.
  • Had a hard time to exit from full screen mode, found solution from here.
  • [01/07/2012] Installed VirtualBox 4.1.8 and tried to start Ubuntu 11.10 64bit server and it failed with the following error, downgraded to 4.1.6 solved the problem.
    VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).
Categories: lion, mac osx, tony mac osx

Facetime “The server encountered an error processing registration please try again later” fix on Hackintosh

October 1, 2011 4 comments

I have Lion running on my hackintosh (thanks to http://www.tonymacx86.com/) and the usb camera that I have (a Logitech QuickCam Orbit AF Webcam) happens to be supported by my build so I fired up Facetime the other night only to find the following error:

The server encountered an error processing registration please try again later

after the login credential is verified. After reading some posts on the forum I found the solution here and it turns out to be quite easy to fix: just download, install the latest Chimera (current version 1.5.4) from here, followed by a reboot and voila, the error no longer gets in the way. Loving my hackintosh.

Categories: lion, mac osx, Tip

Lion annoyance #1 – Ability to label desktop

August 18, 2011 Leave a comment

This is by far the biggest disappointment I have towards Lion – I simply can’t find a single solution to bring back the desktop labels. I can work around by assigning different wallpapers to different desktops but it’s still not as convenient as having the desktop numbers shown on the task bar.

Categories: lion, mac osx

Fixing Tunnelblick (3.1.7) kernel panic problem in Lion

August 3, 2011 Leave a comment

The currently stable version (3.1.7) of Tunnelblick would cause a kernel panic in Mac Lion while a connection is being made. Workaround is to use a beta version (3.2beta28) which is available at http://code.google.com/p/tunnelblick/downloads/detail?name=Tunnelblick_3.2beta28.dmg, released 7/31/2011.

[Edit 8/18/2011] Just updated Lion to 10.7.1 last night and version 3.2beta28 seems to be unstable as well. It has caused kernel panic two times in a row. Need to keep looking for a version that works. Did a re-installation of the same version and it works afterwards.

“This version of Mac OS X 10.7 cannot be installed on this computer” fix

July 21, 2011 10 comments

Had a hardtime to get Lion download started following the guide at http://tonymacx86.blogspot.com/2011/07/xmove-multibeast-install-os-x-107-lion.html, I kept getting “This version of Mac OS X 10.7 cannot be installed on this computer” error while try to install Lion via App Store. Tried changing the system definition to MacPro3,1 without success. Found the solution from the comments below the guide (actually just found out it was mentioned very obviously in the guide as well, not sure it’s added after many people reported the same problem):

1) Get the newest version of multibeast (currently 3.8)
2) Select “System Utilities”, “Chimera” (this is the key), “MacPro3,1” and install
3) Restart

Categories: lion, mac osx, tony mac osx