-
Notifications
You must be signed in to change notification settings - Fork 5.9k
update Termux docs #1730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Version: code-server_3.3.1_arm64.deb code-server-3.3.1-linux-arm64.tar.gz |
What does |
Also, please provide your OS version, i.e debian/ubuntu/centOS/macOS/Windows etc. |
|
Try using our auto install script. See https://github.com/cdr/code-server#getting-started |
My operating system is termux on Android |
Can the next version be compatible with termux? |
No idea, don't know what termux or what's causing this issue. |
The old version of termux can run directly, but the new version cannot. Do you have an Android phone to download a termux,you open http://termux.com |
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager. |
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager. Some Android phones are connected to the display, such as Samsung, Huawei and smartisan phones, to realize Android programming and development |
Here's a summary of the issues I ran into trying this out. My initial post is below the line.
Huh yeah that's interesting, the deb won't install because arm64 doesn't match aarch64? I thought they were the same thing? I was able to get around that with:
However this still fails because it's trying to install to
I'm not sure if we can fix this on our end; I'm not familiar enough with either termux or dpkg. Maybe there is some system default set somewhere that we can inherit or maybe debs have to be specially packaged for Termux to account for the path difference or maybe there's some other way to detect the right path like using that Unfortunately running So I installed Node:
And it almost works! But it errors with Then I tried out the npm module:
But now I get Going back to the
Is it because
So how about:
Unfortunately this results in:
|
One other summary item:
|
So running the bundled
|
Yea the path is hard coded to /usr/lib/code-server. That's just how |
wtf, that means you don't have libc |
This might be somewhat fixed by the compilation on CentOS 7 in #1761 |
I think it's best to not use the .deb on Should modify the install script to do this instead of installing the |
How does |
Actually there is no /etc/os-release on termux so it should already be installing via the |
Once |
I've run into the same issue seen by @Karthikb777. EnvironmentAndroid 9 on Samsung Galaxy Tab S5e The bundled
|
Closest towards working but I get:
Running find on
|
I believe I'm having similar issue. InfoOS (not really an os I suppose): Termux app on Android (app version 0.94) And, if useful, some info about my phone: Android version: 10 How to produce the issue
Some clueSeems like the issue is caused by missing |
I tried the latest 3.4.1 standalone release and unfortunately am running into a number of issues. I’ll try to describe them here so that anyone can follow along and see the issues plus the work arounds that have been found. Info Device: OnePlus 6T Problems and Partial Solutions This section assumes you have a fresh Termux environment.
At this point you will run into the first issue: Let’s fix this by installing node into termux and replacing the file with a symlink.
When we try running again We can fix the The issues with
Now we can put it all together Code-server launches as expected, we can open the browser and see code-server but after a couple seconds we will always lose connection: Here is the output from
|
Workaround I believe I’ve found a work around that will get past all the issues and remain connected. Tutorial below assumes a fresh Termux environment.
You should now be able to open code-server in your browser and stay connected! I’m hopeful this works for others! |
Interesting, I tried the But I ran it again just now following your steps and everything went off without a hitch. Awesome!! |
Everything seems to work fine,I tried using the yarn method, but EACCES error shows up and I can't use backspace in the editor for some reason. Edit: I managed to get rid of EACCES error but still couldn't use backspace. I'm gonna try connecting a wired keyboard and try it today and will update about what happens. |
I managed to get code-server working without a single problem in the past by using a proot. https://github.com/sdrausty/termux-archlinux Besides arch you can also use any other distro in the proot. AndroNix might be interesting too. The problem with Termux on its own is that a lot of dependencies are missing and that Android does not follow the Linux standard filesystem hierarchy. https://wiki.termux.com/wiki/Differences_from_Linux Those are both problems you can bypass by running code-server in a proot in termux on Android. |
Have you found any permanent solution? I'm trying to run code-server on Termux too, but it doesn't works. |
Yes, I am running code server on termux but I plug in an external keyboard as code server cannot recognise backspace in the virtual keyboard. |
|
This can answer everything |
Here is what I got with the 'yarn' method in a fresh Termux environment. The web page shows 500 Error.
If I installed the missing modules by "yarn global add semver-umd applicationinsights @coder/node-browser yauzl yazl spdlog" Here is the -vvv log
It seems the folder |
I finally got it worked.
|
hey guys, there is whole lots of things u should do for use cdr on termux pkg install nodejs git python build-essential pkg-config libx11
npm i -g yarn
yarn global add code-server make sure your internet could open https://raw.githubusercontent.com/googleinterns/tsec/master/package.json correctly if not (somewhere like china) u can use https://github.com/x-falcon/Virtual-Hosts for binding custom host like
after this, u can enjoy ur cdr on ur phone. but there is still an issue on it with search feature
update for fix search feature
pkg install ripgrep
run this command in ur ln -s $PREFIX/bin/rg ./lib/vscode/node_modules/vscode-ripgrep/bin/rg |
Thanks @yozman , that worked for me. I had tried a few other ways but was able to pkg uninstall yarn, reinstall yarn then reinstall code-server. |
This also worked for me, thank you! |
Now that we have some official documentation for Termux, I think we should add this there. TODOs:
|
The new version can't run, DEP can't install incompatible system, code package can't run, can't create / usr / local / bin directory, I don't have root permission, I hope the author can change the code package directory to the current user's home directory.
新版的无法运行,dep无法安装不兼容我的系统,code 包无法运行无法创建/usr/local/bin目录 我没有root权限,希望作者能把code包目录改为当前用户家目录.
I'm crazy.
$ ./code-server
./code-server: 20: exec: /data/data/com.termux/files/home/code-server-3.3.1-linux-arm64/bin/../lib/node: not found
#1685
$ mkdir -p /usr/local/bin/
mkdir: cannot create directory ‘/usr’: Read-only file system
$ dpkg -i code-server_3.3.1_arm64.deb
dpkg: error processing archive code-server_3.3.1_arm64.deb (--install):
package architecture (arm64) does not match system (aarch64)
Errors were encountered while processing:
code-server_3.3.1_arm64.deb
The text was updated successfully, but these errors were encountered: