一直想找一个能让手机完美兼容Linux的方法。
目的就是像整个服务器,安装nas做小型服务器或安装个宝塔面板搭建网站用。
以前写过ksweb、Linuxdeploy,也试过terminal的方法。
感觉总是不太理想。

直到前段时间看到了Ubuntu touch,就想试一试。
当时手机只有个红米4X,可能因为不支持,也可能当时没注意系统版本,反正多次刷入都没成功。
还有个闲置的红米7,因为长期没用,当时登录的那个账号也忘了,等了一个月,才解开了手机BL锁。
现在就开始演示,如何刷入Ubuntu touch。
首先,准备一部支持刷Ubuntu touch的手机。
我准备的是一部Redmi 7,配置4+64的手机。

解开BL锁后,将手机降级到Android 9版本,这个手机对应的是MIUI11,稳定版/开发版随便,无需root。
之后开启手机开发者模式,打开USB调试。直接连接电脑就行了,写这篇稿子的时候我已经刷完了,没拍照,这几步懂得都懂,红字是重要提醒。

电脑端打开ubports installer工具,等待链接后,点击select device manually。

在select your drvice弹窗中,选择对应手机型号。

点击select就行了。

这一步会问你手机是否解锁,已经解除BL锁的,直接点击右下角my device is unlocked就可以了。

这里确认刷入Ubuntu touch,直接点击install。这一步有时候会卡顿,点击之后要稍等下。

这里勾选wipe,其他默认,直接点击OK。

等待系统刷入就好了,别忘了看下手机有没有给USB调试授权。

授权之后,手机会自动刷入Ubuntu touch的Rec。

中间不要触碰手机,直到电脑端显示Success!刷入完成。

这时就可以断开手机了,手机端会有个刷入过程,2分钟左右。

等待系统进入设置界面,这没啥好说的,认字就会设置,自己设置去吧。

之后就进入到Ubuntu touch界面了。
大家自行去玩吧!
要提醒的是,这套系统采用的是Ubuntu 16.04的版本,很是老旧。市场内应用也比较少,如果只是体验还好,日常使用不建议,除了流程外,应用市场内APP也就一千多个,大部分是web应用,不适合日用。