With Linux on Chromebooks, developers can use top tools, editors, and Android Studio while still getting the speed, simplicity, and security of Chrome OS. Keep reading to learn how you can access the preview today.
Follow these steps to install Linux.
Switch to the developer channel
To switch to developer channel:
- Go to chrome://chrome > Detailed build information > Change Channel and select Developer - unstable.
- Click the back arrow and select Check for updates.
- If there are updates, wait for them to finish downloading and click the button to restart Chrome to apply the updates.
To set up Linux on a Chromebook, go to Settings and find the Linux (Beta) section. Choose the option to turn on Linux and follow the setup prompts.
This initiates a background job that downloads a secure virtual machine image and a Debian container. The download can take up to ten minutes depending on your Wi-Fi connection. When Linux starts, a terminal window opens. From the terminal, you can run commands, install more tools using the APT package manager, and customize your shell.
The Launcher contains an icon for the terminal window so you can open the terminal later.
Mount Linux files
The Files app will soon display your Linux files, but that is not yet supported in this Preview. You must use an SFTP mount to be able to view Linux files and move them to and from Chrome OS. Follow these steps:
- Set a password for your user account inside Linux by running
sudo passwd $USER. Do not use your Google password.
- Install openssh-server:
sudo apt-get install openssh-server
- Run the command
hostname -Ito get the IP address for your Linux VM.
- Install the Secure Shell app and open it.
- Type in your username and the Linux IP address.
- Click SFTP Mount and respond to the prompts to confirm the connection and enter your password.
- Your Linux machine will appear in the sidebar of the Files app.
Install Android Studio (Preview)
Follow these steps to install a preview Android Studio for Chromebooks.
apt-getto install the
unziputility if necessary.
- Visit the Android Studio download page and download the Linux version of Android Studio.
android-studio.zipinto the SFTP mount using the Files app.
Run the following commands in the terminal:
$ sudo apt-get install unzip $ unzip <Android Studio>.zip $ ./android-studio/bin/studio.sh
See the full instructions for more information about installing Android Studio under Linux.
You can test your Android apps by running them locally on your Chrome device, or push them to another Android device.
$ adb connect 100.115.92.2:5555
Running on another device
You can also use
adb to push an app to a device over Wi-Fi.
Support for pushing apps to USB-attached devices is coming later this year.