sodcalculator

10 Tech How-To

Linux on Chromebook: Desktop Experience Guide

Guide 10-59093 · Updated · Step by step

This guide shows you how to get a full Linux desktop environment on your Chromebook, giving you access to a wide range of open-source software and a traditional desktop interface. You’ll use Chrome OS’s built-in Linux (Crostini) feature, then install a desktop environment like XFCE or GNOME. This works on most modern Chromebooks that support Linux apps.

What You’ll Need

  • A Chromebook that supports Linux (most models from 2019 onward; check Settings > About ChromeOS > Developer options).
  • At least 4GB of RAM (8GB recommended for a smoother experience).
  • At least 5GB of free storage space.
  • Stable internet connection for downloading packages.
  • Basic familiarity with the Chrome OS settings menu.

Step-by-Step

  1. Enable Linux on your Chromebook: Open Settings (gear icon), go to About ChromeOS > Developers, and click Set up next to Linux development environment. Follow the prompts to install the Linux container. This creates a terminal and a Linux folder in your Files app.
  2. Open the Linux terminal: After setup, you’ll see a Terminal app (often named after your device). Open it. You’ll get a shell prompt (e.g., username@penguin:~$).
  3. Update your Linux system: Run the following commands to update the package list and upgrade existing packages. This ensures compatibility with the desktop environment packages.
    sudo apt update
    sudo apt upgrade -y
  4. Install a desktop environment: Choose one. For a lightweight, fast experience, install XFCE. For a more modern look, try GNOME (heavier). Here are the commands:
    • XFCE (recommended): sudo apt install xfce4 xfce4-terminal -y
    • GNOME (heavier): sudo apt install gnome -y (this is a large download)
  5. Start the desktop environment: After installation, you need to start it. The easiest way is to use a VNC server. Install a VNC server and a lightweight window manager if needed. For XFCE, run:
    sudo apt install tigervnc-standalone-server -y
    vncserver :1 -geometry 1920x1080 -depth 24

    This starts a VNC server on display :1. You’ll be prompted to set a password (optional, but recommended).

  6. Connect to the desktop: You need a VNC client. Chrome OS has a built-in VNC client? Not directly, but you can install a VNC viewer app from the Play Store (like VNC Viewer). Open the app, enter localhost:5901 (or 127.0.0.1:5901), and connect. You’ll see the Linux desktop.
  7. Make it easier to launch (optional): Instead of VNC, you can use the built-in Linux app support to run individual Linux apps directly on Chrome OS. But for a full desktop experience, VNC is the way. To stop the desktop, run vncserver -kill :1 in the terminal.
  8. Set up automatic start (optional): To avoid typing the VNC command every time, you can create a script. Create a file named start-desktop.sh with the VNC command, make it executable with chmod +x start-desktop.sh, and run it when needed.

Common Mistakes

  • Installing a desktop environment but not starting a VNC server: The desktop won’t appear automatically. You must start the VNC server and connect to it.
  • Using the wrong VNC port: The default port is 5900 + display number. For display :1, it’s 5901. Many people use 5900 and fail.
  • Forgetting to update packages: Skipping apt update can lead to installation errors due to outdated package lists.
  • Choosing a heavy desktop environment on a low-spec Chromebook: GNOME may be sluggish. Stick with XFCE or LXDE for better performance.
  • Not enabling Linux in settings first: You can’t install packages without the Linux container.

Tips

  • Use XFCE for best performance: It’s lightweight and works well on Chromebooks.
  • Increase the VNC resolution to match your screen: Use -geometry 1920x1080 or your native resolution for a crisp display.
  • Install a file manager: XFCE comes with Thunar, GNOME with Nautilus. You can also install others.
  • Access your Linux files from Chrome OS: The Linux folder in the Files app shows your Linux home directory. You can drag and drop files between them.
  • Use the terminal for updates: Regularly run sudo apt update && sudo apt upgrade to keep your Linux environment secure.
  • Consider using a lightweight window manager like Openbox if you want even lower resource usage.

Troubleshooting

  • VNC connection fails: Check that the VNC server is running (look for vncserver in the terminal output). Ensure you’re using the correct port (5901 for display :1). Try restarting the VNC server with vncserver -kill :1 then vncserver :1.
  • Desktop looks blurry or low resolution: Adjust the geometry in the VNC command. Try -geometry 1920x1080 or your screen’s native resolution. Also check the VNC client’s scaling options.
  • Packages fail to install: Run sudo apt update again. If you get a “Unable to locate package” error, the package name might be different. Check online for the correct package name for your distribution (Debian).
  • Linux is not enabled in Settings: This feature may not be available on all Chromebooks. Check if your model supports Linux. For enterprise-managed devices, the admin may have disabled it.
  • VNC server starts but shows a blank screen: This can happen if the desktop environment isn’t fully configured. Try starting the desktop manually by running startxfce4 in the VNC session. You may need to edit ~/.vnc/xstartup to include the desktop startup command.
  • Performance is slow: Close unnecessary Linux apps. Consider using a lighter desktop environment. Also, ensure your Chromebook has enough RAM (close Chrome tabs).

Frequently Asked Questions

Can I run any Linux app on Chrome OS?

Most Linux apps that run on Debian 11 (Bullseye) will work, but hardware-dependent apps (like those needing GPU acceleration) may have limited support. Some apps require additional configuration.

Will this affect my Chromebook’s warranty?

No, enabling Linux is an official feature. It doesn’t void your warranty. It’s separate from Developer Mode (which might).

Can I use multiple desktop environments?

Yes, you can install several, but you can only run one at a time. You’ll need to stop the current VNC server and start a new one with the other desktop.

How do I uninstall Linux from my Chromebook?

Go to Settings > About ChromeOS > Developers > Linux development environment, and click Remove. This will delete all Linux data.

Is there a way to run Linux apps without a full desktop?

Yes, you can install individual Linux apps and they’ll appear in your Chrome OS app launcher. This is the default behavior. The desktop environment is only for a traditional desktop look.

Can I access my Android files from Linux?

Not directly. Android files are in a separate container. You can share files via the Files app by copying them to the Linux folder.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →