当前位置:首页 » 编程软件 » wsl更新内核编译

wsl更新内核编译

发布时间: 2024-07-13 05:33:31

1. 閰掑簵wsl鏄浠涔堟剰镐

wsl鏄缃戠粶娴佽岃锛屽湪涓嶅悓鍦烘櫙镄勬剰镐濓细

閰掑簵閲屾寚钬滈厌搴椾腑鍏锋湁链夌湡姝g殑绠$悊鍨嬩汉镓嵝濈殑绉板懠銆

鍦ㄩキ鍦堟槸钬沧垜姝讳简钬濈殑镒忔濓纴娓告垙閲屽父瑙佸埌镄剆dl swl,镒忔濇槸"鏄澶т浆钬,鎴戞讳简钬濓纴镄勬剰镐濄

镓╁𪾢璧勬枡锛

wsl鏄涓浜涚粍浠剁殑闆嗗悎锛屽厑璁稿师鐢熺殑linuxELF64浜岃繘鍒舵枃浠惰窇鍦╓indows涓娿傚畠钖屾椂鍖呮嫭浜嗙敤鎴锋佸拰鍐呮牳镐佺粍浠讹纴涓昏佸寘钖浠ヤ笅閮ㄥ垎锛

1. 鐢ㄦ埛镐佷细璇濈$悊链嶅姟澶勭悊Linux瀹炰緥镄勭敓锻藉懆链熴

2. Pico provider drivers (lxss.sys, lxcore.sys)钬灭炕璇戋濈郴缁熻皟鐢锛屼互妯℃嫙Linux鍐呮牳銆

3. Pico 杩涚▼绠$悊铡熺敓镄勭敤鎴锋丩inux锛堟瘆濡/bin/bash)銆




2. 鍏充簬win11涓嫔畨瑁匲buntu镓句笉鍒痒slRegisterDistribution failed with error: 0x800701bc

褰揿湪鎺у埗闱㈡澘=>绋嫔簭=>钖鐢ㄥ拰鍏抽棴Window锷熻兘涓寮钖浜嗕笅闱涓ら”锷熻兘杩樻姤阌

镟存柊Linux鍐呮牳鍖

3. scoop install dark瀹夎呭け璐ワ纻

1 姒傝堪
浣滀负涓钖崭娇鐢 win10 镄勫紑鍙戣咃纴鎼寤哄紑鍙戠幆澧冨线寰鏄涓浠舵瘆杈幂棝鑻︾殑浜嬶纴闇瑕佷粠缃戜笂涓嬭浇钖勭嶈蒋浠讹纴鍦ㄧ数鑴戜笂閰岖疆涓嶅悓杞浠惰繍琛岀幆澧冿纴瀵硅蒋浠惰繘琛屽悇绉嶈剧疆锛屼笉浠呰楁椂锛岃屼笖瀹规槗鍑虹幇钖勭嶉梾棰樸傛惌寤虹殑鐜澧冭缮浼氩瓨鍦ㄤ笅闱涓浜涢梾棰桡细
瀹夎呭ぇ閲忕▼搴忛犳垚璺寰勬薄镆撱傚畨瑁呭拰鍗歌浇姣旇缉楹荤储銆傚紑鍙戠幆澧冧笉鑳借縼绉伙纴閲嶈呯郴缁熸垨钥呮崲鐢佃剳闇瑕侀吨鏂版惌寤哄紑鍙戠幆澧冦傝蒋浠剁増链涓嶅ソ鎺у埗銆备负浜呜В鍐充笂闱㈣繖浜涢梾棰桡纴鎴戜滑鍙浠ヤ娇鐢 WSL+Docker+Scoop 鎼寤哄紑鍙戠幆澧冿纴鍙栦唬阃氲繃锲惧舰鐣岄溃瀹夎呰蒋浠跺拰 VMware 瀹夎 Linux 鐜澧幂殑浼犵粺鏂瑰纺銆
WSL 鏄阃傜敤浜 Linux 镄 Windows 瀛愮郴缁, 鍙璁╁紑鍙戜汉锻樻寜铡熸牱杩愯 GNU/Linux 鐜澧 - 鍖呮嫭澶у氭暟锻戒护琛屽伐鍏枫佸疄鐢ㄥ伐鍏峰拰搴旂敤绋嫔簭 - 涓斾笉浼氢骇鐢熶紶缁熻櫄𨰾熸満鎴栧弻钖锷ㄨ剧疆寮阌銆
Docker 鏄涓涓寮婧愮殑搴旂敤瀹瑰櫒寮曟搸锛岃╁紑鍙戣呭彲浠ユ墦鍖呬粬浠镄勫簲鐢ㄤ互鍙娄緷璧栧寘鍒颁竴涓鍙绉绘岖殑瀹瑰櫒涓锛岀劧钖庡彂甯冨埌浠讳綍娴佽岀殑 Linux 链哄櫒鎴 Windows 链哄櫒涓娿
Scoop 鏄 Windows 镄勫懡浠よ屽畨瑁呯▼搴忥纴鍙浠ヨ╂垜浠浠庡懡浠よ屼互链灏忕殑瀹夎呴噺瀹夎呯▼搴忥纴 瀹冩秷闄や简瀹夎呯晫闱㈠拰瀹夎呯▼搴忛犳垚镄勮矾寰勬薄镆掳纴瀹冨畨瑁呭拰鍗歌浇杞浠跺彧闇涓琛屽懡浠ゅ氨鍙浠ュ畬鎴愶纴瀹冭缮鍙浠ラ殢镒忓垏鎹㈣蒋浠剁殑鐗堟湰銆
涓涓瀹屾暣镄勫紑鍙戠幆澧幂粍鎴愶细棣栧厛浣跨敤 WSL 鎼寤轰竴涓 Linux 鐜澧冿纴铹跺悗鍦 Linux 鐜澧冮噷瀹夎 Docker 搴旂敤锛屼娇鐢 Docker 𨱒ュ畨瑁呬竴浜涘父鐢ㄨ蒋浠讹纴姣斿傛暟鎹搴撱亀eb 鐜澧幂瓑锛孲coop 鍒欐槸鍦ㄦ湰链轰笂瀹夎呬竴浜涘紑鍙戠敤鍒扮殑杞浠讹纴姣斿 jdk銆乵aven銆乮dea 绛夈俉SL 鍜 Scoop 閮芥槸姣旇缉瀹规槗澶囦唤鍜岃缮铡熺殑锛岃繖涓や釜鎼寤哄ソ浜嗭纴鎴戜滑鍒╃敤澶囦唤杩桦师鍙浠ュ揩阃熷湪鍙︿竴鍙版満鍣ㄤ笂鎼寤哄悓镙风殑涓濂楃幆澧冿纴涓嬮溃鏄鎼寤虹幆澧幂殑鍏蜂綋娴佺▼銆
2 WSL
2.1 WSL 瀹夎
浣跨敤 WINDOWS 阌 + R锛岃緭鍏 winver锛屾镆 win10 鐗堟湰锛岀‘淇濆唴閮ㄧ増链鍙锋槸 18362.1049 浠ヤ笂锛屽惁鍒欐洿鏂 win10 鍒版渶鏂扮増链銆
锲剧墖
2. 浠ョ$悊锻樿韩浠芥墦寮 PowerShell 骞惰繍琛屼笅闱㈠懡浠わ细
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
锲剧墖
3. 閲嶆柊钖锷ㄨ$畻链恒
4. 涓嬭浇 Linux鍐呮牳镟存柊鍖匸1]锛岀劧钖庡畨瑁呫
5. 灏 wsl2 璁剧疆涓洪粯璁ょ増链, 浠ョ$悊锻樿韩浠芥墦寮 PowerShell 骞惰繍琛屼笅闱㈠懡浠わ细
wsl --set-default-version 2
锲剧墖
6. 瀹夎 Ubuntu 20.04 LTS, 镓揿紑 Microsoft Store[2]锛屾悳绱 Ubuntu 20.04 LTS[3] 瀹夎, 瀹夎呭畬鎴愬悗镓揿紑 Ubuntu 20.04 LTS, 绛夊椤嚑鍒嗛挓浼氭彁绀鸿剧疆鐢ㄦ埛钖嶅拰瀵嗙爜锛屽傛灉涓嶈剧疆鐢ㄦ埛钖嶅拰瀵嗙爜鐩存帴鍏抽棴绐楀彛鍒欓粯璁や互 root 锏诲綍锛岃繖閲屾垜浠鐩存帴鍏抽棴绐楀彛锛屼笉璁剧疆鐢ㄦ埛钖嶅拰瀵嗙爜銆
锲剧墖
7. 铹跺悗閲嶆柊镓揿紑 Ubuntu 20.04 LTS 灏变细杩涘叆 Ubuntu 20.04 LTS浜嗭纴鎴戜滑涔熷彲浠ュ湪 powershell 浣跨敤 wsl 杩欎釜锻戒护杩涘叆 Ubuntu 20.04 LTS銆
2.2 WSL 閰岖疆
WSL 姣忔″惎锷ㄥ悗锛寃indows 閮戒细缁椤畠鍒嗛厤涓涓闅忔満镄 IP 鍦板潃锛岃繖镙锋槸涓嶅埄浜庢垜浠璁块梾 docker 閲岀殑链嶅姟镄勶纴涓轰简瑙e喅杩欎釜闂棰桡纴鎴戜滑鍙浠ュ垱寤轰竴涓鑴氭湰鏂囦欢 wsl2-ip.bat𨱒ョ粰 wsl 鍒嗛厤涓涓锲哄畾镄 IP锛屽湪姣忔″惎锷 wsl 钖庣敤绠$悊锻樻潈闄愯繍琛岃繖涓鑴氭湰锛屾枃浠跺唴瀹瑰备笅锛
@echo off
setlocal enabledelayedexpansion
:: set wsl2 ip
wsl -u root ip addr | findstr "192.168.169.2" > nul
if !errorlevel! equ 0 (
echo wsl ip has set
) else (
wsl -d Ubuntu-20.04 -u root ip addr add 192.168.169.2/28 broadcast 192.168.169.15 dev eth0 label eth0:1
echo set wsl ip success: 192.168.169.2
)
:: set windows ip
ipconfig | findstr "192.168.169.1" > nul
if !errorlevel! equ 0 (
echo windows ip has set
) else (
netsh interface ip add address "vEthernet (WSL)" 192.168.169.1 255.255.255.240
echo set windows ip success: 192.168.169.1
)
pause
鍏朵腑 192.168.169.2 琛ㄧず Linux 镄 IP 鍦板潃锛 192.168.169.1 琛ㄧず涓绘満镄 IP 鍦板潃銆
链夋椂浼氶亣鍒 Ubuntu 20.04 LTS 镞犳硶杩炴帴缃戠粶锛岃繖涓闱炲父閲嶈侊纴鎴戜滑鍙浠ヨ繍琛屼笅闱㈠懡浠よВ鍐筹细
sed -i '4d' /etc/resolv.conf
sed -i '3a\nameserver 8.8.8.8' /etc/resolv.conf
sed -i '4a\nameserver 114.114.114.114' /etc/resolv.conf
2.3 Ubuntu 閰岖疆
2.3.1 镟挎崲闀滃儚婧
1. 澶囦唤 sources.list 鏂囦欢锛岃繍琛屼笅闱㈠懡浠わ细
mv /etc/apt/sources.list /etc/apt/sources.list.bak
2. 鍒涘缓 source.list 鏂囦欢锛岃繍琛屼笅闱㈠懡浠わ细vim /etc/apt/sources.list
3. 铹跺悗鍦ㄦ枃浠堕噷娣诲姞涓嬮溃鍐呭癸纴涓嬮溃婧愪换阃夊叾涓鍗冲彲銆
# 娓呭崕婧
# 榛樿ゆ敞閲娄简婧愮爜闀滃儚浠ユ彁楂 apt update 阃熷害锛屽傛湁闇瑕佸彲镊琛屽彇娑堟敞閲
deb https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-security main restricted universe multiverse
# 棰勫彂甯冭蒋浠舵簮锛屼笉寤鸿钖鐢
# deb https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.e.cn/ubuntu/ focal-proposed main restricted universe multiverse
# 阒块噷婧
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
#deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
# 涓绉戝ぇ婧
deb https://mirrors.ustc.e.cn/ubuntu/ focal main restricted universe multiverse
#deb-src https://mirrors.ustc.e.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.e.cn/ubuntu/ focal-updates main restricted universe multiverse
#deb-src https://mirrors.ustc.e.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.e.cn/ubuntu/ focal-backports main restricted universe multiverse
#deb-src https://mirrors.ustc.e.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.e.cn/ubuntu/ focal-security main restricted universe multiverse
#deb-src https://mirrors.ustc.e.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.e.cn/ubuntu/ focal-proposed main restricted universe multiverse
#deb-src https://mirrors.ustc.e.cn/ubuntu/ focal-proposed main restricted universe multiverse
#缃戞槗163婧
deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
#deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
4. 杩涜屾洿鏂帮纴杩愯屼笅闱㈠懡浠わ细
apt update
apt upgrade -y
2.3.2 寮钖 systemctl
瀹夎 daemonize 鍜宖ontconfig 杞浠讹纴杩愯屼笅闱㈠懡浠わ细apt install -y fontconfig daemonize
2. 杩愯 vim /etc/profile 锻戒护锛屽湪链灏炬坊锷犱笅闱㈠唴瀹癸细
SYSTEMD_PID=$(ps -ef | grep '/lib/systemd/systemd --system-unit=basic.target$' | grep -v unshare | awk '{print $2}')
if [ -z "$SYSTEMD_PID" ]; then
sudo /usr/bin/daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
SYSTEMD_PID=$(ps -ef | grep '/lib/systemd/systemd --system-unit=basic.target$' | grep -v unshare | awk '{print $2}')
fi
if [ -n "$SYSTEMD_PID" ] && [ "$SYSTEMD_PID" != "1" ]; then
exec sudo /usr/bin/nsenter -t $SYSTEMD_PID -a su - $LOGNAME
fi
3. 杩愯 vim /etc/sudoers 锻戒护锛屽湪链灏炬坊锷犱笅闱㈠唴瀹癸细
%sudo ALL=(ALL) NOPASSWD: /usr/sbin/daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
%sudo ALL=(ALL) NOPASSWD: /usr/bin/nsenter -t [0-9]* -a su - [a-zA-Z0-9]*
4. 鍒锋柊 profile 鏂囦欢锛岃繍琛屼笅闱㈠懡浠:
source /etc/profile
2.3.2 寮钖 ssh
璁剧疆 root 璐﹀彿镄勫瘑镰侊纴鐢ㄤ綔钖庣画锏婚檰浣跨敤锛岃繍琛屼笅闱㈠懡浠:passwd root
锲剧墖
2. 澶囦唤铡熷嬬殑 sshd_config锛岃繍琛屼笅闱㈠懡浠わ细
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
3. 淇鏀 sshd_config 鏂囦欢锛岃繍琛屼笅闱㈠懡浠わ细
sed -i '15c Port 22' /etc/ssh/sshd_config
sed -i '17c ListenAddress 0.0.0.0' /etc/ssh/sshd_config
sed -i '34c PermitRootLogin yes' /etc/ssh/sshd_config
sed -i '58c PasswordAuthentication yes' /etc/ssh/sshd_config
4. 閲嶅惎 sshd锛岃繍琛屼笅闱㈠懡浠
systemctl restart sshd
2.4 Docker 瀹夎呬笌閰岖疆
瀹樻柟鍜岄樋閲岀殑婧愰夋嫨鍏朵竴锛屽缓璁浣跨敤阒块噷婧愶纴阃熷害蹇銆
2.4.1 瀹樻柟瀹夎
1. 鍗歌浇镞х増链锛岃繍琛屼笅闱㈠懡浠わ细
apt-get remove docker docker-engine docker.io containerd runc
2. 镟存柊 apt 杞浠跺寘绱㈠紩骞跺畨瑁呰蒋浠跺寘浠ュ厑璁 apt 阃氲繃 HTTPS 浣跨敤瀛桦偍搴掳纴杩愯屼笅闱㈠懡浠わ细
apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
3. 娣诲姞 Docker 镄勫畼鏂 GPG 瀵嗛挜锛岃繍琛屼笅闱㈠懡浠わ细
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
4. 璁剧疆绋冲畾镄勫瓨鍌ㄥ簱锛岃繍琛屼笅闱㈠懡浠わ细
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
5. 瀹夎呮渶鏂扮増链镄 Docker Engine 鍜屽瑰櫒锛岃繍琛屼笅闱㈠懡浠わ细
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
apt-mark hold docker-ce docker-ce-cli containerd.io
2.4.2 阒块噷婧愬畨瑁
鍗歌浇镞х増链锛岃繍琛屼笅闱㈠懡浠わ细apt-get remove docker docker-engine docker.io containerd runc
2. 镟存柊 apt 杞浠跺寘绱㈠紩骞跺畨瑁呰蒋浠跺寘浠ュ厑璁 apt 阃氲繃 HTTPS 浣跨敤瀛桦偍搴掳纴杩愯屼笅闱㈠懡浠わ细
apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
3. 娣诲姞 Docker 镄勯樋閲 GPG 瀵嗛挜锛岃繍琛屼笅闱㈠懡浠わ细
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
4. 璁剧疆绋冲畾镄勫瓨鍌ㄥ簱锛岃繍琛屼笅闱㈠懡浠わ细
add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
5. 瀹夎呮渶鏂扮増链镄 Docker Engine 鍜屽瑰櫒锛岃繍琛屼笅闱㈠懡浠わ细
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
apt-mark hold docker-ce docker-ce-cli containerd.io
2.4.3 閰岖疆闀滃儚锷犻
鍒涘缓 /etc/docker/daemon.json 鏂囦欢锛屽苟濉鍐欎互涓嫔唴瀹癸细
{
"registry-mirrors": ["https://docker.mirrors.ustc.e.cn/"]
}
3 Scoop
3.1 Scoop 瀹夎
1. 浠ョ$悊锻樻潈闄愭墦寮 PowerShell 銆
2. 镊瀹氢箟鐢ㄦ埛杞浠跺拰鍏ㄥ眬杞浠跺畨瑁呬綅缃锛岃繍琛屼笅闱㈠懡浠わ细
$env:SCOOP='D:\Softwares\Scoop\LocalApps'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
$env:SCOOP_GLOBAL='D:\Softwares\Scoop\GlobalApps'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
锲剧墖
3. 閰岖疆瀹夊叏绛栫暐浠ュ强瀹夎 Scoop锛岃繍琛屼笅闱㈠懡浠わ细
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
锲剧墖
3.2 瀹夎呭け璐ヨВ鍐虫柟妗埚傛灉鍙戠敓涓嬮溃阌栾锛岃繖鏄锲犱负缃戠粶铡熷洜镞犳硶璁块梾 GitHub銆
锲剧墖
2. 璁块梾 IP鍦板潃镆ヨ㈢绣绔橻4]锛岃緭鍏raw.githubusercontent.com锘熷悕锛屾煡璇㈠瑰簲镄 IP 鍦板潃銆
锲剧墖
3. 閰岖疆 C:\Windows\System32\drivers\etc\hosts鏂囦欢锛屽湪淇鏀瑰墠璧嬩篑 hosts 鏂囦欢璇诲啓𨱒冮檺銆
锲剧墖
锲剧墖
锲剧墖
4. 淇鏀 host 鏂囦欢鍐呭瑰备笅锛岀涓鍒楁槸镆ヨ㈠嚭𨱒ョ殑ip鍦板潃锛岀浜屽垪鏄鍏跺瑰簲镄勫烟钖嶏纴涓闂存湁涓绌烘牸銆
锲剧墖
5. 淇濆瓨钖庨吨鏂拌繍琛屽畨瑁呭懡浠ゃ
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
3.3 Scoop 閰岖疆
瀹夎 Scoop 杩愯屾墍闇瑕佺殑锘虹杞浠讹细scoop install sudo
sudo scoop install 7zip git innounp dark -g
锲剧墖
2. 杩愯屼笅闱㈠懡浠わ纴妫镆Scoop杩桦瓨鍦ㄧ殑闂棰桡纴杈揿叆鎻愮ず杩愯岀殑锻戒护锛屾潵瑙e喅瀛桦湪镄勯梾棰桡纴濡傛灉浣犱娇鐢ㄧ殑瀹夎呰矾寰勪笉鏄鎴戠殑璺寰勶纴璇蜂慨鏀瑰懡浠や腑镄勮蒋浠跺畨瑁呬綅缃锛
scoop checkup
Add-MpPreference -ExclusionPath 'D:\Softwares\Scoop\LocalApps'
Add-MpPreference -ExclusionPath 'D:\Softwares\Scoop\GlobalApps'
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
锲剧墖
3. 閰岖疆杞浠朵粨搴掳纴瀹樻柟杞浠朵粨搴撶洰鍓嶆敹褰旷殑杞浠跺緢灏戯纴涓嶈冻浠ユ敮鎸佹垜浠镄勪娇鐢锛屾坊锷犱笅闱㈢殑杞浠朵粨搴掳纴鑳借╂垜浠瀹夎呮洿澶氱殑杞浠讹细
scoop bucket add extras
scoop bucket add versions
scoop bucket add nightlies
scoop bucket add nirsoft
scoop bucket add php
scoop bucket add nerd-fonts
scoop bucket add nonportable
scoop bucket add java
scoop bucket add games
scoop bucket add jetbrains
scoop bucket add dorado https://github.com/chawyehsu/dorado
scoop bucket add Ash258 https://github.com/Ash258/Scoop-Ash258.git
scoop bucket add pleiades https://github.com/jfut/scoop-pleiades.git
scoop bucket add Scoop-Apps https://github.com/ACooper81/scoop-apps
scoop bucket add scoop-zapps https://github.com/kkzzhou/scoop-zapps
scoop bucket add lemon https://github.com/hoilc/scoop-lemon
scoop bucket add raresoft https://github.com/L-Trump/scoop-raresoft
锲剧墖
4. 濡傛灉杞浠朵粨搴撴坊锷犲け璐ワ纴杩樻槸锲犱负缃戠粶镄勫师锲狅纴澶у跺彲浠ユ妸杩欎簺浠揿簱 fork 鍒拌嚜宸辩殑镰佷簯璐︽埛涓嬶纴铹跺悗鍐嶆坊锷犮
5. 浣跨敤 aria2 𨱒ュ姞阃熻蒋浠剁殑瀹夎咃细
scoop install aria2 -g
scoop config aria2-max-connection-per-server 16
scoop config aria2-split 16
scoop config aria2-min-split-size 1M
濡傛灉𨱍冲叧闂 aria2锛屽彲浠ヨ繍琛 scoop config aria2-enabled false锻戒护銆
3.4 Scoop 甯哥敤锻戒护
# 鎼灭储app
scoop search <搴旂敤钖>
# 妫镆ュ摢浜涜蒋浠舵湁镟存柊
scoop status
# 鐗堟湰鍒囨崲
scoop reset <搴旂敤钖>@<鐗堟湰鍒囨崲>
# 绂佹㈡煇app镟存柊
scoop hold <搴旂敤钖>
# 镟存柊镓链塧pp
scoop update *
# 瀹夎卆pp
scoop install <搴旂敤钖>
#鍏ㄥ眬瀹夎卆pp
scoop install -g <搴旂敤钖>
#瀹夎卐xtras杞浠舵簮涓嬬殑app
scoop install extras/<搴旂敤钖>
# 鍗歌浇app
scoop uninstall <搴旂敤钖>
# 鍗歌浇鍏ㄥ眬瀹夎呯殑app
scoop uninstall -g <搴旂敤钖>
4 镐荤粨
寮鍙戠幆澧冭蒋浠剁殑瀹夎呬笌閰岖疆鍒拌繖閲屽氨瀹屾垚浜嗭纴鍒╃敤涓婇溃杩欎簺杞浠讹纴浣犲彲浠ュ揩阃熸惌寤 Java銆丢o銆丆++銆丳ython绛夊紑鍙戠幆澧冦
鍙傝冭祫鏂
[1]Linux鍐呮牳镟存柊鍖: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
[2]Microsoft Store: https://aka.ms/wslstore
[3]Ubuntu 20.04 LTS: https://www.microsoft.com/store/apps/9n6svws3rx71
[4]IP鍦板潃镆ヨ㈢绣绔: https://www.ipaddress.com/

热点内容
怎么才能把安卓数据转移到苹果手机上 发布:2024-11-26 05:14:35 浏览:850
手机对比参数配置常看的有哪些 发布:2024-11-26 05:01:23 浏览:890
qq默认存储路径修改 发布:2024-11-26 04:55:02 浏览:709
为什么吉利配置那么高 发布:2024-11-26 04:49:20 浏览:430
源码平台排名 发布:2024-11-26 04:44:49 浏览:998
电脑网络连接密码如何更改 发布:2024-11-26 04:39:20 浏览:203
安卓手机如何设置airpro自动弹窗 发布:2024-11-26 04:39:17 浏览:585
华为Ul编程 发布:2024-11-26 04:27:15 浏览:148
oppor9s软件加密 发布:2024-11-26 04:27:13 浏览:679
连接数据库的服务器 发布:2024-11-26 04:17:51 浏览:493