Skip to content
This repository was archived by the owner on Feb 10, 2020. It is now read-only.

Commit 9fc714d

Browse files
committed
Update Arduino IDE install to use tarball instead of apt
1 parent b1539bc commit 9fc714d

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

tutorials/iot/install-the-arduino-ide/install-the-arduino-ide.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,46 @@ Duration:
2020
To get us up and running with Arduino, we are going to install the **Arduino IDE**, a program that will help us write code for the Arduino, and run our code on the board.
2121

2222
### What you'll learn
23-
- How to install the Arduino package with `apt-get`
24-
-
23+
- How to install the Arduino package from a tarball
24+
- How to add a user to a group (here, the `dialout` group)
2525

2626
### What you'll need
2727
- Ubuntu 16.04 (and above) Desktop
2828
- An Arduino board, and included mini-USB cable
29-
- Some basic command-line knowledge
29+
- Some basic command-line knowledge (including how to use `cd` to change directories)
3030

31-
## Installing via apt
32-
Duration: 1:00
31+
## Installing via a tarball
32+
Duration: 3:00
3333

34-
Installing the Arduino IDE and all its dependencies using `apt` is easy; just run
34+
We can download the latest version of the Arduino IDE from the Arduino website ([here](https://www.arduino.cc/en/Main/Software)) as a *tarball*. A tarball is a type of compressed folder, like a `.zip` file, commonly used to distrubute software in Linux; its file extension is usually `.tar.xz` (or `.tar.gz`, if it uses _Z compression_. We'll get to this later).
35+
36+
In order to extract the files we need from the tarball, we can open a terminal, `cd` to where the downloaded tarball is, then run
3537

3638
```bash
37-
sudo apt isntall arduino
39+
tar xvf FILENAME
3840
```
3941

40-
in a terminal.
42+
where `FILENAME` is the name of the download (typically arduino-(version number)-linux64.tar.xz).
43+
44+
The command can be read as
45+
* e**X**tract from an archive...
46+
* **V**erbosely (meaning it prints the name of every file it finds)...
47+
* from a **f**ile given by `FILENAME`.
48+
49+
When the command finishes, run `ls` again; `tar` should have created a new folder named arduino-(version number).
50+
51+
`cd` into the folder; there will be a file named `install.sh` in the folder. To install the IDE, execute `install.sh` with
52+
53+
```bash
54+
./install.sh
55+
```
4156

57+
If the script executes correctly and outputs `done!` at the end of its output, the IDE was installed correctly! Let's try to launch it in the next step.
4258

43-
When apt finishes up, the Arduino IDE should be installed correctly! Let's try to launch it in the next step.
59+
negative
60+
: **Installing via apt**
61+
While there *is* a package for the Arduino IDE on current APT repositories, it has not been updated for a while.
62+
As such, while it is still possible to install the IDE by running `sudo apt install arduino`, it is **not recommended** to do so, as asking for support when using outdated software is more difficult.
4463

4564
## First Launch
4665
Duration: 1:00

0 commit comments

Comments
 (0)