Skip to content

Commit 6b9bb89

Browse files
authored
docs: add yarn installation method for termux (#5286)
1 parent 7bb35af commit 6b9bb89

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

docs/termux.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Termux
44

55
- [Install](#install)
6+
- [Yarn Installation](#yarn-installation)
67
- [Upgrade](#upgrade)
78
- [Known Issues](#known-issues)
89
- [Git won't work in `/sdcard`](#git-wont-work-in-sdcard)
@@ -65,6 +66,59 @@ curl -fsSL https://code-server.dev/install.sh | sh
6566
> 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.\
6667
> Learn how to add a user [here](#create-a-new-user).
6768
69+
## Yarn Installation
70+
71+
1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**.
72+
73+
2. We will now change using the following command.
74+
75+
```sh
76+
termux-change-repo
77+
```
78+
79+
Now select `Main Repository` then change repo to `Mirrors by Grimler Hosted on grimler.se`.
80+
81+
3. After successfully updating of repository update and upgrade all the packages by the following command
82+
83+
```sh
84+
pkg update
85+
pkg upgrade -y
86+
```
87+
88+
4. Now let's install requirement dependancy.
89+
90+
```sh
91+
pkg install -y \
92+
build-essential \
93+
binutils \
94+
pkg-config \
95+
python3 \
96+
yarn \
97+
nodejs-lts
98+
npm config set python python3
99+
node -v
100+
```
101+
102+
you will get node version `v16.15.0`
103+
104+
5. Now install code-server
105+
106+
```sh
107+
yarn global add code-server
108+
```
109+
110+
6. Congratulation code-server is installed on your device using the following command.
111+
112+
```sh
113+
code-server --auth none
114+
```
115+
116+
7. If already installed then use the following command for upgradation.
117+
118+
```
119+
yarn upgrade code-server
120+
```
121+
68122
## Upgrade
69123

70124
1. Remove all previous installs `rm -rf ~/.local/lib/code-server-*`

0 commit comments

Comments
 (0)