DEV Community

Discussion on: Install Official VS Code on Android

Collapse
 
junaid_dev profile image
Junaid • Edited

Hey guys , now it is easy in different method.

  1. Install termux.
  2. apt update && apt upgrade && apt full-upgrade && apt clean
  3. Install proot-distro : apt install proot-distro , use proot-distro help to help.
  4. Install Ubuntu roofs (or) Install Ubuntu vm, by default it installs ubuntu 24/latest then rename it : proot-distro install Ubuntu && proot-distro rename Ubuntu vscode-vm.
  5. Login in your vm : proot-distro login vscode-vm
  6. Use nano to write basic setup script or use this:
apt update
apt upgrade
apt clean

apt full-upgrade
apt update 
apt clean

apt install nano curl wget git neofetch
apt install sudo

# Your packages here
apt install python3 python3-pip

apt update && apt clean
clear
echo "VM SETUP COMPLETE!"
Enter fullscreen mode Exit fullscreen mode

Note: this server does not support FLATPACK or SNAP

  1. Download the vscode with these architectures : arm64 or armhf or arm32 via in your android. now we need it tomove from Downloads to root of vm: Downloads > termux > /data/data/com.termux/files/usr/var/lib/proot-distro/ /root/code.deb
  2. Create an user env for vscode to run :
useradd -m "<username>"
passwd "<username>"
usermod -aG sudo "<username>"
Enter fullscreen mode Exit fullscreen mode
  1. login in user env then repeat setup process from 6th to 7th.
  2. Install in root dir : dpkg -i ./code.deb and run it code-server