Mac OS X Archive

0

Quicksilver for Windows?

One of the perks I love the most when using OS X is using Control + Space or any other key combo to run Quicksilver or Spotlight or any other app that lets me run a program simply by typing the first initial letters of it’s name and pressing enter or opening the browser and googling the word I type. I really missed that while running Windows but it has come to my attention that it’s possible to do so with a little app from our buddies at Google. It’s called Google Quick Search Box for Internet Explorer. Yes, Internet Explorer. Don’t worry, it’ll let you launch queries on Firefox or any other browser.

I had some initial trouble installing it but nothing a quick online search didn’t solve. Here’s the method I used to install it properly:

  1. Remove any previous installation of the toolbar in the control panel.
  2. Download Google Update here and select just the toolbar on the check boxes. You can do this in any browser, I did it on Firefox.
  3. Close all browsers, run the installer and let it do it’s thing.
  4. Right click the search box and make sure it’s using your browser of choice in the options.
  5. ???
  6. Profit!

It uses a default Control + Space key combo to launch and it’s pure heaven in Windows 7 for anyone who wants an even more close(ish) OS X experience, with the taskbar buttons and such. It almost feels like we’re using a mac. Almost.

0

Macports

One of the reasons I really like Mac OS X is it’s native Unix origin. In fact, Mac OS X is Unix. This translates into having easy access to common Unix tools and applications. I won’t say many users take advantage of this, I’m even willing to bet most don’t, but those who do feel life is a lot easier I’m sure. Tools as simple as wget or lftp make mine a lot easier.

Most of these tools can be installed in any regular Unix/Linux flavor but they have to be ported into the flavor before they can be used. This means some lines of code have to be changed in order for our Unix flavor to understand it.

Meet Macports.

Installing Macports

Macports makes it easy to download and install Unix applications, be it simple command line tools or full fledged graphical applications. The easiest way to get it is download the .dmg for your version of Mac OS here and install it on your applications folder. You will also need XCode installed in your Mac. XCode is a set of developer tools for Mac allowing you to compile and install applications from source. You can find it in your Mac OS X install CD under the “Optional Installs” folder. From this moment on you will have access to the ‘port’ command on your Terminal app.

Installing Applications

Installing ported applications is very easy. All you have to do is issue the following command inside a Terminal app.

sudo port -v install wget

What this will do is download the ported version of wget and all it’s necessary dependencies, compile them and install them on your system. The -v switch tells it to run on verbose mode, displaying all he’s doing at the moment. You can turn it off if you don’t need or like it. A list of all the software you can install this way can be found here. Since it needs superuser access it will ask for your password.

Uninstalling applications is also simple.

sudo port -v uninstall wget

One of the options I found really useful is the ability to create a .dmg that installs everything you need to install the chosen package in any given system. Running the following command for example will create a .dmg file with wget and all it’s dependencies ready to install in any mac even without Macports installed.

sudo port -v dmg wget

Keeping up to date

It is also very easy to keep all your installed applications up to date with the latest software’s version. Issue the following commands on your Terminal app.

sudo port -v sync

sudo port -v selfupdate

sudo port -v upgrade outdated

What the first command will do is syncronize with the Macport’s server and figure out what’s the newest version number for all available software. The second command will update Macports itself it need be. The third and final command will upgrade all your outdated software to it’s current versions.

Keeping it clean

I’m one of those guys that likes to keep it’s system clean of near useless stuff, disc space is something I’ll never have enough of. This said, Macports likes to keep old versions of software installed after you update them to the newest version as well as intermediate files that are needed to compile and install software. This adds up bit by bit till it takes up large chunks of precious disc space. Running the following commands will get rid of all that for you.

sudo port clean –all installed

sudo port uninstall inactive

The first command will clean all intermediate files needed to compile and install a port and the second will uninstall inactive ports such as old versions.

Uninstalling Macports altogether

If for some reason you don’t want Macports or any of it’s applications on your system, issuing the following commands on your Terminall app will do so for you.

sudo port -f uninstall installed

This will uninstall all your Macports installed software, but you will still be left with files such as configuration files and databases it uses. To get rid of them issue this command.

sudo rm -rf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports

More useful info can be found at http://guide.macports.org

4

SSH into your Mac from your Symbian phone

Sometimes we all wish we could access our home computer with our phone wherever we are just to check on something or do some menial task. If you have a Symbian phone and your computer runs Mac OS X, that’s possible! You can do it with any Unix box, in fact. You won’t have a visual interface and it will only be useful to those of you who are used to Unix console commands, but if you are indeed used to them you already know you can do pretty much everything you feel like on your machine with them.

This guide will not cover what SSH is nor teach you unix console commands. What this guide will teach you is how to get a SSH client in your Symbian phone and get it to work with Mac OS X.

Mac OS X, like any unix box, lets you access your machine remotely through SSH. In Mac OS X it even comes pre-installed, all you have to do is activate it. To do this, open your System Preferences pane and click on Sharing. On the Sharing screen, add a checkmark on the Remote Login service like on the following picture.

It is advisable to change the default port SSH uses to something not easily guessed. I won’t get into details about that. You can test your connection by opening a Terminal window and typing “ssh 127.0.0.1” or whatever IP you currently have. If a login window preceded by a question if you are willing to accept the crypto key shows up, your SSH server is up and running.

Next up, you’ll need to install PuTTy in your Symbian phone. You can get it here. Launch it and start a new profile. Insert the name you want to use for this profile, the target computer’s IP and login name. This is your short username, not your long one on OS X.

Move back into the main program’s window and select the target host you just created. You will be prompted for a password.

Once you fill in the password field, you will be logged into you Mac OS X box and can start exploring the wonderful world of  the unix console.

As an example you can type “python -m SimpleHTTPServer” to start a http server with your current directory tree at http://$HOSTNAME:8000/. Pretty useful to quickly retrieve files through http to another computer or even your phone.

Hope you find this info useful. Feel free to add a comment with any question you might have.