# Install Arduino IDE on Chromebook

After [turning on Linux](https://docs.petoi.com/apis/set-up-development-environment-on-chromebook#turn-on-linux) on the Chromebook, you can access the Linux environment via the terminal app.

Please follow the following steps to install the Arduino IDE:

## Check the type of your OS version

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2F9033Fr0FY3KCQYqgBWY5%2Fimage.png?alt=media&#x26;token=7ba3cef6-6b6e-411b-b4c4-cc73dc8e513b" alt=""><figcaption></figcaption></figure>

## Download package

Open the website ([www.arduino.cc/en/software](https://www.arduino.cc/en/software)) and download the corresponding type of Legacy Arduino IDE:

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2Feo4Pvi0NOEyiKYCI2XnT%2Fimage.png?alt=media&#x26;token=1c4a5652-2a27-4d41-9dc2-675eaaf71349" alt=""><figcaption></figcaption></figure>

## Installation

After downloading complete, set the folder ***Downloads*** in the file browser to share with Linux, as mentioned above. Use the following commands to install the **Arduino IDE,** e.g., ***arduino-1.8.19-linux64.tar.xz*** is the downloading file.

```
cd /mnt/chromeos/MyFiles/Downloads/
sudo apt-get install xz-utils
sudo tar -C /opt -xf arduino-1.8.19-linux64.tar.xz
cd /opt
ls
cd arduino-1.8.19/
ls
sudo ./install.sh
```

## Set up the Arduino IDE development environment for the mainboard

You can open the **Arduino IDE** as follows:

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FP3gXFAKmvOihztINx079%2Fimage.png?alt=media&#x26;token=d0b7848a-c0ef-49ea-b7aa-b7cb830198ca" alt=""><figcaption></figcaption></figure>

### NyBoard

For more details, please refer to [Upload Sketch for NyBoard](https://docs.petoi.com/~/changes/MnaoHQ6wOvffal3XIPZR/arduino-ide/upload-sketch-for-nyboard).

After using the USB uploader and USB data cable to connect the NyBoard and Chromebook, you will see a prompt: Please click ***Connect to Linux*****.**

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FJaSPQg2W8dln3NTHIEZH%2Fimage.png?alt=media&#x26;token=b6f9fed5-d381-4095-b9bc-012a2c6956b8" alt=""><figcaption></figcaption></figure>

and check in the **Settings** interface, and it should be enabled as follows:

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FIRX3WA5h7MoxUcr6CYKL%2Fimage.png?alt=media&#x26;token=62ab7b98-f269-47e3-a2f2-b6f7e90c8a36" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FkOVVO1SkKWw0a7whfA88%2Fimage.png?alt=media&#x26;token=925ee676-584a-4d66-8381-437385b2a088" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
After downloading the project file **OpenCat-main.zip** from GitHub: <https://github.com/PetoiCamp/OpenCat>, use the following commands to unzip it to the ***Downloads*** folder.

<pre><code><strong>cd /mnt/chromeos/MyFiles/Downloads/
</strong><strong>sudo apt-get install unzip
</strong>unzip OpenCat-main.zip
</code></pre>

{% endhint %}

### BiBoard

For more details, please refer to [Upload Sketch for BiBoard](https://docs.petoi.com/~/changes/MnaoHQ6wOvffal3XIPZR/arduino-ide/upload-sketch-for-biboard).

After using the USB data cable to connect the BiBoard and Chromebook, you will see a prompt: Please click ***Connect to Linux*****.**

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FvOpJIpQ1oX8wybuze5gZ%2Fimage.png?alt=media&#x26;token=826c0e36-c8e4-4f2d-909c-1a9fb019247f" alt=""><figcaption></figcaption></figure>

and check in the **Settings** interface, and it should be enabled as follows:

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FIRX3WA5h7MoxUcr6CYKL%2Fimage.png?alt=media&#x26;token=62ab7b98-f269-47e3-a2f2-b6f7e90c8a36" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1565080149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQ6a951Q6Jn1Zzt5Ajr-887967055%2Fuploads%2FgATQ9HHyZZJadLGYsbMG%2Fimage.png?alt=media&#x26;token=f9258b1e-bb88-4109-badf-570b9d0990a5" alt=""><figcaption></figcaption></figure>

Use the following commands to install the library pyserial for uploading the sketch for BiBoard

```
sudo apt install python3 pip
python3 -V
pip -V
cd /usr/lib/python3.11/
sudo rm EXTERNALLY-MANAGED
sudo pip3 install pyserial
pip list
```

{% hint style="info" %}
After downloading the project file **OpenCatEsp32-main.zip** from GitHub: <https://github.com/PetoiCamp/OpenCatEsp32>, use the following commands to unzip it to the ***Downloads*** folder.

<pre><code><strong>cd /mnt/chromeos/MyFiles/Downloads/
</strong>sudo apt-get install unzip
unzip OpenCatEsp32-main.zip
</code></pre>

{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.petoi.com/arduino-ide/install-arduino-ide-on-chromebook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
