android - 如何在 Android 设备上运行 VS Code
问题描述
我有 Galaxy Tab S6,它有很酷的功能来取代笔记本电脑,比如连接鼠标和键盘,但不幸的是它运行的是 Android 操作系统,而且 Android 没有很多开发应用程序可用,所以我想是否可以选择运行 VS 代码至少在我的设备上?
解决方案
我使用 Linux Ubuntu 在基于 Galaxy Tab S6 ARM64 的处理器上使用完整版的 chromium 编写了这篇文章。并且以下方法可以应用于任何高端安卓设备;)
您有两种安装 Linux 的方法:
- 第一种简单方法(虚拟网络计算)(VNC):
1.通过“Termux”安装Linux发行版
<code> pkg update -y && pkg install proot wget tar pulseaudio -y && wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/ubuntu19.sh && chmod +x ubuntu19.sh && ./ubuntu19.sh </code>
2.安装Linux GUI桌面环境,如“Xfce”。
sudo apt-get install xfce4 xfce4-goodies -y
3. 在你的 linux 上启动一个 VNC 服务器。
sudo apt-get install tightvncserver -y
4.在android上打开“VNC Viewer”开始破解。
您可能需要执行命令vncserver -list
来列出端口
5.为arm64安装vscode
6.可选:为arm64安装NodeJS
```apt install nodejs```
第二种hacky方式(Linux Native):
安装可启动的linux环境
启动并安装 linux
更多信息:
https://medium.com/@quantvc/running-debian-on-android-device-natively-73545c9b0757
有用的资源:
https://play.google.com/store/apps/details?id=studio.com.techriz.andronix
https://play.google.com/store/apps/details?id=com.termux
https://play.google.com/store/apps/details?id=com.realvnc.viewer.android
推荐阅读
- python - UnboundLocalError:在 Pandas 中赋值之前引用了局部变量“y”
- javascript - 第一次点击反应后表格不呈现
- c++ - 使用函数而不是内联代码时 C++ 代码崩溃
- python - 如何存储一个值并在python中更新它时更改它?
- amazon-web-services - 如何从 aws cloud watch 事件调用状态机?
- objective-c - 将多通道音频缓冲区合并到一个 CMSampleBuffer
- sapui5 - sap.m.Carousel 的循环属性是否有效?
- apache-spark - 将 to_date 列与 pyspark 中的单个值进行比较
- matplotlib - 轴(子图)和/或 matplotlib.pyplot(plt)上的条件语句
- flutter - 跨路线提供者,但在 MaterialApp 之后