Category Archives: Mac

Mac : Cannot add account in Office 2011

Having issue adding a new account with Office Outlook 2011 on Mac OSX Mavericks 10.9? The strange behaviour I observed is that nothing happen when you click on “add account” and the Preference pane freeze up! I also noticed the following error messages in the logs (/var/log/system.log) : Dec 24 00:00:00 hostname.domain.tld Microsoft Outlook[433]: OTAtomicAdd8 is… Read More »

Category: Mac

Mac : Wireshark won’t start and ask for X11 with OSX Mavericks

With the latest OSX Mavericks 10.9 release, Wireshark refuse to open and complain about X11. First, make sure you have the latest XQuartz installed. It can be found at : http://xquartz.macosforge.org/ (Make sure to logoff/login again to your session once you installed it.) Then, if you attempt to open up Wireshark, you’ll end up with… Read More »

Category: Mac

Mac : MacPorts selfupdate failed on OSX Mavericks

Upgraded to Mac OSX Mavericks lately? Well, you’ll need to update MacPorts once you’re done to keep it working. To update MacPorts, just do the following command in Terminal : sudo port -v selfupdate The terminal will keep working running a bunch of scripts by itself, then you end up with the following output error… Read More »

Mac OSX : Get full system information through terminal

Gathering information through the GUI option “About this Mac” can be annoying and not reveal all the information you wanted. Fortunately, there is an existing command line that can provide what you are looking for. Terminal can be launched through : Go > Utilities > Terminal Then several commands exist to either gather full system… Read More »

Category: Mac

Linux : Search and replace across multiple files

To search and replace across multiple text file on a Linux/Unix system, use the following command : find . -name “*.extension” -print | xargs sed -i ‘s/search_for_text/replace_with_text/g’ So, as example, let’s assume you want to replace an IP address in multiple Bind zone file (using the extension .hosts) and replace IP address 10.10.1.1 for 192.168.1.1… Read More »

Mac : How to convert Windows text file to unix

Windows text editors add a tailing character ( ^M ) for line break. To get a real Unix flat file without theses characters, simply run the following command in terminal : tr ‘\r’ ‘\n’ < Windows_Text_File.txt > Unix_Text_File.txt

Category: Mac

Mac : How to Page up and Page down in terminal?

Using the full size desktop Apple keyboard, simply hold down SHIFT key + Page up or Page down. With a MacBook Pro, there is no such keys (Page up/Page down)… Just hold down function key ( fn ) + SHIFT + ARROW UP and/or DOWN.

Category: Mac

Vim : how do I search and replace text

Do the following to find and replace text string in a whole file using the Vi text editor : 1. Enter in command mode by typing ” : ” 2. Your command should look like this : :%s/search_for_text/replace_with_this_text/g NOTE : To search & replace a string containing slashes ” / “, use a coma ”… Read More »