Here are some tips and tricks I’ve collected to help Mac users adjust to Ubuntu and Linux. Since OS X was released in 2001, Mac was my primary system; however, I’m not fond of the direction it is heading and switched my daily work computer to Ubuntu.
This guide is focused on development and business apps, getting work done. I do still use a Mac desktop at home, mainly for photo stuff, there is still nothing close to Adobe Lightroom in open source world.
Equivalent Command-line Utilities
The Mac has two great built in functions pbcopy and pbpaste which allows you to pipe content to and from the clipboard. So you can pipe the output of a command to pbcopy and it will place it in the clipboard, which you can paste elsewhere. Here’s the linux equivalent,
once the aliases are setup they are used the same as the Mac.
alias pbcopy="xclip -selection clipboard" alias pbpaste="xclip -selection clipboard -o"
The Mac command open will open a file using its default application, the linux equivalent is simply xdg-open, used the same way. The following will open the image filename.png in the default image viewer.
$ xdg-open filename.png
There are numerous screen capture tools available on Ubuntu, it comes packages with screenshot which maps nicely to my “Print Screen” key on my keyboard. You can script screen capture by using ImageMagick’s import. Calling import with a filename will be the equivalent of Mac’s Command-Shift-4, which you can select the area you want to capture.
$ import my-screenshot.png
Since its just a simple command, it can be scripted, this example will sleep for 10 seconds and then take a screenshot of the entire desktop.
$ sleep 10; import -window root ScreenShot.png
See my command-line tips for more examples and ways to script on the command-line.
If you want to lift a color from somewhere on screen, you can use the gpick utility. The package is available in the standard repository. Install:
$ apt-get install gpick
How to Install a Font in Ubuntu
If you download a font and want to install it, an easy way to do so is use gnome-font-viewer which should be installed by default in Gnome desktops.
$ gnome-font-viewer FONTFILE.ttf
and then while in viewer click on Install.
The Mac has a few great apps for quick search and launching applications, Spotlight, Quicksilver and Alfred are three that I used on the Mac. Ubuntu has the same equivalent apps. Ubuntu Unity Dash is like Spotlight in OS X, the Dash launcher is built-in and does a good job launching apps and searching.
If you are looking for the equivalent of Alfred on Ubuntu, you should try out Synapse, it does all the searching, built-in calculation and extendable through plug-ins. If you prefer Quicksilver, Kupfer is the Linux match. One other to try is Gnome Do, each of the launchers are slightly different, but more extendable then the base Dash, which is similar to how Alfred is to Spotlight.
Time Savers and Shortcuts
TextExpander is another great Mac time saver, the Linux equivalent is AutoKey. AutoKey does a good job expanding text and also easy to extend, you can use the shortcuts to trigger python scripts to do even more. Install:
apt-get install autokey-gtk
I had to switch from 1Password to LastPass for password management, since there is no full client for 1Password available on Linux. LastPass supports importing of a 1Password export so transitioning was easy. Note: You can access 1Password on Linux by using Dropbox and 1PasswordAnywhere but it is only read access, you can’t create passwords or auto-fill.
Here is a much larger list of Linux equivalents for OS X Apps
Graphics and Media
The one area still lagging a little with Linux is the overall graphics and media management. As a Photoshop stand-in, there is Gimp, but it is complicated and still after many years difficult to learn. I’m been using the online photo editor Pixlr which actually is quicker to use since it is more intuitive for me.
For photo management, Shotwell is the best solution, but still far from Lightroom. This is one area that Mac and Windows have a lock-in and non-equivalent is on the horizon. If I was interested in fully cutting over, I would probably run Lightroom within a Windows VM.
The following are cross-platform applications that I use on both Mac and Linux.
- Sublime Text
- Pidgin (IM)
Have you switched? Leave a comment to help me and others out with any other tips or tricks you use.