Step-by-step tutorial: https://gist.github.com/antonprafanto...
Installing Termux
Follow these steps to download Termux:
1. Open up Google Play Store.
2. Search for 'termux' in the search bar.
3. Click on the first app (after all the ads).
4. Click on the install button.
This will install Termux on your android mobile. After this follow the following steps to set it up:
1. Open up Termux.
2. Run the following command inside it: apt-get update
3. If this gives you errors, then follow these steps:
3.1 Then run the following command and try changing the default repo: termux-change-repo
3.2 After this, you will get a dialog box, titled termux-change-repo, use the space and select all the three repos.
3.3 Then press the enter key.
3.4 After this you will see an option for choosing mirror, here choose one titled something like 'termux.mentality.rip', and hit enter key.
This will automatically run the apk update command.
Installing Ubuntu
1. Update termux: apt-get update && apt-get upgrade -y
2. Install wget: apt-get install wget -y
3. Install proot: apt-get install proot -y
4. Install git: apt-get install git -y
5. Go to HOME folder: cd ~
6. Download script: git clone https://github.com/MFDGaming/ubuntu-i...
7. Go to script folder: cd ubuntu-in-termux
8. Give execution permission: chmod +x ubuntu.sh
9. Run the script: ./ubuntu.sh -y
10. Now just start ubuntu: ./startubuntu.sh
Downloading Code Server
1. apt-get update
2. apt-get upgrade
3. apt-get install wget git proot -y
4. Download the VS code tar package: wget https://github.com/coder/code-server/...
5. Untar the package: tar -xvf code-server-4.6.0-linux-arm64.tar.gz
Setup & Start Using VS Code
1. Open directory code-server-4.6.0-linux-arm64: cd code-server-4.6.0-linux-arm64/
2. Open directory bin: cd bin/
3. Install nano: apt-get install nano
4. You can run the code server, using this command: ./code-server
5. Enter this command: exit
6. Enter this command: logout
7. Now just start ubuntu: ./startubuntu.sh
8. Open directory code-server-4.6.0-linux-arm64: cd code-server-4.6.0-linux-arm64/
9. Open directory bin: cd bin/
10. Enter the following command to set password of VS Code (You can replace password with your own password): nano ~/.config/code-server/config.yaml
11. Run the code server, using this command: ./code-server
12. Now in order to open VS Code, follow these steps:
5.1 Open up browser.
5.2 Open the following link: localhost:8080
5.3 If it asks for the password then enter the password you set.
5.4 By these ways you can setup and run your VS Code.
Poke around, clone a repo, and host a local server to view your changes live--no internet required!
Reference:
• Run VS Code on your PHONE!! Step-by-step t...
https://www.brainytechz.com/2022/03/i...