You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 10, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: tutorials/iot/install-the-arduino-ide/install-the-arduino-ide.md
+28-9Lines changed: 28 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,27 +20,46 @@ Duration:
20
20
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.
21
21
22
22
### 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)
25
25
26
26
### What you'll need
27
27
- Ubuntu 16.04 (and above) Desktop
28
28
- 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)
30
30
31
-
## Installing via apt
32
-
Duration: 1:00
31
+
## Installing via a tarball
32
+
Duration: 3:00
33
33
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
35
37
36
38
```bash
37
-
sudo apt isntall arduino
39
+
tar xvf FILENAME
38
40
```
39
41
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
+
```
41
56
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.
42
58
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.
0 commit comments