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
+
```bash
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
+
```bash
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
+
```bash
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
@@ -76,7 +40,7 @@ To verify the tool is installed, run `adb version`.
76
40
77
41
## Connect via SSH
78
42
79
-
***Note: to use SSH, the [first setup]() needs to be completed. This is done by connecting your board via USB, open the Arduino App Lab, and select the USB option. Here you will need to give your board a name, a new password as well as providing Wi-Fi® credentials. SSH will be automatically configured during this setup.***
43
+
***Note: to use SSH, the [first setup](/software/app-lab/tutorials/getting-started#install--set-up-arduino-app-lab) needs to be completed. This is done by connecting your board via USB, open the Arduino App Lab, and select the USB option. Here you will need to give your board a name, a new password as well as providing Wi-Fi® credentials. SSH will be automatically configured during this setup.***
80
44
81
45
1. Open a terminal on your machine.
82
46
2. Run `ssh arduino@<boardname>.local`
@@ -183,15 +147,6 @@ This will list all available Apps (including examples), and their status:
183
147
184
148

185
149
186
-
## Set Board Name
187
-
188
-
To set a board name using the `arduino-app-cli`, we can use the `set-name` command.
189
-
190
-
```sh
191
-
arduino-app-cli board set-name "my-board"
192
-
```
193
-
194
-
This will change the name of the board, which will take effect after resetting the board.
195
150
196
151
## System Configuration and Updates
197
152
@@ -204,6 +159,13 @@ arduino-app-cli system update
204
159
```
205
160
This will prompt you to install any available updates.
206
161
162
+
To set the board name, use:
163
+
164
+
```sh
165
+
arduino-app-cli system set-name "my-board"
166
+
```
167
+
This will change the name of the board, which will take effect after resetting the board.
0 commit comments