Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Android 17 Qpr1 Beta 5 Linux Terminal App Features Resolution Themes Explained

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, the Android 17 QPR1 Beta 5 includes a built-in Linux Terminal app that runs a full Debian-based Linux environment on your Pixel device. This guide explains its key features, how to adjust the display resolution, and how to change the terminal's color themes. You'll need a Pixel device enrolled in the Android Beta Program and a basic familiarity with Linux commands.

What You'll Need

  • A Pixel device (Pixel 6 or newer) running Android 17 QPR1 Beta 5
  • At least 5 GB of free storage (the Linux image takes up several GB)
  • A stable Wi-Fi connection for the initial download
  • Basic knowledge of Linux command-line operations (e.g., apt, cd, ls)

Step-by-Step

1. Open the Linux Terminal App

  1. On your Pixel, swipe up from the bottom to open the app drawer.
  2. Find and tap the Linux Terminal app (the icon resembles a black terminal window with a green prompt). If you don't see it, check the Apps section in Settings or search for "Linux" in the app drawer.
  3. The first launch will prompt you to download the Linux image. Tap Download and wait for it to finish (this can take several minutes).

2. Understand the Default Interface

  1. Once the image is installed, you'll see a full-screen terminal window with a bash prompt (e.g., user@localhost:~$).
  2. The app runs a Debian-based environment with root access (you can use sudo).
  3. You can open multiple terminal sessions by tapping the + icon in the top-right corner.

3. Adjust the Display Resolution

  1. In the terminal, type nano ~/.bashrc and press Enter to edit your shell configuration.
  2. Add the following line to set a custom resolution (replace 1280x720 with your desired size):
    export WLR_RENDERER=vulkan
    export WLR_RENDERER_OPTIONS=width=1280,height=720
  3. Save the file (Ctrl+O, then Enter) and exit (Ctrl+X).
  4. Type source ~/.bashrc and press Enter to apply the changes.
  5. Alternatively, you can change the resolution from the app's settings: tap the three-dot menu (⋮) in the top-right corner, select Settings, and look for Display or Resolution. The exact wording may vary by beta version.
  6. If the resolution looks too small or too large, adjust the Scale option in the same settings menu (e.g., 1.0x, 1.25x, 1.5x).

4. Change the Color Theme

  1. Open the terminal app's settings via the three-dot menu (⋮) > Settings.
  2. Look for a section called Appearance or Theme.
  3. Choose from the available presets (e.g., Dark, Light, Solarized, High Contrast). The exact list depends on the beta build.
  4. If you want a custom theme, you can edit the terminal's color scheme by creating a configuration file. In the terminal, run:
    nano ~/.config/terminal/theme.conf
  5. Add lines like foreground=#ffffff and background=#000000 (replace with your desired hex colors). Save and exit, then restart the terminal app.

5. Use the Linux Environment

  1. You can install packages with apt (e.g., sudo apt update && sudo apt install vim).
  2. Access your Android files from the Linux environment via the /mnt/android directory (read-only by default).
  3. To run graphical apps, you'll need to enable the Wayland compositor from the app's settings (toggle GPU acceleration or Wayland). Note that not all apps will work perfectly.

Common Mistakes

  • Ignoring the resolution settings: Many users try to change resolution via the terminal but forget to source the .bashrc or restart the app. Always apply changes and restart.
  • Overwriting the default theme file: If you edit the wrong config file, the terminal may fail to start. Always back up the original file (e.g., cp ~/.config/terminal/theme.conf ~/.config/terminal/theme.conf.bak).
  • Assuming the Linux environment has full hardware access: It does not. You cannot access the GPU directly, and some USB devices won't work.
  • Forgetting to update the Linux image: The terminal app will notify you of updates, but you can also check manually in Settings > System > Linux Terminal.

Tips

  • Use Ctrl+Shift+C and Ctrl+Shift+V to copy and paste inside the terminal (the usual Ctrl+C/V are intercepted by the terminal).
  • If you need more screen space, hide the on-screen keyboard by tapping the keyboard icon in the top bar.
  • For a better experience, connect a Bluetooth keyboard and mouse.
  • To reset the terminal to its default settings, go to Settings > Apps > Linux Terminal > Storage and tap Clear Data. This will delete the Linux image and all files inside it—so back up anything important first.

Troubleshooting

Terminal won't start or crashes

  1. Restart the app: swipe it away from the recent apps list and reopen it.
  2. Check if the Linux image is corrupted: go to Settings > Apps > Linux Terminal > Storage and tap Clear Cache (this will not delete your files).
  3. If it still crashes, uninstall the app and reinstall it from the Play Store (this will remove the Linux environment).

Resolution changes don't take effect

  1. Make sure you typed the export lines exactly as shown, with no typos.
  2. After editing .bashrc, run source ~/.bashrc or restart the terminal app.
  3. If the resolution is still wrong, try using the app's settings menu instead of the terminal commands.

Theme doesn't apply

  1. Ensure you saved the theme file in the correct location (~/.config/terminal/theme.conf).
  2. Check that the file has the correct format: each line should be key=value with no spaces around the equals sign.
  3. Restart the terminal app completely (close it from recent apps and reopen).

Can't install packages (apt errors)

  1. Run sudo apt update first—many errors are due to outdated package lists.
  2. If you get a "Could not get lock" error, wait a minute or run sudo killall apt to stop any stuck process.
  3. Make sure you have enough free storage: check with df -h.

Frequently Asked Questions

Is the Linux Terminal app available on all Android 17 devices?

No, it is currently exclusive to Pixel devices running the Android 17 QPR1 Beta 5. It may come to other devices later, but there is no official confirmation.

Can I run GUI applications (like Firefox) in the terminal?

Yes, but only if you enable the Wayland compositor in the app's settings. Even then, performance may be poor, and some apps may not display correctly.

How do I access my Android files from Linux?

Your Android files are mounted under /mnt/android in read-only mode. You can copy files from there to the Linux home directory to edit them.

Will this replace Termux or other terminal apps?

No, it's a separate, more full-featured Linux environment. Termux still works and may be preferable for lightweight tasks.

Can I use the terminal to run a web server?

Yes, you can install and run services like Apache or Nginx, but they will only be accessible from the device itself unless you configure port forwarding (which requires root and may not work reliably).

Is the Linux environment persistent after a reboot?

Yes, the Linux image is stored on your device's storage, so your files and installed packages survive reboots. However, any running processes will stop.