Official Linux Terminal on Android?!!!

It finally happened! The dream has come true. It is now possible to run full linux terminal apps directly on your Android 15 device without root or hacky workarounds. At least for Pixel owners anyway (for now). Just make sure you have the latest system update and then go look in Developer Options for the new Linux development environment setting. This will enable a new Terminal app. Once activated you will need to install a 565MB virtual machine. And that's it! Now you have a full Linux Development Environment on your phone. How awesome is that?! Now we can run Node apps or any other services you want directly-on-device. To start, you'll probably want to setup sshd to be able to sftp files into the VM. First we'll need to install the package. No problem! This VM is Debian based, so : $ sudo apt update $ sudo apt install openssh-server Then you will need to change the port which this runs on beause priviledged ports below 1000 are blocked. $ sudo nano /etc/ssh/sshd_config I set my port to 2222 so it'll be easy to remember. Then you'll need to set a password, and reload sshd. $ sudo passwd droid ... $ sudo systemctl reload sshd Accept the request to open the port and then find out what your IP is. $ ip addr Then, using an app like Solid Explorer, you can add a network storage location and access the files inside your VM. And then go ahead and install whatever you want from there. I'm going to start with Node. $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash $ source ~/.bashrc $ nvm install node $ nvm install-latest-npm I am very excited about the possibilities this opens up. I build and run Node apps for personal use all the time. Being able to run these directly on my phone is gonna be sweeeeet!

Apr 10, 2025 - 01:25
 0
Official Linux Terminal on Android?!!!

It finally happened! The dream has come true. It is now possible to run full linux terminal apps directly on your Android 15 device without root or hacky workarounds. At least for Pixel owners anyway (for now). Just make sure you have the latest system update and then go look in Developer Options for the new Linux development environment setting. This will enable a new Terminal app.

Step 1 - Enable

Once activated you will need to install a 565MB virtual machine. And that's it! Now you have a full Linux Development Environment on your phone. How awesome is that?! Now we can run Node apps or any other services you want directly-on-device.

Step 2 - Install

To start, you'll probably want to setup sshd to be able to sftp files into the VM. First we'll need to install the package. No problem! This VM is Debian based, so :

$ sudo apt update
$ sudo apt install openssh-server

Step 3 - Update

Then you will need to change the port which this runs on beause priviledged ports below 1000 are blocked.

$ sudo nano /etc/ssh/sshd_config

I set my port to 2222 so it'll be easy to remember. Then you'll need to set a password, and reload sshd.

$ sudo passwd droid
...
$ sudo systemctl reload sshd

Accept the request to open the port and then find out what your IP is.

$ ip addr

Step 4 - Setup

Then, using an app like Solid Explorer, you can add a network storage location and access the files inside your VM.

Step 5 - Test

And then go ahead and install whatever you want from there. I'm going to start with Node.

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
$ source ~/.bashrc
$ nvm install node
$ nvm install-latest-npm

Bonus Step - Installing NodeJS

I am very excited about the possibilities this opens up. I build and run Node apps for personal use all the time. Being able to run these directly on my phone is gonna be sweeeeet!