Install on Ubintu 12.04 - NOT

Install instructions: Arduino Playground - Ubuntu

sudo apt-get install arduino arduino-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package arduino
E: Unable to locate package arduino-core

Is your ubuntu a fresh install?

Have you done

sudo apt-get update

before doing this?

yep. I did finally do the install by just unpacking and installing java separately.

The sketch program runs, but won't compile anything due to a missing file: arm-none-eabi-g++

in Arduino/..../arm-none-eabi/bin

The develop,emt environement found the programmimg port.

Download the Linux version from the Arduino website. Unpack it in your home directory somewhere. Navigate to that directory and run the arduino shell script program there. It should run fine. It does here. If you use the GUI, it will ask if you want to open or run it. Select run.

You can't move the shell script because it is directory dependent, so if you want it on your desktop, create a link and move the link to your desktop.

This is where I'm at - now stuck.

First, running Ubuntu 12.04 LTS from the CD. This is a new Arduino Due.

So, I did download an unpack the 1.5.6-r2

Installed openjdk v6

Got Java IO error #2. Fixed by installing compatability libraries.

Stuff will compile.

Error is Board at COM1 is not available. First of all, it's linux, so it's not COM1.

So, there is a line to change in the auduino shell script that specifies the port, so I changed that to use the ttyACM0 port.

Error is still present.

BTW: The two Serial monitor menu and button, does nothing, but then again, I have no idea how this is supposed to work.

Here: http://arduino.cc/en/Guide/ArduinoDue there are these instructions:

Open the Arduino IDE.
In the "Tools" menu choose "Serial Port" and select the serial port of the Due
Under the "Tools > Boards" menu select "Arduino Due (Programming port)"

There is no "Serial Port" sub-menu!

There is a "Port" submenu under Tools. That says /dev/tty/ACM0 (Arduino Due Programming Port)

I would expect the "serial monitor" port to be present too, just not selected.

These instructions don't tell you what "Programmer should be set to". I belive itshould be set to "Auduino is ISP", but I tried everything else.

I am plugged into the "programming port" - the one next to the power in connector.

So, tried to chase down whether the device /dev/ttyACM0 existed and it does with dmesg (spelling). Then I tried to do a "hello word" > /dev/ttyACM0 and I got Permission denied errors.

I cna finally do a "hello word" > /dev/ttyACM0 and the rx LED next to the power connector blinks.

Did the chmod thing shown here: Arduino Playground - All

Here is the output from
ls -ld -a /run/lock
drwxrwxrwt 3 root root 80 May 23 13:45 /run/lock

But, I suppose I really should not have to worry about that,

I don't have these files:
$ more /usr/lib/tmpfiles.d/legacy.conf
/usr/lib/tmpfiles.d/legacy.conf: No such file or directory

more /usr/lib/tmpfiles.d/legacy.conf
/usr/lib/tmpfiles.d/legacy.conf: No such file or directory

Anything else to do, except the loopback test?

I am running from the LIVE CD, so rebooting means reinstalling JAVA, the compatibility libraries and fixing the port permissions. I have not made a script file to do so.

I have a script that I run from a USB drive that basically disables trackpad tapping, installs Flash, installs NFS and ads a few symbolic links.

$ echo "Hello World" > /dev/ttyACM0
$

It passes the loopback test using cutecom.

Serial monitor still does nothing.

Help.

I have a fix, but it's not the right one.

I'm using the original java line in the auduino shell program.
I executed the cmd "sudo -ln /dev/ttyACM0 /dev/ttyUSB0

I'm using the /dev/ttyACM0 as the Programming port. I now have /dev/ttyUSB0 because of the symbolic link.

The LED Blink program compiled and ran successfully.

The Port no longer says COM1.

and the preferences no longer keep resetting to COM1.

serial.databits=8
serial.debug_rate=9600
serial.parity=N
serial.port=/dev/ttyACM0 (Was COM1)
serial.port.file=ttyACM0 (dunno what it was, but it wasn't this)

==

Serial Port monitor worked when I uploaded ASCIITable.