I miss the startup chime on my MacBook Pro.
To enable it, open up terminal and type:
sudo nvram StartupMute=%00
To disable it, either reset your parameter RAM by pressing Command-Option-P-R at startup, or in terminal type:
sudo nvram StartupMute=%01
I miss the startup chime on my MacBook Pro.
To enable it, open up terminal and type:
sudo nvram StartupMute=%00
To disable it, either reset your parameter RAM by pressing Command-Option-P-R at startup, or in terminal type:
sudo nvram StartupMute=%01
Apple’s default settings for BASH are less than lovely — just shades of gray.
Here’s how to add color to BASH for your visual enjoyment. Continue reading
Using ‘sudo’ with NPM is a no-no, as it can cause all kinds of havoc with file permissions. You can specify a default directory for globally installed packages and thus absolve yourself of sudo chaos. Continue reading
As any Mac user knows, running Command and Conquer Generals (including Zero Hour) tends to crash on startup on a Mac running OS X. Here’s how to fix it. Continue reading
I recently needed to delete the Backups.backupdb file via command line using the rm command. However, sudo user can’t do it, and neither can root. What’s a guy to do?
The method for clearing or flushing the local cache in Mac OS X has changed over the years. Clear your DNS cache on Yosemite, Mavericks, Lion, Mountain Lion, Snow Leopard and Leopard using the following Terminal commands:
Sadly, I had this experience lately. Even though I had the firewall explicitly set to allow connections using Screen Sharing, for some reason my Mavericks OS X 10.9 server hiccuped and I couldn’t access it via screen sharing.
Here’s how I resolved my dilemma:
Mac OS X 10.9 ‘Mavericks’ has some DNS changes under the hood. Unlike previous versions, to effectively clear the cache you need to execute these two commands in Terminal:
dscacheutil -flushcache;sudo killall -HUP mDNSResponder
Wondering if a certain outbound port on your Mac is open or closed? Here’s a way to test if that port is open using netcat via the command line in terminal, using a free service from portquiz.net:
From terminal, enter:
nc -v portquiz.net 443
where 443 is the port number you want to test.
Control-c will kill net cat after you get the info you want.
Apple prevents computers with USB drives from installing Windows from a USB flash drive on certain models. While it works flawlessly on my current gen MacBook Air, installing Windows 7 off a USB key doesn’t work on my iMac.
Luckily, the fix is easy…