From 86e888601aa920115e790738aa2c6b7731e16b30 Mon Sep 17 00:00:00 2001 From: "Mr. Blogger" Date: Tue, 21 Jun 2022 21:39:35 +0530 Subject: [PATCH 1/2] Update termux.md Direct installation of `code-server` via `yarn` method --- docs/termux.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/docs/termux.md b/docs/termux.md index cfaec3607740..25c5c4db637b 100644 --- a/docs/termux.md +++ b/docs/termux.md @@ -3,6 +3,7 @@ # Termux - [Install](#install) +- [Direct Installation - Yarn Installation](yarn-installation) - [Upgrade](#upgrade) - [Known Issues](#known-issues) - [Git won't work in `/sdcard`](#git-wont-work-in-sdcard) @@ -65,6 +66,50 @@ 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. We will now change using the following command. +```sh +termux-change-repo +``` +Now select `Main Repository` then change repo to `Mirrors by Grimler Hosted on grimler.se`. + +3. After successfully updating of repository update and upgrade all the packages by the following command +```sh +pkg update +pkg upgrade -y +``` + +4. Now let's install requirement dependancy. +```sh +pkg install -y \ + build-essential \ + binutils \ + pkg-config \ + python3 \ + yarn \ + nodejs-lts +npm config set python python3 +node -v +``` +you will get node version `v16.15.0` + +5. Now install code-server +```sh +yarn global add code-server +``` +6. Congratulation code-server is installed on your device using the following command. +```sh +code-server --auth none +``` +7. If already installed then use the following command for upgradation. +``` +yarn upgrade code-server +``` + + ## Upgrade 1. Remove all previous installs `rm -rf ~/.local/lib/code-server-*` From 6b65c5cc18ebcb044f73378c9adc96f645fbd1db Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 9 Aug 2022 13:57:17 -0500 Subject: [PATCH 2/2] Format new docs --- docs/termux.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/termux.md b/docs/termux.md index 25c5c4db637b..b2b9a06b48a9 100644 --- a/docs/termux.md +++ b/docs/termux.md @@ -3,7 +3,7 @@ # Termux - [Install](#install) -- [Direct Installation - Yarn Installation](yarn-installation) +- [Yarn Installation](#yarn-installation) - [Upgrade](#upgrade) - [Known Issues](#known-issues) - [Git won't work in `/sdcard`](#git-wont-work-in-sdcard) @@ -71,18 +71,22 @@ curl -fsSL https://code-server.dev/install.sh | sh 1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**. 2. We will now change using the following command. + ```sh termux-change-repo ``` + Now select `Main Repository` then change repo to `Mirrors by Grimler Hosted on grimler.se`. 3. After successfully updating of repository update and upgrade all the packages by the following command + ```sh pkg update pkg upgrade -y ``` 4. Now let's install requirement dependancy. + ```sh pkg install -y \ build-essential \ @@ -94,22 +98,27 @@ pkg install -y \ npm config set python python3 node -v ``` + you will get node version `v16.15.0` 5. Now install code-server + ```sh yarn global add code-server ``` + 6. Congratulation code-server is installed on your device using the following command. + ```sh code-server --auth none ``` + 7. If already installed then use the following command for upgradation. + ``` yarn upgrade code-server ``` - ## Upgrade 1. Remove all previous installs `rm -rf ~/.local/lib/code-server-*`