Termux-packages: Code-Server (VSCode)

Created on 23 Jul 2020  路  6Comments  路  Source: termux/termux-packages

Link to home page and sources

  1. Home page: https://coder.com/
  2. Source code: https://github.com/cdr/code-server

Additional information

Currently I'm using code-server on Termux within an Ubuntu chroot (the idea came from @adarosecannon's medium post).

What I did was:
Making the Ubuntu chroot (I used the 20.04 branch though). And the following steps within that chroot:

```bash
$ wget https://github.com/cdr/code-server/releases/download/3.4.1/code-server-3.4.1-linux-arm64.tar.gz
$ tar -xvf ./code-server-3.4.1-linux-arm64.tar.gz
$ rm ./code-server-3.4.1-linux-arm64.tar.gz
$ mv code-server-3.4.1-linux-arm64 /lib/code-server
$ ln -s /lib/code-server/bin/code-server /bin/code-server
$ apt-get install net-tools # it also works fine without net-tools but it gives some warnings
````

It works perfectly, but I have to maintain dependencies within the Ubuntu chroot now, too.
So it would be great if it would simply be natively available as a termux package.
The releases contain a packaged node version, too in case that makes any difference.

This is how it looks like:

Screenshot of Code-Server on Samsung DeX / VSCode

All 6 comments

You can install it directly in termux with yarn global add code-server, discussed in this issue: https://github.com/termux/termux-packages/issues/5416.
We generally don't provide packages for things that can be installed through other package managers so I'll close this

In termux , yarn add code-server

@Grimler91 oops difference of couple of seconds

@Hax4us ;)

Nice, didn't know about that here are the official instructions from code-server:

https://github.com/cdr/code-server/blob/master/doc/install.md#yarn-npm

I just created a step-by-step tutorial for installing code-server in Termux. I'm linking it here in case someone needs it:

https://gist.github.com/ppoffice/b9e88c9fd1daf882bc0e7f31221dda01

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephanBeer picture StephanBeer  路  3Comments

thurask picture thurask  路  3Comments

Zuccace picture Zuccace  路  3Comments

Wetitpig picture Wetitpig  路  3Comments

bkdwt picture bkdwt  路  3Comments