in10是目前在win系列的個人操作系統中,個人覺得是最好用的,沒有之一?,F在又能擁有WSL2的功能,讓ubuntu與win10無縫的結合。簡直就是完美的不能再完美了。享受著win10的強大桌面系統及完善的周邊應用軟件外,又能擁有ubuntu系統環境,完美的讓不同環境的應用與服務,整合在同一個桌面下,各自互不干涉的運行著。相信這是每個喜歡ubuntu又舍棄不掉win的朋友們一大福音。
由于C盤(系統盤)的資源一般都是很緊張,所以,需要將WSL安裝在其他的目錄下。
下載鏈接:https://github.com/DDoSolitary/LxRunOffline/releases
下載完解壓后,將里面的文件直接復制到C:\windows\system32下,省去配置環境的麻煩 。
在Windows PowerShell下,執行LxRunOffline,得到下面的結果,說明已正確安裝。
PS C:\WINDOWS\system32> LxRunOffline
[ERROR] No action is specified.
Supported actions are:
l, list List all installed distributions.
gd, get-default Get the default distribution, which is used by bash.exe.
sd, set-default Set the default distribution, which is used by bash.exe.
i, install Install a new distribution.
ui, uninstall Uninstall a distribution.
rg, register Register an existing installation directory.
ur, unregister Unregister a distribution but not delete the installation directory.
m, move Move a distribution to a new directory.
d, duplicate Duplicate an existing distribution in a new directory.
e, export Export a distribution's filesystem to a .tar.gz file, which can be imported by the "install" command.
r, run Run a command in a distribution.
di, get-dir Get the installation directory of a distribution.
gv, get-version Get the filesystem version of a distribution.
ge, get-env Get the default environment variables of a distribution.
se, set-env Set the default environment variables of a distribution.
ae, add-env Add to the default environment variables of a distribution.
re, remove-env Remove from the default environment variables of a distribution.
gu, get-uid Get the UID of the default user of a distribution.
su, set-uid Set the UID of the default user of a distribution.
gk, get-kernelcmd Get the default kernel command line of a distribution.
sk, set-kernelcmd Set the default kernel command line of a distribution.
gf, get-flags Get some flags of a distribution. See https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/wslapi/ne-wslapi-wsl_distribution_flags for details.
sf, set-flags Set some flags of a distribution. See https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/wslapi/ne-wslapi-wsl_distribution_flags for details.
s, shortcut Create a shortcut to launch a distribution.
ec, export-config Export configuration of a distribution to an XML file.
ic, import-config Import configuration of a distribution from an XML file.
sm, summary Get general information of a distribution.
version Get version information about this LxRunOffline.exe.
以管理員身份,打開Windows PowerShell,執行下面的語句。
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
按要求,執行完后,會提示你重啟計算機,按“Y”允許重啟。
重啟后,我們可以在這里面確認是否安裝成功。當然了,也可以直接使用手工的方式,點擊這個地方進行安裝。
由于是需要安裝到其他目錄,而非系統默認自帶的,所以,需要先下載一下Ubuntu18.04。
下載地址:https://docs.microsoft.com/en-us/windows/wsl/install-manual
系統及版本,自己看著選擇。喜歡就好。
Ubuntu 18.04
Ubuntu 18.04 ARM
Ubuntu 16.04
Debian GNU/Linux
Kali Linux
OpenSUSE Leap 42
SUSE Linux Enterprise Server 12
Fedora Remix for WSL
下載下來后,是一個Appx后綴的文件,我們直接把Appx改為zip,然后再解壓。
解壓后,得到的結果如下:
install.tar.gz這個文件就是我們等下要用到的。目錄要記住一下。
以管理員的身份,打開Windows PowerShell
格式:
LxRunOffline i -n <安裝名稱> -d <安裝路徑> -f <安裝文件>
對照這個,森哥我這里的安裝名稱是:ubuntu-18.04,安裝路徑是在:D:\ubuntu,剛剛提到的那個安裝文件,是在E:\ubuntu里面。
LxRunOffline i -n ubuntu-18.04 -d D:\ubuntu -f E:\ubuntu\install.tar.gz
啟動ubuntu系統
wsl
若忘記安裝名稱,使用下面命令查詢
LxRunOffline list
查看版本號
在運行中,輸入bash,即可打開。
查詢版本號看是否安裝我們所需要的。
root@zerolife:~# cat /etc/issue
Ubuntu 18.04.1 LTS \n \lxxxxxxxxxx root@zerolife:~# cat /etc/issueUbuntu 18.04.1 LTS \n \lcat /etc/issue
wslconfig /l
# 從列表中選擇要卸載的發行版(例如Ubuntu)并鍵入命令
wslconfig /u Ubuntu
查看現在的wsl狀態。
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
* ubuntu-18.04 Running 1
轉換為wsl2
wsl --set-version ubuntu-18.04 2
檢查一下。
剛轉換完,系統是處理注銷關機。所以,我們需要再運行一下wsl,就恢復了。
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
* ubuntu-18.04 Stopped 2
PS C:\WINDOWS\system32> wsl
root@zerolife:/mnt/c/WINDOWS/system32# exit
logout
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
* ubuntu-18.04 Running 2
好了。終于可以使用了。
完美
微軟已經向Win10預覽版10061用戶發布了多國系統語言包,用戶可以在系統的語言設置中在線安裝。或者也可以通過以下微軟官方地址來下載,對于有多語言需求的朋友在重裝系統后就無需重新下載了。盡管微軟可能很快會發布新的版本,不過IT之家還是決定為大家整理一下。
Win10預覽版10061多國語言包官方下載:
AR-SA-阿拉伯語:32位||64位
CS-CZ-捷克語:32位||64位
DE-DE-德語:32位||64位
EN-GB-英語:32位||64位
EN-US-英語(美):32位||64位
ES-ES-西班牙語:32位||64位
ES-MX:32位||64位
FI-FI-芬蘭語:32位||64位
FR-CA:32位||64位
FR-FR-法語:32位 ||64位
IT-IT-意大利語:32位||64位
JA-JP-日語:32位||64位
KO-KR-韓語:32位||64位
NL-NL-荷蘭語:32位||64位
PL-PL-波蘭語:32位||64位
PT-BR-葡萄牙語(巴西):32位||64位
RU-RU-俄語:32位||64位
SV-SE-瑞典語:32位||64位
TH-TH-泰語:32位||64位
TR-TR-土耳其語:32位||64位
ZH-CN-簡體中文:32位||64位
ZH-TW-繁體中文(臺):32位||64位
語言包安裝方法:
按Win+R打開運行,輸入lpksetup,回車,然后按照以下圖示操作即可:
選擇“安裝顯示語言”
選擇下載的cab語言包
接受許可條款
開始安裝