Skip to content

Install Code Server and run it

Der_Googler edited this page Jan 6, 2023 · 2 revisions

Requirements:

Install Systemless Mkshrc and Node.js

Install Fox's Magisk Module Manager and search up for Systemless Mkshrc and Node.js and install these

Note: Systemless Mkshrc should installed first

Install GCC for Android

curl -sL https://github.com/Googlers-Repo/extra/releases/download/gcc-android-10.2.0/gcc-installer_mkshrc_1.2.2.sh | sh

This script requires Systemless Mkshrc above 1.2.2. If not, some logs might be incorrectly displayed.

Install Python and symlinking

Run this as Termux user:

# I recommend Python 3.11 which works with GCC 10.2.0 
pkg install python

...and this as root user

ln -s /data/data/com.termux/files/usr/bin/python $PREFIX/bin/python

Install code-server

Version 4.6.0 have been tested.

yarn global add code-server@4.6.0 --unsafe-perm

It also requires some patches... these should you run as root

You should not use this patch with another version...

sed -i -e 's|switch(process.platform)|switch("linux")|' $HOME/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/platform/terminal/node/ptyHostMain.js

...then start your game changer and happy coding!

code-server --bind-addr 0.0.0.0:8446