💻Set up Development Environment on Chromebook

Set up Linux on your Chromebook

Linux is a feature that lets you develop software using your Chromebook. Install Linux command line tools, code editors, and IDEs (integrated development environments) on your Chromebook. These can be used to write code, create apps, and more.

Important: If you use your Chromebook at work or school, you might be unable to use Linux. For more information, contact your administrator.

Turn on Linux

Linux is off by default. You can turn it on at any time from Settings.

  1. On your Chromebook, at the bottom right, select the time.

  2. Next to "Linux development environment," select Turn On.

  3. Follow the on-screen instructions(default settings). Setup can take 10 minutes or more.

  4. A terminal window opens. You have a Debian 11 (Bullseye) environment. You can run Linux commands, install more tools using the APT package manager, and customize your shell.

Accessing Linux environment:

Update and install development tools:

Once the setup is complete, a terminal window will open. You can use the following commands to update the package list and install basic development tools:

sudo apt update
sudo apt upgrade

Install the Arduino IDE

Check the type of your OS version:

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

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:

NyBoard

For more details, please refer to 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.

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

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.

cd /mnt/chromeos/MyFiles/Downloads/
sudo apt-get install unzip
unzip OpenCat-main.zip

BiBoard

For more details, please refer to 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.

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

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

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.

cd /mnt/chromeos/MyFiles/Downloads/
sudo apt-get install unzip
unzip OpenCatEsp32-main.zip

Last updated