<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>codetorment &#187; linux</title>
	<atom:link href="http://www.codetorment.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codetorment.com</link>
	<description>code, tech, random stuff</description>
	<lastBuildDate>Tue, 04 May 2010 21:04:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=1685</generator>
		<item>
		<title>Tutorial : Getting started with Arduino on Ubuntu 9.10</title>
		<link>http://www.codetorment.com/2009/11/02/tutorial-getting-started-with-arduino-ide-on-linux-ubuntu-9-10/</link>
		<comments>http://www.codetorment.com/2009/11/02/tutorial-getting-started-with-arduino-ide-on-linux-ubuntu-9-10/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 20:53:40 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[launcher]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.codetorment.com/?p=439</guid>
		<description><![CDATA[In this tutorial I will show you how to setup the Arduino IDE on Ubuntu 9.10 32-bit. I&#8217;ll also show you how to add an Application Launcher to quickstart the Arduino IDE I&#8217;ll assume you haven&#8217;t already installed any of the necessary packages to run the Arduino IDE. 1. First open a terminal ( Applications [...]]]></description>
			<content:encoded><![CDATA[<p><strong>In this tutorial I will show you how to setup the Arduino IDE on Ubuntu 9.10 32-bit. I&#8217;ll also show you how to add an Application Launcher to quickstart the Arduino IDE</strong></p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-sketch_nov02a-Arduino-0017.png"><img class="alignnone size-full wp-image-515" title="Screenshot-sketch_nov02a | Arduino 0017" src="http://www.codetorment.com/wp-content/uploads/Screenshot-sketch_nov02a-Arduino-0017.png" alt="Screenshot-sketch_nov02a | Arduino 0017" width="500" height="600" /></a></p>
<p>I&#8217;ll assume you haven&#8217;t already installed any of the necessary packages to run the Arduino IDE.</p>
<p>1. First open a terminal ( Applications &gt; Accesories &gt; Terminal ), paste the following code and hit enter :<span id="more-439"></span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 54px; text-align: left;" dir="ltr">sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
sun-java6-fonts sun-java6-plugin gcc-avr avr-libc</pre>
<p>&nbsp;<br />
2. Next we need to uninstall Ubuntu&#8217;s braille support as it is known to cause <a title="Arduino on Ubuntu" href="http://www.arduino.cc/playground/Linux/Ubuntu" target="_blank">conflicts</a> with the Arduino IDE.</p>
<p>To do so go back to the terminal and enter :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">sudo apt-get remove brltty</pre>
<p>&nbsp;<br />
3. Now we need to setup Java<br />
GNU&#8217;s Java doesn&#8217;t support the Arduino so to fix this run the command</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">sudo update-alternatives --config java</pre>
<p>&nbsp;<br />
This will show you a list of java alternatives installed on the machine.<br />
Select the entry &#8216;java-6-sun&#8217;</p>
<p>4. Now we are ready to download and install the arduino environment</p>
<p>Click <a title="Arduino IDE version 17" href="http://arduino.googlecode.com/files/arduino-0017.tgz" target="_blank">here</a> to download version 17 of the Arduino IDE. Alternatively go <a title="Arduino software" href="http://arduino.cc/en/Main/Software" target="_blank">here</a> to download a specific version.</p>
<p>5. Copy the downloaded file to your home directory ( saved by default in /home/username/downloads )</p>
<p>Extract the downloaded file into your home directory ( right-click &gt; extract here ).</p>
<p>6. To start the Arduino IDE open the arduino-0017 folder and double click the arduino file, when prompted choose Run.</p>
<p>If you want to start the Arduino IDE from the command line, cd into the folder</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">cd /home/username/arduino-0017</pre>
<p>&nbsp;<br />
and start the IDE with the command</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">./arduino</pre>
<p>&nbsp;</p>
<h3>I however prefer to have a launcher to quickstart applications.</h3>
<p>1. Download this icon to your desktop ( right-click &gt; Save image as&#8230; )</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/arduino.png"><img class="alignnone size-full wp-image-483" title="arduino" src="http://www.codetorment.com/wp-content/uploads/arduino.png" alt="arduino Tutorial : Getting started with Arduino on Ubuntu 9.10" width="131" height="131" /></a></p>
<p>2. Open a terminal, go to your desktop and copy the image to /usr/share/icons</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 48px; text-align: left;" dir="ltr">cd Desktop/
sudo cp arduino.png /usr/share/icons/</pre>
<p>&nbsp;<br />
3. Next right click the top panel and select Add to panel&#8230;</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Add-to-Panel.png"><img class="alignnone size-full wp-image-482" title="Screenshot-Add to Panel" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Add-to-Panel.png" alt="Screenshot-Add to Panel" width="562" height="518" /></a></p>
<p>5. Select the first entry &#8216;Custom Application Launcher&#8217; and hit Add</p>
<p>6.In the Create Launcher window enter</p>
<p>A name for the launcher :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">Arduino</pre>
<p>&nbsp;<br />
The command to be executed when the launcher is clicked :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">bash -c "cd /home/yourusername/arduino-0017/; ./arduino"</pre>
<p>&nbsp;<br />
And any comment you want to add :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto;  width: 580px; height: 24px; text-align: left;" dir="ltr">starts the Arduino IDE</pre>
<p>&nbsp;<br />
Now click on the spring icon and go to the /usr/share/icons/ folder and select the arduino.png image.</p>
<p>Your Launcher should look like this</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Launcher-Properties-1.png"><img class="alignnone size-full wp-image-493" title="Screenshot-Launcher Properties-1" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Launcher-Properties-1.png" alt="Screenshot-Launcher Properties-1" width="434" height="225" /></a></p>
<p>That was it! You&#8217;re all setup to hack and thinker with your Arduino on Ubuntu 9.10.</p>
<p>Now run along a go blink some LEDs.</p>
<p><a title="Home" href="http://www.codetorment.com/" target="_self">Back to homepage</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.codetorment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.codetorment.com/2009/11/02/tutorial-getting-started-with-arduino-ide-on-linux-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
