3

I have downloaded the newest version of Arduino (to use with my Arduino Due) from here: http://downloads.arduino.cc/arduino-1.5.6-r2-linux64.tgz.

At the moment I have extracted it into /home/$USER and am running it by going into arduino-1.5.6-r2 and running the executable directly.

How can I have it so it is installed as it would be if I had downloaded it using apt-get install arduino?

Charo
  • 3,681
Beta Decay
  • 173
  • 1
  • 8

2 Answers2

2

If you want to run it locally, create a desktop file in ~/.local/share/applications:

option 1: Make sure the file is executable (in this case it is when you downloaded it). Paste the text below in an empty textfile, fill in the right path to the script file (arduino), to the icon, the comment (optional) and the categories (optional):

[Desktop Entry]
Name=Arduino
Comment=Your comment here
Exec=/path/to/arduino/arduino
Terminal=false
Type=Application
StartupNotify=true
Icon=/path/to/icon/icon
Categories=

Save it as arduino.desktop in ~/.local/share/applications.

option 2:

As above, but create a directory ~/bin, and create a link there (ln-sf) to arduino. then simply change the Exec= -line in the desktop file to Exec=arduino.

After log out / in, Arduino will be avialable in Dash. Drag it on to the launcher if you want to run it from the launcher as well (or run it and right-click lock to launcher like you would with any other application.

Jacob Vlijm
  • 85,475
0

You can install it using apt-get:

sudo apt-get install arduino

EDIT:

I think you should unpack it to /opt. It can break your OS if you do it as apt-get does, because you won't know where are specific parts of Arduino IDE and you won't be able to uninstall it.

enedil
  • 1,002