Just thought I'd mention that some Linux distros do not have the latest version of the IDE and you can save yourself time by checking this. I was working on a distro that had latest and then ( for a self demo) tried it on LM17.1 no luck. Everything just drops into place when you get this done. As of the time of writing latest version is 1.6 .
Good luck - happy programming - I actually love programming Arduinos and just about anything else I can get my hands on
mike