Tag Archives: mac

Airtel 3G dongle on Mac OSX Yosemite


WP_20141130_001

In case you are trying to use the Airtel 3G dongle on Mac OSX Yosemite, and facing a problem in establishing a connection, here is a quick tip:

Add *99# as the Telephone Number in the Network settings for ‘HUAWEIMobile’ service.

Screen Shot 2014-11-30 at 12.41.21

P.S: I have heard that the Airtel 3G dongle works seamlessly, without the need of any custom configurations, with both Microsoft Windows and Mac OSX Mavericks. Looks like this issue is only with the latest version of Mac OSX – Yosemite.

System-provided packages taking precedence over Homebrew-installed packages


If you are using a Mac, you must be familiar with Homebrew. After installing brew, you must run the following command to ensure it is ready to install packages.

brew doctor

When you install a package, e.g., git, that also comes pre-installed with Mac, you will notice that even though brew installed a newer version of that package, it is still the older version (the one provided by the system) that seems to be taking precedence.

Here is the reason why this happens:

Brew installs the packages into their own directories and symlinks the executables into /usr/local/bin. If you run brew doctor at this point, it clearly mentions what is happening behind the scenes:

Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. 
Consider amending your PATH so that /usr/local/bin is ahead of /usr/bin in your PATH.

Solution

Modify the sequence of paths in /etc/paths file so that /usr/local/bin comes ahead of /usr/bin.

sudo vi /etc/paths

Here is a sample /etc/paths file (after the change):

/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin

If you check the version of the installed package at this point, it would be the one installed by brew.