WikiChromebook
Menu

When you buy through our links, we may earn a commission. About our links ›

How to Set Up a Linux Programming Environment on Chromebook

Short answer: Set up Linux from Settings: go to About ChromeOS, open Developers, and choose Set up next to Linux development environment. Setup can take 10 minutes or more. You get a Debian terminal, so you can install programming tools with APT, add code editors and IDEs, and manage packages with commands like sudo apt-get update. Before buying, look for models that support Linux and have enough RAM and storage. Chromebook Plus devices include at least 8GB of RAM and 128GB of storage.

What Linux on ChromeOS offers for programming

ChromeOS includes a Linux development environment that lets you install command-line tools, code editors, and integrated development environments (IDEs). It gives you a terminal, a Debian environment, and an APT package manager inside a container managed by ChromeOS. Google's ChromeOS developer site describes Linux as built into ChromeOS, so you can start a development environment without leaving the platform.

The Linux environment is off by default, and you can turn it on from Settings without changing system firmware or installing a separate OS. Because it is part of ChromeOS, Linux tools stay inside the regular ChromeOS security model, which includes verified boot, a read-only OS, data encryption, and sandboxing. If you are new to ChromeOS, start with what is a Chromebook and how to enable Linux.

Before you start: compatibility and account settings

Not every Chromebook supports Linux. Google's Linux setup page includes a device compatibility check, and supported devices show the Linux development environment option in Settings. On a managed work or school Chromebook, an administrator can disable Linux, so contact your administrator if the option is missing. For more about software support timelines, see Chromebook updates and support.

Before buying a Chromebook for a programming workflow, choose hardware with enough RAM and storage for the container, your tools, and your source files. Chromebook Plus models include at least 8GB of RAM and 128GB of storage, a good starting point for a Linux setup. You can also compare Chromebooks with 8GB RAM.

Turn on Linux in ChromeOS settings

Open the Settings menu from the clock area at the bottom right. Go to About ChromeOS, then Developers. Next to Linux development environment, select Set up. Follow the on-screen instructions. Google notes that setup can take 10 minutes or more.

When setup finishes, a terminal window opens with a Debian environment. From there you can run Linux commands, use APT to install more tools, and customize your shell. The option stays in Settings under About ChromeOS, Developers, Linux development environment if you need to change permissions or remove Linux later.

Update packages and install command-line tools

Start by updating the package lists and upgrading what is already installed. In the Terminal app, run: sudo apt-get update && sudo apt-get dist-upgrade. Linux also checks for updated packages automatically after initial setup and every 24 hours when it is running.

After the update, use the APT package manager to install the tools you need. Run sudo apt-get install followed by the package name. Common examples include Git for version control, curl for HTTP requests, Python 3, Node.js, and build packages for compiled languages. Some projects provide their own repositories or installers; follow the project's official instructions when you need a newer version.

Useful APT commands after Linux setup
CommandWhat it does
sudo apt-get updateRefreshes the list of available packages.
sudo apt-get dist-upgradeUpgrades installed packages.
sudo apt-get install gitInstalls a package, for example Git.

Install code editors and IDEs

The Linux environment supports code editors and IDEs as graphical apps. Many are available through the Debian repositories with APT, while others publish .deb packages that you download and install from the terminal. After installation, Linux apps appear in the ChromeOS app launcher and open like other apps.

You can keep project files, editor settings, and language runtimes inside the Linux container. Because the container is separate from ChromeOS, the tools and services you install in Linux do not interfere with the browser or with Android apps. If you are deciding which app format to use for a task, compare Android apps vs Linux apps.

Know the current Linux environment limits

The official Linux support notes list a few limits that matter for development. Cameras are not yet supported inside Linux. Android devices are supported over USB, but other USB devices are not yet supported. Android emulators are not yet supported, and hardware acceleration is not yet supported, including GPU and video decode.

All Linux apps run inside the same sandbox. A harmful Linux app can affect other Linux apps but cannot affect the rest of your Chromebook. Permissions and files shared with Linux are available to all Linux apps, so only share what you need. For more context on running Linux workloads on ChromeOS, see ChromeOS vs Linux on the same hardware and Linux performance.

Keep ChromeOS and Linux updated

ChromeOS updates automatically when it is connected to the internet, and a restart finishes the update. You can also check manually in Settings under About ChromeOS. Google states that ChromeOS devices receive 10 years of automatic updates, which helps keep the Linux development environment on a supported system for a long time. See check and install ChromeOS updates and Chromebook update support.

On the Linux side, run sudo apt-get update and sudo apt-get dist-upgrade in the Terminal if a tool stops working or after you install a new runtime. Linux checks for packages automatically after initial setup and every 24 hours when it is running. If you decide you no longer need Linux, go to Settings, About ChromeOS, Developers, Linux development environment, and choose Remove.

What to pick for your use

If youPickBuying guide
You want a proven baseline with enough RAM and storageChromebook Plus with 8GB RAM and 128GB storageBest Chromebook Plus 2026: 15 Picks Compared on Specs
You want to compare a broad set of 8GB ChromebooksA Chromebook with 8GB RAMBest Chromebooks with 8GB RAM in 2026: 13 Picks Compared on Specs
You plan to run heavier local buildsAn Intel Core ChromebookBest Intel Core Chromebooks in 2026: 15 Picks Compared on Specs
You need extra space for containers and source directoriesA model with 128GB or more storageBest Chromebooks with 128GB Storage (2026): 15 Picks
You want a convertible for coding and tablet useA 2-in-1 ChromebookBest 2-in-1 Chromebooks in 2026: 12 Picks Compared on Specs
You spend long hours in an IDE and want screen roomA 14-inch or larger ChromebookBest 14-Inch Chromebooks in 2026: 15 Picks Compared on Specs

Questions

Does every Chromebook support Linux?

No. Linux is off by default, and the Set up option appears under Settings only when the device supports it. Work or school administrators can also disable Linux. Google's Linux setup page includes a device compatibility check. If the option is missing, contact your administrator.

How do I install programming tools on Linux?

Open the Terminal app and run sudo apt-get update, then sudo apt-get dist-upgrade. After that, install packages with sudo apt-get install followed by package names such as git, curl, python3, or nodejs.

Can Linux apps access my Chromebook's hardware?

The current Linux environment supports microphone access if you turn it on in Linux settings. Cameras are not supported, Android devices are supported over USB, but other USB devices are not supported yet. Hardware acceleration for GPU and video decode is not supported yet.

Is it safe to install many Linux packages?

All Linux apps run inside the same sandbox. A harmful Linux app can affect other Linux apps but not the rest of your Chromebook. Permissions and files shared with Linux are available to all Linux apps, so only share what you need.

How often should I update Linux and ChromeOS?

ChromeOS updates itself automatically when online. Linux checks for updated packages automatically after setup and every 24 hours when running. You can also run sudo apt-get update and sudo apt-get dist-upgrade in the Terminal.

What kind of Chromebook should I buy for Linux programming?

Choose a model that supports Linux and has enough RAM and storage for your container and projects. Chromebook Plus models include at least 8GB of RAM and 128GB of storage. Use the buying guides to compare options.

What changed

  • : First published.

Sources

Related buying guides