sedition
September 26th, 2007, 05:22 AM
.: ubuntu Diecimila :.
This howto was written using Ubuntu Feisty Fawn 32-bit and arduino-0009.
* Open Synaptic and install the following:
sun-java5-bin
sun-java5-jdk
avr-libc
gcc-avr
librxtx-java
* REMOVE brltty (will cause conflicts)
*** NOTE: removing brltty will possibly break your accessibility options if utilized
* Download the arduino software: http://www.arduino.cc/en/Main/Software
* Enter the extracted arduino folder, gedit and replace the launcher (arduino)
* rename these files within arduino-0009/lib/ (they cause conflicts with librxtx-java):
RXTXcomm.jar
librxtxSerial.so
---to---
RXTXcomm.jar.BAK
librxtxSerial.so.BAK
* Open your arduino launcher with the text editor and replace the contents with the following (resolves conflicts with librxtx-java):
#!/bin/sh
# Original: CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar:lib/RXTXcomm.jar
CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar:/usr/share/java/RXTXcomm.jar
export CLASSPATH
# put the directory where this file lives in the front of the path, because
# that directory also contains jikes, which we will need at runtime.
#
PATH=`pwd`/tools:${PATH}
export PATH
# put the directory with the native RXTX libs in the library path
# Original: LD_LIBRARY_PATH=`pwd`/lib:${LD_LIBRARY_PATH}
LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
java processing.app.BaseOpen a terminal and type "sudo update-alternatives --config java" and press enter. Type the number of the option which has "java-1.5.0-sun" in it and press enter.
***NOTE: In order to get started programming, be sure to select in the arduino program: Tools -> Serial Port and select /dev/ttyUSB0
References:
http://www.arduino.cc/playground/Linux/Ubuntu
http://www.arduino.cc/en/Main/Software
This howto was written using Ubuntu Feisty Fawn 32-bit and arduino-0009.
* Open Synaptic and install the following:
sun-java5-bin
sun-java5-jdk
avr-libc
gcc-avr
librxtx-java
* REMOVE brltty (will cause conflicts)
*** NOTE: removing brltty will possibly break your accessibility options if utilized
* Download the arduino software: http://www.arduino.cc/en/Main/Software
* Enter the extracted arduino folder, gedit and replace the launcher (arduino)
* rename these files within arduino-0009/lib/ (they cause conflicts with librxtx-java):
RXTXcomm.jar
librxtxSerial.so
---to---
RXTXcomm.jar.BAK
librxtxSerial.so.BAK
* Open your arduino launcher with the text editor and replace the contents with the following (resolves conflicts with librxtx-java):
#!/bin/sh
# Original: CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar:lib/RXTXcomm.jar
CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar:/usr/share/java/RXTXcomm.jar
export CLASSPATH
# put the directory where this file lives in the front of the path, because
# that directory also contains jikes, which we will need at runtime.
#
PATH=`pwd`/tools:${PATH}
export PATH
# put the directory with the native RXTX libs in the library path
# Original: LD_LIBRARY_PATH=`pwd`/lib:${LD_LIBRARY_PATH}
LD_LIBRARY_PATH=/usr/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
java processing.app.BaseOpen a terminal and type "sudo update-alternatives --config java" and press enter. Type the number of the option which has "java-1.5.0-sun" in it and press enter.
***NOTE: In order to get started programming, be sure to select in the arduino program: Tools -> Serial Port and select /dev/ttyUSB0
References:
http://www.arduino.cc/playground/Linux/Ubuntu
http://www.arduino.cc/en/Main/Software