From f47c764c5a47fd24172b577c709e403547e7ab9b Mon Sep 17 00:00:00 2001 From: "Mr. Blogger" Date: Mon, 30 May 2022 01:01:14 +0530 Subject: [PATCH 1/2] Update termux.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit yarn Installation works perfectly fine in mine👍🏻 --- docs/termux.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/termux.md b/docs/termux.md index cfaec3607740..2ecf1f32aa46 100644 --- a/docs/termux.md +++ b/docs/termux.md @@ -3,6 +3,7 @@ # Termux - [Install](#install) +- [Direct Installation](yarn-installation) - [Upgrade](#upgrade) - [Known Issues](#known-issues) - [Git won't work in `/sdcard`](#git-wont-work-in-sdcard) @@ -65,6 +66,23 @@ curl -fsSL https://code-server.dev/install.sh | sh > Consider using a new user instead of root, read [here](https://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/) why using root is not recommended.\ > Learn how to add a user [here](#create-a-new-user). +## Yarn Installation + +1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**. +2. Install necessary packages +``` +pkg install -y \ + build-essential \ + pkg-config \ + python3 \ + yarn +npm config set python python3 +``` +3. Now install code-server +``` +yarn global add code-server +code-server --auth none +``` ## Upgrade 1. Remove all previous installs `rm -rf ~/.local/lib/code-server-*` From b88ee0224948d3ab3f00b0bbb8bec52b9d92cee5 Mon Sep 17 00:00:00 2001 From: "Mr. Blogger" Date: Mon, 30 May 2022 10:55:07 +0530 Subject: [PATCH 2/2] Update termux.md --- docs/termux.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/termux.md b/docs/termux.md index 2ecf1f32aa46..165df5e21601 100644 --- a/docs/termux.md +++ b/docs/termux.md @@ -75,8 +75,10 @@ pkg install -y \ build-essential \ pkg-config \ python3 \ - yarn + yarn \ + nodejs npm config set python python3 +npm i -g npm@8.11.0 ``` 3. Now install code-server ```