2022-12-30-03
無需root在手機(jī)上運(yùn)行Linux,UserLAnd使用入門
Starmoe の Blog [TLSD]
這玩意兒早就有了,只不過最近我沒有啥好素材,于是乎就搞個(gè)這個(gè)來湊湊。其實(shí)這玩意兒有很多可以說的地方;好了閑話休提,直奔主題!
下載 & 安裝
這款應(yīng)用可以在Google Play上找到,但是國內(nèi)用戶由于某種問題訪問肯定很困難;不過好在它在F-Droid上也有,鏈接在這。
它也是個(gè)開源項(xiàng)目,可以點(diǎn)擊這里支持它。
下載完成后直接安裝就行
初始化配置
為了這個(gè)我把自己的配置刪了
打開應(yīng)用,轉(zhuǎn)到“文件系統(tǒng)”頁面,點(diǎn)擊右上角的“+”,新建一個(gè)Debian系統(tǒng)。
文件系統(tǒng)名可以隨便填,你喜歡啥就寫啥。
用戶名只能是英文,并且還是小寫。
密碼隨便,VNC密碼要6-8個(gè)字符。
最后點(diǎn)擊右上角的軟盤按鈕保存。
建立會(huì)話
UserLAnd支持三種會(huì)話,SSH、VNC和XSDL。
-
轉(zhuǎn)到“會(huì)話”頁面,點(diǎn)擊右上角的“+”,新建一個(gè)會(huì)話。
會(huì)話名隨便,文件系統(tǒng)就填剛才創(chuàng)建的,由于我們這里系統(tǒng)是新建的,服務(wù)類別選ssh。 -
點(diǎn)擊右上角的軟盤按鈕保存。
-
點(diǎn)擊剛剛創(chuàng)建的會(huì)話,之后軟件會(huì)下載相關(guān)的文件,由于是從Github下載,所以可能會(huì)比較慢,請(qǐng)耐心等待。
配置系統(tǒng)
輸入自己設(shè)置的密碼,進(jìn)入系統(tǒng)。
首先執(zhí)行sudo apt upate進(jìn)行軟件源更新。
- 或者,輸入以下命令使用USTC源:
sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && sudo apt update
之后輸入“sudo apt install vis -qq -y”安裝vis編輯器(它和vim是一樣的,你也可以用nano文本編輯器進(jìn)行軟件源編輯)
之后“sudo vis /etc/apt/sources.list”,狂按“dd”清空所有內(nèi)容,按"i"鍵進(jìn)行編輯,粘貼如下內(nèi)容:
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
# deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
# deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
或者你也可以用清華源,但是要先輸入“ sudo apt install apt-transport-https ca-certificates”回車以便拉取https源。
以下是清華源的配置:
# 默認(rèn)注釋了源碼鏡像以提高 apt update 速度,如有需要可自行取消注釋
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
配置完成后,按Esc,鍵入“:wq”保存并退出。
配置系統(tǒng)語言
輸入如下命令:
sudo apt install locales && sudo dpkg-reconfigure locales
之后回車幾下,直到看到以下內(nèi)容(或者類似):
(Enter the items or ranges you want to select, separated by spaces.)
請(qǐng)選擇需要生成的區(qū)域設(shè)置(locale)。
輸入483、484、485、486,回車;之后輸入6,回車。
基本配置到這里就結(jié)束了,下一章是配置簡易桌面環(huán)境(VNC)。

浙公網(wǎng)安備 33010602011771號(hào)