Arduino 0017 on 64-bit Ubuntu 9.04 and 9.10

Edit: This post isn’t really relevant anymore—Arduino 0018 has a 64 bit binary. Original post follows.


arduino-64-bit

Update 2009-12-25: these instructions work on both 9.10 Karmic and 9.04 Jaunty.


  1. Install all dependencies:
    sudo apt-get install sun-java6-jre gcc-avr avr-libc ia32-libs librxtx-java
  2. Download 32-bit version of Arduino 0017: [download]
  3. Extract it and navigate to the lib/ directory. Delete RXTXcomm.jar and librxtxSerial.so.
  4. Go back to the main directory and open the arduino script in a text editor. Replace its contents with:
    #!/bin/sh
     
    APPDIR="$(dirname -- "${0}")"
     
    for LIB in \
        java/lib/rt.jar \
        java/lib/tools.jar \
        lib/*.jar \
        ;
    do
        CLASSPATH="${CLASSPATH}:${APPDIR}/${LIB}:/usr/share/java/RXTXcomm.jar"
    done
    export CLASSPATH
     
    LD_LIBRARY_PATH=/usr/lib:`pwd`/lib:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
     
    export PATH="${APPDIR}/java/bin:${PATH}"
     
    java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base

  5. Note:
    The Serial Monitor in the Arduino IDE doesn’t work. As a replacement, you can install screen with:

    sudo apt-get install screen

    To start screen for use with an Arduino, run this command:

    screen /dev/ttyUSB0 9600

    Replace /dev/ttyUSB0 with the location of your serial port and 9600 with the baud rate you’re using.

    To quit screen, press Ctrl-a then press k. You must quit screen before you can upload a program via the Arduino IDE.

This entry was posted in Electronics, Linux. Bookmark the permalink.

One Response to Arduino 0017 on 64-bit Ubuntu 9.04 and 9.10

  1. Tim says:

    Great, this works brilliantly with Ubuntu 9.10.

    Actually, screen ins’t needed: the serial port monitor works too.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">