One of the great things about the Arduino software is the fact that it is created in Java and can run on both Windows and Linux.
This tutorial shows how to get Arduino up and running on a computer running Ubuntu Linux.
Install the Arduino package
At the command prompt, type the following and press enter:
sudo apt-get install arduino
Once this is installed, you should be able to open it up by searching for it in the Ubuntu Dashboard menu or you can type
arduino at the command prompt.
At this point, you will see the familiar Arduino interface and some menu options in the window (although they may be very faint like in my screenshot).
Getting the Serial communication up and running
In order to program your Arduino, you will need to establish the proper permissions for serial communications via the USB port.
By default, ordinary users on the Linux system do no have permissions to communicate with the serial port unless you are a member of the “dialout” group.
To add yourself to the dialout group, type the following at the command prompt and press ENTER:
sudo usermod -a -G dialout yourusename
For the changes to take effect, you will need to log out and log back in again. Once you log back in, you can enter the
groups command. You should now see yourself as a member of the
Changing the Look and Feel
At this point you should have a fully functioning connection between your Arduino and your computer. There are some improvements you can make to the look and feel by editing the /usr/bin/arduino script.
sudo nano /usr/bin/arduino
Comment out the last line in the file…The one that looks like this:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base
Then, add the following line:
Press CTRL-X to save and exit
What this essentially does is uses the Arduino look and feel instead of the GTK version.
Well, that about does it for this tutorial. If you have any comments or questions, feel free to leave them below. And don’t forget to use the bookmark links below!