Archive for category Mac Command of the Day

MCOD – 9.28.2011 – Simple OS X Bash Changes

Macintosh Command of the Day Sept 28, 2011

I have no idea why I did not do this sooner!

On my Macs I always had that md5sum the command doesn’t exist, and I hate that the output of the md5 command that does exist is not the same as the GNU tools. Sure it’s BSD (And I’ll always love my BSD), but I think compatibility to the GNU tools buys more for BSD and OS X than incompatibility.

Add this to your ~/.bashrc (and source it or restart your terminal)

alias md5sum='md5 -r '

Now your md5sum <filename> works the same as on the 1,000,000,000 Linux boxes out there.

Also in my .bashrc on my Macbook Air is

alias ll='ls -Falh'
alias lg='ls -Falh|grep -i '
declare -x EDITOR="/usr/bin/vim"
declare -x JAVA_HOME="/usr/"
-Jon

 

, , , , , , , , , ,

No Comments

MCOD – 8.31.2011 – Lock your screen in OS X from the menubar

 

 

1. Launch the “Keychain Access” application located in /Applications/Utilities.
2. Choose “Show Status in Menu Bar” from the View menu.
3. Now you have a lock in the menu bar. Use this menu to “Lock Screen” when you leave your computer

Thanks to Mac Daily News for this howto, from here -

http://macdailynews.com/2003/03/13/lock_your_mac_os_x_screen_from_the_menu_bar_by_adding_lock_icon/

 

, , , , , , ,

No Comments

MCOD – 6.6.10 – Macbook Pro Core i5/Core i7 Battery Fix

Core i5/i7 Macbook Pro battery life problem description and fix.

Click to continue reading “MCOD – 6.6.10 – Macbook Pro Core i5/Core i7 Battery Fix”

, , , , , , ,

4 Comments

MCOD 5.13.10 – Using OS-X’s built in VNC viewer

Mac OS X natively supports VNC with its ‘Screen Sharing’ app, to launch it, simply type vnc:// in Safari, and it will automatically launch and connect.

No Comments

MCOD 5.11.10 – Clear network settings on a Mac in OS X

I got a new MacBook pro, one of the core i5 ones, and transferred all of my data with time machine restore, which is absolutely awesome, btw. But my ethernet interface never worked! Being the IT guy I need my ethernet interface to work, so I searched online for someone else who had the same problem. Unfortunately, everything I found was simple fixes for simple problems. So I made an appointment with the mac genius hoping they could solve my problem, and they did.

They went to my hard drive->Library->Preferences and deleted the folder there called “SystemConfiguration”
Then rebooted, and viola, a working ethernet interface.

So, what must have happened to break mine, is when I restored my mac with time machine, it confused the network interfaces somewhere. The interface showed up, but always said ‘cable unplugged’. I had tried everything; deleting the interface in the network section of system preferences, configuring the interface with ifconfig in Terminal, creating multiple interfaces, rebooting, different cables, different networks, and different locations. The time machine had restored my network config folder and prevented OS X from correctly seeing the right interface.

The Mac genius said it can also help if you’re having problems staying connected to a wifi network.

Hope this helps!

Update 6/7/2010:

Here is a good article on troubleshooting your Mac OS X wireless networking at osxdaily.com

, , , , , , ,

1 Comment

Easy AdSense by Unreal