Tag Archives: MacOS

How to get Color Sidebar icons back in MacOS 10.7+

I was really sad looking at my gray finder sidebar. I thought that this release of Finder was designed by some engineer from Soviet Union or North Korea but, finally, I found a solution to get back my colored finder and also my smile!

Take a look to this link: http://osxdaily.com/2011/08/25/get-color-sidebar-icons-back-in-mac-os-x-10-7-lion-finder-windows/


MacOS X – Remove an agent from launchd

launchd is a daemon/agent manager and to remove a service from it, use the following syntax with the launchctl command:

launchctl remove name

It’s possible to get a list of daemon/agent with:

launchctl list

Usually the daemon/agent configuration files are in: /Users/andrea.girardi/Library/LaunchAgents


MacOS Tips and Tricks

Rebuild the Spotlight index manually :

sudo mdutil -E /

Insert a blank space on Dock:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
killall Dock

Show all files (also hidden):

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Run Postgres 9.1 on MacOS Lion as Daemon

To start a new Postgres version as Daemon you need to follow these commands. For first, unload current version (if available):

sudo launchctl unload /Library/LaunchDaemons/org.postgresql.dbms.plist

Edit theĀ org.postgresql.dbms.plist (if not available, create a new one):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
<plist version="1.0">

Load new configuration:

sudo launchctl load /Library/LaunchDaemons/org.postgresql.dbms.plist

Before reboot your Mac you need to check if the folder data has the right permission:

sudo su - postgres
chmod 700 /Library/PostgreSQL/9.1/data

Reboot your Mac.

To manually start (and stop Postgres on MacOS), login as postgres and:

pg_ctl -D /Library/PostgreSQL/9.1/data -l logfile start
pg_ctl -D /Library/PostgreSQL/9.1/data -l logfile stop
Tagged ,