Archive for February, 2012

Break Mac password

Posted: February 26, 2012 in Mac, Technology
Tags: ,

The following instruction will change any user’s password under Mac OS X. I usually need this when working on the clients’ mac machine and don’t know the password. Remember to tell them what is their new password. I usually put the password as hint if in case I forget to tell them.

Right after the startup sound press the following buttons:


/sbin/fsck -fy
/sbin/mount -uw /
launchctl load /System/Library/LaunchDaemons/
launchctl load /System/Library/LaunchDaemons/ (Mac OS X 10.8 and higher)
dscl . -passwd /Users/whitsongordon newpassword

To disable the yellow connection bar you would need to go to the display tab in the RDP client and uncheck “Display the connection bar when in full screen mode.”
You can also change the setting in the .rdp file. The connection bar will still be visible for 5 seconds when you log on, but then it will automatically slide out of view. Moving your mouse to the top of your desktop will give you the connection bar back.

If you want to get rid of it alltogether, add this registry key to your profile:

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
“PinConnectionBar” = REG_DWORD:0

Now the connection bar will not return, even if you move the mouse to the top of the screen.
Clicking the pushpin will change the registry key back to “PinConnectionBar” = REG_DWORD:1.

Usually the error log complains about not being able to read postgresql.conf. If you check postgres directory there is NO data folder created. In order to fix the problem you would need to follow this:


This error is caused by the failure of initdb in creating a DB. It
fails probably due to the locale. To fix the problem:

runas /user:postgres cmd
cd "\Program Files\PostgreSQL\8.3\bin"
initdb -D "c:\Program Files\PostgreSQL\8.3\data" -E UTF8 --locale=English

Don’t for get to add the locale at the end otherwise it will fail.