Late 2021 Update!  VS Code (code-server 3.12.0) in DeX on a Samsung Galaxy S21

Late 2021 Update! VS Code (code-server 3.12.0) in DeX on a Samsung Galaxy S21

User Story Coach

2 года назад

1,420 Просмотров

Install code-server in Termux running in DeX on a Samsung Galaxy S21 in under 10 minutes. Full useful modern dev environment on the go on a fast new Qualcomm Snapdragon 888 processor!

➤ nodejs-lts on Termux currently installs Node 16.x while code-server is made to work with Node 14.x https://github.com/cdr/code-server/issues/4225

➤ The official guide to install code-server was updated with a bit more complex process that installs a proot distro of Debian and Node 14.x ( https://github.com/cdr/code-server/blob/main/docs/termux.md )

➤ Though this is all working through the magic of PRoot, please don't run code-server as root and create a new user ( https://github.com/cdr/code-server/blob/main/docs/termux.md#create-a-new-user)

········································­­­­­­­··································­·­·­·­·­·­·­···

The following commands are used from a fresh installation of Termux from a side-loaded F-Droid app store (https://www.f-droid.org/):

termux-setup-storage

pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Debian/debian.sh -O debian.sh && chmod +x debian.sh && bash debian.sh

apt update -y && apt upgrade -y && apt-get install nano vim sudo curl wget git -y

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

nano /root/.bashrc

nano /etc/profile

exit

./start-debian.sh

nvm install v14

curl -fsSL https://code-server.dev/install.sh | sh

········································­­­­­­­··································­·­·­·­·­·­·­···

00:00 - Install Termux from F-Droid app store
00:25 - Enable Termux storage permissions
00:41 - Update/upgrade Termux packages
01:11 - Download and run Debian install script
02:22 - Update/upgrade Debian packages
04:18 - Install Debian packages
05:10 - Install Node Version Manager (NVM)
05:28 - Update profiles/configs
06:56 - Install Node v14.x
07:29 - Install code-server
09:34 - Start code-server and run in browser
11:36 - Install extensions

········································­­­­­­­··································­·­·­·­·­·­·­···
Music performed/recorded by MrBromaba:
https://www.youtube.com/c/MrBromabaPiano

Per the FAQs in both videos (in the description):
"Q: Can I use your music in my videos?
A: If you are a creator and want to use my music as background music in your videos feel free to do so! Just link my channel in your video description and/or in your video. :)"

➤ Hans Zimmer - Interstellar Main Theme
https://youtu.be/ucq1sLjLVSA

➤ Maurice Ravel - "Ondine," from Gaspard de la nuit
https://youtu.be/WLA5bom89NQ
········································­­­­­­­··································­·­·­·­·­·­·­···

Тэги:

#VS_Code #code-server #DeX #Samsung #Galaxy_S21 #Termux #Node #Node.js #Linux #Android #Qualcomm_Snapdragon_888 #Dev
Ссылки и html тэги не поддерживаются


Комментарии: