For more detailed instructions, pick your distribution:
You will need to install some programs to use Arduino under Linux (the way you do this depends on your distribution):
Download the latest Arduino Linux distribution from the arduino dowload section. Copy/extract these files to a directory (or your desktop) and
Run the "arduino" script. Be sure that the full extracted directory location/name has no spaces in the /location/name.
The Arduino software download includes custom versions of two additional dependencies:
You should be able to use the versions of these programs that come with the Arduino software download. If, however, they won't run on your computer, you may need to compile the Arduino-specific versions of these programs for yourself rather than using the standard packages from your distribution.
The avrdude that comes with Arduino was modified to ensure proper functioning of the auto-reset of Arduino boards before upload (without which the upload will fail). The source code to the Arduino version is available on GitHub.
The RXTX that comes with Arduino was modified to support devices of the form /dev/ttyACM*, which are used by the Arduino Uno and Mega 2560 boards (which use an ATmega8U2 instead of an FTDI chip for USB-serial communication). Source code for the Arduino version is also available on GitHub.
The RXTX library requires that you specify the serial ports via a java command line parameter gnu.io.rxtx.SerialPorts So you will have to modify the arduino shell script and add that in the last line where java is invoked like this:
java -Dgnu.io.rxtx.SerialPorts=/dev/ttyACM0 -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$@"
sudo sed -i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java-6-sun/jre/lib/amd64/motif21/libmawt.so
Arduino's (and other USB-serial devices) end up as
If you have more than one such device then some udev magic may help avoid confusion.
If you configured your own kernel, the driver is either under "Device Drivers => USB Support => USB Serial Converter Support => USB FTDI Single Port Serial Driver" or "Device Drivers => USB Support => USB Modem (CDC ACM) support". Select [Y], to have it "built in" to the kernel or [M] to have it built as a module. Dmesg then should show the device like this:
ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
or like this:
cdc_acm 5-2:1.0: ttyACM0: USB ACM device
Make sure you are in the tty group. On some distros you might need to create an udev rule for the FTDI USB Serial Device converter.
This works only if you are using Arduino IDE older than 1.0, or you have deleted the ./hardware/tools/avr folder
avr-gcc --v from a terminal window to check your version number.
(The old instructions for installing Arduino on Linux are still available.)
Refer to Arduino BT - Ubuntu for the full guide. This guide section was created in a new page by the author.