Some notes on how to build KDE Frameworks packages from source on Windows using Visual Studio tools.
To do so, you need to first have a version of Qt compiled by MSVC installed. Some system environment variables to be set, using Qt 5.15.2 as an example:
PATH needs to add
Qt_DIR needs to be set to
Example instructions for building CMake-based projects (all KDE projects), the command below should be executed in x64 Native Tools Command Prompt.
mkdir build && cd build
cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX="C:\Qt\5.15.2\msvc2019_64"
nmake && nmake install
This will install the compiled KDE module into the Qt installation path. You can install it elsewhere, but if you do, make sure you update PATH environment variable accordingly.
TL; DR. https://termux.librehat.com is a new Termux packages mirror! Maintained by me, synchronised every six hours, located in the United Kingdom, hosted by Oracle Cloud.
In the full article below, I’ll write up how to set up a Termux mirror (or in general, a Debian packages repository mirror).
Continue reading “A New Termux Mirror”
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
We already have @xeffyr who has done a great amount of work on building Qt for Termux. The work I’ve done recently would be 10 times harder, if not for what’s achieved by them already.
If you’re new to cross building for Termux, I recommend you to start with Developer Wiki.
Continue reading “Building Qt for Termux Android”
不知道有多少人是被 DeX 吸引到三星 Galaxy S 系列中的，DeX 可是其中一个很大的卖点（至少在欧洲和北美市场， DeX 是重点宣传的功能）。连上显示器（现在支援无线 DeX 了），或者平板切换开启 DeX 模式，马上生产力上升了好几倍！
然后马上你就会发现输入法被锁死在三星键盘上了。无论你本来喜爱的是谷歌的 GBoard 还是搜狗拼音，都被三星键盘替代了（退出 DeX 后输入法会变回去）。
三星键盘的中文录入是勉强能用级别，明显的卡顿和超过10个候选词的界面让你觉得这软件就没有 QA 的。搜索了一大圈网络教程，亲测使用 adb 可以修改 DeX 的输入法（Android 11, One UI 3.1）。
比如更改成谷歌 GBoard ：
adb shell ime set com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME
当然如果你的设备已经外接到显示器和键鼠了，又怎么通过 PC 或 Mac 来执行 adb 指令呢？好消息是 Android 开发者选项现在打开 WiFi adb debugging 了！更好的消息是你可以安装 Termux 然后下载为 Termux 预编译好的 adb 二进制程序，直接从手机／平板运行 adb 来改输入法。
设置 -> Samsung DeX -> 键盘 -> 屏幕键盘位置， 改成“电视或显示器”
写到这里， DeX 的中文输入依然不好用（稍微能用一点了），在普通 Android 界面下能够追随光标的 GBoard 在 DeX 下也不能跟随光标了。而且输入习惯和 PC 或 Mac 上的输入法有所区别，也还是只能算勉强能用级别了。
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
Continue reading “Fedora Linux with MATE Desktop on Android”
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 I’ve taken to have a usable desktop environment up running on my Galaxy Tab S5e (this blog post has been written up purely within such environment).
自从几年前卖掉华硕的一台小Chromebook后，看到Android和Linux应用程式的支持增加，又开始有点馋涎Chromebook……不过因为今年疫情全球大爆发，电子产品（尤其是适合居家办公和学习的）价格一路上扬（或者缺货）。Chromebook今年出货量增长更是迅猛（Windows PC, MacBook, Chromebook分类中增长幅度最大）。问我这台2015年买的老笔电尚能饭否？答曰：Brunch。
出厂预装的Windows 10早被我卸载干净了，单Linux系统（OpenSUSE）用了有一年多了，看到Brunch这个项目能在自己笔电上体验Chrome OS变身Chromebook，赶紧试验了一把，没想到效果出奇地好！这里特意用中文记载一下Linux下安装Chrome OS和后续升级的办法以供中文网络世界的朋友参考。
Continue reading “来份Brunch笔电瞬间变身Chromebook”
This is the year 2020, Odroid-U3 is far from a powerful ARM development board in today’s standard, but it is still more than capable! Quad-core ARMv7 CPU and 2GB RAM, which means I can still run some light services and test my toy projects without paying any fees to AWS or Azure. The year 2020 also means that this little device can be powered by the mainline Linux kernel without many troubles (if any)! Better than that, the process is ridiculously straightforward!
In this post, I put together the steps I did to build the Linux kernel using upstream mainline source code natively on Odroid-U3. If you’re interested in cross-building from your x86 machines, you can find plenty of tutorials on that on the Internet.
Continue reading “Building Linux Kernel on Odroid-U3”
I wouldn’t believe that I will be writing this 10 years ago. It’s 2020 though. Microsoft has improved a lot of services for Linux, ranging from developer tools like Visual Studio Code, to the protagonist today: Azure (cloud computing). Azure has steadfastly become a real credible alternative to Amazon EC2 (or AWS in general). Today, I want to share my experience of using a virtual machine on Microsoft Azure cloud. To be more specific, it is a Linux desktop virtual machine (SLES 15).
Continue reading “Virtual Linux Desktop Experience in Azure”
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 out that it’s also possible to run them locally on your Android device! Here is how.
Continue reading “Visual Studio Code Server on Android”
Over the last few weeks, I’ve been working on a new plasmoid (KDE Plasma Applet) that provides a simple interface to monitor stocks. The first version was rather basic, being able to show the current market price only. Now it’s time to announce the availability of the second iteration of YapStocks (Yet Another Plasma Stocks Applet). I’ve recorded a short video clip showcasing all the features it has, ranging from the information summary to the historical price chart.
Continue reading “Announcing YapStocks 2.0”