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
description: Learn how to connect to the UNO Q's shell via ADB.
4
+
author: Karl Söderby
5
+
tags: [UNO Q, ADB, Linux]
6
+
---
7
+
8
+
The Linux OS running on the [Arduino UNO Q](https://store.arduino.cc/products/uno-q) can be accessed over USB, using a tool called Android Debug Bridge (ADB).
9
+
10
+
ADB is a tool that you install on your computer, where you can access the board's shell and run operations on the system.
11
+
12
+
## Requirements
13
+
14
+
The following hardware is required:
15
+
-[Arduino UNO Q](https://store.arduino.cc/products/uno-q)
16
+
-[USB-C® type cable](https://store.arduino.cc/products/usb-cable2in1-type-c)
17
+
18
+
You will also need to have the following software installed on your OS:
The ADB command line tool is supported on MacOS, Windows & Linux. For more specific instructions for your OS, see the sections below.
24
+
25
+
***You can find more information and download the latest version for the tool for all operating systems directly from the [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools#downloads) page.***
26
+
27
+
### MacOS
28
+
29
+
To install the ADB tools on **MacOS**, we can use `homebrew`. Open the terminal and run the following command:
30
+
31
+
```
32
+
brew install android-platform-tools
33
+
```
34
+
35
+
To verify the tool is installed, run `adb version`.
36
+
37
+
### Windows
38
+
39
+
To install the ADB tools on **Windows**, we can use `winget`, supported on Windows 11 and on some earlier Windows 10 versions.
40
+
41
+
Open a terminal and run the following:
42
+
43
+
```
44
+
winget install Google.PlatformTools
45
+
```
46
+
47
+
To verify the tool is installed, run `adb version`.
48
+
49
+
### Linux
50
+
51
+
To install ADB tools on a **Debian/Ubuntu Linux distribution**, open a terminal and run the following command:
52
+
53
+
```
54
+
sudo apt-get install android-sdk-platform-tools
55
+
```
56
+
57
+
To verify the tool is installed, run `adb version`.
58
+
59
+
## Connect via ADB
60
+
61
+
1. Connect the UNO Q board to your computer via USB-C®.
62
+
2. Run `adb devices` in the terminal. This should list the connected devices.
>Note that it may take up to a minute for the device to appear after connecting it.
67
+
68
+
3. Run `adb shell`. If you have not set up your board prior to this via the Arduino App Lab, you may be required to provide a password, which is `arduino`.
69
+
4. You should now be inside your board's terminal.
70
+
71
+

72
+
73
+
5. You are now able to run commands via the terminal on your board! To exit from the terminal, simply type `exit`.
74
+
75
+
## Summary
76
+
77
+
Connecting via ADB is an easy way to gain access to your board's shell, allowing you to perform actions such as installing packages, editing files and running scripts.
78
+
79
+
The `arduino-app-cli` can also be used directly via the shell, allowing you to launch Apps directly from the command line. You can read more about that in the link below:
80
+
-[Arduino App CLI: Manage Apps from the Command Line](/software/app-lab/tutorials/cli/)
***Note: if you are using the board as a Single Board Computer (SBC Mode (Preview) without a host computer), you do not need to install ADB. You can run `arduino-app-cli` directly from the terminal.***
24
-
25
-
The ADB command line tool is supported on MacOS, Windows & Linux. For more specific instructions for your OS, see the sections below.
26
-
27
-
***You can find more information and download the latest version for the tool for all operating systems directly from the [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools#downloads) page.***
28
-
29
-
### MacOS
30
-
31
-
To install the ADB tools on **MacOS**, we can use `homebrew`. Open the terminal and run the following command:
32
-
33
-
```sh
34
-
brew install android-platform-tools
35
-
```
36
-
37
-
To verify the tool is installed, run `adb version`.
38
-
39
-
### Windows
40
-
41
-
To install the ADB tools on **Windows**, we can use `winget`, supported on Windows 11 and on some earlier Windows 10 versions.
42
-
43
-
Open a terminal and run the following:
44
-
45
-
```sh
46
-
winget install Google.PlatformTools
47
-
```
48
-
49
-
To verify the tool is installed, run `adb version`.
50
-
51
-
### Linux
52
-
53
-
To install ADB tools on a **Debian/Ubuntu Linux distribution**, open a terminal and run the following command:
54
-
55
-
```sh
56
-
sudo apt-get install android-sdk-platform-tools
57
-
```
58
-
59
-
To verify the tool is installed, run `adb version`.
21
+
You can also access the board via SSH, which is typically installed on your system by default.
60
22
61
23
## Connect via ADB
62
24
25
+
***To learn more about setting up `adb`, check out the [Connect to UNO Q via ADB](/tutorials/uno-q/adb/) tutorial. This guide will walk you through the installation steps.***
26
+
63
27
1. Connect the UNO Q board to your computer via USB-C.
64
28
2. Run `adb devices` in the terminal. This should list the connected devices.
65
29
@@ -104,7 +68,7 @@ To manage Apps, we use the `app` command.
104
68
105
69
To create an app, we can use:
106
70
107
-
```sh
71
+
```
108
72
arduino-app-cli app new "test"
109
73
```
110
74
@@ -118,13 +82,13 @@ If you are accessing the board via `adb`, you can **pull** and **push** the file
0 commit comments