[{"data":1,"prerenderedAt":6138},["ShallowReactive",2],{"blog-posts":3,"content-\u002Fposts\u002Fblogrelife":6036},[4,1111,1412,1464,1528,1886,2092,2130,2641,2691,2779,2913],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"date":11,"categories":12,"tags":13,"body":15,"_type":1105,"_id":1106,"_source":1107,"_file":1108,"_stem":1109,"_extension":1110},"\u002Fposts\u002Fabout-ssh-usage","posts",false,"","关于SSH的使用——客户端篇","介绍SSH客户端的用法。","2025-06-17 02:44:57","殆罔集",[14],"工具",{"type":16,"children":17,"toc":1092},"root",[18,26,40,45,59,221,227,295,347,368,474,480,485,492,497,502,540,553,558,563,568,601,606,611,616,625,630,635,640,745,750,787,882,895,908,913,942,979,984,990,995,1000,1005,1059,1064,1075,1086],{"type":19,"tag":20,"props":21,"children":22},"element","p",{},[23],{"type":24,"value":25},"text","本文正在编写中...",{"type":19,"tag":20,"props":27,"children":28},{},[29,31,38],{"type":24,"value":30},"参见 ",{"type":19,"tag":32,"props":33,"children":35},"a",{"href":34},"#reference",[36],{"type":24,"value":37},"Reference",{"type":24,"value":39}," 部分。",{"type":19,"tag":20,"props":41,"children":42},{},[43],{"type":24,"value":44},"TL;DR",{"type":19,"tag":20,"props":46,"children":47},{},[48,50,57],{"type":24,"value":49},"Secure Shell is a protocol used to securely log onto remote systems.\nIt can be used for logging or executing commands on a remote server.\nMore information: ",{"type":19,"tag":32,"props":51,"children":55},{"href":52,"rel":53},"https:\u002F\u002Fman.openbsd.org\u002Fssh",[54],"nofollow",[56],{"type":24,"value":52},{"type":24,"value":58},".",{"type":19,"tag":60,"props":61,"children":62},"ul",{},[63,82,97,136,147,172,205,216],{"type":19,"tag":64,"props":65,"children":66},"li",{},[67,73,75],{"type":19,"tag":68,"props":69,"children":70},"strong",{},[71],{"type":24,"value":72},"Connect to a remote server",{"type":24,"value":74},":\n",{"type":19,"tag":76,"props":77,"children":79},"code",{"className":78},[],[80],{"type":24,"value":81},"ssh username@remote_host",{"type":19,"tag":64,"props":83,"children":84},{},[85,90,91],{"type":19,"tag":68,"props":86,"children":87},{},[88],{"type":24,"value":89},"Connect to a remote server with a specific identity (private key)",{"type":24,"value":74},{"type":19,"tag":76,"props":92,"children":94},{"className":93},[],[95],{"type":24,"value":96},"ssh -i path\u002Fto\u002Fkey_file username@remote_host",{"type":19,"tag":64,"props":98,"children":99},{},[100,113,115,120,122,128,130],{"type":19,"tag":68,"props":101,"children":102},{},[103,105,111],{"type":24,"value":104},"Connect to a remote server with IP ",{"type":19,"tag":76,"props":106,"children":108},{"className":107},[],[109],{"type":24,"value":110},"10.0.0.1",{"type":24,"value":112}," and using a specific [p]ort",{"type":24,"value":114},"(Note: ",{"type":19,"tag":76,"props":116,"children":118},{"className":117},[],[119],{"type":24,"value":110},{"type":24,"value":121}," can be shortened to ",{"type":19,"tag":76,"props":123,"children":125},{"className":124},[],[126],{"type":24,"value":127},"10.1",{"type":24,"value":129},"):\n",{"type":19,"tag":76,"props":131,"children":133},{"className":132},[],[134],{"type":24,"value":135},"ssh username@10.0.0.1 -p 2222",{"type":19,"tag":64,"props":137,"children":138},{},[139,141],{"type":24,"value":140},"Run a command on a remote server with a [t]ty allocation allowing interaction with the remote command:\n",{"type":19,"tag":76,"props":142,"children":144},{"className":143},[],[145],{"type":24,"value":146},"ssh username@remote_host -t command command_arguments",{"type":19,"tag":64,"props":148,"children":149},{},[150,152,157,159,165,166],{"type":24,"value":151},"SSH tunneling: ",{"type":19,"tag":68,"props":153,"children":154},{},[155],{"type":24,"value":156},"[D]ynamic port forwarding",{"type":24,"value":158}," (SOCKS proxy on ",{"type":19,"tag":76,"props":160,"children":162},{"className":161},[],[163],{"type":24,"value":164},"localhost:1080",{"type":24,"value":129},{"type":19,"tag":76,"props":167,"children":169},{"className":168},[],[170],{"type":24,"value":171},"ssh -D 1080 username@remote_host",{"type":19,"tag":64,"props":173,"children":174},{},[175,176,181,183,189,191,197,199],{"type":24,"value":151},{"type":19,"tag":68,"props":177,"children":178},{},[179],{"type":24,"value":180},"Forward a specific port",{"type":24,"value":182}," (",{"type":19,"tag":76,"props":184,"children":186},{"className":185},[],[187],{"type":24,"value":188},"localhost:9999",{"type":24,"value":190}," to ",{"type":19,"tag":76,"props":192,"children":194},{"className":193},[],[195],{"type":24,"value":196},"example.org:80",{"type":24,"value":198},") along with disabling pseudo-[T]ty allocation and executio[N] of remote commands:\n",{"type":19,"tag":76,"props":200,"children":202},{"className":201},[],[203],{"type":24,"value":204},"ssh -L 9999:example.org:80 -N -T username@remote_host",{"type":19,"tag":64,"props":206,"children":207},{},[208,210],{"type":24,"value":209},"SSH [J]umping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters):\n",{"type":19,"tag":76,"props":211,"children":213},{"className":212},[],[214],{"type":24,"value":215},"ssh -J username@jump_host username@remote_host",{"type":19,"tag":64,"props":217,"children":218},{},[219],{"type":24,"value":220},"Close a hanged session:\n\u003CEnter>\u003C~>\u003C.>",{"type":19,"tag":222,"props":223,"children":225},"h2",{"id":224},"公钥认证",[226],{"type":24,"value":224},{"type":19,"tag":20,"props":228,"children":229},{},[230,232,238,240,246,248,254,256,262,263,269,271,277,279,285,287,293],{"type":24,"value":231},"默认情况下，SSH 会寻找 ",{"type":19,"tag":76,"props":233,"children":235},{"className":234},[],[236],{"type":24,"value":237},"~\u002F.ssh\u002Fid_*",{"type":24,"value":239}," 作为私钥，其中 ",{"type":19,"tag":76,"props":241,"children":243},{"className":242},[],[244],{"type":24,"value":245},"*",{"type":24,"value":247}," 部分可以是 ",{"type":19,"tag":76,"props":249,"children":251},{"className":250},[],[252],{"type":24,"value":253},"rsa",{"type":24,"value":255},"、",{"type":19,"tag":76,"props":257,"children":259},{"className":258},[],[260],{"type":24,"value":261},"ecdsa",{"type":24,"value":255},{"type":19,"tag":76,"props":264,"children":266},{"className":265},[],[267],{"type":24,"value":268},"ed25519",{"type":24,"value":270}," 等，也可以通过 ",{"type":19,"tag":76,"props":272,"children":274},{"className":273},[],[275],{"type":24,"value":276},"-i",{"type":24,"value":278}," 参数指定私钥文件。私钥的文件名加上 ",{"type":19,"tag":76,"props":280,"children":282},{"className":281},[],[283],{"type":24,"value":284},".pub",{"type":24,"value":286}," 后缀就是公钥文件，暂时没有方法指定公钥文件的路径。如果要在配置文件中指定一个或多个私钥，可以使用 ",{"type":19,"tag":76,"props":288,"children":290},{"className":289},[],[291],{"type":24,"value":292},"IdentityFile",{"type":24,"value":294}," 选项，例如：",{"type":19,"tag":296,"props":297,"children":301},"pre",{"className":298,"code":299,"language":300,"meta":8,"style":8},"language-shell shiki shiki-themes github-light github-dark","Host example\n  IdentityFile ~\u002F.ssh\u002Fid_rsa\n  #CertificateFile ~\u002F.ssh\u002Fid_rsa-cert.pub\n","shell",[302],{"type":19,"tag":76,"props":303,"children":304},{"__ignoreMap":8},[305,323,337],{"type":19,"tag":306,"props":307,"children":310},"span",{"class":308,"line":309},"line",1,[311,317],{"type":19,"tag":306,"props":312,"children":314},{"style":313},"--shiki-default:#6F42C1;--shiki-dark:#B392F0",[315],{"type":24,"value":316},"Host",{"type":19,"tag":306,"props":318,"children":320},{"style":319},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[321],{"type":24,"value":322}," example\n",{"type":19,"tag":306,"props":324,"children":326},{"class":308,"line":325},2,[327,332],{"type":19,"tag":306,"props":328,"children":329},{"style":313},[330],{"type":24,"value":331},"  IdentityFile",{"type":19,"tag":306,"props":333,"children":334},{"style":319},[335],{"type":24,"value":336}," ~\u002F.ssh\u002Fid_rsa\n",{"type":19,"tag":306,"props":338,"children":340},{"class":308,"line":339},3,[341],{"type":19,"tag":306,"props":342,"children":344},{"style":343},"--shiki-default:#6A737D;--shiki-dark:#6A737D",[345],{"type":24,"value":346},"  #CertificateFile ~\u002F.ssh\u002Fid_rsa-cert.pub\n",{"type":19,"tag":20,"props":348,"children":349},{},[350,352,358,360,366],{"type":24,"value":351},"一般来说，除非为了兼容一些非常古老（如 10 年前的）或非常简单的（如嵌入式）系统而不得不使用较短的 RSA 密钥对的时候，我们推荐使用 Ed25519 密钥对，或者 ECDSA 密钥对。这两种基于椭圆曲线的密码学算法比 RSA 更安全，而且性能也更好。如果不得不使用 RSA 的话，请尽可能使用 3072 位或更长的密钥长度。密钥长度可以在使用 ",{"type":19,"tag":76,"props":353,"children":355},{"className":354},[],[356],{"type":24,"value":357},"ssh-keygen",{"type":24,"value":359}," 生成密钥对时指定（",{"type":19,"tag":76,"props":361,"children":363},{"className":362},[],[364],{"type":24,"value":365},"-b",{"type":24,"value":367},"），其中不同算法支持与推荐的长度也是不同的：",{"type":19,"tag":369,"props":370,"children":371},"table",{},[372,402],{"type":19,"tag":373,"props":374,"children":375},"thead",{},[376],{"type":19,"tag":377,"props":378,"children":379},"tr",{},[380,387,392,397],{"type":19,"tag":381,"props":382,"children":384},"th",{"align":383},"center",[385],{"type":24,"value":386},"算法",{"type":19,"tag":381,"props":388,"children":389},{"align":383},[390],{"type":24,"value":391},"支持长度",{"type":19,"tag":381,"props":393,"children":394},{"align":383},[395],{"type":24,"value":396},"推荐长度",{"type":19,"tag":381,"props":398,"children":399},{},[400],{"type":24,"value":401},"说明",{"type":19,"tag":403,"props":404,"children":405},"tbody",{},[406,430,452],{"type":19,"tag":377,"props":407,"children":408},{},[409,415,420,425],{"type":19,"tag":410,"props":411,"children":412},"td",{"align":383},[413],{"type":24,"value":414},"RSA",{"type":19,"tag":410,"props":416,"children":417},{"align":383},[418],{"type":24,"value":419},"1024-4096",{"type":19,"tag":410,"props":421,"children":422},{"align":383},[423],{"type":24,"value":424},"3072 或以上",{"type":19,"tag":410,"props":426,"children":427},{},[428],{"type":24,"value":429},"曾经的推荐长度是 2048 位，但 2020 年以后认为这个长度已不够安全",{"type":19,"tag":377,"props":431,"children":432},{},[433,438,443,447],{"type":19,"tag":410,"props":434,"children":435},{"align":383},[436],{"type":24,"value":437},"ECDSA",{"type":19,"tag":410,"props":439,"children":440},{"align":383},[441],{"type":24,"value":442},"256 \u002F 384 \u002F 521",{"type":19,"tag":410,"props":444,"children":445},{"align":383},[446],{"type":24,"value":442},{"type":19,"tag":410,"props":448,"children":449},{},[450],{"type":24,"value":451},"由于椭圆曲线参数选择的特殊性，只有这三种长度可选。注意最后一个选项是 521，不是 512",{"type":19,"tag":377,"props":453,"children":454},{},[455,460,465,469],{"type":19,"tag":410,"props":456,"children":457},{"align":383},[458],{"type":24,"value":459},"Ed25519",{"type":19,"tag":410,"props":461,"children":462},{"align":383},[463],{"type":24,"value":464},"-",{"type":19,"tag":410,"props":466,"children":467},{"align":383},[468],{"type":24,"value":464},{"type":19,"tag":410,"props":470,"children":471},{},[472],{"type":24,"value":473},"Ed25519 是基于 Edwards 曲线的算法，没有“长度”这种参数",{"type":19,"tag":222,"props":475,"children":477},{"id":476},"端口转发port-transportings",[478],{"type":24,"value":479},"端口转发（Port Transportings）",{"type":19,"tag":20,"props":481,"children":482},{},[483],{"type":24,"value":484},"SSH 配置 TCP 端口转发的格式为 [bind_address:]port:host:hostport，SSH 支持三种端口转发：",{"type":19,"tag":486,"props":487,"children":489},"h3",{"id":488},"动态端口转发dynamic-port-forwarding",[490],{"type":24,"value":491},"动态端口转发（Dynamic port forwarding）",{"type":19,"tag":20,"props":493,"children":494},{},[495],{"type":24,"value":496},"在本地监听一个端口用作 SOCKS5 代理。",{"type":19,"tag":20,"props":498,"children":499},{},[500],{"type":24,"value":501},"例1 SOCKS服务器",{"type":19,"tag":296,"props":503,"children":507},{"className":504,"code":505,"language":506,"meta":8,"style":8},"language-bash shiki shiki-themes github-light github-dark","ssh -D 1080 vps -N\n","bash",[508],{"type":19,"tag":76,"props":509,"children":510},{"__ignoreMap":8},[511],{"type":19,"tag":306,"props":512,"children":513},{"class":308,"line":309},[514,519,525,530,535],{"type":19,"tag":306,"props":515,"children":516},{"style":313},[517],{"type":24,"value":518},"ssh",{"type":19,"tag":306,"props":520,"children":522},{"style":521},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[523],{"type":24,"value":524}," -D",{"type":19,"tag":306,"props":526,"children":527},{"style":521},[528],{"type":24,"value":529}," 1080",{"type":19,"tag":306,"props":531,"children":532},{"style":319},[533],{"type":24,"value":534}," vps",{"type":19,"tag":306,"props":536,"children":537},{"style":521},[538],{"type":24,"value":539}," -N\n",{"type":19,"tag":20,"props":541,"children":542},{},[543,545,551],{"type":24,"value":544},"此时可将远程主机 vps 作为 SOCKS 服务器使用，比如 ",{"type":19,"tag":76,"props":546,"children":548},{"className":547},[],[549],{"type":24,"value":550},"curl -x socks5:\u002F\u002Flocalhost:1080 google.com",{"type":24,"value":552},"。可以代理绝大多数软件：浏览器，社交媒体，开发工具（如 Git）等。",{"type":19,"tag":20,"props":554,"children":555},{},[556],{"type":24,"value":557},"另外，对于大学生来说，SSH 动态端口转发结合 OpenVPN 使用可以突破学校上网设备限制。",{"type":19,"tag":486,"props":559,"children":561},{"id":560},"本地端口转发",[562],{"type":24,"value":560},{"type":19,"tag":20,"props":564,"children":565},{},[566],{"type":24,"value":567},"也叫 Single port forward TCP tunnels。",{"type":19,"tag":296,"props":569,"children":571},{"className":504,"code":570,"language":506,"meta":8,"style":8},"ssh -L 0.0.0.0:8000:localhost:8000 host -N\n",[572],{"type":19,"tag":76,"props":573,"children":574},{"__ignoreMap":8},[575],{"type":19,"tag":306,"props":576,"children":577},{"class":308,"line":309},[578,582,587,592,597],{"type":19,"tag":306,"props":579,"children":580},{"style":313},[581],{"type":24,"value":518},{"type":19,"tag":306,"props":583,"children":584},{"style":521},[585],{"type":24,"value":586}," -L",{"type":19,"tag":306,"props":588,"children":589},{"style":319},[590],{"type":24,"value":591}," 0.0.0.0:8000:localhost:8000",{"type":19,"tag":306,"props":593,"children":594},{"style":319},[595],{"type":24,"value":596}," host",{"type":19,"tag":306,"props":598,"children":599},{"style":521},[600],{"type":24,"value":539},{"type":19,"tag":486,"props":602,"children":604},{"id":603},"远程端口转发",[605],{"type":24,"value":603},{"type":19,"tag":20,"props":607,"children":608},{},[609],{"type":24,"value":610},"也叫 Reverse TCP Tunnels。",{"type":19,"tag":20,"props":612,"children":613},{},[614],{"type":24,"value":615},"本地端口转发和远程端口转发的工作模式可以结合由 Ivan Velichko 绘制的图片来理解：",{"type":19,"tag":20,"props":617,"children":618},{},[619],{"type":19,"tag":620,"props":621,"children":624},"img",{"alt":622,"src":623},"ssh-tunnels","https:\u002F\u002F201.ustclug.org\u002Fimages\u002Fiximiuz-ssh-tunnels-2000-opt.png",[],{"type":19,"tag":20,"props":626,"children":627},{},[628],{"type":24,"value":629},"结合端口转发与代理的例子",{"type":19,"tag":20,"props":631,"children":632},{},[633],{"type":24,"value":634},"让服务器使用本机的SSH密钥和网络环境。",{"type":19,"tag":20,"props":636,"children":637},{},[638],{"type":24,"value":639},"一行命令。",{"type":19,"tag":296,"props":641,"children":643},{"className":298,"code":642,"language":300,"meta":8,"style":8},"ssh -A -D 1134 localhost -t ssh -A -R 1220:localhost:1134 [user]@remote_server -t http_proxy=socks5h:\u002F\u002F127.0.0.1:1220 https_proxy=socks5h:\u002F\u002F127.0.0.1:1220 all_proxy=socks5h:\u002F\u002F127.0.0.1:1220 bash\n",[644],{"type":19,"tag":76,"props":645,"children":646},{"__ignoreMap":8},[647],{"type":19,"tag":306,"props":648,"children":649},{"class":308,"line":309},[650,654,659,663,668,673,678,683,687,692,697,703,709,714,719,723,727,732,736,740],{"type":19,"tag":306,"props":651,"children":652},{"style":313},[653],{"type":24,"value":518},{"type":19,"tag":306,"props":655,"children":656},{"style":521},[657],{"type":24,"value":658}," -A",{"type":19,"tag":306,"props":660,"children":661},{"style":521},[662],{"type":24,"value":524},{"type":19,"tag":306,"props":664,"children":665},{"style":521},[666],{"type":24,"value":667}," 1134",{"type":19,"tag":306,"props":669,"children":670},{"style":319},[671],{"type":24,"value":672}," localhost",{"type":19,"tag":306,"props":674,"children":675},{"style":521},[676],{"type":24,"value":677}," -t",{"type":19,"tag":306,"props":679,"children":680},{"style":319},[681],{"type":24,"value":682}," ssh",{"type":19,"tag":306,"props":684,"children":685},{"style":521},[686],{"type":24,"value":658},{"type":19,"tag":306,"props":688,"children":689},{"style":521},[690],{"type":24,"value":691}," -R",{"type":19,"tag":306,"props":693,"children":694},{"style":319},[695],{"type":24,"value":696}," 1220:localhost:1134",{"type":19,"tag":306,"props":698,"children":700},{"style":699},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[701],{"type":24,"value":702}," [user]@remote_server -t http_proxy",{"type":19,"tag":306,"props":704,"children":706},{"style":705},"--shiki-default:#D73A49;--shiki-dark:#F97583",[707],{"type":24,"value":708},"=",{"type":19,"tag":306,"props":710,"children":711},{"style":319},[712],{"type":24,"value":713},"socks5h:\u002F\u002F127.0.0.1:1220",{"type":19,"tag":306,"props":715,"children":716},{"style":699},[717],{"type":24,"value":718}," https_proxy",{"type":19,"tag":306,"props":720,"children":721},{"style":705},[722],{"type":24,"value":708},{"type":19,"tag":306,"props":724,"children":725},{"style":319},[726],{"type":24,"value":713},{"type":19,"tag":306,"props":728,"children":729},{"style":699},[730],{"type":24,"value":731}," all_proxy",{"type":19,"tag":306,"props":733,"children":734},{"style":705},[735],{"type":24,"value":708},{"type":19,"tag":306,"props":737,"children":738},{"style":319},[739],{"type":24,"value":713},{"type":19,"tag":306,"props":741,"children":742},{"style":313},[743],{"type":24,"value":744}," bash\n",{"type":19,"tag":20,"props":746,"children":747},{},[748],{"type":24,"value":749},"这里使用了嵌套式的 SSH 命令连接远程主机。首先在本地使用动态端口转发启动一个 SOCKS 服务器，然后通过远程端口转发把本地 SOCKS 服务器端口转发到远程服务器，并且直接设置好代理的环境变量，这里设置了 SOCKS5H 协议，让远程服务器也使用本机的 DNS 解析。这样实现了让远程服务器使用本地的 SSH 密钥和网络环境的功能。",{"type":19,"tag":20,"props":751,"children":752},{},[753,755,761,763,769,771,777,779,785],{"type":24,"value":754},"其中 ",{"type":19,"tag":76,"props":756,"children":758},{"className":757},[],[759],{"type":24,"value":760},"-A",{"type":24,"value":762}," 开启 SSH Agent 转发，用于转发添加到 SSH Agent 的密钥到远程服务器，",{"type":19,"tag":76,"props":764,"children":766},{"className":765},[],[767],{"type":24,"value":768},"-D 1134 localhost",{"type":24,"value":770}," 在本地开启一个端口在 ",{"type":19,"tag":76,"props":772,"children":774},{"className":773},[],[775],{"type":24,"value":776},"1134",{"type":24,"value":778}," 的服务器，",{"type":19,"tag":76,"props":780,"children":782},{"className":781},[],[783],{"type":24,"value":784},"-t",{"type":24,"value":786}," 强制 tty 分配，用于命令执行。",{"type":19,"tag":296,"props":788,"children":790},{"className":298,"code":789,"language":300,"meta":8,"style":8},"ssh -A -D 1134 localhost -t ssh -A -R 1220:localhost:1134 [user]@remote-server\nexport http_proxy=socks5h:\u002F\u002F127.0.0.1:1220 https_proxy=socks5h:\u002F\u002F127.0.0.1:1220 all_proxy=socks5h:\u002F\u002F127.0.0.1:1220\n",[791],{"type":19,"tag":76,"props":792,"children":793},{"__ignoreMap":8},[794,842],{"type":19,"tag":306,"props":795,"children":796},{"class":308,"line":309},[797,801,805,809,813,817,821,825,829,833,837],{"type":19,"tag":306,"props":798,"children":799},{"style":313},[800],{"type":24,"value":518},{"type":19,"tag":306,"props":802,"children":803},{"style":521},[804],{"type":24,"value":658},{"type":19,"tag":306,"props":806,"children":807},{"style":521},[808],{"type":24,"value":524},{"type":19,"tag":306,"props":810,"children":811},{"style":521},[812],{"type":24,"value":667},{"type":19,"tag":306,"props":814,"children":815},{"style":319},[816],{"type":24,"value":672},{"type":19,"tag":306,"props":818,"children":819},{"style":521},[820],{"type":24,"value":677},{"type":19,"tag":306,"props":822,"children":823},{"style":319},[824],{"type":24,"value":682},{"type":19,"tag":306,"props":826,"children":827},{"style":521},[828],{"type":24,"value":658},{"type":19,"tag":306,"props":830,"children":831},{"style":521},[832],{"type":24,"value":691},{"type":19,"tag":306,"props":834,"children":835},{"style":319},[836],{"type":24,"value":696},{"type":19,"tag":306,"props":838,"children":839},{"style":699},[840],{"type":24,"value":841}," [user]@remote-server\n",{"type":19,"tag":306,"props":843,"children":844},{"class":308,"line":325},[845,850,855,859,864,868,873,877],{"type":19,"tag":306,"props":846,"children":847},{"style":705},[848],{"type":24,"value":849},"export",{"type":19,"tag":306,"props":851,"children":852},{"style":699},[853],{"type":24,"value":854}," http_proxy",{"type":19,"tag":306,"props":856,"children":857},{"style":705},[858],{"type":24,"value":708},{"type":19,"tag":306,"props":860,"children":861},{"style":699},[862],{"type":24,"value":863},"socks5h:\u002F\u002F127.0.0.1:1220 https_proxy",{"type":19,"tag":306,"props":865,"children":866},{"style":705},[867],{"type":24,"value":708},{"type":19,"tag":306,"props":869,"children":870},{"style":699},[871],{"type":24,"value":872},"socks5h:\u002F\u002F127.0.0.1:1220 all_proxy",{"type":19,"tag":306,"props":874,"children":875},{"style":705},[876],{"type":24,"value":708},{"type":19,"tag":306,"props":878,"children":879},{"style":699},[880],{"type":24,"value":881},"socks5h:\u002F\u002F127.0.0.1:1220\n",{"type":19,"tag":20,"props":883,"children":884},{},[885,887,893],{"type":24,"value":886},"可以使用 ",{"type":19,"tag":76,"props":888,"children":890},{"className":889},[],[891],{"type":24,"value":892},"ssh -v \u003CURL>",{"type":24,"value":894},"，查看日志来观察是否远程服务器使用了本机的密钥。",{"type":19,"tag":20,"props":896,"children":897},{},[898,900,906],{"type":24,"value":899},"使用 ",{"type":19,"tag":76,"props":901,"children":903},{"className":902},[],[904],{"type":24,"value":905},"curl -4 ip.sb",{"type":24,"value":907},"，查看远程服务器是否使用了本机作为代理，若成功你应该看到的是本机的IPv4。",{"type":19,"tag":222,"props":909,"children":911},{"id":910},"跳板",[912],{"type":24,"value":910},{"type":19,"tag":296,"props":914,"children":916},{"className":504,"code":915,"language":506,"meta":8,"style":8},"ssh -J jumpuser1@jumphost1,jumpuser2@jumphost2,...,jumpuserN@jumphostN user@host\n",[917],{"type":19,"tag":76,"props":918,"children":919},{"__ignoreMap":8},[920],{"type":19,"tag":306,"props":921,"children":922},{"class":308,"line":309},[923,927,932,937],{"type":19,"tag":306,"props":924,"children":925},{"style":313},[926],{"type":24,"value":518},{"type":19,"tag":306,"props":928,"children":929},{"style":521},[930],{"type":24,"value":931}," -J",{"type":19,"tag":306,"props":933,"children":934},{"style":319},[935],{"type":24,"value":936}," jumpuser1@jumphost1,jumpuser2@jumphost2,...,jumpuserN@jumphostN",{"type":19,"tag":306,"props":938,"children":939},{"style":319},[940],{"type":24,"value":941}," user@host\n",{"type":19,"tag":20,"props":943,"children":944},{},[945,947,953,955,961,963,969,971,977],{"type":24,"value":946},"登陆到 ",{"type":19,"tag":76,"props":948,"children":950},{"className":949},[],[951],{"type":24,"value":952},"—J",{"type":24,"value":954}," 指定的 ",{"type":19,"tag":76,"props":956,"children":958},{"className":957},[],[959],{"type":24,"value":960},"jumpuser1@jumphost1",{"type":24,"value":962},"，再从 ",{"type":19,"tag":76,"props":964,"children":966},{"className":965},[],[967],{"type":24,"value":968},"jumphost1",{"type":24,"value":970}," 登陆到 ",{"type":19,"tag":76,"props":972,"children":974},{"className":973},[],[975],{"type":24,"value":976},"jumpuser2@jumphost2",{"type":24,"value":978},"，以此类推来登陆到目标远程主机。在网络环境直接与目标主机隔离的时候有用，比如可以将 AWS 海外服务器作为跳板登陆其他海外的服务器。",{"type":19,"tag":222,"props":980,"children":982},{"id":981},"连接复用",[983],{"type":24,"value":981},{"type":19,"tag":222,"props":985,"children":987},{"id":986},"x11转发",[988],{"type":24,"value":989},"X11转发",{"type":19,"tag":222,"props":991,"children":993},{"id":992},"配置文件",[994],{"type":24,"value":992},{"type":19,"tag":20,"props":996,"children":997},{},[998],{"type":24,"value":999},"SSH可以在配置文件中使用任意的命令行参数。",{"type":19,"tag":222,"props":1001,"children":1003},{"id":1002},"reference",[1004],{"type":24,"value":37},{"type":19,"tag":1006,"props":1007,"children":1008},"ol",{},[1009,1019,1029,1039,1049],{"type":19,"tag":64,"props":1010,"children":1011},{},[1012],{"type":19,"tag":32,"props":1013,"children":1016},{"href":1014,"rel":1015},"https:\u002F\u002Ftldr.inbrowser.app\u002Fpages\u002Fcommon\u002Fssh",[54],[1017],{"type":24,"value":1018},"ssh - tldr pages",{"type":19,"tag":64,"props":1020,"children":1021},{},[1022],{"type":19,"tag":32,"props":1023,"children":1026},{"href":1024,"rel":1025},"https:\u002F\u002Fwww.ruanyifeng.com\u002Fblog\u002F2011\u002F12\u002Fssh_port_forwarding.html",[54],[1027],{"type":24,"value":1028},"SSH 原理与运用（二）：远程操作与端口转发",{"type":19,"tag":64,"props":1030,"children":1031},{},[1032],{"type":19,"tag":32,"props":1033,"children":1036},{"href":1034,"rel":1035},"https:\u002F\u002F201.ustclug.org\u002Fdev\u002Fssh\u002F",[54],[1037],{"type":24,"value":1038},"SSH 使用技巧 - Linux 201 by USTC LUG",{"type":19,"tag":64,"props":1040,"children":1041},{},[1042],{"type":19,"tag":32,"props":1043,"children":1046},{"href":1044,"rel":1045},"https:\u002F\u002Fsuperuser.com\u002Fquestions\u002F96489\u002Fan-ssh-tunnel-via-multiple-hops",[54],[1047],{"type":24,"value":1048},"An SSH tunnel via multiple hops - superuser.com",{"type":19,"tag":64,"props":1050,"children":1051},{},[1052],{"type":19,"tag":32,"props":1053,"children":1056},{"href":1054,"rel":1055},"https:\u002F\u002Fdocs.github.com\u002Fen\u002Fauthentication\u002Fconnecting-to-github-with-ssh\u002Fusing-ssh-agent-forwarding",[54],[1057],{"type":24,"value":1058},"Using SSH agent forwarding - GitHub Docs",{"type":19,"tag":20,"props":1060,"children":1061},{},[1062],{"type":24,"value":1063},"还在看的资料",{"type":19,"tag":20,"props":1065,"children":1066},{},[1067,1073],{"type":19,"tag":32,"props":1068,"children":1071},{"href":1069,"rel":1070},"https:\u002F\u002Fwww.baeldung.com\u002Flinux\u002Fssh-tunneling-and-proxying",[54],[1072],{"type":24,"value":1069},{"type":24,"value":1074}," 讲了更多关于 SSH Tunnel 和代理的。",{"type":19,"tag":20,"props":1076,"children":1077},{},[1078,1084],{"type":19,"tag":32,"props":1079,"children":1082},{"href":1080,"rel":1081},"https:\u002F\u002Fplantegg.github.io\u002F2019\u002F06\u002F02\u002F%E5%8F%B2%E4%B8%8A%E6%9C%80%E5%85%A8_SSH_%E6%9A%97%E9%BB%91%E6%8A%80%E5%B7%A7%E8%AF%A6%E8%A7%A3--%E6%94%B6%E8%97%8F%E4%BF%9D%E5%B9%B3%E5%AE%89\u002F",[54],[1083],{"type":24,"value":1080},{"type":24,"value":1085}," 讲了很多琐碎的东西，但似乎看起来写的不好，太过冗杂了，解释的也不清楚。",{"type":19,"tag":1087,"props":1088,"children":1089},"style",{},[1090],{"type":24,"value":1091},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":8,"searchDepth":325,"depth":339,"links":1093},[1094,1095,1100,1101,1102,1103,1104],{"id":224,"depth":325,"text":224},{"id":476,"depth":325,"text":479,"children":1096},[1097,1098,1099],{"id":488,"depth":339,"text":491},{"id":560,"depth":339,"text":560},{"id":603,"depth":339,"text":603},{"id":910,"depth":325,"text":910},{"id":981,"depth":325,"text":981},{"id":986,"depth":325,"text":989},{"id":992,"depth":325,"text":992},{"id":1002,"depth":325,"text":37},"markdown","content:posts:about-ssh-usage.md","content","posts\u002Fabout-ssh-usage.md","posts\u002Fabout-ssh-usage","md",{"_path":1112,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":1113,"description":1114,"date":1115,"categories":12,"tags":1116,"body":1118,"_type":1105,"_id":1409,"_source":1107,"_file":1410,"_stem":1411,"_extension":1110},"\u002Fposts\u002Fopensourcesoftwarestarttutorial","如何开始一个开源项目？","浅谈我对开源项目的认知。","2025-04-17 18:00:00",[1117],"开源",{"type":16,"children":1119,"toc":1391},[1120,1125,1130,1135,1140,1203,1208,1213,1236,1241,1246,1251,1257,1262,1268,1280,1286,1291,1297,1302,1308,1313,1318,1327,1332,1338,1381,1386],{"type":19,"tag":20,"props":1121,"children":1122},{},[1123],{"type":24,"value":1124},"接触开源零零散散也快有三年了，虽然听上去时间很长，但是我实际参与的开源项目寥寥无几，只是描述我的见闻而已。",{"type":19,"tag":20,"props":1126,"children":1127},{},[1128],{"type":24,"value":1129},"最基础的就是些开源相关的常识，比如开源协议，开源使用的工具等等，如果有意学习我相信大多数人很快就能掌握。我也就大致列了一些在下面。当然，最快速的方法是寻找一些新兴的正在开发的开源项目，观察其规范、行为乃至参与其中，这样的学习效率是最高的。",{"type":19,"tag":222,"props":1131,"children":1133},{"id":1132},"开源协议",[1134],{"type":24,"value":1132},{"type":19,"tag":486,"props":1136,"children":1138},{"id":1137},"常见的开源协议",[1139],{"type":24,"value":1137},{"type":19,"tag":60,"props":1141,"children":1142},{},[1143,1153,1163,1173,1183,1193],{"type":19,"tag":64,"props":1144,"children":1145},{},[1146,1151],{"type":19,"tag":68,"props":1147,"children":1148},{},[1149],{"type":24,"value":1150},"MIT License",{"type":24,"value":1152},"：这是一个非常宽松的协议，允许任何人几乎无限制地使用、复制、修改和分发代码。",{"type":19,"tag":64,"props":1154,"children":1155},{},[1156,1161],{"type":19,"tag":68,"props":1157,"children":1158},{},[1159],{"type":24,"value":1160},"Apache License 2.0",{"type":24,"value":1162},"：与MIT类似，但它增加了专利授权条款，并要求保留原始版权声明。",{"type":19,"tag":64,"props":1164,"children":1165},{},[1166,1171],{"type":19,"tag":68,"props":1167,"children":1168},{},[1169],{"type":24,"value":1170},"GPL（GNU General Public License）",{"type":24,"value":1172},"：强制衍生作品必须以相同的许可证发布，确保开源精神得以延续。",{"type":19,"tag":64,"props":1174,"children":1175},{},[1176,1181],{"type":19,"tag":68,"props":1177,"children":1178},{},[1179],{"type":24,"value":1180},"LGPL（GNU Lesser General Public License）",{"type":24,"value":1182},"：适用于库，它允许专有软件链接到该库而不需要开放其源码。",{"type":19,"tag":64,"props":1184,"children":1185},{},[1186,1191],{"type":19,"tag":68,"props":1187,"children":1188},{},[1189],{"type":24,"value":1190},"BSD Licenses",{"type":24,"value":1192},"：提供了两种版本，新BSD协议包含了禁止使用贡献者名字进行推广的条款。",{"type":19,"tag":64,"props":1194,"children":1195},{},[1196,1201],{"type":19,"tag":68,"props":1197,"children":1198},{},[1199],{"type":24,"value":1200},"AGPLv3（GNU Affero General Public License version 3）",{"type":24,"value":1202},":扩展了GPLv3（GNU General Public License version 3）的条款，特别针对通过网络提供服务的应用程序。",{"type":19,"tag":222,"props":1204,"children":1206},{"id":1205},"开源的平台",[1207],{"type":24,"value":1205},{"type":19,"tag":486,"props":1209,"children":1211},{"id":1210},"常用的开源平台",[1212],{"type":24,"value":1210},{"type":19,"tag":60,"props":1214,"children":1215},{},[1216,1226],{"type":19,"tag":64,"props":1217,"children":1218},{},[1219,1224],{"type":19,"tag":68,"props":1220,"children":1221},{},[1222],{"type":24,"value":1223},"GitHub",{"type":24,"value":1225},"：最流行的代码托管平台之一，支持Git版本控制。",{"type":19,"tag":64,"props":1227,"children":1228},{},[1229,1234],{"type":19,"tag":68,"props":1230,"children":1231},{},[1232],{"type":24,"value":1233},"GitLab",{"type":24,"value":1235},"：提供更多的CI\u002FCD集成选项，并且可以自托管。",{"type":19,"tag":222,"props":1237,"children":1239},{"id":1238},"开源使用的工具",[1240],{"type":24,"value":1238},{"type":19,"tag":486,"props":1242,"children":1244},{"id":1243},"版本控制",[1245],{"type":24,"value":1243},{"type":19,"tag":20,"props":1247,"children":1248},{},[1249],{"type":24,"value":1250},"使用Git进行版本控制, 跟踪代码更改历史, 多人合作.",{"type":19,"tag":486,"props":1252,"children":1254},{"id":1253},"git-hook",[1255],{"type":24,"value":1256},"Git Hook",{"type":19,"tag":20,"props":1258,"children":1259},{},[1260],{"type":24,"value":1261},"Hook 脚本可以在特定时间发生时自动运行, 顾名思义 Hook(钩子)就是在某事发生必然发生的事, 用途比如提交前检查代码风格或者提交后部署代码.",{"type":19,"tag":486,"props":1263,"children":1265},{"id":1264},"git-ignore",[1266],{"type":24,"value":1267},"Git Ignore",{"type":19,"tag":20,"props":1269,"children":1270},{},[1271,1272,1278],{"type":24,"value":899},{"type":19,"tag":76,"props":1273,"children":1275},{"className":1274},[],[1276],{"type":24,"value":1277},".gitignore",{"type":24,"value":1279}," 文件列出不应被 Git 追踪的文件, 例如编译产物或IDE配置文件.",{"type":19,"tag":486,"props":1281,"children":1283},{"id":1282},"issue-模板",[1284],{"type":24,"value":1285},"Issue 模板",{"type":19,"tag":20,"props":1287,"children":1288},{},[1289],{"type":24,"value":1290},"创建 issue 模版可以帮助开源社区贡献者清晰描述问题, 包括复现步骤和期望行为. 规范的 issue 不仅可以帮助提问者快速的解决问题, 节省维护者了解问题的精力, 还节省了后续查询相关 issues 的用户的时间. 遇到过不少不规范 issue 的项目, 去查 issue 查个半天会发现一些提问者描述的既不清晰, 而且在没有给出解决方案(不管可行不可行)的情况下就把 issue 关闭了.",{"type":19,"tag":486,"props":1292,"children":1294},{"id":1293},"pull-request模板",[1295],{"type":24,"value":1296},"Pull Request模板",{"type":19,"tag":20,"props":1298,"children":1299},{},[1300],{"type":24,"value":1301},"PR模板有助于确保所有必要的信息都被包含在内，如变更描述、测试结果等。可以方便审查代码.",{"type":19,"tag":486,"props":1303,"children":1305},{"id":1304},"cicd",[1306],{"type":24,"value":1307},"CI\u002FCD",{"type":19,"tag":20,"props":1309,"children":1310},{},[1311],{"type":24,"value":1312},"持续集成和持续部署工具，如GitHub Actions、GitLab CI、Jenkins等，可以自动化测试和部署流程。比如自动编译 Release, 自动部署, 自动打包 Docker 镜像等等.",{"type":19,"tag":222,"props":1314,"children":1316},{"id":1315},"宣传",[1317],{"type":24,"value":1315},{"type":19,"tag":1319,"props":1320,"children":1321},"blockquote",{},[1322],{"type":19,"tag":20,"props":1323,"children":1324},{},[1325],{"type":24,"value":1326},"东亚文化是一种集体主义，社会鼓吹的是踏实、谦虚、低调，不要突出自己。所以很多人喜欢在集体中默默无闻的奉献，这是最经典的一种驯化。长期演变下来，你会发现，身边很多人是不擅长或者说不屑于展示自我的，因为我们的文化里常常将\"Selling yourself\"等同于一种负面的道德品格。\n当你做完一件事情其实还不够，你得\"Show your work\"，把它\"贩卖\"出去。",{"type":19,"tag":20,"props":1328,"children":1329},{},[1330],{"type":24,"value":1331},"我亲眼目睹了一个开源项目在宣传前后star数的井喷，在那个项目的开发者还没有下场宣传的时候，它不到一千的star，但是在宣传之后，那个项目的star在短短两天之内就到了五千star。\"酒香也怕巷子深\"，因此好的宣传也是做好一个开源项目必要的。",{"type":19,"tag":222,"props":1333,"children":1335},{"id":1334},"开源软件如何进行宣传",[1336],{"type":24,"value":1337},"开源软件如何进行宣传？",{"type":19,"tag":60,"props":1339,"children":1340},{},[1341,1351,1361,1371],{"type":19,"tag":64,"props":1342,"children":1343},{},[1344,1349],{"type":19,"tag":68,"props":1345,"children":1346},{},[1347],{"type":24,"value":1348},"社交媒体",{"type":24,"value":1350},"：国内利用Bilibili、知乎、小红书, 国外利用Twitter、LinkedIn等社交网络分享项目进展。",{"type":19,"tag":64,"props":1352,"children":1353},{},[1354,1359],{"type":19,"tag":68,"props":1355,"children":1356},{},[1357],{"type":24,"value":1358},"技术博客",{"type":24,"value":1360},"：撰写关于项目的博客文章，解释其用途和技术细节。",{"type":19,"tag":64,"props":1362,"children":1363},{},[1364,1369],{"type":19,"tag":68,"props":1365,"children":1366},{},[1367],{"type":24,"value":1368},"SEO优化",{"type":24,"value":1370},"：确保项目页面针对搜索引擎进行了优化，以便更容易被发现。",{"type":19,"tag":64,"props":1372,"children":1373},{},[1374,1379],{"type":19,"tag":68,"props":1375,"children":1376},{},[1377],{"type":24,"value":1378},"多交朋友",{"type":24,"value":1380},"：与其他相关的开源项目或公司建立合作关系扩大影响力。",{"type":19,"tag":20,"props":1382,"children":1383},{},[1384],{"type":24,"value":1385},"当然开源项目是经过众人不断用实践检验的。清晰的文档，用户友好的指引，会有助于新人的到来。规范的代码实践和沟通机制，会使得贡献者和维护者更有效的发展项目（对于正在不断开发的项目）。",{"type":19,"tag":20,"props":1387,"children":1388},{},[1389],{"type":24,"value":1390},"按照国内的环境，对于个人来说，开源是一项要求极高，且和做慈善没有区别的事。这种情况估计还会持续下去。",{"title":8,"searchDepth":325,"depth":339,"links":1392},[1393,1396,1399,1407,1408],{"id":1132,"depth":325,"text":1132,"children":1394},[1395],{"id":1137,"depth":339,"text":1137},{"id":1205,"depth":325,"text":1205,"children":1397},[1398],{"id":1210,"depth":339,"text":1210},{"id":1238,"depth":325,"text":1238,"children":1400},[1401,1402,1403,1404,1405,1406],{"id":1243,"depth":339,"text":1243},{"id":1253,"depth":339,"text":1256},{"id":1264,"depth":339,"text":1267},{"id":1282,"depth":339,"text":1285},{"id":1293,"depth":339,"text":1296},{"id":1304,"depth":339,"text":1307},{"id":1315,"depth":325,"text":1315},{"id":1334,"depth":325,"text":1337},"content:posts:OpenSourceSoftwareStartTutorial.md","posts\u002FOpenSourceSoftwareStartTutorial.md","posts\u002FOpenSourceSoftwareStartTutorial",{"_path":1413,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":1414,"description":1415,"date":1416,"categories":1417,"tags":1418,"body":1420,"_type":1105,"_id":1461,"_source":1107,"_file":1462,"_stem":1463,"_extension":1110},"\u002Fposts\u002Fmotivation","渴求动力","有意识的生活并主动地行动会使得生活更美好。","2025-03-05 00:44:57","色伏集",[1419],"随笔",{"type":16,"children":1421,"toc":1459},[1422,1427,1432,1437,1449,1454],{"type":19,"tag":20,"props":1423,"children":1424},{},[1425],{"type":24,"value":1426},"今天下午阴天，考完智能控制，和朋友去山明三楼吃面。朋友时不时会问出奇怪的问题，他说：如果我回到大二刚开始的时候，会选择先和他们宿舍的谁先接触，再从这个点扩散到整个面，去联系上其他人。我按下心头对问题来源的疑惑，回应道：不知道。心中苦涩居多，或是某种不明的感受，我说不出来，但是总是不愿意那么回忆和假设的。“我是不会主动去认识人的， 大二。”，我拒绝了这个问题的回答。另外把先前按耐住的疑惑问了出来，为什么你会突然问这个。",{"type":19,"tag":20,"props":1428,"children":1429},{},[1430],{"type":24,"value":1431},"他回答，因为经常有人来他宿舍找他，但却不是找他，而是找其他人，只是找其他人之前会去和他打招呼聊两句天说两句傻逼话而已。他觉得自己成了“公交车”。我没回应。说起了我大二的事情。",{"type":19,"tag":20,"props":1433,"children":1434},{},[1435],{"type":24,"value":1436},"简短地说，就是大一大部分社交的场所，被突然破坏了（以我当时认知的判断）。我事后回忆下来，感觉就像一个人逃离灾难，我逃离了我大一耕耘的地方。我被远离了，不，我觉得我被远离了，我害怕了，于是我先主动远离了。是的，来到大二的我失去了很多。",{"type":19,"tag":20,"props":1438,"children":1439},{},[1440,1442,1447],{"type":24,"value":1441},"我在这种失去中怅然，并没有去寻找新的方向和维护好自己要做的事情。",{"type":19,"tag":68,"props":1443,"children":1444},{},[1445],{"type":24,"value":1446},"我对自己的生活并没有主动性",{"type":24,"value":1448},"，我只是等待着不可避免的那日到来，在眼前不可避免地看到了到来后，我才会慢悠悠地反应过来，好像睡了个觉，才来对付那来临的一切。但这我是被我预见到的，连我自己也是被我预见到了的。",{"type":19,"tag":20,"props":1450,"children":1451},{},[1452],{"type":24,"value":1453},"或是这种主动性缺失，致使我这几年自我效能感不高，垂头丧气。一边是自己拿刀子捅自己，逼迫自己前进；另一边是躺在地上，等着外界给自己捅刀子的时候吓的逃跑。毫无疑问，我在这种断续地无意识状态选择了后者，我逃避了有意识的思考与解决方案。而是选择将权力交给他者。我死不足惜。",{"type":19,"tag":20,"props":1455,"children":1456},{},[1457],{"type":24,"value":1458},"这种深沉的自我惩罚，也是我与外界对立和恐惧的一种表现。我不期待哪天我突然有改变，只是想把今日的我写下，或许某日的我翻看后又会尴尬的不行呢？",{"title":8,"searchDepth":325,"depth":339,"links":1460},[],"content:posts:Motivation.md","posts\u002FMotivation.md","posts\u002FMotivation",{"_path":1465,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":1466,"description":1467,"date":1468,"categories":1417,"tags":1469,"body":1470,"_type":1105,"_id":1525,"_source":1107,"_file":1526,"_stem":1527,"_extension":1110},"\u002Fposts\u002F2024summary","2024年终总结","啊，痛彻的时光；啊，悲怆的人！","2025-01-01 01:00:00",[1419],{"type":16,"children":1471,"toc":1523},[1472,1480,1485],{"type":19,"tag":1319,"props":1473,"children":1474},{},[1475],{"type":19,"tag":20,"props":1476,"children":1477},{},[1478],{"type":24,"value":1479},"我最后还是写了年终总结，即使数字已经转到了下一年。",{"type":19,"tag":20,"props":1481,"children":1482},{},[1483],{"type":24,"value":1484},"年终总结：",{"type":19,"tag":1006,"props":1486,"children":1487},{},[1488,1493,1498,1503,1508,1513,1518],{"type":19,"tag":64,"props":1489,"children":1490},{},[1491],{"type":24,"value":1492},"比赛中的人际没有处理好，痛苦地拖延和解决；",{"type":19,"tag":64,"props":1494,"children":1495},{},[1496],{"type":24,"value":1497},"漂浮感；",{"type":19,"tag":64,"props":1499,"children":1500},{},[1501],{"type":24,"value":1502},"尝试感受经济的紧迫，勤工俭学；",{"type":19,"tag":64,"props":1504,"children":1505},{},[1506],{"type":24,"value":1507},"看了很多 live，买了一些 CD；",{"type":19,"tag":64,"props":1509,"children":1510},{},[1511],{"type":24,"value":1512},"家教、实习，接近社会；",{"type":19,"tag":64,"props":1514,"children":1515},{},[1516],{"type":24,"value":1517},"还是模糊的不知道自己的方位；",{"type":19,"tag":64,"props":1519,"children":1520},{},[1521],{"type":24,"value":1522},"买了自己的琴；",{"title":8,"searchDepth":325,"depth":339,"links":1524},[],"content:posts:2024summary.md","posts\u002F2024summary.md","posts\u002F2024summary",{"_path":1529,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":1530,"description":1531,"date":1532,"categories":12,"tags":1533,"body":1535,"_type":1105,"_id":1883,"_source":1107,"_file":1884,"_stem":1885,"_extension":1110},"\u002Fposts\u002Fvps-crash-startup","快速搭建个人VPS","如何快速搭建个人VPS。","2024-12-31 19:00:00",[1534],"VPS",{"type":16,"children":1536,"toc":1872},[1537,1568,1573,1578,1584,1597,1671,1676,1687,1692,1698,1711,1717,1730,1735,1741,1746,1752,1764,1769,1774,1779,1787,1792,1796,1868],{"type":19,"tag":20,"props":1538,"children":1539},{},[1540,1541,1545,1547,1552,1553,1559,1560,1566],{"type":24,"value":30},{"type":19,"tag":32,"props":1542,"children":1543},{"href":34},[1544],{"type":24,"value":37},{"type":24,"value":1546}," 部分，根据以下教程，并结合 ",{"type":19,"tag":76,"props":1548,"children":1550},{"className":1549},[],[1551],{"type":24,"value":1534},{"type":24,"value":255},{"type":19,"tag":76,"props":1554,"children":1556},{"className":1555},[],[1557],{"type":24,"value":1558},"optimize",{"type":24,"value":255},{"type":19,"tag":76,"props":1561,"children":1563},{"className":1562},[],[1564],{"type":24,"value":1565},"订阅聚合",{"type":24,"value":1567},"等关键词，可以检索出 VPS 搭建的相应教程。",{"type":19,"tag":222,"props":1569,"children":1571},{"id":1570},"拥有一台非大陆的服务器",[1572],{"type":24,"value":1570},{"type":19,"tag":20,"props":1574,"children":1575},{},[1576],{"type":24,"value":1577},"VPS(Virtual Private Server)，顾名思义你需要拥有至少一台非大陆的服务器，推荐的操作系统是 Debian12(RAM>=1GB)。后面的步骤有配置 SSH 免密访问，禁止密码登录，乃至修改默认 sshd 端口。这部分操作是出于远程连接的安全性考虑的，我在此不赘述，感兴趣的读者自行检索即可找到相应教程（亦可参考引用部分的文章）。",{"type":19,"tag":222,"props":1579,"children":1581},{"id":1580},"通过脚本一键搭建-v2ray",[1582],{"type":24,"value":1583},"通过脚本一键搭建 V2Ray",{"type":19,"tag":20,"props":1585,"children":1586},{},[1587,1589,1595],{"type":24,"value":1588},"233Boy 提供了完整的脚本用于创建 V2Ray 节点。代码以 GPL-3.0 协议",{"type":19,"tag":32,"props":1590,"children":1593},{"href":1591,"rel":1592},"https:\u002F\u002Fgithub.com\u002F233boy\u002Fv2ray",[54],[1594],{"type":24,"value":1117},{"type":24,"value":1596},"在 Github 上。",{"type":19,"tag":296,"props":1598,"children":1600},{"className":504,"code":1599,"language":506,"meta":8,"style":8},"# 下载并运行 233Boy 提供的 V2Ray 安装脚本（会默认生成使用 Vmess-TCP 的链接）\nbash \u003C(wget -qO- -o- https:\u002F\u002Fgit.io\u002Fv2ray.sh)\n# 添加新节点\nv2ray add Vmess-TCP-dynamic-port\n",[1601],{"type":19,"tag":76,"props":1602,"children":1603},{"__ignoreMap":8},[1604,1612,1644,1652],{"type":19,"tag":306,"props":1605,"children":1606},{"class":308,"line":309},[1607],{"type":19,"tag":306,"props":1608,"children":1609},{"style":343},[1610],{"type":24,"value":1611},"# 下载并运行 233Boy 提供的 V2Ray 安装脚本（会默认生成使用 Vmess-TCP 的链接）\n",{"type":19,"tag":306,"props":1613,"children":1614},{"class":308,"line":325},[1615,1619,1624,1629,1634,1639],{"type":19,"tag":306,"props":1616,"children":1617},{"style":313},[1618],{"type":24,"value":506},{"type":19,"tag":306,"props":1620,"children":1621},{"style":319},[1622],{"type":24,"value":1623}," \u003C(",{"type":19,"tag":306,"props":1625,"children":1626},{"style":313},[1627],{"type":24,"value":1628},"wget",{"type":19,"tag":306,"props":1630,"children":1631},{"style":521},[1632],{"type":24,"value":1633}," -qO-",{"type":19,"tag":306,"props":1635,"children":1636},{"style":521},[1637],{"type":24,"value":1638}," -o-",{"type":19,"tag":306,"props":1640,"children":1641},{"style":319},[1642],{"type":24,"value":1643}," https:\u002F\u002Fgit.io\u002Fv2ray.sh)\n",{"type":19,"tag":306,"props":1645,"children":1646},{"class":308,"line":339},[1647],{"type":19,"tag":306,"props":1648,"children":1649},{"style":343},[1650],{"type":24,"value":1651},"# 添加新节点\n",{"type":19,"tag":306,"props":1653,"children":1655},{"class":308,"line":1654},4,[1656,1661,1666],{"type":19,"tag":306,"props":1657,"children":1658},{"style":313},[1659],{"type":24,"value":1660},"v2ray",{"type":19,"tag":306,"props":1662,"children":1663},{"style":319},[1664],{"type":24,"value":1665}," add",{"type":19,"tag":306,"props":1667,"children":1668},{"style":319},[1669],{"type":24,"value":1670}," Vmess-TCP-dynamic-port\n",{"type":19,"tag":20,"props":1672,"children":1673},{},[1674],{"type":24,"value":1675},"此时会得到我们新生成的链接，对于 V2RayN 用户，此时复制粘贴进 V2RayN 即可使用（支持ShadowRocket、V2RayN）。但是对于其他 VPN 客户端，比如 Clash系列来说，并不一定能直接支持，此时需要部署订阅转换服务。",{"type":19,"tag":1319,"props":1677,"children":1678},{},[1679],{"type":19,"tag":20,"props":1680,"children":1681},{},[1682],{"type":19,"tag":68,"props":1683,"children":1684},{},[1685],{"type":24,"value":1686},"为什么需要自己搭建自己的订阅转换服务而不是使用其他人的？",{"type":19,"tag":20,"props":1688,"children":1689},{},[1690],{"type":24,"value":1691},"我也在思量这个问题。",{"type":19,"tag":222,"props":1693,"children":1695},{"id":1694},"vps-性能调优",[1696],{"type":24,"value":1697},"VPS 性能调优",{"type":19,"tag":20,"props":1699,"children":1700},{},[1701,1702,1709],{"type":24,"value":30},{"type":19,"tag":32,"props":1703,"children":1706},{"href":1704,"rel":1705},"https:\u002F\u002Fwww.taurusxin.com\u002Flinux-network-optimize\u002F",[54],[1707],{"type":24,"value":1708},"Linux 网络优化",{"type":24,"value":1710},"，运行脚本前请先下载 speedtest 进行测速，对比优化前后速度，避免错误的优化。",{"type":19,"tag":222,"props":1712,"children":1714},{"id":1713},"使用-cloudflare-扩展-vps-网络出口",[1715],{"type":24,"value":1716},"使用 CloudFlare 扩展 VPS 网络出口",{"type":19,"tag":20,"props":1718,"children":1719},{},[1720,1721,1728],{"type":24,"value":30},{"type":19,"tag":32,"props":1722,"children":1725},{"href":1723,"rel":1724},"https:\u002F\u002Fp3terx.com\u002Farchives\u002Fuse-cloudflare-warp-to-add-extra-ipv4-or-ipv6-network-support-to-vps-servers-for-free.html",[54],[1726],{"type":24,"value":1727},"Cloudflare WARP 教程：给 VPS 额外添加“原生” IPv4\u002FIPv6 双栈网络出口",{"type":24,"value":1729},"。一般而言所购买的服务器只有 IPv4。我们可以通过 warp 添加 IPv6 并调整 v4\u002Fv6 的使用优先级，将默认的出站 IP转成 warp 的 IP。",{"type":19,"tag":20,"props":1731,"children":1732},{},[1733],{"type":24,"value":1734},"我的建议是给 IPv4 only 的服务器只添加 IPv6 warp, 并且 IPv6优先于 IPv4（如何确认上述文章有提及）。",{"type":19,"tag":222,"props":1736,"children":1738},{"id":1737},"部署订阅转换服务可选",[1739],{"type":24,"value":1740},"部署订阅转换服务（可选）",{"type":19,"tag":20,"props":1742,"children":1743},{},[1744],{"type":24,"value":1745},"最好拥有自己的域名，国内外的域名供应商皆可。",{"type":19,"tag":222,"props":1747,"children":1749},{"id":1748},"使用-cloudflare-pages-部署订阅链接",[1750],{"type":24,"value":1751},"使用 CloudFlare Pages 部署订阅链接",{"type":19,"tag":20,"props":1753,"children":1754},{},[1755,1757],{"type":24,"value":1756},"最好拥有自己的域名，一般购买很方便且可以很便宜。教程参见 ",{"type":19,"tag":32,"props":1758,"children":1761},{"href":1759,"rel":1760},"https:\u002F\u002Fgithub.com\u002Fcmliu\u002FCF-Workers-SUB?tab=readme-ov-file#pages-%E9%83%A8%E7%BD%B2%E6%96%B9%E6%B3%95-%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B",[54],[1762],{"type":24,"value":1763},"Pages 部署方法",{"type":19,"tag":222,"props":1765,"children":1767},{"id":1766},"总结",[1768],{"type":24,"value":1766},{"type":19,"tag":20,"props":1770,"children":1771},{},[1772],{"type":24,"value":1773},"按照如上步骤，可以得到个人使用的性能良好的 VPS，从而可以更好地浏览和使用互联网上的资源。",{"type":19,"tag":222,"props":1775,"children":1777},{"id":1776},"额外的问题",[1778],{"type":24,"value":1776},{"type":19,"tag":1319,"props":1780,"children":1781},{},[1782],{"type":19,"tag":20,"props":1783,"children":1784},{},[1785],{"type":24,"value":1786},"无法访问引用的网页（比如 GitHub、个人博客）怎么办？",{"type":19,"tag":20,"props":1788,"children":1789},{},[1790],{"type":24,"value":1791},"考虑安装 Watt Toolkit，其提供 GitHub 网络加速(通过修改 Hosts 的方式)。",{"type":19,"tag":222,"props":1793,"children":1794},{"id":1002},[1795],{"type":24,"value":37},{"type":19,"tag":1006,"props":1797,"children":1798},{},[1799,1809,1819,1828,1840,1850,1858],{"type":19,"tag":64,"props":1800,"children":1801},{},[1802],{"type":19,"tag":32,"props":1803,"children":1806},{"href":1804,"rel":1805},"https:\u002F\u002F233boy.com\u002Fv2ray\u002Fv2ray-server\u002F",[54],[1807],{"type":24,"value":1808},"V2Ray 一键搭建详细图文教程（小白试用）-233Boy",{"type":19,"tag":64,"props":1810,"children":1811},{},[1812],{"type":19,"tag":32,"props":1813,"children":1816},{"href":1814,"rel":1815},"https:\u002F\u002Fgithub.com\u002F233boy\u002Fv2ray\u002Fwiki\u002FV2Ray%E6%90%AD%E5%BB%BA%E8%AF%A6%E7%BB%86%E5%9B%BE%E6%96%87%E6%95%99%E7%A8%8B",[54],[1817],{"type":24,"value":1818},"V2Ray搭建详细图文教程 - 233Boy",{"type":19,"tag":64,"props":1820,"children":1821},{},[1822],{"type":19,"tag":32,"props":1823,"children":1825},{"href":1704,"rel":1824},[54],[1826],{"type":24,"value":1827},"VPS 网速优化",{"type":19,"tag":64,"props":1829,"children":1830},{},[1831,1833],{"type":24,"value":1832},"订阅链接汇聚 ",{"type":19,"tag":32,"props":1834,"children":1837},{"href":1835,"rel":1836},"https:\u002F\u002Fgithub.com\u002Fcmliu\u002FCF-Workers-SUB",[54],[1838],{"type":24,"value":1839},"cmliu\u002FCF-Workers-SUB",{"type":19,"tag":64,"props":1841,"children":1842},{},[1843],{"type":19,"tag":32,"props":1844,"children":1847},{"href":1845,"rel":1846},"https:\u002F\u002Fwww.animmouse.com\u002Fp\u002Fsetup-cloudflare-warp-on-ipv6-only-vps\u002F",[54],[1848],{"type":24,"value":1849},"Setup Cloudflare WARP on IPv6 Only VPS",{"type":19,"tag":64,"props":1851,"children":1852},{},[1853],{"type":19,"tag":32,"props":1854,"children":1856},{"href":1723,"rel":1855},[54],[1857],{"type":24,"value":1727},{"type":19,"tag":64,"props":1859,"children":1860},{},[1861],{"type":19,"tag":32,"props":1862,"children":1865},{"href":1863,"rel":1864},"https:\u002F\u002Flinux.do\u002Ft\u002Ftopic\u002F160305",[54],[1866],{"type":24,"value":1867},"【配置优化】我拿到VPS服务器必做的那些事",{"type":19,"tag":1087,"props":1869,"children":1870},{},[1871],{"type":24,"value":1091},{"title":8,"searchDepth":325,"depth":339,"links":1873},[1874,1875,1876,1877,1878,1879,1880,1881,1882],{"id":1570,"depth":325,"text":1570},{"id":1580,"depth":325,"text":1583},{"id":1694,"depth":325,"text":1697},{"id":1713,"depth":325,"text":1716},{"id":1737,"depth":325,"text":1740},{"id":1748,"depth":325,"text":1751},{"id":1766,"depth":325,"text":1766},{"id":1776,"depth":325,"text":1776},{"id":1002,"depth":325,"text":37},"content:posts:VPS-crash-startup.md","posts\u002FVPS-crash-startup.md","posts\u002FVPS-crash-startup",{"_path":1887,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":1888,"description":1889,"date":1890,"categories":12,"tags":1891,"body":1894,"_type":1105,"_id":2089,"_source":1107,"_file":2090,"_stem":2091,"_extension":1110},"\u002Fposts\u002Fdata-label-software","AI数据（自动）标注软件概述","对市面上目前的AI数据（自动）标注软件进行调研。","2024-12-20 14:00:00",[1892,1893],"数据标注","深度学习",{"type":16,"children":1895,"toc":2087},[1896,1901,1906,1911,1916,1924,1946,1951,2035,2040,2055],{"type":19,"tag":20,"props":1897,"children":1898},{},[1899],{"type":24,"value":1900},"数据驱动的深度学习已经成为了计算机科学解决现实问题的一大强有力的解决方案。而对于深度学习数据是重中之重。以我浅薄的经验来看，对于现实世界中的大多数任务，所使用数据质量的高低甚至比模型的工作更为重要。一个好的数据就是成功的一半。",{"type":19,"tag":20,"props":1902,"children":1903},{},[1904],{"type":24,"value":1905},"涉及有监督的学习需要数据标注。而人工数据标注作为苦力活一直为人所诟病，认为这并不值得去学习。我认为，其中的关键并不在如何标注数据，而是怎样的数据标注是好的，或者说数据应当标注成什么样。这些问题其实在实践中已经积累下了不少的答案，我们已经有了“最佳实践”。",{"type":19,"tag":20,"props":1907,"children":1908},{},[1909],{"type":24,"value":1910},"不同的数据领域划分了不同的任务。而一些任务存在了令人满意的通解，比如视觉上的 SAM、NLP上的 Transformer 系，Audio上的解决方案也很成熟。如何从一个成熟的解决方案中让自己的项目更自动化的受益？这就是数据自动标注所做的事。",{"type":19,"tag":20,"props":1912,"children":1913},{},[1914],{"type":24,"value":1915},"举例，对于小的细分的尚且没有人做的领域任务，且使用深度学习的方法是可行的（而可行性多半决定于数据的质量和数量）。这时使用通用的领域模型对新任务自动的进行标注（乃至交互式标注），可以大大省去新任务的数据处理时间（甚至获得更高质量的数据）。这就是从成熟解决方案更自动化地受益的所指。",{"type":19,"tag":1319,"props":1917,"children":1918},{},[1919],{"type":19,"tag":20,"props":1920,"children":1921},{},[1922],{"type":24,"value":1923},"当我们在浏览器上搜索某样东西时，其实我们是假定使用浏览器的某人遇到了同样（相似）的问题并且有了解决方案。类似的，当我们有了一个想法的时候，你需要审查一下世界上有没有其他人早已经提出了类似的想法。",{"type":19,"tag":20,"props":1925,"children":1926},{},[1927,1929,1936,1938,1945],{"type":24,"value":1928},"AI4S，这是很自然的想法，将AI用于数据标注，并且现实中已经存在实践。考虑到数据安全性问题以及我所能接触到的调研对象有限，下面仅列举无数据安全问题的开源项目。首先简单分类为领域特定的数据标注和通用类的数据标注。更详细的可以参见 ",{"type":19,"tag":32,"props":1930,"children":1933},{"href":1931,"rel":1932},"https:\u002F\u002Fgithub.com\u002Fhumansignal\u002Fawesome-data-labeling",[54],[1934],{"type":24,"value":1935},"awesome-data-labeling",{"type":24,"value":1937}," 和 ",{"type":19,"tag":32,"props":1939,"children":1942},{"href":1940,"rel":1941},"https:\u002F\u002Fgithub.com\u002Fmingx9527\u002FData_Label_Tools",[54],[1943],{"type":24,"value":1944},"Data_Label_Tools",{"type":24,"value":58},{"type":19,"tag":20,"props":1947,"children":1948},{},[1949],{"type":24,"value":1950},"领域特定：",{"type":19,"tag":60,"props":1952,"children":1953},{},[1954,1959,1977,1995,2013,2018],{"type":19,"tag":64,"props":1955,"children":1956},{},[1957],{"type":24,"value":1958},"CV：",{"type":19,"tag":64,"props":1960,"children":1961},{},[1962],{"type":19,"tag":60,"props":1963,"children":1964},{},[1965],{"type":19,"tag":64,"props":1966,"children":1967},{},[1968,1975],{"type":19,"tag":32,"props":1969,"children":1972},{"href":1970,"rel":1971},"https:\u002F\u002Fwww.labelme.io\u002F",[54],[1973],{"type":24,"value":1974},"label-me",{"type":24,"value":1976}," FOSS",{"type":19,"tag":64,"props":1978,"children":1979},{},[1980],{"type":19,"tag":60,"props":1981,"children":1982},{},[1983],{"type":19,"tag":64,"props":1984,"children":1985},{},[1986,1993],{"type":19,"tag":32,"props":1987,"children":1990},{"href":1988,"rel":1989},"https:\u002F\u002Fgithub.com\u002FCVHub520\u002FX-AnyLabeling",[54],[1991],{"type":24,"value":1992},"X-AnyLabeling",{"type":24,"value":1994}," GPL-3.0",{"type":19,"tag":64,"props":1996,"children":1997},{},[1998],{"type":19,"tag":60,"props":1999,"children":2000},{},[2001],{"type":19,"tag":64,"props":2002,"children":2003},{},[2004,2011],{"type":19,"tag":32,"props":2005,"children":2008},{"href":2006,"rel":2007},"https:\u002F\u002Fgithub.com\u002FHumanSignal\u002FlabelImg",[54],[2009],{"type":24,"value":2010},"label-img",{"type":24,"value":2012}," MIT(且已经 Archive, 被并入 label-studio)",{"type":19,"tag":64,"props":2014,"children":2015},{},[2016],{"type":24,"value":2017},"NLP:",{"type":19,"tag":64,"props":2019,"children":2020},{},[2021],{"type":19,"tag":60,"props":2022,"children":2023},{},[2024],{"type":19,"tag":64,"props":2025,"children":2026},{},[2027,2034],{"type":19,"tag":32,"props":2028,"children":2031},{"href":2029,"rel":2030},"https:\u002F\u002Fgithub.com\u002Frisesoft-y9\u002FData-Labeling",[54],[2032],{"type":24,"value":2033},"data-labeling",{"type":24,"value":1994},{"type":19,"tag":20,"props":2036,"children":2037},{},[2038],{"type":24,"value":2039},"通用类：",{"type":19,"tag":60,"props":2041,"children":2042},{},[2043],{"type":19,"tag":64,"props":2044,"children":2045},{},[2046,2053],{"type":19,"tag":32,"props":2047,"children":2050},{"href":2048,"rel":2049},"https:\u002F\u002Fgithub.com\u002FHumanSignal\u002Flabel-studio\u002F",[54],[2051],{"type":24,"value":2052},"label-studio",{"type":24,"value":2054}," Apache-2.0",{"type":19,"tag":20,"props":2056,"children":2057},{},[2058,2060,2067,2069,2076,2078,2085],{"type":24,"value":2059},"按企业整理的话。国外有 ",{"type":19,"tag":32,"props":2061,"children":2064},{"href":2062,"rel":2063},"https:\u002F\u002Fhumansignal.com\u002F",[54],[2065],{"type":24,"value":2066},"HumanSignal",{"type":24,"value":2068},"。国内有",{"type":19,"tag":32,"props":2070,"children":2073},{"href":2071,"rel":2072},"https:\u002F\u002Fstardust.ai\u002F",[54],[2074],{"type":24,"value":2075},"星尘",{"type":24,"value":2077}," 、",{"type":19,"tag":32,"props":2079,"children":2082},{"href":2080,"rel":2081},"https:\u002F\u002Fwww.risesoft.net\u002F",[54],[2083],{"type":24,"value":2084},"有生",{"type":24,"value":2086},"。HumanSignal 和 星尘是较早开始进入数据标注领域的。有生是今年才开始进入数据标注软件，并在 ToG 业务上有了进展。",{"title":8,"searchDepth":325,"depth":339,"links":2088},[],"content:posts:data-label-software.md","posts\u002Fdata-label-software.md","posts\u002Fdata-label-software",{"_path":2093,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2094,"description":2095,"date":2096,"categories":1417,"tags":2097,"body":2098,"_type":1105,"_id":2127,"_source":1107,"_file":2128,"_stem":2129,"_extension":1110},"\u002Fposts\u002Fself-destruction","生活的崩坏与自我毁灭","是什么在牵引着我？我的行为，我的思想？我的感受？我所处的地方？它们在何处？","2024-12-19 12:00:00",[1419],{"type":16,"children":2099,"toc":2125},[2100,2105,2110,2120],{"type":19,"tag":20,"props":2101,"children":2102},{},[2103],{"type":24,"value":2104},"今天是单周，我按计划翘掉了不签到的早八，但是睡过了签到的早十。一觉起来翻看手机，发现室友在签到的时候问我，“你上课又没来吗”，我回答是。",{"type":19,"tag":20,"props":2106,"children":2107},{},[2108],{"type":24,"value":2109},"如果只是归咎原因，那么可以归于我的毫不在意和单双周的难记忆。但我，在感到有必要要去做的事情的时候，是会早早醒来的。我应当是感到了那样的生活是在消耗我，起码是消耗现在的我。",{"type":19,"tag":20,"props":2111,"children":2112},{},[2113,2118],{"type":19,"tag":68,"props":2114,"children":2115},{},[2116],{"type":24,"value":2117},"我对我将临的事情，并无期待，反而是反抗",{"type":24,"value":2119},"。而反抗，这种消极的反抗，造成的是：我生活的崩塌从 regular 到 irregular，从主流的道路到谁也不确定的道路。我生发了一种对生活、乃至“世界”的背叛感。我很难不去追问，到底是怎么了，为什么我会这样做呢。",{"type":19,"tag":20,"props":2121,"children":2122},{},[2123],{"type":24,"value":2124},"当我询问我自己这样的问题时，我内心其实已经有了答案和想法。当一个人生发出一种行为的时候，尚若他追问自己的言行，是一定能够归咎出原因的，即使脑海中假想推演出来的原因和对过去的模拟非常有可能是错误且偏离现实的。",{"title":8,"searchDepth":325,"depth":339,"links":2126},[],"content:posts:self-destruction.md","posts\u002Fself-destruction.md","posts\u002Fself-destruction",{"_path":2131,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2132,"description":2133,"date":2134,"categories":12,"tags":2135,"body":2137,"_type":1105,"_id":2638,"_source":1107,"_file":2639,"_stem":2640,"_extension":1110},"\u002Fposts\u002Fcs194-196_llmagents","LLM Agents 课程笔记","UCB CS294\u002F194-196 Large Language Model Agents 的课程笔记。","2024-11-30 20:00:00",[2136],"Agent",{"type":16,"children":2138,"toc":2618},[2139,2147,2152,2158,2163,2171,2176,2181,2188,2200,2212,2218,2223,2235,2247,2252,2264,2269,2282,2287,2295,2300,2305,2328,2333,2339,2347,2360,2365,2370,2378,2383,2396,2402,2415,2420,2425,2431,2436,2457,2465,2470,2476,2484,2489,2497,2502,2508,2513,2519,2524,2529,2534,2540,2545,2550,2558,2563,2569,2574,2578],{"type":19,"tag":1319,"props":2140,"children":2141},{},[2142],{"type":19,"tag":20,"props":2143,"children":2144},{},[2145],{"type":24,"value":2146},"鉴定为水课，尽量挑感兴趣的有用的部分看。",{"type":19,"tag":20,"props":2148,"children":2149},{},[2150],{"type":24,"value":2151},"最近工作内容涉猎了大模型的应用，想更深入的了解一些，便打算试试这门课。笔记更新进度对应学习进度。",{"type":19,"tag":222,"props":2153,"children":2155},{"id":2154},"llm-reasoning",[2156],{"type":24,"value":2157},"LLM Reasoning",{"type":19,"tag":20,"props":2159,"children":2160},{},[2161],{"type":24,"value":2162},"提问：What do you expect for AI?",{"type":19,"tag":1319,"props":2164,"children":2165},{},[2166],{"type":19,"tag":20,"props":2167,"children":2168},{},[2169],{"type":24,"value":2170},"What do you expect for AI?",{"type":19,"tag":20,"props":2172,"children":2173},{},[2174],{"type":24,"value":2175},"AI 是人类创造出来的更自动化的工具。若从控制的观点来说，AI 就是控制器的控制器，能够担负人类的现实任务。在理想的应用情况可以承担大部分社会物质精神运转的负荷。",{"type":19,"tag":20,"props":2177,"children":2178},{},[2179],{"type":24,"value":2180},"教授的回答:",{"type":19,"tag":1319,"props":2182,"children":2183},{},[2184],{"type":19,"tag":20,"props":2185,"children":2186},{},[2187],{"type":24,"value":2170},{"type":19,"tag":20,"props":2189,"children":2190},{},[2191,2193,2198],{"type":24,"value":2192},"AI should be able to ",{"type":19,"tag":68,"props":2194,"children":2195},{},[2196],{"type":24,"value":2197},"learn from a few examples",{"type":24,"value":2199},", like what humans usually do",{"type":19,"tag":20,"props":2201,"children":2202},{},[2203,2205,2210],{"type":24,"value":2204},"而以往的机器学习达到了这个期望吗？并没有。机器学习缺乏归因能力——需要大样本学习。而”Humans can learn from just a few examples ",{"type":19,"tag":68,"props":2206,"children":2207},{},[2208],{"type":24,"value":2209},"because humans can reason",{"type":24,"value":2211},"“。因此其暗指大模型拥有 reason 能力。",{"type":19,"tag":486,"props":2213,"children":2215},{"id":2214},"key-ideas",[2216],{"type":24,"value":2217},"Key Ideas",{"type":19,"tag":20,"props":2219,"children":2220},{},[2221],{"type":24,"value":2222},"我们慢慢引出一系列关键的想法来提升大模型的效果。",{"type":19,"tag":2224,"props":2225,"children":2227},"h4",{"id":2226},"derive-the-final-answer-through-intermedia-steps",[2228,2230],{"type":24,"value":2229},"Derive the Final Answer through ",{"type":19,"tag":68,"props":2231,"children":2232},{},[2233],{"type":24,"value":2234},"Intermedia Steps",{"type":19,"tag":20,"props":2236,"children":2237},{},[2238,2240,2245],{"type":24,"value":2239},"Also called ",{"type":19,"tag":68,"props":2241,"children":2242},{},[2243],{"type":24,"value":2244},"Chain-of-Thought",{"type":24,"value":2246},"(CoT).",{"type":19,"tag":20,"props":2248,"children":2249},{},[2250],{"type":24,"value":2251},"可以简单导出一种应用——CoT Prompting。最经典的一个例子——”Let's think step by step“，这个 Prompting 达成了零样本的 CoT。",{"type":19,"tag":2224,"props":2253,"children":2255},{"id":2254},"least-to-most-prompting-enable-easy-to-hard-generalization-by-decomposition",[2256,2258],{"type":24,"value":2257},"Least-to-Most Prompting ",{"type":19,"tag":2259,"props":2260,"children":2261},"em",{},[2262],{"type":24,"value":2263},"Enable easy-to-hard generalization by decomposition",{"type":19,"tag":20,"props":2265,"children":2266},{},[2267],{"type":24,"value":2268},"《How to Solve It》一文中提到。",{"type":19,"tag":1319,"props":2270,"children":2271},{},[2272],{"type":19,"tag":20,"props":2273,"children":2274},{},[2275,2280],{"type":19,"tag":68,"props":2276,"children":2277},{},[2278],{"type":24,"value":2279},"Decomposing and recombing",{"type":24,"value":2281}," are important operations fo the mind.\nYou decompose the whole into its parts, and you recombine the parts into a more or less different whole.\nIf you go into detail you may lose yourself in details.",{"type":19,"tag":20,"props":2283,"children":2284},{},[2285],{"type":24,"value":2286},"其实理念和计算机科学中一直倡导的缩小问题规模有共通之处？Map-Reduce，缩小问题规模不可避免地就要分解问题。",{"type":19,"tag":1319,"props":2288,"children":2289},{},[2290],{"type":19,"tag":20,"props":2291,"children":2292},{},[2293],{"type":24,"value":2294},"Using just 0.1% demonstration examples achieves perfect generalization.",{"type":19,"tag":20,"props":2296,"children":2297},{},[2298],{"type":24,"value":2299},"这里不知道是指预训练时加入一定量地分解问题的数据，还是指对话时加入分解问题的例子。",{"type":19,"tag":20,"props":2301,"children":2302},{},[2303],{"type":24,"value":2304},"以上两种方法其实都是中间步骤。为什么中间步骤可以有如此大的效果呢？",{"type":19,"tag":60,"props":2306,"children":2307},{},[2308,2318],{"type":19,"tag":64,"props":2309,"children":2310},{},[2311,2316],{"type":19,"tag":68,"props":2312,"children":2313},{},[2314],{"type":24,"value":2315},"Constant-depth transformers",{"type":24,"value":2317}," can solve any inherently serial problem as long as it generates sufficiently long intermediate reasoning steps",{"type":19,"tag":64,"props":2319,"children":2320},{},[2321,2326],{"type":19,"tag":68,"props":2322,"children":2323},{},[2324],{"type":24,"value":2325},"Transformers which directly generate final answers",{"type":24,"value":2327}," either requires a huge depth to solve or cannot solve at all",{"type":19,"tag":20,"props":2329,"children":2330},{},[2331],{"type":24,"value":2332},"也就是说，没有中间步骤要么注意力强大到能直接解决问题，要么得到错乱的解。而加入中间步骤，解决序列问题中的每一个简单问题，从而可以解决任何能够分解为序列问题的问题。",{"type":19,"tag":2224,"props":2334,"children":2336},{"id":2335},"llms-as-analogical-reasoners",[2337],{"type":24,"value":2338},"LLMs as Analogical Reasoners",{"type":19,"tag":1319,"props":2340,"children":2341},{},[2342],{"type":19,"tag":20,"props":2343,"children":2344},{},[2345],{"type":24,"value":2346},"Do you know a related problem? In fact, when solving a problem, we always profit from previously solved problems, using their result, or their method, or the experience we acquired solving them.",{"type":19,"tag":20,"props":2348,"children":2349},{},[2350,2352,2358],{"type":24,"value":2351},"出于这种思想，可以导出提示词——Recall a related problem, and then solve this one. （回忆一个相关问题，然后解决这个问题）。这种方法又叫 ",{"type":19,"tag":76,"props":2353,"children":2355},{"className":2354},[],[2356],{"type":24,"value":2357},"Self-generated Examples",{"type":24,"value":2359},"。",{"type":19,"tag":20,"props":2361,"children":2362},{},[2363],{"type":24,"value":2364},"不过提示词的角度太过于简陋，从我个人的角度来说，提示词其实很不安全，而且让我很不安。完全把命运交给多出来的词向量真的太怪了。有没有不使用 Prompting 就可以触发 CoT 的方法？",{"type":19,"tag":20,"props":2366,"children":2367},{},[2368],{"type":24,"value":2369},"有的。从 Decode 下手，以往 GPT 输出的时候是选择 Top-k 中概率最高的词输出，也就是简单的贪心选择。如果让其对 Top-k 中的词继续做生成，在根据置信度选择答案，这就是 CoT-decoding 方法。",{"type":19,"tag":20,"props":2371,"children":2372},{},[2373],{"type":19,"tag":620,"props":2374,"children":2377},{"alt":2375,"src":2376},"Illustration of CoT-decoding","https:\u002F\u002Farxiv.org\u002Fhtml\u002F2402.10200v2\u002Fx1.png",[],{"type":19,"tag":20,"props":2379,"children":2380},{},[2381],{"type":24,"value":2382},"Key takeaways",{"type":19,"tag":1006,"props":2384,"children":2385},{},[2386,2391],{"type":19,"tag":64,"props":2387,"children":2388},{},[2389],{"type":24,"value":2390},"Pre-trained LLMs, without further finetuning, has been ready for step-by-step reasoning, but we need a non-greedy decoding strategy to elicit it.",{"type":19,"tag":64,"props":2392,"children":2393},{},[2394],{"type":24,"value":2395},"When a step-by-step reasoning path is present, KKMs have much higher confidence in decoding the final answer than direct-answer decoding.",{"type":19,"tag":2224,"props":2397,"children":2399},{"id":2398},"limits-of-intermediate-steps",[2400],{"type":24,"value":2401},"Limits of Intermediate Steps",{"type":19,"tag":1319,"props":2403,"children":2404},{},[2405],{"type":19,"tag":20,"props":2406,"children":2407},{},[2408,2410],{"type":24,"value":2409},"Always keep in mind that LLMs are probabilistic models of generating next tokens. ",{"type":19,"tag":68,"props":2411,"children":2412},{},[2413],{"type":24,"value":2414},"They are not humans.",{"type":19,"tag":20,"props":2416,"children":2417},{},[2418],{"type":24,"value":2419},"我们希望：给出问题的基础上得到最大可能的最终答案。",{"type":19,"tag":20,"props":2421,"children":2422},{},[2423],{"type":24,"value":2424},"LLM CoT-decoding所做：给出问题的基础上，给出最大可能的 reasoning path 以及最大可能的最终答案。",{"type":19,"tag":2224,"props":2426,"children":2428},{"id":2427},"self-consistency",[2429],{"type":24,"value":2430},"Self-Consistency",{"type":19,"tag":20,"props":2432,"children":2433},{},[2434],{"type":24,"value":2435},"More consistent, more likely to be correct",{"type":19,"tag":20,"props":2437,"children":2438},{},[2439,2441,2449,2451,2456],{"type":24,"value":2440},"人性的一个突出方面是人们的思维方式不同。很自然地假设，在需要深思熟虑的任务中，可能有几种方法可以解决问题。我们建议可以通过从语言模型的解码器中采样来在语言模型中模拟这样的过程。例如，如图 ",{"type":19,"tag":32,"props":2442,"children":2446},{"href":2443,"rel":2444,"title":2445},"https:\u002F\u002Far5iv.labs.arxiv.org\u002Fhtml\u002F2203.11171?_immersive_translate_auto_translate=1#S1.F1",[54],"In 1 Introduction ‣ Self-Consistency Improves Chain of Thought Reasoning in Language Models",[2447],{"type":24,"value":2448},"1 所示",{"type":24,"value":2450}," ，一个模型可以对数学问题生成多个合理的回答，这些回答都得出相同的正确答案（输出 1 和 3）。由于语言模型不是完美的推理器，因此模型也可能产生不正确的推理路径或在其中一个推理步骤中出错（例如，在输出 2 中），但此类解决方案不太可能得出相同的答案。也就是说，我们",{"type":19,"tag":68,"props":2452,"children":2453},{},[2454],{"type":24,"value":2455},"假设正确的推理过程，即使它们是多种多样的，也往往比不正确的过程在最终答案中具有更大的一致性",{"type":24,"value":2359},{"type":19,"tag":20,"props":2458,"children":2459},{},[2460],{"type":19,"tag":620,"props":2461,"children":2464},{"alt":2462,"src":2463},"Self-Consistency method contains three steps","https:\u002F\u002Far5iv.labs.arxiv.org\u002Fhtml\u002F2203.11171\u002Fassets\u002Fx1.png",[],{"type":19,"tag":20,"props":2466,"children":2467},{},[2468],{"type":24,"value":2469},"Self-Consistency 利用了复杂的推理任务通常允许多条推理路径到达正确答案的直觉。一个问题越需要深思熟虑的思考和分析 ，可以得到答案的推理路径就越多样化。",{"type":19,"tag":2224,"props":2471,"children":2473},{"id":2472},"quiz",[2474],{"type":24,"value":2475},"Quiz",{"type":19,"tag":1319,"props":2477,"children":2478},{},[2479],{"type":19,"tag":20,"props":2480,"children":2481},{},[2482],{"type":24,"value":2483},"Q1. When the LLM outputs a direct answer without intermediate steps, will you still sample several times, and then choose the most common answer?",{"type":19,"tag":20,"props":2485,"children":2486},{},[2487],{"type":24,"value":2488},"我不会，我倾向于它不能够解决这个问题，而重新换种问法。",{"type":19,"tag":1319,"props":2490,"children":2491},{},[2492],{"type":19,"tag":20,"props":2493,"children":2494},{},[2495],{"type":24,"value":2496},"Q2. Change self-consistency by letting LLM generate multiple responses, instead of sampling multiple times, and then choosing the most common answer. Does this make sense?",{"type":19,"tag":20,"props":2498,"children":2499},{},[2500],{"type":24,"value":2501},"我认为这其实并不能解决问题。首先模型必须能够得出正确答案，假设其起作用的前提是，采样到的答案中正确的答案占大多数。这只能让复杂但不困难的任务表现的更好，而对于简单任务和复杂困难任务没有帮助。",{"type":19,"tag":486,"props":2503,"children":2505},{"id":2504},"limitations",[2506],{"type":24,"value":2507},"Limitations",{"type":19,"tag":20,"props":2509,"children":2510},{},[2511],{"type":24,"value":2512},"大模型存在什么限制呢？了解限制可以让我们更好的发挥它的作用。",{"type":19,"tag":2224,"props":2514,"children":2516},{"id":2515},"llms-can-be-easily-distracted-by-irrelevant-context",[2517],{"type":24,"value":2518},"LLMs Can Be Easily Distracted by Irrelevant Context",{"type":19,"tag":20,"props":2520,"children":2521},{},[2522],{"type":24,"value":2523},"Psychology studies show that irrelevant information may significantly decrease some children and even adults problem-solving accuracy.",{"type":19,"tag":20,"props":2525,"children":2526},{},[2527],{"type":24,"value":2528},"在大模型上的表现就是——Adding irrelevant contexts to GSM8K leads to 20+ points performance drop.",{"type":19,"tag":20,"props":2530,"children":2531},{},[2532],{"type":24,"value":2533},"知道了如此限制，那么我们可以用提示词去尝试解决——Ignore irrelevant context。这可以挽回一点性能表现。",{"type":19,"tag":2224,"props":2535,"children":2537},{"id":2536},"llms-cannot-self-correct-reasoning-yet",[2538],{"type":24,"value":2539},"LLMs Cannot Self-Correct Reasoning Yet",{"type":19,"tag":20,"props":2541,"children":2542},{},[2543],{"type":24,"value":2544},"While allowing LLMs to review their generated responses can help correct inaccurate answers, it may also risk changing correct answers into incorrect ones.",{"type":19,"tag":20,"props":2546,"children":2547},{},[2548],{"type":24,"value":2549},"尤其是在常识性的问答中，GPT-3.5 Self-Correct 后的表现下降的很厉害。",{"type":19,"tag":1319,"props":2551,"children":2552},{},[2553],{"type":19,"tag":20,"props":2554,"children":2555},{},[2556],{"type":24,"value":2557},"Reported improvements need oracle answers.",{"type":19,"tag":20,"props":2559,"children":2560},{},[2561],{"type":24,"value":2562},"Oracle: Let LLMs self correct only when the answer is wrong",{"type":19,"tag":2224,"props":2564,"children":2566},{"id":2565},"premise-order-matters-in-llm-reasoning",[2567],{"type":24,"value":2568},"Premise Order Matters in LLM Reasoning",{"type":19,"tag":20,"props":2570,"children":2571},{},[2572],{"type":24,"value":2573},"前提条件重排序会让 solving rates 下降。",{"type":19,"tag":486,"props":2575,"children":2576},{"id":1766},[2577],{"type":24,"value":1766},{"type":19,"tag":60,"props":2579,"children":2580},{},[2581,2586,2597,2608,2613],{"type":19,"tag":64,"props":2582,"children":2583},{},[2584],{"type":24,"value":2585},"Generating intermediate steps improves LLM performance",{"type":19,"tag":64,"props":2587,"children":2588},{},[2589],{"type":19,"tag":60,"props":2590,"children":2591},{},[2592],{"type":19,"tag":64,"props":2593,"children":2594},{},[2595],{"type":24,"value":2596},"Training\u002Ffine-tuning\u002Fprompting with intermediate steps",{"type":19,"tag":64,"props":2598,"children":2599},{},[2600],{"type":19,"tag":60,"props":2601,"children":2602},{},[2603],{"type":19,"tag":64,"props":2604,"children":2605},{},[2606],{"type":24,"value":2607},"Zero-shot, analogical reasoning, special decoding",{"type":19,"tag":64,"props":2609,"children":2610},{},[2611],{"type":24,"value":2612},"Self-Consistency greatly improves step-by-step reasoning",{"type":19,"tag":64,"props":2614,"children":2615},{},[2616],{"type":24,"value":2617},"Limitation: irrelevant context, self-correction, premise order",{"title":8,"searchDepth":325,"depth":339,"links":2619},[2620],{"id":2154,"depth":325,"text":2157,"children":2621},[2622,2632,2637],{"id":2214,"depth":339,"text":2217,"children":2623},[2624,2626,2628,2629,2630,2631],{"id":2226,"depth":1654,"text":2625},"Derive the Final Answer through Intermedia Steps",{"id":2254,"depth":1654,"text":2627},"Least-to-Most Prompting Enable easy-to-hard generalization by decomposition",{"id":2335,"depth":1654,"text":2338},{"id":2398,"depth":1654,"text":2401},{"id":2427,"depth":1654,"text":2430},{"id":2472,"depth":1654,"text":2475},{"id":2504,"depth":339,"text":2507,"children":2633},[2634,2635,2636],{"id":2515,"depth":1654,"text":2518},{"id":2536,"depth":1654,"text":2539},{"id":2565,"depth":1654,"text":2568},{"id":1766,"depth":339,"text":1766},"content:posts:CS194-196_LLMAgents.md","posts\u002FCS194-196_LLMAgents.md","posts\u002FCS194-196_LLMAgents",{"_path":2642,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2643,"description":2644,"date":2645,"categories":1417,"tags":2646,"body":2647,"_type":1105,"_id":2688,"_source":1107,"_file":2689,"_stem":2690,"_extension":1110},"\u002Fposts\u002Fwhatsyourworth","价值、位置","你们的生存究竟有何价值？如果毫无价值，你们究竟为何存在？","2024-11-29 02:00:00",[1419],{"type":16,"children":2648,"toc":2686},[2649,2656,2661,2666,2671,2676,2681],{"type":19,"tag":1319,"props":2650,"children":2651},{},[2652],{"type":19,"tag":20,"props":2653,"children":2654},{},[2655],{"type":24,"value":2644},{"type":19,"tag":20,"props":2657,"children":2658},{},[2659],{"type":24,"value":2660},"我们该身处怎样的位置？或者说生活该是怎样的？我不知道。社会主义核心价值观中个人层面的要求提到我们要爱国、敬业、诚信、友善。朗朗上口又空洞的字眼，真的能指引我的生活吗？我否认它。",{"type":19,"tag":20,"props":2662,"children":2663},{},[2664],{"type":24,"value":2665},"对于有些人，这些问题是无需思考的，并非因为短视与无知，而是因为过往的生活经验中存在着经得起质疑的参考，他们信服且可以认定自己的生活方式与存在来源，并以此为生活的指导。另一些人是短视者，或许曾经有挣扎过，但还与社会的规训和解。这不如不做挣扎。我不是其中一员。作为具象的人，我不喜欢被分类，甚至说评价自己。或者换句话说，我讨厌暴露自己，即使现在我就在做着这样的事情。我的自反性强烈地牵引着我来到了一种莫名的境地，在这里我会感受到痛苦，并让我难以理解幸福。",{"type":19,"tag":20,"props":2667,"children":2668},{},[2669],{"type":24,"value":2670},"汲取某一样东西或者深深扎根在一处汲取营养与支持，那是再好不过的事情。我还是犹豫着选择。在上一刻被消灭下一刻不存在的现在，妄图否认一切。是可笑的。专注于某一项东西难免要做出某种选择。这都是胡说八道的谎言。",{"type":19,"tag":20,"props":2672,"children":2673},{},[2674],{"type":24,"value":2675},"事实上是，蜷缩的内心带来长时间不使用而萎靡的声音，惧怕外界的同时在自己内心的系统中不断咀嚼反复。其表象可以归为“微信恐惧症”。",{"type":19,"tag":20,"props":2677,"children":2678},{},[2679],{"type":24,"value":2680},"惧怕否认而自诩，自诩自重而自封。",{"type":19,"tag":20,"props":2682,"children":2683},{},[2684],{"type":24,"value":2685},"在时间的脉络和物质的运动之中，星河翻转的梦境里，时间，时间。不可避免地迈步向前，而由自反诞生的恐惧与疏远仍深深扎根。这一切都是漫长的白夜。我们的生存究竟有何价值？如果毫无价值，我们究竟为何存在？",{"title":8,"searchDepth":325,"depth":339,"links":2687},[],"content:posts:WhatsYourWorth.md","posts\u002FWhatsYourWorth.md","posts\u002FWhatsYourWorth",{"_path":2692,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2693,"description":2694,"date":2695,"categories":1417,"tags":2696,"body":2698,"_type":1105,"_id":2776,"_source":1107,"_file":2777,"_stem":2778,"_extension":1110},"\u002Fposts\u002Fblogrelifever2","重启博客v2","忙里偷闲学习前端，还是决定结合想法手搓一个自己的博客。","2024-11-25 00:00:00",[2697],"博客",{"type":16,"children":2699,"toc":2774},[2700,2705,2710,2715,2720,2725,2738,2759,2764,2769],{"type":19,"tag":20,"props":2701,"children":2702},{},[2703],{"type":24,"value":2704},"很遗憾的一件事情——我发现以前的我并没有写出什么值得发表出来的博客，更遗憾的事情，现在的我也没有写出来这样的文字。",{"type":19,"tag":20,"props":2706,"children":2707},{},[2708],{"type":24,"value":2709},"大抵是从初中开始，我就对文字保有偌大的趣味。我认为那是一件值得品味，需要经验积累才能表征出的东西。我想写自己的小说，传达自己的思想。但自我判断后，认为仍需更多的现实经验积累（但其实更重要的是相应的锻炼，比如说写作训练），便将想法设置为遥远的理想，始终铭记，但将其搁置在行动清单外。",{"type":19,"tag":20,"props":2711,"children":2712},{},[2713],{"type":24,"value":2714},"大学刚入学后，学着网上胡乱的言论（还有身边的例子），我也开始写博客。那时候的我，对于博客的写作，其实只是大多停留在复制粘贴的搬运。毕竟经验与感想是需要累计和思考的，没有一定时间的浸润是很难以自己的想法表达出来其他人的想法的。而自我日常的思绪又过于混乱，不花时间做整理，到最后连自己都看不懂。这样记录实在是无趣。",{"type":19,"tag":20,"props":2716,"children":2717},{},[2718],{"type":24,"value":2719},"对于自我的寻找是更关键的。尽管我知道了自我的位置，但是我还是没有以——有足够归属感的、卸下自己防备的方式去接受自我的位置。这很大程度上动摇了我未来决策的基础。",{"type":19,"tag":20,"props":2721,"children":2722},{},[2723],{"type":24,"value":2724},"这实在遗憾。",{"type":19,"tag":20,"props":2726,"children":2727},{},[2728,2730,2736],{"type":24,"value":2729},"好了，谈了不少呓语。下面提一下这次博客的搭建。当然是放弃了 ",{"type":19,"tag":76,"props":2731,"children":2733},{"className":2732},[],[2734],{"type":24,"value":2735},"Hexo",{"type":24,"value":2737},"，感到厌倦，还是不满意。很多时候就是一个想法出现，决定做不做。过后就会很快的把它丢出“缓存”。",{"type":19,"tag":20,"props":2739,"children":2740},{},[2741,2743,2749,2751,2757],{"type":24,"value":2742},"理想的博客要求是简单、简洁、书写方便。如此，需要 ",{"type":19,"tag":76,"props":2744,"children":2746},{"className":2745},[],[2747],{"type":24,"value":2748},"Markdown",{"type":24,"value":2750}," 文件支持，也需要一些基本的功能，比如说 ",{"type":19,"tag":76,"props":2752,"children":2754},{"className":2753},[],[2755],{"type":24,"value":2756},"RSS",{"type":24,"value":2758}," 订阅、评论、分类、标签、日夜模式切换等等。应该会在后续上线。",{"type":19,"tag":20,"props":2760,"children":2761},{},[2762],{"type":24,"value":2763},"技术栈：Nuxt3(+@nuxt\u002Fcontent) + TailwindCSS",{"type":19,"tag":20,"props":2765,"children":2766},{},[2767],{"type":24,"value":2768},"非常简单的技术栈。摸鱼的时候玩的很爽。www",{"type":19,"tag":20,"props":2770,"children":2771},{},[2772],{"type":24,"value":2773},"就是这样，博客还存在一些问题，但边用边解决吧。",{"title":8,"searchDepth":325,"depth":339,"links":2775},[],"content:posts:BlogRelifeVer2.md","posts\u002FBlogRelifeVer2.md","posts\u002FBlogRelifeVer2",{"_path":2780,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2781,"description":2782,"date":2783,"categories":1417,"tags":2784,"body":2785,"_type":1105,"_id":2910,"_source":1107,"_file":2911,"_stem":2912,"_extension":1110},"\u002Fposts\u002Fblogrelife","重启博客","在我的表达欲与现实所需(问题解决记录)驱动下，我决定重写博客。","2024-10-21 20:44:57",null,{"type":16,"children":2786,"toc":2908},[2787,2791,2812,2869,2888,2893,2898,2903],{"type":19,"tag":20,"props":2788,"children":2789},{},[2790],{"type":24,"value":2782},{"type":19,"tag":20,"props":2792,"children":2793},{},[2794,2796,2802,2804,2810],{"type":24,"value":2795},"我之前写过博客。但之前的流程过于琐碎。当想要看到我新写内容的效果时，我都需要忍受长达几秒的 ",{"type":19,"tag":76,"props":2797,"children":2799},{"className":2798},[],[2800],{"type":24,"value":2801},"hexo g && hexo d",{"type":24,"value":2803},"，编辑的过程也不能够实时渲染。另一个使我厌烦的原因是，之前的博客是 Github Pages 部署的。我公开在 ",{"type":19,"tag":76,"props":2805,"children":2807},{"className":2806},[],[2808],{"type":24,"value":2809},"GitHub Repo",{"type":24,"value":2811}," 上的源代码也很丑陋，实在让我提不起兴趣去写。",{"type":19,"tag":20,"props":2813,"children":2814},{},[2815,2817,2822,2824,2829,2831,2837,2839,2844,2846,2851,2853,2859,2861,2867],{"type":24,"value":2816},"我追求过程的简洁，便想换成渲染 ",{"type":19,"tag":76,"props":2818,"children":2820},{"className":2819},[],[2821],{"type":24,"value":1105},{"type":24,"value":2823}," 文件的博客 (",{"type":19,"tag":2259,"props":2825,"children":2826},{},[2827],{"type":24,"value":2828},"Hugo",{"type":24,"value":2830}," 可行，但没有去尝试)。自己也尝试用 ",{"type":19,"tag":76,"props":2832,"children":2834},{"className":2833},[],[2835],{"type":24,"value":2836},"Nuxt3",{"type":24,"value":2838}," 写过一些 ",{"type":19,"tag":76,"props":2840,"children":2842},{"className":2841},[],[2843],{"type":24,"value":2748},{"type":24,"value":2845}," 的静态渲染网站，实力有限其扩展能力也不强，最后还是用以前的老套路 (",{"type":19,"tag":76,"props":2847,"children":2849},{"className":2848},[],[2850],{"type":24,"value":2735},{"type":24,"value":2852}," + ",{"type":19,"tag":76,"props":2854,"children":2856},{"className":2855},[],[2857],{"type":24,"value":2858},"Butterfly",{"type":24,"value":2860}," theme)。不过这次决定将构建过程迁移到云端，提交到仓库的源代码就只是源代码了，这样我就只用 ",{"type":19,"tag":76,"props":2862,"children":2864},{"className":2863},[],[2865],{"type":24,"value":2866},"git add *.md",{"type":24,"value":2868},"了。",{"type":19,"tag":20,"props":2870,"children":2871},{},[2872,2874,2879,2881,2886],{"type":24,"value":2873},"而且更令我惊喜的是，在这个过程中我还认识了 ",{"type":19,"tag":76,"props":2875,"children":2877},{"className":2876},[],[2878],{"type":24,"value":2756},{"type":24,"value":2880}," 的存在。我可以通过 ",{"type":19,"tag":76,"props":2882,"children":2884},{"className":2883},[],[2885],{"type":24,"value":2756},{"type":24,"value":2887}," 订阅自己的博客而忽略博客本身，这样可以更专注于写作。",{"type":19,"tag":20,"props":2889,"children":2890},{},[2891],{"type":24,"value":2892},"这次的博客更多是内心表达的冲动一直驱使着我，想要写下什么东西。我也时常怀疑自己——表达的方式真的只有这种吗？因此我也迟疑了很久，没有在网上写博客。而是在其他地方更隐私的地方零零碎碎地写下一些东西。但只是心血来潮写写罢了，三天打鱼两天晒网，其实和没写也没区别。",{"type":19,"tag":20,"props":2894,"children":2895},{},[2896],{"type":24,"value":2897},"不过这次就不一样了。",{"type":19,"tag":20,"props":2899,"children":2900},{},[2901],{"type":24,"value":2902},"哈哈？",{"type":19,"tag":20,"props":2904,"children":2905},{},[2906],{"type":24,"value":2907},"如此吧。",{"title":8,"searchDepth":325,"depth":339,"links":2909},[],"content:posts:BlogRelife.md","posts\u002FBlogRelife.md","posts\u002FBlogRelife",{"_path":2914,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2915,"description":2916,"categories":2917,"mathjax":7,"date":2918,"tags":2919,"body":2922,"_type":1105,"_id":6033,"_source":1107,"_file":6034,"_stem":6035,"_extension":1110},"\u002Fposts\u002Fwindows11","从零配置 Windows11 开发环境","爽快的开发感从这里开始！","他玉集","2023-09-05 10:00:52",[2920,2921],"软件环境","Windows",{"type":16,"children":2923,"toc":6020},[2924,2936,2944,2949,2954,2959,2964,2987,2992,3029,3034,3052,3057,3187,3192,3211,3270,3275,3368,3373,3386,3391,3465,3476,3491,3502,3518,3531,3564,3585,3596,3601,3606,3611,3616,3621,3629,3767,3772,3777,3812,3829,3834,3858,3863,3868,3903,3908,3927,3932,4055,4060,4066,4076,4216,4221,4378,4383,4388,4409,4414,4484,4490,4496,4501,4590,4612,4989,4994,4999,5028,5033,5091,5097,5195,5201,5206,5211,5329,5334,5380,5393,5519,5524,5528,5583,5588,5674,5679,5726,5731,5812,5841,5883,5889,5894,5922,5927,5970,5975,6002,6016],{"type":19,"tag":20,"props":2925,"children":2926},{},[2927,2929],{"type":24,"value":2928},"Fork from: ",{"type":19,"tag":32,"props":2930,"children":2933},{"href":2931,"rel":2932},"https:\u002F\u002Fkirigaya.cn\u002Fblog\u002Farticle?seq=28",[54],[2934],{"type":24,"value":2935},"汇尘轩 - 锦恢的博客 (kirigaya.cn)",{"type":19,"tag":1319,"props":2937,"children":2938},{},[2939],{"type":19,"tag":20,"props":2940,"children":2941},{},[2942],{"type":24,"value":2943},"There is no end though there is a start in space. ---Infinity.",{"type":19,"tag":20,"props":2945,"children":2946},{},[2947],{"type":24,"value":2948},"记录一下简单的电脑配置流程。按照这个顺序配置即可。",{"type":19,"tag":222,"props":2950,"children":2952},{"id":2951},"windows",[2953],{"type":24,"value":2921},{"type":19,"tag":20,"props":2955,"children":2956},{},[2957],{"type":24,"value":2958},"必须是Win11，因为我需要这个版本上面的一些特性，或是功能性的，或是装饰性的。",{"type":19,"tag":20,"props":2960,"children":2961},{},[2962],{"type":24,"value":2963},"一、登录微软账号",{"type":19,"tag":1006,"props":2965,"children":2966},{},[2967,2972,2977,2982],{"type":19,"tag":64,"props":2968,"children":2969},{},[2970],{"type":24,"value":2971},"同步部分OS配置",{"type":19,"tag":64,"props":2973,"children":2974},{},[2975],{"type":24,"value":2976},"同步edge",{"type":19,"tag":64,"props":2978,"children":2979},{},[2980],{"type":24,"value":2981},"同步应用商店",{"type":19,"tag":64,"props":2983,"children":2984},{},[2985],{"type":24,"value":2986},"升级到相应的Win11版本",{"type":19,"tag":20,"props":2988,"children":2989},{},[2990],{"type":24,"value":2991},"二、转移基本的静态文件",{"type":19,"tag":1006,"props":2993,"children":2994},{},[2995,3000,3005,3016],{"type":19,"tag":64,"props":2996,"children":2997},{},[2998],{"type":24,"value":2999},"所有的图片（壁纸+图标+光标）",{"type":19,"tag":64,"props":3001,"children":3002},{},[3003],{"type":24,"value":3004},"所有的额外字体文件（Jetbrain+Nerd等宽字体+几款我喜欢的中文字体）",{"type":19,"tag":64,"props":3006,"children":3007},{},[3008,3014],{"type":19,"tag":76,"props":3009,"children":3011},{"className":3010},[],[3012],{"type":24,"value":3013},".ssh",{"type":24,"value":3015},"文件夹（用于登录服务器）",{"type":19,"tag":64,"props":3017,"children":3018},{},[3019,3021,3027],{"type":24,"value":3020},"windows terminal 的配置文件",{"type":19,"tag":76,"props":3022,"children":3024},{"className":3023},[],[3025],{"type":24,"value":3026},"setting.json",{"type":24,"value":3028},"，并替换本机windows terminal配置文件，将部分的图标路径进行修改。",{"type":19,"tag":20,"props":3030,"children":3031},{},[3032],{"type":24,"value":3033},"三、下载应用软件",{"type":19,"tag":1006,"props":3035,"children":3036},{},[3037,3042,3047],{"type":19,"tag":64,"props":3038,"children":3039},{},[3040],{"type":24,"value":3041},"微软应用商店：Dolby Access（音效）, ScreenMix（录屏）, Snipaste（截屏）、TranslucentTB（美化任务栏）、Starrea（ePub阅读器）",{"type":19,"tag":64,"props":3043,"children":3044},{},[3045],{"type":24,"value":3046},"下载前往魔法址获取SSR订阅，下载并配置CFW。",{"type":19,"tag":64,"props":3048,"children":3049},{},[3050],{"type":24,"value":3051},"网上下载：Google Chrome, FireFox, Tim, 微信, 飞书, 百度网盘, 7z, postman, Office套件, 向日葵, obsidian, OneNote",{"type":19,"tag":20,"props":3053,"children":3054},{},[3055],{"type":24,"value":3056},"四、配置开发环境",{"type":19,"tag":1006,"props":3058,"children":3059},{},[3060,3072],{"type":19,"tag":64,"props":3061,"children":3062},{},[3063,3065],{"type":24,"value":3064},"下载 PowerShell 7.x 最新版本\n官方文档：",{"type":19,"tag":32,"props":3066,"children":3069},{"href":3067,"rel":3068},"https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fpowershell\u002Fscripting\u002Finstall\u002Finstalling-powershell-on-windows?view=powershell-7.3#msi",[54],[3070],{"type":24,"value":3071},"在 Windows 上安装 PowerShell - PowerShell | Microsoft Learn",{"type":19,"tag":64,"props":3073,"children":3074},{},[3075,3077],{"type":24,"value":3076},"删除和python默认起冲突的可执行文件。使用管理员权限打开powershell，输入：",{"type":19,"tag":296,"props":3078,"children":3082},{"className":3079,"code":3080,"language":3081,"meta":8,"style":8},"language-sh shiki shiki-themes github-light github-dark","cd C:\\Users\\\u003C用户名>\\AppData\\Local\\Microsoft\\WindowsApps\nrm python*\n","sh",[3083],{"type":19,"tag":76,"props":3084,"children":3085},{"__ignoreMap":8},[3086,3169],{"type":19,"tag":306,"props":3087,"children":3088},{"class":308,"line":309},[3089,3094,3099,3104,3109,3114,3119,3124,3129,3134,3139,3144,3149,3154,3159,3164],{"type":19,"tag":306,"props":3090,"children":3091},{"style":521},[3092],{"type":24,"value":3093},"cd",{"type":19,"tag":306,"props":3095,"children":3096},{"style":319},[3097],{"type":24,"value":3098}," C:",{"type":19,"tag":306,"props":3100,"children":3101},{"style":521},[3102],{"type":24,"value":3103},"\\U",{"type":19,"tag":306,"props":3105,"children":3106},{"style":319},[3107],{"type":24,"value":3108},"sers",{"type":19,"tag":306,"props":3110,"children":3111},{"style":521},[3112],{"type":24,"value":3113},"\\\u003C",{"type":19,"tag":306,"props":3115,"children":3116},{"style":319},[3117],{"type":24,"value":3118},"用户",{"type":19,"tag":306,"props":3120,"children":3121},{"style":699},[3122],{"type":24,"value":3123},"名",{"type":19,"tag":306,"props":3125,"children":3126},{"style":705},[3127],{"type":24,"value":3128},">",{"type":19,"tag":306,"props":3130,"children":3131},{"style":521},[3132],{"type":24,"value":3133},"\\A",{"type":19,"tag":306,"props":3135,"children":3136},{"style":319},[3137],{"type":24,"value":3138},"ppData",{"type":19,"tag":306,"props":3140,"children":3141},{"style":521},[3142],{"type":24,"value":3143},"\\L",{"type":19,"tag":306,"props":3145,"children":3146},{"style":319},[3147],{"type":24,"value":3148},"ocal",{"type":19,"tag":306,"props":3150,"children":3151},{"style":521},[3152],{"type":24,"value":3153},"\\M",{"type":19,"tag":306,"props":3155,"children":3156},{"style":319},[3157],{"type":24,"value":3158},"icrosoft",{"type":19,"tag":306,"props":3160,"children":3161},{"style":521},[3162],{"type":24,"value":3163},"\\W",{"type":19,"tag":306,"props":3165,"children":3166},{"style":319},[3167],{"type":24,"value":3168},"indowsApps\n",{"type":19,"tag":306,"props":3170,"children":3171},{"class":308,"line":325},[3172,3177,3182],{"type":19,"tag":306,"props":3173,"children":3174},{"style":313},[3175],{"type":24,"value":3176},"rm",{"type":19,"tag":306,"props":3178,"children":3179},{"style":319},[3180],{"type":24,"value":3181}," python",{"type":19,"tag":306,"props":3183,"children":3184},{"style":521},[3185],{"type":24,"value":3186},"*\n",{"type":19,"tag":20,"props":3188,"children":3189},{},[3190],{"type":24,"value":3191},"2.下载 Git",{"type":19,"tag":1006,"props":3193,"children":3194},{},[3195,3206],{"type":19,"tag":64,"props":3196,"children":3197},{},[3198,3200],{"type":24,"value":3199},"前往 ",{"type":19,"tag":32,"props":3201,"children":3204},{"href":3202,"rel":3203},"https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin",[54],[3205],{"type":24,"value":3202},{"type":19,"tag":64,"props":3207,"children":3208},{},[3209],{"type":24,"value":3210},"配置信息：",{"type":19,"tag":296,"props":3212,"children":3214},{"className":3079,"code":3213,"language":3081,"meta":8,"style":8},"git config --global user.email xxx\ngit config --global user.name xxx\n",[3215],{"type":19,"tag":76,"props":3216,"children":3217},{"__ignoreMap":8},[3218,3246],{"type":19,"tag":306,"props":3219,"children":3220},{"class":308,"line":309},[3221,3226,3231,3236,3241],{"type":19,"tag":306,"props":3222,"children":3223},{"style":313},[3224],{"type":24,"value":3225},"git",{"type":19,"tag":306,"props":3227,"children":3228},{"style":319},[3229],{"type":24,"value":3230}," config",{"type":19,"tag":306,"props":3232,"children":3233},{"style":521},[3234],{"type":24,"value":3235}," --global",{"type":19,"tag":306,"props":3237,"children":3238},{"style":319},[3239],{"type":24,"value":3240}," user.email",{"type":19,"tag":306,"props":3242,"children":3243},{"style":319},[3244],{"type":24,"value":3245}," xxx\n",{"type":19,"tag":306,"props":3247,"children":3248},{"class":308,"line":325},[3249,3253,3257,3261,3266],{"type":19,"tag":306,"props":3250,"children":3251},{"style":313},[3252],{"type":24,"value":3225},{"type":19,"tag":306,"props":3254,"children":3255},{"style":319},[3256],{"type":24,"value":3230},{"type":19,"tag":306,"props":3258,"children":3259},{"style":521},[3260],{"type":24,"value":3235},{"type":19,"tag":306,"props":3262,"children":3263},{"style":319},[3264],{"type":24,"value":3265}," user.name",{"type":19,"tag":306,"props":3267,"children":3268},{"style":319},[3269],{"type":24,"value":3245},{"type":19,"tag":20,"props":3271,"children":3272},{},[3273],{"type":24,"value":3274},"3.设置代理：",{"type":19,"tag":296,"props":3276,"children":3278},{"className":3079,"code":3277,"language":3081,"meta":8,"style":8},"git config --global http.proxy http:\u002F\u002F127.0.0.1:\u003C端口号>\ngit config --global https.proxy https:\u002F\u002F127.0.0.1:\u003C端口号>\n",[3279],{"type":19,"tag":76,"props":3280,"children":3281},{"__ignoreMap":8},[3282,3327],{"type":19,"tag":306,"props":3283,"children":3284},{"class":308,"line":309},[3285,3289,3293,3297,3302,3307,3312,3317,3322],{"type":19,"tag":306,"props":3286,"children":3287},{"style":313},[3288],{"type":24,"value":3225},{"type":19,"tag":306,"props":3290,"children":3291},{"style":319},[3292],{"type":24,"value":3230},{"type":19,"tag":306,"props":3294,"children":3295},{"style":521},[3296],{"type":24,"value":3235},{"type":19,"tag":306,"props":3298,"children":3299},{"style":319},[3300],{"type":24,"value":3301}," http.proxy",{"type":19,"tag":306,"props":3303,"children":3304},{"style":319},[3305],{"type":24,"value":3306}," http:\u002F\u002F127.0.0.1:",{"type":19,"tag":306,"props":3308,"children":3309},{"style":705},[3310],{"type":24,"value":3311},"\u003C",{"type":19,"tag":306,"props":3313,"children":3314},{"style":319},[3315],{"type":24,"value":3316},"端口",{"type":19,"tag":306,"props":3318,"children":3319},{"style":699},[3320],{"type":24,"value":3321},"号",{"type":19,"tag":306,"props":3323,"children":3324},{"style":705},[3325],{"type":24,"value":3326},">\n",{"type":19,"tag":306,"props":3328,"children":3329},{"class":308,"line":325},[3330,3334,3338,3342,3347,3352,3356,3360,3364],{"type":19,"tag":306,"props":3331,"children":3332},{"style":313},[3333],{"type":24,"value":3225},{"type":19,"tag":306,"props":3335,"children":3336},{"style":319},[3337],{"type":24,"value":3230},{"type":19,"tag":306,"props":3339,"children":3340},{"style":521},[3341],{"type":24,"value":3235},{"type":19,"tag":306,"props":3343,"children":3344},{"style":319},[3345],{"type":24,"value":3346}," https.proxy",{"type":19,"tag":306,"props":3348,"children":3349},{"style":319},[3350],{"type":24,"value":3351}," https:\u002F\u002F127.0.0.1:",{"type":19,"tag":306,"props":3353,"children":3354},{"style":705},[3355],{"type":24,"value":3311},{"type":19,"tag":306,"props":3357,"children":3358},{"style":319},[3359],{"type":24,"value":3316},{"type":19,"tag":306,"props":3361,"children":3362},{"style":699},[3363],{"type":24,"value":3321},{"type":19,"tag":306,"props":3365,"children":3366},{"style":705},[3367],{"type":24,"value":3326},{"type":19,"tag":20,"props":3369,"children":3370},{},[3371],{"type":24,"value":3372},"3.安装python",{"type":19,"tag":20,"props":3374,"children":3375},{},[3376,3378,3384],{"type":24,"value":3377},"1.去 ",{"type":19,"tag":32,"props":3379,"children":3382},{"href":3380,"rel":3381},"https:\u002F\u002Fwww.python.org\u002Fdownloads\u002Fwindows\u002F",[54],[3383],{"type":24,"value":3380},{"type":24,"value":3385}," 寻找稳定版本的x64可执行文件下载",{"type":19,"tag":20,"props":3387,"children":3388},{},[3389],{"type":24,"value":3390},"2.配置pip源：",{"type":19,"tag":296,"props":3392,"children":3394},{"className":3079,"code":3393,"language":3081,"meta":8,"style":8},"pip config set global.index-url https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\npip config set global.proxy http:\u002F\u002F127.0.0.1:\u003C端口号>\n",[3395],{"type":19,"tag":76,"props":3396,"children":3397},{"__ignoreMap":8},[3398,3425],{"type":19,"tag":306,"props":3399,"children":3400},{"class":308,"line":309},[3401,3406,3410,3415,3420],{"type":19,"tag":306,"props":3402,"children":3403},{"style":313},[3404],{"type":24,"value":3405},"pip",{"type":19,"tag":306,"props":3407,"children":3408},{"style":319},[3409],{"type":24,"value":3230},{"type":19,"tag":306,"props":3411,"children":3412},{"style":319},[3413],{"type":24,"value":3414}," set",{"type":19,"tag":306,"props":3416,"children":3417},{"style":319},[3418],{"type":24,"value":3419}," global.index-url",{"type":19,"tag":306,"props":3421,"children":3422},{"style":319},[3423],{"type":24,"value":3424}," https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n",{"type":19,"tag":306,"props":3426,"children":3427},{"class":308,"line":325},[3428,3432,3436,3440,3445,3449,3453,3457,3461],{"type":19,"tag":306,"props":3429,"children":3430},{"style":313},[3431],{"type":24,"value":3405},{"type":19,"tag":306,"props":3433,"children":3434},{"style":319},[3435],{"type":24,"value":3230},{"type":19,"tag":306,"props":3437,"children":3438},{"style":319},[3439],{"type":24,"value":3414},{"type":19,"tag":306,"props":3441,"children":3442},{"style":319},[3443],{"type":24,"value":3444}," global.proxy",{"type":19,"tag":306,"props":3446,"children":3447},{"style":319},[3448],{"type":24,"value":3306},{"type":19,"tag":306,"props":3450,"children":3451},{"style":705},[3452],{"type":24,"value":3311},{"type":19,"tag":306,"props":3454,"children":3455},{"style":319},[3456],{"type":24,"value":3316},{"type":19,"tag":306,"props":3458,"children":3459},{"style":699},[3460],{"type":24,"value":3321},{"type":19,"tag":306,"props":3462,"children":3463},{"style":705},[3464],{"type":24,"value":3326},{"type":19,"tag":20,"props":3466,"children":3467},{},[3468,3470],{"type":24,"value":3469},"4.安装MinGW ",{"type":19,"tag":32,"props":3471,"children":3474},{"href":3472,"rel":3473},"https:\u002F\u002Fsourceforge.net\u002Fprojects\u002Fmingw\u002F",[54],[3475],{"type":24,"value":3472},{"type":19,"tag":1319,"props":3477,"children":3478},{},[3479],{"type":19,"tag":20,"props":3480,"children":3481},{},[3482,3484],{"type":24,"value":3483},"忘记安装配置怎么选看",{"type":19,"tag":32,"props":3485,"children":3488},{"href":3486,"rel":3487},"https:\u002F\u002Fblog.csdn.net\u002FQuantumYou\u002Farticle\u002Fdetails\u002F119676283",[54],[3489],{"type":24,"value":3490},"这篇博客",{"type":19,"tag":20,"props":3492,"children":3493},{},[3494,3496],{"type":24,"value":3495},"5.安装cmake ",{"type":19,"tag":32,"props":3497,"children":3500},{"href":3498,"rel":3499},"https:\u002F\u002Fcmake.org\u002Fdownload\u002F",[54],[3501],{"type":24,"value":3498},{"type":19,"tag":1319,"props":3503,"children":3504},{},[3505],{"type":19,"tag":20,"props":3506,"children":3507},{},[3508,3510,3516],{"type":24,"value":3509},"如果安装了VS，可以查看路径",{"type":19,"tag":76,"props":3511,"children":3513},{"className":3512},[],[3514],{"type":24,"value":3515},"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin",{"type":24,"value":3517},"，这里面存在VS构建的cmake，上面的cmake可以不用下载。",{"type":19,"tag":20,"props":3519,"children":3520},{},[3521,3523,3529],{"type":24,"value":3522},"6.安装node ",{"type":19,"tag":32,"props":3524,"children":3527},{"href":3525,"rel":3526},"https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F",[54],[3528],{"type":24,"value":3525},{"type":24,"value":3530},"\nnpm 换源：",{"type":19,"tag":296,"props":3532,"children":3534},{"className":3079,"code":3533,"language":3081,"meta":8,"style":8},"npm config set registry https:\u002F\u002Fregistry.npm.taobao.org\n",[3535],{"type":19,"tag":76,"props":3536,"children":3537},{"__ignoreMap":8},[3538],{"type":19,"tag":306,"props":3539,"children":3540},{"class":308,"line":309},[3541,3546,3550,3554,3559],{"type":19,"tag":306,"props":3542,"children":3543},{"style":313},[3544],{"type":24,"value":3545},"npm",{"type":19,"tag":306,"props":3547,"children":3548},{"style":319},[3549],{"type":24,"value":3230},{"type":19,"tag":306,"props":3551,"children":3552},{"style":319},[3553],{"type":24,"value":3414},{"type":19,"tag":306,"props":3555,"children":3556},{"style":319},[3557],{"type":24,"value":3558}," registry",{"type":19,"tag":306,"props":3560,"children":3561},{"style":319},[3562],{"type":24,"value":3563}," https:\u002F\u002Fregistry.npm.taobao.org\n",{"type":19,"tag":20,"props":3565,"children":3566},{},[3567,3569,3575,3577,3583],{"type":24,"value":3568},"7.安装go\n1. 找到安装 ",{"type":19,"tag":32,"props":3570,"children":3573},{"href":3571,"rel":3572},"https:\u002F\u002Fgolang.google.cn\u002Fdl\u002F",[54],[3574],{"type":24,"value":3571},{"type":24,"value":3576},"\n2. 配置：\n",{"type":19,"tag":76,"props":3578,"children":3580},{"className":3579},[],[3581],{"type":24,"value":3582},"shell      go env -w GO111MODULE=on      go env -w GOPROXY=https:\u002F\u002Fgoproxy.cn,direct     ",{"type":24,"value":3584},"\n3.如果有必要，设置GOROOT和GOPATH环境变量",{"type":19,"tag":20,"props":3586,"children":3587},{},[3588,3590],{"type":24,"value":3589},"8.安装Java：",{"type":19,"tag":32,"props":3591,"children":3594},{"href":3592,"rel":3593},"https:\u002F\u002Fwww.oracle.com\u002Fhk\u002Fjava\u002Ftechnologies\u002Fdownloads\u002F",[54],[3595],{"type":24,"value":3592},{"type":19,"tag":20,"props":3597,"children":3598},{},[3599],{"type":24,"value":3600},"9.测试以上编译器、解释器能否正常工作。",{"type":19,"tag":20,"props":3602,"children":3603},{},[3604],{"type":24,"value":3605},"10.安装vscode（科学上网），安装后打开并登录GitHub账号进行配置与插件同步（等到左下角的“正在同步”消失后，就可以退出了）",{"type":19,"tag":20,"props":3607,"children":3608},{},[3609],{"type":24,"value":3610},"11.安装VS2022（反正是最新版的就行），安装windows通用开发和C++的。",{"type":19,"tag":20,"props":3612,"children":3613},{},[3614],{"type":24,"value":3615},"五、配置终端",{"type":19,"tag":20,"props":3617,"children":3618},{},[3619],{"type":24,"value":3620},"以管理员权限打开windows terminal，执行下面的指令",{"type":19,"tag":1006,"props":3622,"children":3623},{},[3624],{"type":19,"tag":64,"props":3625,"children":3626},{},[3627],{"type":24,"value":3628},"配置 powershell，安装powershell插件",{"type":19,"tag":296,"props":3630,"children":3632},{"className":3079,"code":3631,"language":3081,"meta":8,"style":8},"# 允许运行Install-Module脚本\nset-executionpolicy remotesigned\n\n# 更新最新版本的PSReadLine，为了自动补全\nInstall-Module PSReadLine -Force\n\n# 创建powershell 的初始化脚本，点击确认创建即可\nnotepad $profile\n\n# 安装几个插件\nInstall-Module posh-git\nInstall-Module Terminal-Icons\n",[3633],{"type":19,"tag":76,"props":3634,"children":3635},{"__ignoreMap":8},[3636,3644,3657,3666,3674,3693,3701,3710,3724,3732,3741,3754],{"type":19,"tag":306,"props":3637,"children":3638},{"class":308,"line":309},[3639],{"type":19,"tag":306,"props":3640,"children":3641},{"style":343},[3642],{"type":24,"value":3643},"# 允许运行Install-Module脚本\n",{"type":19,"tag":306,"props":3645,"children":3646},{"class":308,"line":325},[3647,3652],{"type":19,"tag":306,"props":3648,"children":3649},{"style":313},[3650],{"type":24,"value":3651},"set-executionpolicy",{"type":19,"tag":306,"props":3653,"children":3654},{"style":319},[3655],{"type":24,"value":3656}," remotesigned\n",{"type":19,"tag":306,"props":3658,"children":3659},{"class":308,"line":339},[3660],{"type":19,"tag":306,"props":3661,"children":3663},{"emptyLinePlaceholder":3662},true,[3664],{"type":24,"value":3665},"\n",{"type":19,"tag":306,"props":3667,"children":3668},{"class":308,"line":1654},[3669],{"type":19,"tag":306,"props":3670,"children":3671},{"style":343},[3672],{"type":24,"value":3673},"# 更新最新版本的PSReadLine，为了自动补全\n",{"type":19,"tag":306,"props":3675,"children":3677},{"class":308,"line":3676},5,[3678,3683,3688],{"type":19,"tag":306,"props":3679,"children":3680},{"style":313},[3681],{"type":24,"value":3682},"Install-Module",{"type":19,"tag":306,"props":3684,"children":3685},{"style":319},[3686],{"type":24,"value":3687}," PSReadLine",{"type":19,"tag":306,"props":3689,"children":3690},{"style":521},[3691],{"type":24,"value":3692}," -Force\n",{"type":19,"tag":306,"props":3694,"children":3696},{"class":308,"line":3695},6,[3697],{"type":19,"tag":306,"props":3698,"children":3699},{"emptyLinePlaceholder":3662},[3700],{"type":24,"value":3665},{"type":19,"tag":306,"props":3702,"children":3704},{"class":308,"line":3703},7,[3705],{"type":19,"tag":306,"props":3706,"children":3707},{"style":343},[3708],{"type":24,"value":3709},"# 创建powershell 的初始化脚本，点击确认创建即可\n",{"type":19,"tag":306,"props":3711,"children":3713},{"class":308,"line":3712},8,[3714,3719],{"type":19,"tag":306,"props":3715,"children":3716},{"style":313},[3717],{"type":24,"value":3718},"notepad",{"type":19,"tag":306,"props":3720,"children":3721},{"style":699},[3722],{"type":24,"value":3723}," $profile\n",{"type":19,"tag":306,"props":3725,"children":3727},{"class":308,"line":3726},9,[3728],{"type":19,"tag":306,"props":3729,"children":3730},{"emptyLinePlaceholder":3662},[3731],{"type":24,"value":3665},{"type":19,"tag":306,"props":3733,"children":3735},{"class":308,"line":3734},10,[3736],{"type":19,"tag":306,"props":3737,"children":3738},{"style":343},[3739],{"type":24,"value":3740},"# 安装几个插件\n",{"type":19,"tag":306,"props":3742,"children":3744},{"class":308,"line":3743},11,[3745,3749],{"type":19,"tag":306,"props":3746,"children":3747},{"style":313},[3748],{"type":24,"value":3682},{"type":19,"tag":306,"props":3750,"children":3751},{"style":319},[3752],{"type":24,"value":3753}," posh-git\n",{"type":19,"tag":306,"props":3755,"children":3757},{"class":308,"line":3756},12,[3758,3762],{"type":19,"tag":306,"props":3759,"children":3760},{"style":313},[3761],{"type":24,"value":3682},{"type":19,"tag":306,"props":3763,"children":3764},{"style":319},[3765],{"type":24,"value":3766}," Terminal-Icons\n",{"type":19,"tag":20,"props":3768,"children":3769},{},[3770],{"type":24,"value":3771},"2.安装并配置oh-my-posh",{"type":19,"tag":20,"props":3773,"children":3774},{},[3775],{"type":24,"value":3776},"1.安装oh-my-posh",{"type":19,"tag":296,"props":3778,"children":3780},{"className":3079,"code":3779,"language":3081,"meta":8,"style":8},"winget install JanDeDobbeleer.OhMyPosh -s winget\n",[3781],{"type":19,"tag":76,"props":3782,"children":3783},{"__ignoreMap":8},[3784],{"type":19,"tag":306,"props":3785,"children":3786},{"class":308,"line":309},[3787,3792,3797,3802,3807],{"type":19,"tag":306,"props":3788,"children":3789},{"style":313},[3790],{"type":24,"value":3791},"winget",{"type":19,"tag":306,"props":3793,"children":3794},{"style":319},[3795],{"type":24,"value":3796}," install",{"type":19,"tag":306,"props":3798,"children":3799},{"style":319},[3800],{"type":24,"value":3801}," JanDeDobbeleer.OhMyPosh",{"type":19,"tag":306,"props":3803,"children":3804},{"style":521},[3805],{"type":24,"value":3806}," -s",{"type":19,"tag":306,"props":3808,"children":3809},{"style":319},[3810],{"type":24,"value":3811}," winget\n",{"type":19,"tag":1319,"props":3813,"children":3814},{},[3815],{"type":19,"tag":20,"props":3816,"children":3817},{},[3818,3820,3827],{"type":24,"value":3819},"如果该方法失效，移步",{"type":19,"tag":32,"props":3821,"children":3824},{"href":3822,"rel":3823},"https:\u002F\u002Fohmyposh.dev\u002Fdocs\u002Finstallation\u002Fwindows",[54],[3825],{"type":24,"value":3826},"oh-my-posh windows set up",{"type":24,"value":3828},"查看最新安装方法",{"type":19,"tag":20,"props":3830,"children":3831},{},[3832],{"type":24,"value":3833},"2.下载oh-my-posh主题",{"type":19,"tag":296,"props":3835,"children":3837},{"className":3079,"code":3836,"language":3081,"meta":8,"style":8},"git clone https:\u002F\u002Fgithub.com\u002FJanDeDobbeleer\u002Foh-my-posh \n",[3838],{"type":19,"tag":76,"props":3839,"children":3840},{"__ignoreMap":8},[3841],{"type":19,"tag":306,"props":3842,"children":3843},{"class":308,"line":309},[3844,3848,3853],{"type":19,"tag":306,"props":3845,"children":3846},{"style":313},[3847],{"type":24,"value":3225},{"type":19,"tag":306,"props":3849,"children":3850},{"style":319},[3851],{"type":24,"value":3852}," clone",{"type":19,"tag":306,"props":3854,"children":3855},{"style":319},[3856],{"type":24,"value":3857}," https:\u002F\u002Fgithub.com\u002FJanDeDobbeleer\u002Foh-my-posh\n",{"type":19,"tag":20,"props":3859,"children":3860},{},[3861],{"type":24,"value":3862},"将里面的theme文件夹保留即可。",{"type":19,"tag":20,"props":3864,"children":3865},{},[3866],{"type":24,"value":3867},"3.测试",{"type":19,"tag":296,"props":3869,"children":3871},{"className":3079,"code":3870,"language":3081,"meta":8,"style":8},"oh-my-posh init pwsh | Invoke-Expression\n",[3872],{"type":19,"tag":76,"props":3873,"children":3874},{"__ignoreMap":8},[3875],{"type":19,"tag":306,"props":3876,"children":3877},{"class":308,"line":309},[3878,3883,3888,3893,3898],{"type":19,"tag":306,"props":3879,"children":3880},{"style":313},[3881],{"type":24,"value":3882},"oh-my-posh",{"type":19,"tag":306,"props":3884,"children":3885},{"style":319},[3886],{"type":24,"value":3887}," init",{"type":19,"tag":306,"props":3889,"children":3890},{"style":319},[3891],{"type":24,"value":3892}," pwsh",{"type":19,"tag":306,"props":3894,"children":3895},{"style":705},[3896],{"type":24,"value":3897}," |",{"type":19,"tag":306,"props":3899,"children":3900},{"style":313},[3901],{"type":24,"value":3902}," Invoke-Expression\n",{"type":19,"tag":20,"props":3904,"children":3905},{},[3906],{"type":24,"value":3907},"3.配置整体运行文件",{"type":19,"tag":296,"props":3909,"children":3911},{"className":3079,"code":3910,"language":3081,"meta":8,"style":8},"notepad++ $profile\n",[3912],{"type":19,"tag":76,"props":3913,"children":3914},{"__ignoreMap":8},[3915],{"type":19,"tag":306,"props":3916,"children":3917},{"class":308,"line":309},[3918,3923],{"type":19,"tag":306,"props":3919,"children":3920},{"style":313},[3921],{"type":24,"value":3922},"notepad++",{"type":19,"tag":306,"props":3924,"children":3925},{"style":699},[3926],{"type":24,"value":3723},{"type":19,"tag":20,"props":3928,"children":3929},{},[3930],{"type":24,"value":3931},"将以下文本写入其中：",{"type":19,"tag":296,"props":3933,"children":3935},{"className":3079,"code":3934,"language":3081,"meta":8,"style":8},"oh-my-posh init pwsh --config \u003C主题路径（json文件）> | Invoke-Expression\nImport-Module posh-git\nImport-Module Terminal-Icons\nSet-PSReadLineOption -PredictionSource History\nSet-PSReadlineKeyHandler -Key Tab -Function MenuComplete\n",[3936],{"type":19,"tag":76,"props":3937,"children":3938},{"__ignoreMap":8},[3939,3986,3998,4009,4027],{"type":19,"tag":306,"props":3940,"children":3941},{"class":308,"line":309},[3942,3946,3950,3954,3959,3964,3969,3974,3978,3982],{"type":19,"tag":306,"props":3943,"children":3944},{"style":313},[3945],{"type":24,"value":3882},{"type":19,"tag":306,"props":3947,"children":3948},{"style":319},[3949],{"type":24,"value":3887},{"type":19,"tag":306,"props":3951,"children":3952},{"style":319},[3953],{"type":24,"value":3892},{"type":19,"tag":306,"props":3955,"children":3956},{"style":521},[3957],{"type":24,"value":3958}," --config",{"type":19,"tag":306,"props":3960,"children":3961},{"style":705},[3962],{"type":24,"value":3963}," \u003C",{"type":19,"tag":306,"props":3965,"children":3966},{"style":319},[3967],{"type":24,"value":3968},"主题路径（json文件",{"type":19,"tag":306,"props":3970,"children":3971},{"style":699},[3972],{"type":24,"value":3973},"）",{"type":19,"tag":306,"props":3975,"children":3976},{"style":705},[3977],{"type":24,"value":3128},{"type":19,"tag":306,"props":3979,"children":3980},{"style":705},[3981],{"type":24,"value":3897},{"type":19,"tag":306,"props":3983,"children":3984},{"style":313},[3985],{"type":24,"value":3902},{"type":19,"tag":306,"props":3987,"children":3988},{"class":308,"line":325},[3989,3994],{"type":19,"tag":306,"props":3990,"children":3991},{"style":313},[3992],{"type":24,"value":3993},"Import-Module",{"type":19,"tag":306,"props":3995,"children":3996},{"style":319},[3997],{"type":24,"value":3753},{"type":19,"tag":306,"props":3999,"children":4000},{"class":308,"line":339},[4001,4005],{"type":19,"tag":306,"props":4002,"children":4003},{"style":313},[4004],{"type":24,"value":3993},{"type":19,"tag":306,"props":4006,"children":4007},{"style":319},[4008],{"type":24,"value":3766},{"type":19,"tag":306,"props":4010,"children":4011},{"class":308,"line":1654},[4012,4017,4022],{"type":19,"tag":306,"props":4013,"children":4014},{"style":313},[4015],{"type":24,"value":4016},"Set-PSReadLineOption",{"type":19,"tag":306,"props":4018,"children":4019},{"style":521},[4020],{"type":24,"value":4021}," -PredictionSource",{"type":19,"tag":306,"props":4023,"children":4024},{"style":319},[4025],{"type":24,"value":4026}," History\n",{"type":19,"tag":306,"props":4028,"children":4029},{"class":308,"line":3676},[4030,4035,4040,4045,4050],{"type":19,"tag":306,"props":4031,"children":4032},{"style":313},[4033],{"type":24,"value":4034},"Set-PSReadlineKeyHandler",{"type":19,"tag":306,"props":4036,"children":4037},{"style":521},[4038],{"type":24,"value":4039}," -Key",{"type":19,"tag":306,"props":4041,"children":4042},{"style":319},[4043],{"type":24,"value":4044}," Tab",{"type":19,"tag":306,"props":4046,"children":4047},{"style":521},[4048],{"type":24,"value":4049}," -Function",{"type":19,"tag":306,"props":4051,"children":4052},{"style":319},[4053],{"type":24,"value":4054}," MenuComplete\n",{"type":19,"tag":20,"props":4056,"children":4057},{},[4058],{"type":24,"value":4059},"重新打开terminal查看安装效果",{"type":19,"tag":222,"props":4061,"children":4063},{"id":4062},"六安装wsl2",[4064],{"type":24,"value":4065},"六、安装WSL2",{"type":19,"tag":20,"props":4067,"children":4068},{},[4069,4074],{"type":19,"tag":68,"props":4070,"children":4071},{},[4072],{"type":24,"value":4073},"以管理员身份",{"type":24,"value":4075},"打开windows terminal",{"type":19,"tag":296,"props":4077,"children":4079},{"className":298,"code":4078,"language":300,"meta":8,"style":8},"# 开启VM组件 开启后需要重启电脑\nEnable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform\n\n# 列出可安装的安装包\nwsl --list --online\n\n# 安装你想要的发行版，我这里是Ubuntu-22.04\nwsl --install -d Ubuntu-22.04\n\n# 设置为wsl2\nwsl --set-default-version 2\n",[4080],{"type":19,"tag":76,"props":4081,"children":4082},{"__ignoreMap":8},[4083,4091,4114,4121,4129,4147,4154,4162,4184,4191,4199],{"type":19,"tag":306,"props":4084,"children":4085},{"class":308,"line":309},[4086],{"type":19,"tag":306,"props":4087,"children":4088},{"style":343},[4089],{"type":24,"value":4090},"# 开启VM组件 开启后需要重启电脑\n",{"type":19,"tag":306,"props":4092,"children":4093},{"class":308,"line":325},[4094,4099,4104,4109],{"type":19,"tag":306,"props":4095,"children":4096},{"style":313},[4097],{"type":24,"value":4098},"Enable-WindowsOptionalFeature",{"type":19,"tag":306,"props":4100,"children":4101},{"style":521},[4102],{"type":24,"value":4103}," -Online",{"type":19,"tag":306,"props":4105,"children":4106},{"style":521},[4107],{"type":24,"value":4108}," -FeatureName",{"type":19,"tag":306,"props":4110,"children":4111},{"style":319},[4112],{"type":24,"value":4113}," VirtualMachinePlatform\n",{"type":19,"tag":306,"props":4115,"children":4116},{"class":308,"line":339},[4117],{"type":19,"tag":306,"props":4118,"children":4119},{"emptyLinePlaceholder":3662},[4120],{"type":24,"value":3665},{"type":19,"tag":306,"props":4122,"children":4123},{"class":308,"line":1654},[4124],{"type":19,"tag":306,"props":4125,"children":4126},{"style":343},[4127],{"type":24,"value":4128},"# 列出可安装的安装包\n",{"type":19,"tag":306,"props":4130,"children":4131},{"class":308,"line":3676},[4132,4137,4142],{"type":19,"tag":306,"props":4133,"children":4134},{"style":313},[4135],{"type":24,"value":4136},"wsl",{"type":19,"tag":306,"props":4138,"children":4139},{"style":521},[4140],{"type":24,"value":4141}," --list",{"type":19,"tag":306,"props":4143,"children":4144},{"style":521},[4145],{"type":24,"value":4146}," --online\n",{"type":19,"tag":306,"props":4148,"children":4149},{"class":308,"line":3695},[4150],{"type":19,"tag":306,"props":4151,"children":4152},{"emptyLinePlaceholder":3662},[4153],{"type":24,"value":3665},{"type":19,"tag":306,"props":4155,"children":4156},{"class":308,"line":3703},[4157],{"type":19,"tag":306,"props":4158,"children":4159},{"style":343},[4160],{"type":24,"value":4161},"# 安装你想要的发行版，我这里是Ubuntu-22.04\n",{"type":19,"tag":306,"props":4163,"children":4164},{"class":308,"line":3712},[4165,4169,4174,4179],{"type":19,"tag":306,"props":4166,"children":4167},{"style":313},[4168],{"type":24,"value":4136},{"type":19,"tag":306,"props":4170,"children":4171},{"style":521},[4172],{"type":24,"value":4173}," --install",{"type":19,"tag":306,"props":4175,"children":4176},{"style":521},[4177],{"type":24,"value":4178}," -d",{"type":19,"tag":306,"props":4180,"children":4181},{"style":319},[4182],{"type":24,"value":4183}," Ubuntu-22.04\n",{"type":19,"tag":306,"props":4185,"children":4186},{"class":308,"line":3726},[4187],{"type":19,"tag":306,"props":4188,"children":4189},{"emptyLinePlaceholder":3662},[4190],{"type":24,"value":3665},{"type":19,"tag":306,"props":4192,"children":4193},{"class":308,"line":3734},[4194],{"type":19,"tag":306,"props":4195,"children":4196},{"style":343},[4197],{"type":24,"value":4198},"# 设置为wsl2\n",{"type":19,"tag":306,"props":4200,"children":4201},{"class":308,"line":3743},[4202,4206,4211],{"type":19,"tag":306,"props":4203,"children":4204},{"style":313},[4205],{"type":24,"value":4136},{"type":19,"tag":306,"props":4207,"children":4208},{"style":521},[4209],{"type":24,"value":4210}," --set-default-version",{"type":19,"tag":306,"props":4212,"children":4213},{"style":521},[4214],{"type":24,"value":4215}," 2\n",{"type":19,"tag":20,"props":4217,"children":4218},{},[4219],{"type":24,"value":4220},"WSL可以简单的创建多个发行版，并进行管理和切换。并且可以对接VS code及Jetbrain(学生可以申请专业版！！快去)等IDE。支持CUDA，docker，并且享受linux命令行的各种工具。掌握使用WSL是重要的。\n现在来举例一些基本的操作。",{"type":19,"tag":296,"props":4222,"children":4224},{"className":298,"code":4223,"language":300,"meta":8,"style":8},"# 列出已安装的Linux发行版\nwsl -l -v\n# 导出\u002F备份\nwsl --export Ubuntu-22.04 Ubuntu-22.04.tar\n# 导入\u002F还原\u002F利用备份创建新的安装\n# wsl --import \u003Cwsl_name> \u003Croute> \u003Csource>\nwsl --import Anaconda C:\\Users\\niina\\root\\var\\wsl\\anaconda\n",[4225],{"type":19,"tag":76,"props":4226,"children":4227},{"__ignoreMap":8},[4228,4236,4253,4261,4283,4291,4299],{"type":19,"tag":306,"props":4229,"children":4230},{"class":308,"line":309},[4231],{"type":19,"tag":306,"props":4232,"children":4233},{"style":343},[4234],{"type":24,"value":4235},"# 列出已安装的Linux发行版\n",{"type":19,"tag":306,"props":4237,"children":4238},{"class":308,"line":325},[4239,4243,4248],{"type":19,"tag":306,"props":4240,"children":4241},{"style":313},[4242],{"type":24,"value":4136},{"type":19,"tag":306,"props":4244,"children":4245},{"style":521},[4246],{"type":24,"value":4247}," -l",{"type":19,"tag":306,"props":4249,"children":4250},{"style":521},[4251],{"type":24,"value":4252}," -v\n",{"type":19,"tag":306,"props":4254,"children":4255},{"class":308,"line":339},[4256],{"type":19,"tag":306,"props":4257,"children":4258},{"style":343},[4259],{"type":24,"value":4260},"# 导出\u002F备份\n",{"type":19,"tag":306,"props":4262,"children":4263},{"class":308,"line":1654},[4264,4268,4273,4278],{"type":19,"tag":306,"props":4265,"children":4266},{"style":313},[4267],{"type":24,"value":4136},{"type":19,"tag":306,"props":4269,"children":4270},{"style":521},[4271],{"type":24,"value":4272}," --export",{"type":19,"tag":306,"props":4274,"children":4275},{"style":319},[4276],{"type":24,"value":4277}," Ubuntu-22.04",{"type":19,"tag":306,"props":4279,"children":4280},{"style":319},[4281],{"type":24,"value":4282}," Ubuntu-22.04.tar\n",{"type":19,"tag":306,"props":4284,"children":4285},{"class":308,"line":3676},[4286],{"type":19,"tag":306,"props":4287,"children":4288},{"style":343},[4289],{"type":24,"value":4290},"# 导入\u002F还原\u002F利用备份创建新的安装\n",{"type":19,"tag":306,"props":4292,"children":4293},{"class":308,"line":3695},[4294],{"type":19,"tag":306,"props":4295,"children":4296},{"style":343},[4297],{"type":24,"value":4298},"# wsl --import \u003Cwsl_name> \u003Croute> \u003Csource>\n",{"type":19,"tag":306,"props":4300,"children":4301},{"class":308,"line":3703},[4302,4306,4311,4316,4320,4324,4328,4333,4338,4343,4348,4353,4358,4363,4368,4373],{"type":19,"tag":306,"props":4303,"children":4304},{"style":313},[4305],{"type":24,"value":4136},{"type":19,"tag":306,"props":4307,"children":4308},{"style":521},[4309],{"type":24,"value":4310}," --import",{"type":19,"tag":306,"props":4312,"children":4313},{"style":319},[4314],{"type":24,"value":4315}," Anaconda",{"type":19,"tag":306,"props":4317,"children":4318},{"style":319},[4319],{"type":24,"value":3098},{"type":19,"tag":306,"props":4321,"children":4322},{"style":521},[4323],{"type":24,"value":3103},{"type":19,"tag":306,"props":4325,"children":4326},{"style":319},[4327],{"type":24,"value":3108},{"type":19,"tag":306,"props":4329,"children":4330},{"style":521},[4331],{"type":24,"value":4332},"\\n",{"type":19,"tag":306,"props":4334,"children":4335},{"style":319},[4336],{"type":24,"value":4337},"iina",{"type":19,"tag":306,"props":4339,"children":4340},{"style":521},[4341],{"type":24,"value":4342},"\\r",{"type":19,"tag":306,"props":4344,"children":4345},{"style":319},[4346],{"type":24,"value":4347},"oot",{"type":19,"tag":306,"props":4349,"children":4350},{"style":521},[4351],{"type":24,"value":4352},"\\v",{"type":19,"tag":306,"props":4354,"children":4355},{"style":319},[4356],{"type":24,"value":4357},"ar",{"type":19,"tag":306,"props":4359,"children":4360},{"style":521},[4361],{"type":24,"value":4362},"\\w",{"type":19,"tag":306,"props":4364,"children":4365},{"style":319},[4366],{"type":24,"value":4367},"sl",{"type":19,"tag":306,"props":4369,"children":4370},{"style":521},[4371],{"type":24,"value":4372},"\\a",{"type":19,"tag":306,"props":4374,"children":4375},{"style":319},[4376],{"type":24,"value":4377},"naconda\n",{"type":19,"tag":20,"props":4379,"children":4380},{},[4381],{"type":24,"value":4382},"以上操作完成后，在win+Q(或win)中搜索ubuntu on Windows，打开，完成安装和账号注册（Unix账号必须是开头小写的单词）",{"type":19,"tag":20,"props":4384,"children":4385},{},[4386],{"type":24,"value":4387},"完成后打开windows terminal的下拉菜单，会发现多出了一个Ubuntu的标签页。后面移步Linux的配置。",{"type":19,"tag":20,"props":4389,"children":4390},{},[4391,4393,4400,4402],{"type":24,"value":4392},"WSL学习使用：",{"type":19,"tag":32,"props":4394,"children":4397},{"href":4395,"rel":4396},"https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fwindows\u002Fwsl\u002F",[54],[4398],{"type":24,"value":4399},"适用于 Linux 的 Windows 子系统文档 | Microsoft Learn",{"type":24,"value":4401},"\n开源的一个WSL入门手册： ",{"type":19,"tag":32,"props":4403,"children":4406},{"href":4404,"rel":4405},"https:\u002F\u002Fdowww.spencerwoo.com\u002F",[54],[4407],{"type":24,"value":4408},"在Windows上优雅地使用WSL开发",{"type":19,"tag":20,"props":4410,"children":4411},{},[4412],{"type":24,"value":4413},"七、兴趣爱好",{"type":19,"tag":60,"props":4415,"children":4416},{},[4417,4428,4438,4443,4453,4463,4473],{"type":19,"tag":64,"props":4418,"children":4419},{},[4420,4422],{"type":24,"value":4421},"cuDNN开发套件（用于开发kernel op和安装编译torch cuda） ",{"type":19,"tag":32,"props":4423,"children":4426},{"href":4424,"rel":4425},"https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-downloads",[54],[4427],{"type":24,"value":4424},{"type":19,"tag":64,"props":4429,"children":4430},{},[4431],{"type":19,"tag":32,"props":4432,"children":4435},{"href":4433,"rel":4434},"https:\u002F\u002Fwww.flstudiochina.com\u002Fxiazai.html",[54],[4436],{"type":24,"value":4437},"FL Studio",{"type":19,"tag":64,"props":4439,"children":4440},{},[4441],{"type":24,"value":4442},"Cubase",{"type":19,"tag":64,"props":4444,"children":4445},{},[4446],{"type":19,"tag":32,"props":4447,"children":4450},{"href":4448,"rel":4449},"https:\u002F\u002Fwww.reaper.fm\u002Fdownload.php",[54],[4451],{"type":24,"value":4452},"REAPER",{"type":19,"tag":64,"props":4454,"children":4455},{},[4456],{"type":19,"tag":32,"props":4457,"children":4460},{"href":4458,"rel":4459},"https:\u002F\u002Fdreamtonics.com\u002Fen\u002Fsynthesizerv\u002F",[54],[4461],{"type":24,"value":4462},"Synthesizer V",{"type":19,"tag":64,"props":4464,"children":4465},{},[4466],{"type":19,"tag":32,"props":4467,"children":4470},{"href":4468,"rel":4469},"https:\u002F\u002Fstore.steampowered.com\u002Fabout\u002F",[54],[4471],{"type":24,"value":4472},"Steam",{"type":19,"tag":64,"props":4474,"children":4475},{},[4476,4478],{"type":24,"value":4477},"ACE studio  ",{"type":19,"tag":32,"props":4479,"children":4482},{"href":4480,"rel":4481},"https:\u002F\u002Face-studio.timedomain.cn\u002F",[54],[4483],{"type":24,"value":4480},{"type":19,"tag":222,"props":4485,"children":4487},{"id":4486},"linux",[4488],{"type":24,"value":4489},"Linux",{"type":19,"tag":486,"props":4491,"children":4493},{"id":4492},"一apt换源",[4494],{"type":24,"value":4495},"一、apt换源",{"type":19,"tag":20,"props":4497,"children":4498},{},[4499],{"type":24,"value":4500},"操作如下。",{"type":19,"tag":296,"props":4502,"children":4504},{"className":3079,"code":4503,"language":3081,"meta":8,"style":8},"cd \u002Fetc\u002Fapt\u002F\n\n# 留个source备份\nsudo cp sources.list sources.list.backup\n\n# 使用源\nsudo vim sources.list\n",[4505],{"type":19,"tag":76,"props":4506,"children":4507},{"__ignoreMap":8},[4508,4520,4527,4535,4558,4565,4573],{"type":19,"tag":306,"props":4509,"children":4510},{"class":308,"line":309},[4511,4515],{"type":19,"tag":306,"props":4512,"children":4513},{"style":521},[4514],{"type":24,"value":3093},{"type":19,"tag":306,"props":4516,"children":4517},{"style":319},[4518],{"type":24,"value":4519}," \u002Fetc\u002Fapt\u002F\n",{"type":19,"tag":306,"props":4521,"children":4522},{"class":308,"line":325},[4523],{"type":19,"tag":306,"props":4524,"children":4525},{"emptyLinePlaceholder":3662},[4526],{"type":24,"value":3665},{"type":19,"tag":306,"props":4528,"children":4529},{"class":308,"line":339},[4530],{"type":19,"tag":306,"props":4531,"children":4532},{"style":343},[4533],{"type":24,"value":4534},"# 留个source备份\n",{"type":19,"tag":306,"props":4536,"children":4537},{"class":308,"line":1654},[4538,4543,4548,4553],{"type":19,"tag":306,"props":4539,"children":4540},{"style":313},[4541],{"type":24,"value":4542},"sudo",{"type":19,"tag":306,"props":4544,"children":4545},{"style":319},[4546],{"type":24,"value":4547}," cp",{"type":19,"tag":306,"props":4549,"children":4550},{"style":319},[4551],{"type":24,"value":4552}," sources.list",{"type":19,"tag":306,"props":4554,"children":4555},{"style":319},[4556],{"type":24,"value":4557}," sources.list.backup\n",{"type":19,"tag":306,"props":4559,"children":4560},{"class":308,"line":3676},[4561],{"type":19,"tag":306,"props":4562,"children":4563},{"emptyLinePlaceholder":3662},[4564],{"type":24,"value":3665},{"type":19,"tag":306,"props":4566,"children":4567},{"class":308,"line":3695},[4568],{"type":19,"tag":306,"props":4569,"children":4570},{"style":343},[4571],{"type":24,"value":4572},"# 使用源\n",{"type":19,"tag":306,"props":4574,"children":4575},{"class":308,"line":3703},[4576,4580,4585],{"type":19,"tag":306,"props":4577,"children":4578},{"style":313},[4579],{"type":24,"value":4542},{"type":19,"tag":306,"props":4581,"children":4582},{"style":319},[4583],{"type":24,"value":4584}," vim",{"type":19,"tag":306,"props":4586,"children":4587},{"style":319},[4588],{"type":24,"value":4589}," sources.list\n",{"type":19,"tag":20,"props":4591,"children":4592},{},[4593,4595,4601,4603,4610],{"type":24,"value":4594},"写入：(根据ubuntu版本号自己查, ",{"type":19,"tag":76,"props":4596,"children":4598},{"className":4597},[],[4599],{"type":24,"value":4600},"cat \u002Fetc\u002Fos-release",{"type":24,"value":4602},")\n清华源给出的Ubuntu22.04源的网址 ",{"type":19,"tag":32,"props":4604,"children":4607},{"href":4605,"rel":4606},"https:\u002F\u002Fmirrors.tuna.tsinghua.edu.cn\u002Fhelp\u002Fubuntu\u002F",[54],[4608],{"type":24,"value":4609},"Ubuntu",{"type":24,"value":4611},"\n下面是同版本阿里云的源，复制粘贴进即可。",{"type":19,"tag":296,"props":4613,"children":4615},{"className":3079,"code":4614,"language":3081,"meta":8,"style":8},"## aliyun mirrors\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-security main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-security main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-updates main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-updates main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-proposed main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-proposed main restricted universe multiverse\n\ndeb http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-backports main restricted universe multiverse\ndeb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F jammy-backports main restricted universe multiverse\n## aliyun mirrors End\n",[4616],{"type":19,"tag":76,"props":4617,"children":4618},{"__ignoreMap":8},[4619,4627,4665,4697,4704,4736,4767,4774,4806,4837,4844,4876,4907,4915,4948,4980],{"type":19,"tag":306,"props":4620,"children":4621},{"class":308,"line":309},[4622],{"type":19,"tag":306,"props":4623,"children":4624},{"style":343},[4625],{"type":24,"value":4626},"## aliyun mirrors\n",{"type":19,"tag":306,"props":4628,"children":4629},{"class":308,"line":325},[4630,4635,4640,4645,4650,4655,4660],{"type":19,"tag":306,"props":4631,"children":4632},{"style":313},[4633],{"type":24,"value":4634},"deb",{"type":19,"tag":306,"props":4636,"children":4637},{"style":319},[4638],{"type":24,"value":4639}," http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F",{"type":19,"tag":306,"props":4641,"children":4642},{"style":319},[4643],{"type":24,"value":4644}," jammy",{"type":19,"tag":306,"props":4646,"children":4647},{"style":319},[4648],{"type":24,"value":4649}," main",{"type":19,"tag":306,"props":4651,"children":4652},{"style":319},[4653],{"type":24,"value":4654}," restricted",{"type":19,"tag":306,"props":4656,"children":4657},{"style":319},[4658],{"type":24,"value":4659}," universe",{"type":19,"tag":306,"props":4661,"children":4662},{"style":319},[4663],{"type":24,"value":4664}," multiverse\n",{"type":19,"tag":306,"props":4666,"children":4667},{"class":308,"line":339},[4668,4673,4677,4681,4685,4689,4693],{"type":19,"tag":306,"props":4669,"children":4670},{"style":313},[4671],{"type":24,"value":4672},"deb-src",{"type":19,"tag":306,"props":4674,"children":4675},{"style":319},[4676],{"type":24,"value":4639},{"type":19,"tag":306,"props":4678,"children":4679},{"style":319},[4680],{"type":24,"value":4644},{"type":19,"tag":306,"props":4682,"children":4683},{"style":319},[4684],{"type":24,"value":4649},{"type":19,"tag":306,"props":4686,"children":4687},{"style":319},[4688],{"type":24,"value":4654},{"type":19,"tag":306,"props":4690,"children":4691},{"style":319},[4692],{"type":24,"value":4659},{"type":19,"tag":306,"props":4694,"children":4695},{"style":319},[4696],{"type":24,"value":4664},{"type":19,"tag":306,"props":4698,"children":4699},{"class":308,"line":1654},[4700],{"type":19,"tag":306,"props":4701,"children":4702},{"emptyLinePlaceholder":3662},[4703],{"type":24,"value":3665},{"type":19,"tag":306,"props":4705,"children":4706},{"class":308,"line":3676},[4707,4711,4715,4720,4724,4728,4732],{"type":19,"tag":306,"props":4708,"children":4709},{"style":313},[4710],{"type":24,"value":4634},{"type":19,"tag":306,"props":4712,"children":4713},{"style":319},[4714],{"type":24,"value":4639},{"type":19,"tag":306,"props":4716,"children":4717},{"style":319},[4718],{"type":24,"value":4719}," jammy-security",{"type":19,"tag":306,"props":4721,"children":4722},{"style":319},[4723],{"type":24,"value":4649},{"type":19,"tag":306,"props":4725,"children":4726},{"style":319},[4727],{"type":24,"value":4654},{"type":19,"tag":306,"props":4729,"children":4730},{"style":319},[4731],{"type":24,"value":4659},{"type":19,"tag":306,"props":4733,"children":4734},{"style":319},[4735],{"type":24,"value":4664},{"type":19,"tag":306,"props":4737,"children":4738},{"class":308,"line":3695},[4739,4743,4747,4751,4755,4759,4763],{"type":19,"tag":306,"props":4740,"children":4741},{"style":313},[4742],{"type":24,"value":4672},{"type":19,"tag":306,"props":4744,"children":4745},{"style":319},[4746],{"type":24,"value":4639},{"type":19,"tag":306,"props":4748,"children":4749},{"style":319},[4750],{"type":24,"value":4719},{"type":19,"tag":306,"props":4752,"children":4753},{"style":319},[4754],{"type":24,"value":4649},{"type":19,"tag":306,"props":4756,"children":4757},{"style":319},[4758],{"type":24,"value":4654},{"type":19,"tag":306,"props":4760,"children":4761},{"style":319},[4762],{"type":24,"value":4659},{"type":19,"tag":306,"props":4764,"children":4765},{"style":319},[4766],{"type":24,"value":4664},{"type":19,"tag":306,"props":4768,"children":4769},{"class":308,"line":3703},[4770],{"type":19,"tag":306,"props":4771,"children":4772},{"emptyLinePlaceholder":3662},[4773],{"type":24,"value":3665},{"type":19,"tag":306,"props":4775,"children":4776},{"class":308,"line":3712},[4777,4781,4785,4790,4794,4798,4802],{"type":19,"tag":306,"props":4778,"children":4779},{"style":313},[4780],{"type":24,"value":4634},{"type":19,"tag":306,"props":4782,"children":4783},{"style":319},[4784],{"type":24,"value":4639},{"type":19,"tag":306,"props":4786,"children":4787},{"style":319},[4788],{"type":24,"value":4789}," jammy-updates",{"type":19,"tag":306,"props":4791,"children":4792},{"style":319},[4793],{"type":24,"value":4649},{"type":19,"tag":306,"props":4795,"children":4796},{"style":319},[4797],{"type":24,"value":4654},{"type":19,"tag":306,"props":4799,"children":4800},{"style":319},[4801],{"type":24,"value":4659},{"type":19,"tag":306,"props":4803,"children":4804},{"style":319},[4805],{"type":24,"value":4664},{"type":19,"tag":306,"props":4807,"children":4808},{"class":308,"line":3726},[4809,4813,4817,4821,4825,4829,4833],{"type":19,"tag":306,"props":4810,"children":4811},{"style":313},[4812],{"type":24,"value":4672},{"type":19,"tag":306,"props":4814,"children":4815},{"style":319},[4816],{"type":24,"value":4639},{"type":19,"tag":306,"props":4818,"children":4819},{"style":319},[4820],{"type":24,"value":4789},{"type":19,"tag":306,"props":4822,"children":4823},{"style":319},[4824],{"type":24,"value":4649},{"type":19,"tag":306,"props":4826,"children":4827},{"style":319},[4828],{"type":24,"value":4654},{"type":19,"tag":306,"props":4830,"children":4831},{"style":319},[4832],{"type":24,"value":4659},{"type":19,"tag":306,"props":4834,"children":4835},{"style":319},[4836],{"type":24,"value":4664},{"type":19,"tag":306,"props":4838,"children":4839},{"class":308,"line":3734},[4840],{"type":19,"tag":306,"props":4841,"children":4842},{"emptyLinePlaceholder":3662},[4843],{"type":24,"value":3665},{"type":19,"tag":306,"props":4845,"children":4846},{"class":308,"line":3743},[4847,4851,4855,4860,4864,4868,4872],{"type":19,"tag":306,"props":4848,"children":4849},{"style":313},[4850],{"type":24,"value":4634},{"type":19,"tag":306,"props":4852,"children":4853},{"style":319},[4854],{"type":24,"value":4639},{"type":19,"tag":306,"props":4856,"children":4857},{"style":319},[4858],{"type":24,"value":4859}," jammy-proposed",{"type":19,"tag":306,"props":4861,"children":4862},{"style":319},[4863],{"type":24,"value":4649},{"type":19,"tag":306,"props":4865,"children":4866},{"style":319},[4867],{"type":24,"value":4654},{"type":19,"tag":306,"props":4869,"children":4870},{"style":319},[4871],{"type":24,"value":4659},{"type":19,"tag":306,"props":4873,"children":4874},{"style":319},[4875],{"type":24,"value":4664},{"type":19,"tag":306,"props":4877,"children":4878},{"class":308,"line":3756},[4879,4883,4887,4891,4895,4899,4903],{"type":19,"tag":306,"props":4880,"children":4881},{"style":313},[4882],{"type":24,"value":4672},{"type":19,"tag":306,"props":4884,"children":4885},{"style":319},[4886],{"type":24,"value":4639},{"type":19,"tag":306,"props":4888,"children":4889},{"style":319},[4890],{"type":24,"value":4859},{"type":19,"tag":306,"props":4892,"children":4893},{"style":319},[4894],{"type":24,"value":4649},{"type":19,"tag":306,"props":4896,"children":4897},{"style":319},[4898],{"type":24,"value":4654},{"type":19,"tag":306,"props":4900,"children":4901},{"style":319},[4902],{"type":24,"value":4659},{"type":19,"tag":306,"props":4904,"children":4905},{"style":319},[4906],{"type":24,"value":4664},{"type":19,"tag":306,"props":4908,"children":4910},{"class":308,"line":4909},13,[4911],{"type":19,"tag":306,"props":4912,"children":4913},{"emptyLinePlaceholder":3662},[4914],{"type":24,"value":3665},{"type":19,"tag":306,"props":4916,"children":4918},{"class":308,"line":4917},14,[4919,4923,4927,4932,4936,4940,4944],{"type":19,"tag":306,"props":4920,"children":4921},{"style":313},[4922],{"type":24,"value":4634},{"type":19,"tag":306,"props":4924,"children":4925},{"style":319},[4926],{"type":24,"value":4639},{"type":19,"tag":306,"props":4928,"children":4929},{"style":319},[4930],{"type":24,"value":4931}," jammy-backports",{"type":19,"tag":306,"props":4933,"children":4934},{"style":319},[4935],{"type":24,"value":4649},{"type":19,"tag":306,"props":4937,"children":4938},{"style":319},[4939],{"type":24,"value":4654},{"type":19,"tag":306,"props":4941,"children":4942},{"style":319},[4943],{"type":24,"value":4659},{"type":19,"tag":306,"props":4945,"children":4946},{"style":319},[4947],{"type":24,"value":4664},{"type":19,"tag":306,"props":4949,"children":4951},{"class":308,"line":4950},15,[4952,4956,4960,4964,4968,4972,4976],{"type":19,"tag":306,"props":4953,"children":4954},{"style":313},[4955],{"type":24,"value":4672},{"type":19,"tag":306,"props":4957,"children":4958},{"style":319},[4959],{"type":24,"value":4639},{"type":19,"tag":306,"props":4961,"children":4962},{"style":319},[4963],{"type":24,"value":4931},{"type":19,"tag":306,"props":4965,"children":4966},{"style":319},[4967],{"type":24,"value":4649},{"type":19,"tag":306,"props":4969,"children":4970},{"style":319},[4971],{"type":24,"value":4654},{"type":19,"tag":306,"props":4973,"children":4974},{"style":319},[4975],{"type":24,"value":4659},{"type":19,"tag":306,"props":4977,"children":4978},{"style":319},[4979],{"type":24,"value":4664},{"type":19,"tag":306,"props":4981,"children":4983},{"class":308,"line":4982},16,[4984],{"type":19,"tag":306,"props":4985,"children":4986},{"style":343},[4987],{"type":24,"value":4988},"## aliyun mirrors End\n",{"type":19,"tag":20,"props":4990,"children":4991},{},[4992],{"type":24,"value":4993},"保存退出。",{"type":19,"tag":20,"props":4995,"children":4996},{},[4997],{"type":24,"value":4998},"移除自带的包（因为可能和国内源的软件有冲突）",{"type":19,"tag":296,"props":5000,"children":5002},{"className":504,"code":5001,"language":506,"meta":8,"style":8},"sudo apt remove ubuntu-advantage-tools\n",[5003],{"type":19,"tag":76,"props":5004,"children":5005},{"__ignoreMap":8},[5006],{"type":19,"tag":306,"props":5007,"children":5008},{"class":308,"line":309},[5009,5013,5018,5023],{"type":19,"tag":306,"props":5010,"children":5011},{"style":313},[5012],{"type":24,"value":4542},{"type":19,"tag":306,"props":5014,"children":5015},{"style":319},[5016],{"type":24,"value":5017}," apt",{"type":19,"tag":306,"props":5019,"children":5020},{"style":319},[5021],{"type":24,"value":5022}," remove",{"type":19,"tag":306,"props":5024,"children":5025},{"style":319},[5026],{"type":24,"value":5027}," ubuntu-advantage-tools\n",{"type":19,"tag":20,"props":5029,"children":5030},{},[5031],{"type":24,"value":5032},"更新包管理器：",{"type":19,"tag":296,"props":5034,"children":5036},{"className":298,"code":5035,"language":300,"meta":8,"style":8},"sudo apt update && sudo apt upgrade\nsudo apt-get update\n",[5037],{"type":19,"tag":76,"props":5038,"children":5039},{"__ignoreMap":8},[5040,5074],{"type":19,"tag":306,"props":5041,"children":5042},{"class":308,"line":309},[5043,5047,5051,5056,5061,5065,5069],{"type":19,"tag":306,"props":5044,"children":5045},{"style":313},[5046],{"type":24,"value":4542},{"type":19,"tag":306,"props":5048,"children":5049},{"style":319},[5050],{"type":24,"value":5017},{"type":19,"tag":306,"props":5052,"children":5053},{"style":319},[5054],{"type":24,"value":5055}," update",{"type":19,"tag":306,"props":5057,"children":5058},{"style":699},[5059],{"type":24,"value":5060}," && ",{"type":19,"tag":306,"props":5062,"children":5063},{"style":313},[5064],{"type":24,"value":4542},{"type":19,"tag":306,"props":5066,"children":5067},{"style":319},[5068],{"type":24,"value":5017},{"type":19,"tag":306,"props":5070,"children":5071},{"style":319},[5072],{"type":24,"value":5073}," upgrade\n",{"type":19,"tag":306,"props":5075,"children":5076},{"class":308,"line":325},[5077,5081,5086],{"type":19,"tag":306,"props":5078,"children":5079},{"style":313},[5080],{"type":24,"value":4542},{"type":19,"tag":306,"props":5082,"children":5083},{"style":319},[5084],{"type":24,"value":5085}," apt-get",{"type":19,"tag":306,"props":5087,"children":5088},{"style":319},[5089],{"type":24,"value":5090}," update\n",{"type":19,"tag":486,"props":5092,"children":5094},{"id":5093},"二安装基本的开发工具",[5095],{"type":24,"value":5096},"二、安装基本的开发工具",{"type":19,"tag":296,"props":5098,"children":5100},{"className":298,"code":5099,"language":300,"meta":8,"style":8},"# mingw套组\nsudo apt install build-essential cmake\n\n# python3 pip 工具\nsudo apt install python3-pip\npip config set global.index-url https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n",[5101],{"type":19,"tag":76,"props":5102,"children":5103},{"__ignoreMap":8},[5104,5112,5137,5144,5152,5172],{"type":19,"tag":306,"props":5105,"children":5106},{"class":308,"line":309},[5107],{"type":19,"tag":306,"props":5108,"children":5109},{"style":343},[5110],{"type":24,"value":5111},"# mingw套组\n",{"type":19,"tag":306,"props":5113,"children":5114},{"class":308,"line":325},[5115,5119,5123,5127,5132],{"type":19,"tag":306,"props":5116,"children":5117},{"style":313},[5118],{"type":24,"value":4542},{"type":19,"tag":306,"props":5120,"children":5121},{"style":319},[5122],{"type":24,"value":5017},{"type":19,"tag":306,"props":5124,"children":5125},{"style":319},[5126],{"type":24,"value":3796},{"type":19,"tag":306,"props":5128,"children":5129},{"style":319},[5130],{"type":24,"value":5131}," build-essential",{"type":19,"tag":306,"props":5133,"children":5134},{"style":319},[5135],{"type":24,"value":5136}," cmake\n",{"type":19,"tag":306,"props":5138,"children":5139},{"class":308,"line":339},[5140],{"type":19,"tag":306,"props":5141,"children":5142},{"emptyLinePlaceholder":3662},[5143],{"type":24,"value":3665},{"type":19,"tag":306,"props":5145,"children":5146},{"class":308,"line":1654},[5147],{"type":19,"tag":306,"props":5148,"children":5149},{"style":343},[5150],{"type":24,"value":5151},"# python3 pip 工具\n",{"type":19,"tag":306,"props":5153,"children":5154},{"class":308,"line":3676},[5155,5159,5163,5167],{"type":19,"tag":306,"props":5156,"children":5157},{"style":313},[5158],{"type":24,"value":4542},{"type":19,"tag":306,"props":5160,"children":5161},{"style":319},[5162],{"type":24,"value":5017},{"type":19,"tag":306,"props":5164,"children":5165},{"style":319},[5166],{"type":24,"value":3796},{"type":19,"tag":306,"props":5168,"children":5169},{"style":319},[5170],{"type":24,"value":5171}," python3-pip\n",{"type":19,"tag":306,"props":5173,"children":5174},{"class":308,"line":3695},[5175,5179,5183,5187,5191],{"type":19,"tag":306,"props":5176,"children":5177},{"style":313},[5178],{"type":24,"value":3405},{"type":19,"tag":306,"props":5180,"children":5181},{"style":319},[5182],{"type":24,"value":3230},{"type":19,"tag":306,"props":5184,"children":5185},{"style":319},[5186],{"type":24,"value":3414},{"type":19,"tag":306,"props":5188,"children":5189},{"style":319},[5190],{"type":24,"value":3419},{"type":19,"tag":306,"props":5192,"children":5193},{"style":319},[5194],{"type":24,"value":3424},{"type":19,"tag":486,"props":5196,"children":5198},{"id":5197},"三美化终端",[5199],{"type":24,"value":5200},"三、美化终端",{"type":19,"tag":2224,"props":5202,"children":5204},{"id":5203},"使用fish",[5205],{"type":24,"value":5203},{"type":19,"tag":20,"props":5207,"children":5208},{},[5209],{"type":24,"value":5210},"安装",{"type":19,"tag":296,"props":5212,"children":5214},{"className":298,"code":5213,"language":300,"meta":8,"style":8},"sudo apt install fish\nchsh -s $(which fish)\nexport SHELL=`which fish` && exec \"$SHELL\" -l\n",[5215],{"type":19,"tag":76,"props":5216,"children":5217},{"__ignoreMap":8},[5218,5238,5270],{"type":19,"tag":306,"props":5219,"children":5220},{"class":308,"line":309},[5221,5225,5229,5233],{"type":19,"tag":306,"props":5222,"children":5223},{"style":313},[5224],{"type":24,"value":4542},{"type":19,"tag":306,"props":5226,"children":5227},{"style":319},[5228],{"type":24,"value":5017},{"type":19,"tag":306,"props":5230,"children":5231},{"style":319},[5232],{"type":24,"value":3796},{"type":19,"tag":306,"props":5234,"children":5235},{"style":319},[5236],{"type":24,"value":5237}," fish\n",{"type":19,"tag":306,"props":5239,"children":5240},{"class":308,"line":325},[5241,5246,5250,5255,5260,5265],{"type":19,"tag":306,"props":5242,"children":5243},{"style":313},[5244],{"type":24,"value":5245},"chsh",{"type":19,"tag":306,"props":5247,"children":5248},{"style":521},[5249],{"type":24,"value":3806},{"type":19,"tag":306,"props":5251,"children":5252},{"style":699},[5253],{"type":24,"value":5254}," $(",{"type":19,"tag":306,"props":5256,"children":5257},{"style":521},[5258],{"type":24,"value":5259},"which",{"type":19,"tag":306,"props":5261,"children":5262},{"style":319},[5263],{"type":24,"value":5264}," fish",{"type":19,"tag":306,"props":5266,"children":5267},{"style":699},[5268],{"type":24,"value":5269},")\n",{"type":19,"tag":306,"props":5271,"children":5272},{"class":308,"line":339},[5273,5277,5282,5286,5291,5295,5300,5304,5309,5314,5319,5324],{"type":19,"tag":306,"props":5274,"children":5275},{"style":705},[5276],{"type":24,"value":849},{"type":19,"tag":306,"props":5278,"children":5279},{"style":699},[5280],{"type":24,"value":5281}," SHELL",{"type":19,"tag":306,"props":5283,"children":5284},{"style":705},[5285],{"type":24,"value":708},{"type":19,"tag":306,"props":5287,"children":5288},{"style":319},[5289],{"type":24,"value":5290},"`",{"type":19,"tag":306,"props":5292,"children":5293},{"style":521},[5294],{"type":24,"value":5259},{"type":19,"tag":306,"props":5296,"children":5297},{"style":319},[5298],{"type":24,"value":5299}," fish`",{"type":19,"tag":306,"props":5301,"children":5302},{"style":699},[5303],{"type":24,"value":5060},{"type":19,"tag":306,"props":5305,"children":5306},{"style":521},[5307],{"type":24,"value":5308},"exec",{"type":19,"tag":306,"props":5310,"children":5311},{"style":319},[5312],{"type":24,"value":5313}," \"",{"type":19,"tag":306,"props":5315,"children":5316},{"style":699},[5317],{"type":24,"value":5318},"$SHELL",{"type":19,"tag":306,"props":5320,"children":5321},{"style":319},[5322],{"type":24,"value":5323},"\"",{"type":19,"tag":306,"props":5325,"children":5326},{"style":521},[5327],{"type":24,"value":5328}," -l\n",{"type":19,"tag":20,"props":5330,"children":5331},{},[5332],{"type":24,"value":5333},"修改风格",{"type":19,"tag":296,"props":5335,"children":5337},{"className":298,"code":5336,"language":300,"meta":8,"style":8},"fish_config prompt choose scope\nfish_config prompt save\n",[5338],{"type":19,"tag":76,"props":5339,"children":5340},{"__ignoreMap":8},[5341,5364],{"type":19,"tag":306,"props":5342,"children":5343},{"class":308,"line":309},[5344,5349,5354,5359],{"type":19,"tag":306,"props":5345,"children":5346},{"style":313},[5347],{"type":24,"value":5348},"fish_config",{"type":19,"tag":306,"props":5350,"children":5351},{"style":319},[5352],{"type":24,"value":5353}," prompt",{"type":19,"tag":306,"props":5355,"children":5356},{"style":319},[5357],{"type":24,"value":5358}," choose",{"type":19,"tag":306,"props":5360,"children":5361},{"style":319},[5362],{"type":24,"value":5363}," scope\n",{"type":19,"tag":306,"props":5365,"children":5366},{"class":308,"line":325},[5367,5371,5375],{"type":19,"tag":306,"props":5368,"children":5369},{"style":313},[5370],{"type":24,"value":5348},{"type":19,"tag":306,"props":5372,"children":5373},{"style":319},[5374],{"type":24,"value":5353},{"type":19,"tag":306,"props":5376,"children":5377},{"style":319},[5378],{"type":24,"value":5379}," save\n",{"type":19,"tag":20,"props":5381,"children":5382},{},[5383,5384,5391],{"type":24,"value":5210},{"type":19,"tag":32,"props":5385,"children":5388},{"href":5386,"rel":5387},"https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish",[54],[5389],{"type":24,"value":5390},"oh-my-fish",{"type":24,"value":5392}," 可选",{"type":19,"tag":296,"props":5394,"children":5396},{"className":298,"code":5395,"language":300,"meta":8,"style":8},"# with git\n$ git clone https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish\n$ cd oh-my-fish\n$ bin\u002Finstall --offline\n# with a tarball\n$ curl https:\u002F\u002Fraw.githubusercontent.com\u002Foh-my-fish\u002Foh-my-fish\u002Fmaster\u002Fbin\u002Finstall > install\n$ fish install --offline=omf.tar.gz\n",[5397],{"type":19,"tag":76,"props":5398,"children":5399},{"__ignoreMap":8},[5400,5408,5430,5447,5464,5472,5499],{"type":19,"tag":306,"props":5401,"children":5402},{"class":308,"line":309},[5403],{"type":19,"tag":306,"props":5404,"children":5405},{"style":343},[5406],{"type":24,"value":5407},"# with git\n",{"type":19,"tag":306,"props":5409,"children":5410},{"class":308,"line":325},[5411,5416,5421,5425],{"type":19,"tag":306,"props":5412,"children":5413},{"style":313},[5414],{"type":24,"value":5415},"$",{"type":19,"tag":306,"props":5417,"children":5418},{"style":319},[5419],{"type":24,"value":5420}," git",{"type":19,"tag":306,"props":5422,"children":5423},{"style":319},[5424],{"type":24,"value":3852},{"type":19,"tag":306,"props":5426,"children":5427},{"style":319},[5428],{"type":24,"value":5429}," https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish\n",{"type":19,"tag":306,"props":5431,"children":5432},{"class":308,"line":339},[5433,5437,5442],{"type":19,"tag":306,"props":5434,"children":5435},{"style":313},[5436],{"type":24,"value":5415},{"type":19,"tag":306,"props":5438,"children":5439},{"style":319},[5440],{"type":24,"value":5441}," cd",{"type":19,"tag":306,"props":5443,"children":5444},{"style":319},[5445],{"type":24,"value":5446}," oh-my-fish\n",{"type":19,"tag":306,"props":5448,"children":5449},{"class":308,"line":1654},[5450,5454,5459],{"type":19,"tag":306,"props":5451,"children":5452},{"style":313},[5453],{"type":24,"value":5415},{"type":19,"tag":306,"props":5455,"children":5456},{"style":319},[5457],{"type":24,"value":5458}," bin\u002Finstall",{"type":19,"tag":306,"props":5460,"children":5461},{"style":521},[5462],{"type":24,"value":5463}," --offline\n",{"type":19,"tag":306,"props":5465,"children":5466},{"class":308,"line":3676},[5467],{"type":19,"tag":306,"props":5468,"children":5469},{"style":343},[5470],{"type":24,"value":5471},"# with a tarball\n",{"type":19,"tag":306,"props":5473,"children":5474},{"class":308,"line":3695},[5475,5479,5484,5489,5494],{"type":19,"tag":306,"props":5476,"children":5477},{"style":313},[5478],{"type":24,"value":5415},{"type":19,"tag":306,"props":5480,"children":5481},{"style":319},[5482],{"type":24,"value":5483}," curl",{"type":19,"tag":306,"props":5485,"children":5486},{"style":319},[5487],{"type":24,"value":5488}," https:\u002F\u002Fraw.githubusercontent.com\u002Foh-my-fish\u002Foh-my-fish\u002Fmaster\u002Fbin\u002Finstall",{"type":19,"tag":306,"props":5490,"children":5491},{"style":705},[5492],{"type":24,"value":5493}," >",{"type":19,"tag":306,"props":5495,"children":5496},{"style":319},[5497],{"type":24,"value":5498}," install\n",{"type":19,"tag":306,"props":5500,"children":5501},{"class":308,"line":3703},[5502,5506,5510,5514],{"type":19,"tag":306,"props":5503,"children":5504},{"style":313},[5505],{"type":24,"value":5415},{"type":19,"tag":306,"props":5507,"children":5508},{"style":319},[5509],{"type":24,"value":5264},{"type":19,"tag":306,"props":5511,"children":5512},{"style":319},[5513],{"type":24,"value":3796},{"type":19,"tag":306,"props":5515,"children":5516},{"style":521},[5517],{"type":24,"value":5518}," --offline=omf.tar.gz\n",{"type":19,"tag":2224,"props":5520,"children":5522},{"id":5521},"使用zsh",[5523],{"type":24,"value":5521},{"type":19,"tag":20,"props":5525,"children":5526},{},[5527],{"type":24,"value":5210},{"type":19,"tag":296,"props":5529,"children":5531},{"className":298,"code":5530,"language":300,"meta":8,"style":8},"sudo apt install zsh\nchsh -s $(which zsh)\n",[5532],{"type":19,"tag":76,"props":5533,"children":5534},{"__ignoreMap":8},[5535,5555],{"type":19,"tag":306,"props":5536,"children":5537},{"class":308,"line":309},[5538,5542,5546,5550],{"type":19,"tag":306,"props":5539,"children":5540},{"style":313},[5541],{"type":24,"value":4542},{"type":19,"tag":306,"props":5543,"children":5544},{"style":319},[5545],{"type":24,"value":5017},{"type":19,"tag":306,"props":5547,"children":5548},{"style":319},[5549],{"type":24,"value":3796},{"type":19,"tag":306,"props":5551,"children":5552},{"style":319},[5553],{"type":24,"value":5554}," zsh\n",{"type":19,"tag":306,"props":5556,"children":5557},{"class":308,"line":325},[5558,5562,5566,5570,5574,5579],{"type":19,"tag":306,"props":5559,"children":5560},{"style":313},[5561],{"type":24,"value":5245},{"type":19,"tag":306,"props":5563,"children":5564},{"style":521},[5565],{"type":24,"value":3806},{"type":19,"tag":306,"props":5567,"children":5568},{"style":699},[5569],{"type":24,"value":5254},{"type":19,"tag":306,"props":5571,"children":5572},{"style":521},[5573],{"type":24,"value":5259},{"type":19,"tag":306,"props":5575,"children":5576},{"style":319},[5577],{"type":24,"value":5578}," zsh",{"type":19,"tag":306,"props":5580,"children":5581},{"style":699},[5582],{"type":24,"value":5269},{"type":19,"tag":20,"props":5584,"children":5585},{},[5586],{"type":24,"value":5587},"在bashrc里面加入",{"type":19,"tag":296,"props":5589,"children":5591},{"className":298,"code":5590,"language":300,"meta":8,"style":8},"export SHELL=`which zsh`\n[ -z \"$ZSH_VERSION\" ] && exec \"$SHELL\" -l\n",[5592],{"type":19,"tag":76,"props":5593,"children":5594},{"__ignoreMap":8},[5595,5623],{"type":19,"tag":306,"props":5596,"children":5597},{"class":308,"line":309},[5598,5602,5606,5610,5614,5618],{"type":19,"tag":306,"props":5599,"children":5600},{"style":705},[5601],{"type":24,"value":849},{"type":19,"tag":306,"props":5603,"children":5604},{"style":699},[5605],{"type":24,"value":5281},{"type":19,"tag":306,"props":5607,"children":5608},{"style":705},[5609],{"type":24,"value":708},{"type":19,"tag":306,"props":5611,"children":5612},{"style":319},[5613],{"type":24,"value":5290},{"type":19,"tag":306,"props":5615,"children":5616},{"style":521},[5617],{"type":24,"value":5259},{"type":19,"tag":306,"props":5619,"children":5620},{"style":319},[5621],{"type":24,"value":5622}," zsh`\n",{"type":19,"tag":306,"props":5624,"children":5625},{"class":308,"line":325},[5626,5631,5636,5640,5645,5649,5654,5658,5662,5666,5670],{"type":19,"tag":306,"props":5627,"children":5628},{"style":699},[5629],{"type":24,"value":5630},"[ ",{"type":19,"tag":306,"props":5632,"children":5633},{"style":705},[5634],{"type":24,"value":5635},"-z",{"type":19,"tag":306,"props":5637,"children":5638},{"style":319},[5639],{"type":24,"value":5313},{"type":19,"tag":306,"props":5641,"children":5642},{"style":699},[5643],{"type":24,"value":5644},"$ZSH_VERSION",{"type":19,"tag":306,"props":5646,"children":5647},{"style":319},[5648],{"type":24,"value":5323},{"type":19,"tag":306,"props":5650,"children":5651},{"style":699},[5652],{"type":24,"value":5653}," ] && ",{"type":19,"tag":306,"props":5655,"children":5656},{"style":521},[5657],{"type":24,"value":5308},{"type":19,"tag":306,"props":5659,"children":5660},{"style":319},[5661],{"type":24,"value":5313},{"type":19,"tag":306,"props":5663,"children":5664},{"style":699},[5665],{"type":24,"value":5318},{"type":19,"tag":306,"props":5667,"children":5668},{"style":319},[5669],{"type":24,"value":5323},{"type":19,"tag":306,"props":5671,"children":5672},{"style":521},[5673],{"type":24,"value":5328},{"type":19,"tag":20,"props":5675,"children":5676},{},[5677],{"type":24,"value":5678},"重新打开当前终端，就会进入zsh终端，接着安装oh-my-zsh主题框架。",{"type":19,"tag":296,"props":5680,"children":5682},{"className":298,"code":5681,"language":300,"meta":8,"style":8},"cd ~\ngit clone https:\u002F\u002Fgitee.com\u002Fmirrors\u002Foh-my-zsh\nsh oh-my-zsh\u002Ftools\u002Finstall.sh\n",[5683],{"type":19,"tag":76,"props":5684,"children":5685},{"__ignoreMap":8},[5686,5698,5714],{"type":19,"tag":306,"props":5687,"children":5688},{"class":308,"line":309},[5689,5693],{"type":19,"tag":306,"props":5690,"children":5691},{"style":521},[5692],{"type":24,"value":3093},{"type":19,"tag":306,"props":5694,"children":5695},{"style":319},[5696],{"type":24,"value":5697}," ~\n",{"type":19,"tag":306,"props":5699,"children":5700},{"class":308,"line":325},[5701,5705,5709],{"type":19,"tag":306,"props":5702,"children":5703},{"style":313},[5704],{"type":24,"value":3225},{"type":19,"tag":306,"props":5706,"children":5707},{"style":319},[5708],{"type":24,"value":3852},{"type":19,"tag":306,"props":5710,"children":5711},{"style":319},[5712],{"type":24,"value":5713}," https:\u002F\u002Fgitee.com\u002Fmirrors\u002Foh-my-zsh\n",{"type":19,"tag":306,"props":5715,"children":5716},{"class":308,"line":339},[5717,5721],{"type":19,"tag":306,"props":5718,"children":5719},{"style":313},[5720],{"type":24,"value":3081},{"type":19,"tag":306,"props":5722,"children":5723},{"style":319},[5724],{"type":24,"value":5725}," oh-my-zsh\u002Ftools\u002Finstall.sh\n",{"type":19,"tag":20,"props":5727,"children":5728},{},[5729],{"type":24,"value":5730},"安装两个插件",{"type":19,"tag":296,"props":5732,"children":5734},{"className":298,"code":5733,"language":300,"meta":8,"style":8},"cd ~\u002F.oh-my-zsh\u002Fcustom\u002Fplugins\u002F\n\n# 高亮关键词\ngit clone https:\u002F\u002Fgitee.com\u002Fhaohaogood\u002Fzsh-syntax-highlighting\n\n# 自动补全\ngit clone https:\u002F\u002Fgitee.com\u002Fqiushaocloud\u002Fzsh-autosuggestions\n",[5735],{"type":19,"tag":76,"props":5736,"children":5737},{"__ignoreMap":8},[5738,5750,5757,5765,5781,5788,5796],{"type":19,"tag":306,"props":5739,"children":5740},{"class":308,"line":309},[5741,5745],{"type":19,"tag":306,"props":5742,"children":5743},{"style":521},[5744],{"type":24,"value":3093},{"type":19,"tag":306,"props":5746,"children":5747},{"style":319},[5748],{"type":24,"value":5749}," ~\u002F.oh-my-zsh\u002Fcustom\u002Fplugins\u002F\n",{"type":19,"tag":306,"props":5751,"children":5752},{"class":308,"line":325},[5753],{"type":19,"tag":306,"props":5754,"children":5755},{"emptyLinePlaceholder":3662},[5756],{"type":24,"value":3665},{"type":19,"tag":306,"props":5758,"children":5759},{"class":308,"line":339},[5760],{"type":19,"tag":306,"props":5761,"children":5762},{"style":343},[5763],{"type":24,"value":5764},"# 高亮关键词\n",{"type":19,"tag":306,"props":5766,"children":5767},{"class":308,"line":1654},[5768,5772,5776],{"type":19,"tag":306,"props":5769,"children":5770},{"style":313},[5771],{"type":24,"value":3225},{"type":19,"tag":306,"props":5773,"children":5774},{"style":319},[5775],{"type":24,"value":3852},{"type":19,"tag":306,"props":5777,"children":5778},{"style":319},[5779],{"type":24,"value":5780}," https:\u002F\u002Fgitee.com\u002Fhaohaogood\u002Fzsh-syntax-highlighting\n",{"type":19,"tag":306,"props":5782,"children":5783},{"class":308,"line":3676},[5784],{"type":19,"tag":306,"props":5785,"children":5786},{"emptyLinePlaceholder":3662},[5787],{"type":24,"value":3665},{"type":19,"tag":306,"props":5789,"children":5790},{"class":308,"line":3695},[5791],{"type":19,"tag":306,"props":5792,"children":5793},{"style":343},[5794],{"type":24,"value":5795},"# 自动补全\n",{"type":19,"tag":306,"props":5797,"children":5798},{"class":308,"line":3703},[5799,5803,5807],{"type":19,"tag":306,"props":5800,"children":5801},{"style":313},[5802],{"type":24,"value":3225},{"type":19,"tag":306,"props":5804,"children":5805},{"style":319},[5806],{"type":24,"value":3852},{"type":19,"tag":306,"props":5808,"children":5809},{"style":319},[5810],{"type":24,"value":5811}," https:\u002F\u002Fgitee.com\u002Fqiushaocloud\u002Fzsh-autosuggestions\n",{"type":19,"tag":20,"props":5813,"children":5814},{},[5815,5817,5823,5825,5831,5833,5839],{"type":24,"value":5816},"然后进入 ",{"type":19,"tag":76,"props":5818,"children":5820},{"className":5819},[],[5821],{"type":24,"value":5822},"~\u002F.zshrc",{"type":24,"value":5824}," 在 plugins 参数中添加 ",{"type":19,"tag":76,"props":5826,"children":5828},{"className":5827},[],[5829],{"type":24,"value":5830},"zsh-syntax-highlighting",{"type":24,"value":5832}," 和",{"type":19,"tag":76,"props":5834,"children":5836},{"className":5835},[],[5837],{"type":24,"value":5838},"zsh-autosuggestions",{"type":24,"value":5840},"。也就是说你的 .zshrc 中必须要有一行长这样：",{"type":19,"tag":296,"props":5842,"children":5844},{"className":298,"code":5843,"language":300,"meta":8,"style":8},"plugins=(git zsh-syntax-highlighting zsh-autosuggestions)\n",[5845],{"type":19,"tag":76,"props":5846,"children":5847},{"__ignoreMap":8},[5848],{"type":19,"tag":306,"props":5849,"children":5850},{"class":308,"line":309},[5851,5856,5860,5865,5869,5874,5879],{"type":19,"tag":306,"props":5852,"children":5853},{"style":699},[5854],{"type":24,"value":5855},"plugins",{"type":19,"tag":306,"props":5857,"children":5858},{"style":705},[5859],{"type":24,"value":708},{"type":19,"tag":306,"props":5861,"children":5862},{"style":699},[5863],{"type":24,"value":5864},"(",{"type":19,"tag":306,"props":5866,"children":5867},{"style":319},[5868],{"type":24,"value":3225},{"type":19,"tag":306,"props":5870,"children":5871},{"style":319},[5872],{"type":24,"value":5873}," zsh-syntax-highlighting",{"type":19,"tag":306,"props":5875,"children":5876},{"style":319},[5877],{"type":24,"value":5878}," zsh-autosuggestions",{"type":19,"tag":306,"props":5880,"children":5881},{"style":699},[5882],{"type":24,"value":5269},{"type":19,"tag":222,"props":5884,"children":5886},{"id":5885},"四安装部分驱动程序",[5887],{"type":24,"value":5888},"四、安装部分驱动程序",{"type":19,"tag":20,"props":5890,"children":5891},{},[5892],{"type":24,"value":5893},"默认pip 版本较低，升级一下",{"type":19,"tag":296,"props":5895,"children":5897},{"className":298,"code":5896,"language":300,"meta":8,"style":8},"pip install --upgrade pip\n",[5898],{"type":19,"tag":76,"props":5899,"children":5900},{"__ignoreMap":8},[5901],{"type":19,"tag":306,"props":5902,"children":5903},{"class":308,"line":309},[5904,5908,5912,5917],{"type":19,"tag":306,"props":5905,"children":5906},{"style":313},[5907],{"type":24,"value":3405},{"type":19,"tag":306,"props":5909,"children":5910},{"style":319},[5911],{"type":24,"value":3796},{"type":19,"tag":306,"props":5913,"children":5914},{"style":521},[5915],{"type":24,"value":5916}," --upgrade",{"type":19,"tag":306,"props":5918,"children":5919},{"style":319},[5920],{"type":24,"value":5921}," pip\n",{"type":19,"tag":20,"props":5923,"children":5924},{},[5925],{"type":24,"value":5926},"安装opencv的包",{"type":19,"tag":296,"props":5928,"children":5930},{"className":298,"code":5929,"language":300,"meta":8,"style":8},"sudo apt install libopencv-dev\npip install opencv-python\n",[5931],{"type":19,"tag":76,"props":5932,"children":5933},{"__ignoreMap":8},[5934,5954],{"type":19,"tag":306,"props":5935,"children":5936},{"class":308,"line":309},[5937,5941,5945,5949],{"type":19,"tag":306,"props":5938,"children":5939},{"style":313},[5940],{"type":24,"value":4542},{"type":19,"tag":306,"props":5942,"children":5943},{"style":319},[5944],{"type":24,"value":5017},{"type":19,"tag":306,"props":5946,"children":5947},{"style":319},[5948],{"type":24,"value":3796},{"type":19,"tag":306,"props":5950,"children":5951},{"style":319},[5952],{"type":24,"value":5953}," libopencv-dev\n",{"type":19,"tag":306,"props":5955,"children":5956},{"class":308,"line":325},[5957,5961,5965],{"type":19,"tag":306,"props":5958,"children":5959},{"style":313},[5960],{"type":24,"value":3405},{"type":19,"tag":306,"props":5962,"children":5963},{"style":319},[5964],{"type":24,"value":3796},{"type":19,"tag":306,"props":5966,"children":5967},{"style":319},[5968],{"type":24,"value":5969}," opencv-python\n",{"type":19,"tag":20,"props":5971,"children":5972},{},[5973],{"type":24,"value":5974},"安装torch cuda",{"type":19,"tag":296,"props":5976,"children":5978},{"className":298,"code":5977,"language":300,"meta":8,"style":8},"sudo apt install nvidia-cuda-toolkit\n",[5979],{"type":19,"tag":76,"props":5980,"children":5981},{"__ignoreMap":8},[5982],{"type":19,"tag":306,"props":5983,"children":5984},{"class":308,"line":309},[5985,5989,5993,5997],{"type":19,"tag":306,"props":5986,"children":5987},{"style":313},[5988],{"type":24,"value":4542},{"type":19,"tag":306,"props":5990,"children":5991},{"style":319},[5992],{"type":24,"value":5017},{"type":19,"tag":306,"props":5994,"children":5995},{"style":319},[5996],{"type":24,"value":3796},{"type":19,"tag":306,"props":5998,"children":5999},{"style":319},[6000],{"type":24,"value":6001}," nvidia-cuda-toolkit\n",{"type":19,"tag":20,"props":6003,"children":6004},{},[6005,6007,6014],{"type":24,"value":6006},"然后去 ",{"type":19,"tag":32,"props":6008,"children":6011},{"href":6009,"rel":6010},"https:\u002F\u002Fpytorch.org\u002F",[54],[6012],{"type":24,"value":6013},"PyTorch",{"type":24,"value":6015}," 找对应的安装指令。自从某个版本之后 Linux 下载 PyTorch GPU 版本可以直接 pip（自动下载对应 CUDA 依赖）。",{"type":19,"tag":1087,"props":6017,"children":6018},{},[6019],{"type":24,"value":1091},{"title":8,"searchDepth":325,"depth":339,"links":6021},[6022,6023,6024,6032],{"id":2951,"depth":325,"text":2921},{"id":4062,"depth":325,"text":4065},{"id":4486,"depth":325,"text":4489,"children":6025},[6026,6027,6028],{"id":4492,"depth":339,"text":4495},{"id":5093,"depth":339,"text":5096},{"id":5197,"depth":339,"text":5200,"children":6029},[6030,6031],{"id":5203,"depth":1654,"text":5203},{"id":5521,"depth":1654,"text":5521},{"id":5885,"depth":325,"text":5888},"content:posts:从零配置Windows11开发环境.md","posts\u002F从零配置Windows11开发环境.md","posts\u002F从零配置Windows11开发环境",{"_path":2780,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2781,"description":2782,"date":2783,"categories":1417,"tags":2784,"body":6037,"_type":1105,"_id":2910,"_source":1107,"_file":2911,"_stem":2912,"_extension":1110},{"type":16,"children":6038,"toc":6136},[6039,6043,6059,6104,6120,6124,6128,6132],{"type":19,"tag":20,"props":6040,"children":6041},{},[6042],{"type":24,"value":2782},{"type":19,"tag":20,"props":6044,"children":6045},{},[6046,6047,6052,6053,6058],{"type":24,"value":2795},{"type":19,"tag":76,"props":6048,"children":6050},{"className":6049},[],[6051],{"type":24,"value":2801},{"type":24,"value":2803},{"type":19,"tag":76,"props":6054,"children":6056},{"className":6055},[],[6057],{"type":24,"value":2809},{"type":24,"value":2811},{"type":19,"tag":20,"props":6060,"children":6061},{},[6062,6063,6068,6069,6073,6074,6079,6080,6085,6086,6091,6092,6097,6098,6103],{"type":24,"value":2816},{"type":19,"tag":76,"props":6064,"children":6066},{"className":6065},[],[6067],{"type":24,"value":1105},{"type":24,"value":2823},{"type":19,"tag":2259,"props":6070,"children":6071},{},[6072],{"type":24,"value":2828},{"type":24,"value":2830},{"type":19,"tag":76,"props":6075,"children":6077},{"className":6076},[],[6078],{"type":24,"value":2836},{"type":24,"value":2838},{"type":19,"tag":76,"props":6081,"children":6083},{"className":6082},[],[6084],{"type":24,"value":2748},{"type":24,"value":2845},{"type":19,"tag":76,"props":6087,"children":6089},{"className":6088},[],[6090],{"type":24,"value":2735},{"type":24,"value":2852},{"type":19,"tag":76,"props":6093,"children":6095},{"className":6094},[],[6096],{"type":24,"value":2858},{"type":24,"value":2860},{"type":19,"tag":76,"props":6099,"children":6101},{"className":6100},[],[6102],{"type":24,"value":2866},{"type":24,"value":2868},{"type":19,"tag":20,"props":6105,"children":6106},{},[6107,6108,6113,6114,6119],{"type":24,"value":2873},{"type":19,"tag":76,"props":6109,"children":6111},{"className":6110},[],[6112],{"type":24,"value":2756},{"type":24,"value":2880},{"type":19,"tag":76,"props":6115,"children":6117},{"className":6116},[],[6118],{"type":24,"value":2756},{"type":24,"value":2887},{"type":19,"tag":20,"props":6121,"children":6122},{},[6123],{"type":24,"value":2892},{"type":19,"tag":20,"props":6125,"children":6126},{},[6127],{"type":24,"value":2897},{"type":19,"tag":20,"props":6129,"children":6130},{},[6131],{"type":24,"value":2902},{"type":19,"tag":20,"props":6133,"children":6134},{},[6135],{"type":24,"value":2907},{"title":8,"searchDepth":325,"depth":339,"links":6137},[],1780174705771]