Arduino: Instalasi di Ubuntu

From OnnoWiki
Jump to navigation Jump to search

Instalasi

Untuk menggunakan biasa

apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 \
librxtx-java arduino-core arduino

Kalau kita ingin compile

sudo apt-get install gcc-avr avrdude gcc avr-libc \
libantlr-java libecj-java \
libjna-java liboro-java openjdk-8-jdk ant

Set Ijin ke Serial Port

Beri ijin akses ke serial port

sudo usermod -a -G tty yourUserName
sudo usermod -a -G dialout yourUserName 


Instalasi IDE

Download source IDE dari

https://github.com/arduino/Arduino/releases
https://github.com/arduino/Arduino/archive/1.6.6.tar.gz
https://github.com/arduino/Arduino/archive/1.6.6.tar.gz
https://github.com/arduino/Arduino/archive/1.6.4.zip

Persiapan

apt-get install ant

Lakukan

cd ~/Downloads
cp Arduino-1.6.6.tar.gz /usr/local/src
sudo su
cd /usr/local/src
tar zxvf Arduino-1.6.6.tar.gz 
cd /usr/local/src/Arduino-1.6.6/build
ant
ant dist
cd linux
$ ant
$ ant dist
$ cd linux
$ ls -la arduino-0022.tgz (install as usual)

Referensi

Pranala Menarik