Latest Arduino on Linux

I am using Arduino's on WinXP but would like to migrate to Linux (Ubuntu) on a PC or Raspian on RPI2. I have Aruino 1.0.x running on both but haven't found good instructions on how to get the latest or more recent such as 1.6.5-r2 running in the Linux environment. Sudo apt-get install arduino only gets me the old version. What is the best way to get the latest so I can use new boards with the IDE? Thanks, Ken

Remove every Arduino package that is installed from the repositories. If you need gcc-avr for other projects, you can keep those.

I assume that you have a recent 64-bit Ubuntu linux installed. Download the 64-bit Arduino IDE version 1.6.6 and unpack it in a folder. Make a shortcut to the file "arduino", and put that shortcut for example on the desktop. Or run the install.sh to create a desktop shortcut on your desktop.

You can have a few versions of the Arduino IDE, each in its own folder. But you can't mix those with installed versions from the repositories, therefor you have to remove the installed (old) versions.

Thanks for responding. I have been playing with this today and have not been able to get it to work. I must not be removing all of the Arduino 1.0.1 installed version. Every time I tried it came bake as the 1.0.1 original. I am trying this on a Pi2. Thanks Ken

You must get rid of old versions somehow. I don't have a Raspberry Pi, so I don't know how to do that.

You can have a few versions of the Arduino IDE, each in its own folder. But you can't mix those with installed versions from the repositories, therefor you have to remove the installed (old) versions.

NO, with Debian I have repository version (1.0.5) AND a 1.6.5 AND a 1.7.7 Three versions work perfectly. This is normal because the 1.6.5 (Arduino USA) and 1.7.7 (Arduino Italy) contain all the necessary programs in their directory.

The only point where you should be wary is the automatic opening program when you click on a file ino. This is the default declared program to be launched, usually that of repositories Debian or Ubuntu. But the choice of program can be modified and anyway with a right click you can select the program from a list.

Anyway if you use only avr micro-controler 1.0.5 works perfectly and is sufficient and not buggy.