Building Qt for Termux Android

This is by all means, not the first blog post about Termux. It serves as a journal for myself, as well for anyone who’s interested in cross building Qt or Qt-related projects for Termux (which is a native Linux environment for Android) from their x86_64 machines. We already have @xeffyr who has done a great … Continue reading “Building Qt for Termux Android”

運用Termux將Android平板電腦變身程式設計利器

去年就把手上的Chromebook在eBay賣掉,加了點錢在Amazon買了一台華碩的7英吋平板電腦。上禮拜買了羅技的藍牙鍵盤,這下和平板電腦配合在一起就真的能當台小電腦💻用了。所以有琢磨著怎樣可以在不方便攜帶筆電的情況下用來旅途中練習一些算法題。 熟悉程式設計的(我也希望都是在UNIX環境下的)或多或少可能有過想在平板電腦上偶爾練練手的想法,Android畢竟是基於Linux設計的,加上系統多年的更新換代發展,灌上一個Linux的工作環境應該不會太難,而且將會是一個非常大的效率提升。不過如果真的灌一個完整的Linux環境,一來是佔用很大的磁盤空間,二來電力損耗估計也是會讓人頭疼。好在我在Google馬上找到了Termux,安裝步驟簡單到不行,直接在Google Play點選安裝即可。

调教三星 DeX 的输入法

不知道有多少人是被 DeX 吸引到三星 Galaxy S 系列中的,DeX 可是其中一个很大的卖点(至少在欧洲和北美市场, DeX 是重点宣传的功能)。连上显示器(现在支援无线 DeX 了),或者平板切换开启 DeX 模式,马上生产力上升了好几倍! 然后马上你就会发现输入法被锁死在三星键盘上了。无论你本来喜爱的是谷歌的 GBoard 还是搜狗拼音,都被三星键盘替代了(退出 DeX 后输入法会变回去)。 三星键盘的中文录入是勉强能用级别,明显的卡顿和超过10个候选词的界面让你觉得这软件就没有 QA 的。搜索了一大圈网络教程,亲测使用 adb 可以修改 DeX 的输入法(Android 11, One UI 3.1)。 比如更改成谷歌 GBoard : 当然如果你的设备已经外接到显示器和键鼠了,又怎么通过 PC 或 Mac 来执行 adb 指令呢?好消息是 Android 开发者选项现在打开 WiFi adb debugging 了!更好的消息是你可以安装 Termux 然后下载为 Termux 预编译好的 adb 二进制程序,直接从手机/平板运行 adb 来改输入法。 另一个反人类的默认设置就是键盘候选框会显示在手机(或者平板电脑)上,这在打字的时候要去侧头看另一边来输入汉字简直莫名其妙。好在解决这个问题有个很简单的设置项(埋在了Samsung DeX里)。 … Continue reading “调教三星 DeX 的输入法”

Fedora Linux with MATE Desktop on Android

I know some of you geeks have already done something like that, running a GNU/Linux distribution on top of an Android device. It’s an interesting time, with projects like proot we don’t need root privilege on our Android devices to run a containerized Linux environment. Here in this post, I’ve written down the steps that … Continue reading “Fedora Linux with MATE Desktop on Android”

Visual Studio Code Server on Android

Microsoft has been steadily enhancing Visual Studio Code Remote Development. One of the components is VS Code Server, which is also open-source and hosted at GitHub. With VS Code Server, you can use Visual Studio Code in a browser. The usual setup involves a server (a VPS perhaps) that hosts the code server. It turns … Continue reading “Visual Studio Code Server on Android”