[{"data":1,"prerenderedAt":6224},["ShallowReactive",2],{"blog-posts":3},[4,1111,1412,1464,1528,1886,2092,2130,2183,2694,2744,2832,2968,3102],{"_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":2138,"_type":1105,"_id":2180,"_source":1107,"_file":2181,"_stem":2182,"_extension":1110},"\u002Fposts\u002Fdjango","Django 框架的思考","对 Django 框架的思考记录。","2024-12-09 21:00:00",[2136,2137],"Django","Python",{"type":16,"children":2139,"toc":2178},[2140,2145,2159,2173],{"type":19,"tag":20,"props":2141,"children":2142},{},[2143],{"type":24,"value":2144},"Django 是由 Python 编写的后端服务器侧 Web 框架。基于 Model-Template-Views（MTV）的设计模式。最近浏览过的两个项目代表了两种Django的不同架构模式。",{"type":19,"tag":20,"props":2146,"children":2147},{},[2148,2150,2157],{"type":24,"value":2149},"一种 ",{"type":19,"tag":32,"props":2151,"children":2154},{"href":2152,"rel":2153},"https:\u002F\u002Fgithub.com\u002FHumanSignal\u002Flabel-studio",[54],[2155],{"type":24,"value":2156},"Django 项目",{"type":24,"value":2158}," 就是选择了 MTV 的模式，该项目项目是支持多类型数据标注的软件平台，这也是我思考的第一种模式，MTV前后端一体。。它使用了 Django Template，但是也具有不错的扩展性。同时它的APP也按照了功能分类可以拆分和合并。不过为什么会需要微服务呢？什么时候需要微服务呢？",{"type":19,"tag":20,"props":2160,"children":2161},{},[2162,2164,2171],{"type":24,"value":2163},"而另一种是只使用 Django 写",{"type":19,"tag":32,"props":2165,"children":2168},{"href":2166,"rel":2167},"https:\u002F\u002Fgithub.com\u002Fmakeplane\u002Fplane",[54],[2169],{"type":24,"value":2170},"后端",{"type":24,"value":2172}," ，而不使用 MTV 的模式。这是一个项目管理的软件，写的很复杂，部署也是用 Docker 或者 kubernetes。还是问：为什么需要微服务呢？它目标服务的人群到底是有多大规模呢？微服务不得不涉及到 DevOps ，其中额外的学习成本很大。而且这种只写",{"type":19,"tag":20,"props":2174,"children":2175},{},[2176],{"type":24,"value":2177},"我在这两种模式中取舍。",{"title":8,"searchDepth":325,"depth":339,"links":2179},[],"content:posts:Django 框架的思考.md","posts\u002FDjango 框架的思考.md","posts\u002FDjango 框架的思考",{"_path":2184,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2185,"description":2186,"date":2187,"categories":12,"tags":2188,"body":2190,"_type":1105,"_id":2691,"_source":1107,"_file":2692,"_stem":2693,"_extension":1110},"\u002Fposts\u002Fcs194-196_llmagents","LLM Agents 课程笔记","UCB CS294\u002F194-196 Large Language Model Agents 的课程笔记。","2024-11-30 20:00:00",[2189],"Agent",{"type":16,"children":2191,"toc":2671},[2192,2200,2205,2211,2216,2224,2229,2234,2241,2253,2265,2271,2276,2288,2300,2305,2317,2322,2335,2340,2348,2353,2358,2381,2386,2392,2400,2413,2418,2423,2431,2436,2449,2455,2468,2473,2478,2484,2489,2510,2518,2523,2529,2537,2542,2550,2555,2561,2566,2572,2577,2582,2587,2593,2598,2603,2611,2616,2622,2627,2631],{"type":19,"tag":1319,"props":2193,"children":2194},{},[2195],{"type":19,"tag":20,"props":2196,"children":2197},{},[2198],{"type":24,"value":2199},"鉴定为水课，尽量挑感兴趣的有用的部分看。",{"type":19,"tag":20,"props":2201,"children":2202},{},[2203],{"type":24,"value":2204},"最近工作内容涉猎了大模型的应用，想更深入的了解一些，便打算试试这门课。笔记更新进度对应学习进度。",{"type":19,"tag":222,"props":2206,"children":2208},{"id":2207},"llm-reasoning",[2209],{"type":24,"value":2210},"LLM Reasoning",{"type":19,"tag":20,"props":2212,"children":2213},{},[2214],{"type":24,"value":2215},"提问：What do you expect for AI?",{"type":19,"tag":1319,"props":2217,"children":2218},{},[2219],{"type":19,"tag":20,"props":2220,"children":2221},{},[2222],{"type":24,"value":2223},"What do you expect for AI?",{"type":19,"tag":20,"props":2225,"children":2226},{},[2227],{"type":24,"value":2228},"AI 是人类创造出来的更自动化的工具。若从控制的观点来说，AI 就是控制器的控制器，能够担负人类的现实任务。在理想的应用情况可以承担大部分社会物质精神运转的负荷。",{"type":19,"tag":20,"props":2230,"children":2231},{},[2232],{"type":24,"value":2233},"教授的回答:",{"type":19,"tag":1319,"props":2235,"children":2236},{},[2237],{"type":19,"tag":20,"props":2238,"children":2239},{},[2240],{"type":24,"value":2223},{"type":19,"tag":20,"props":2242,"children":2243},{},[2244,2246,2251],{"type":24,"value":2245},"AI should be able to ",{"type":19,"tag":68,"props":2247,"children":2248},{},[2249],{"type":24,"value":2250},"learn from a few examples",{"type":24,"value":2252},", like what humans usually do",{"type":19,"tag":20,"props":2254,"children":2255},{},[2256,2258,2263],{"type":24,"value":2257},"而以往的机器学习达到了这个期望吗？并没有。机器学习缺乏归因能力——需要大样本学习。而”Humans can learn from just a few examples ",{"type":19,"tag":68,"props":2259,"children":2260},{},[2261],{"type":24,"value":2262},"because humans can reason",{"type":24,"value":2264},"“。因此其暗指大模型拥有 reason 能力。",{"type":19,"tag":486,"props":2266,"children":2268},{"id":2267},"key-ideas",[2269],{"type":24,"value":2270},"Key Ideas",{"type":19,"tag":20,"props":2272,"children":2273},{},[2274],{"type":24,"value":2275},"我们慢慢引出一系列关键的想法来提升大模型的效果。",{"type":19,"tag":2277,"props":2278,"children":2280},"h4",{"id":2279},"derive-the-final-answer-through-intermedia-steps",[2281,2283],{"type":24,"value":2282},"Derive the Final Answer through ",{"type":19,"tag":68,"props":2284,"children":2285},{},[2286],{"type":24,"value":2287},"Intermedia Steps",{"type":19,"tag":20,"props":2289,"children":2290},{},[2291,2293,2298],{"type":24,"value":2292},"Also called ",{"type":19,"tag":68,"props":2294,"children":2295},{},[2296],{"type":24,"value":2297},"Chain-of-Thought",{"type":24,"value":2299},"(CoT).",{"type":19,"tag":20,"props":2301,"children":2302},{},[2303],{"type":24,"value":2304},"可以简单导出一种应用——CoT Prompting。最经典的一个例子——”Let's think step by step“，这个 Prompting 达成了零样本的 CoT。",{"type":19,"tag":2277,"props":2306,"children":2308},{"id":2307},"least-to-most-prompting-enable-easy-to-hard-generalization-by-decomposition",[2309,2311],{"type":24,"value":2310},"Least-to-Most Prompting ",{"type":19,"tag":2312,"props":2313,"children":2314},"em",{},[2315],{"type":24,"value":2316},"Enable easy-to-hard generalization by decomposition",{"type":19,"tag":20,"props":2318,"children":2319},{},[2320],{"type":24,"value":2321},"《How to Solve It》一文中提到。",{"type":19,"tag":1319,"props":2323,"children":2324},{},[2325],{"type":19,"tag":20,"props":2326,"children":2327},{},[2328,2333],{"type":19,"tag":68,"props":2329,"children":2330},{},[2331],{"type":24,"value":2332},"Decomposing and recombing",{"type":24,"value":2334}," 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":2336,"children":2337},{},[2338],{"type":24,"value":2339},"其实理念和计算机科学中一直倡导的缩小问题规模有共通之处？Map-Reduce，缩小问题规模不可避免地就要分解问题。",{"type":19,"tag":1319,"props":2341,"children":2342},{},[2343],{"type":19,"tag":20,"props":2344,"children":2345},{},[2346],{"type":24,"value":2347},"Using just 0.1% demonstration examples achieves perfect generalization.",{"type":19,"tag":20,"props":2349,"children":2350},{},[2351],{"type":24,"value":2352},"这里不知道是指预训练时加入一定量地分解问题的数据，还是指对话时加入分解问题的例子。",{"type":19,"tag":20,"props":2354,"children":2355},{},[2356],{"type":24,"value":2357},"以上两种方法其实都是中间步骤。为什么中间步骤可以有如此大的效果呢？",{"type":19,"tag":60,"props":2359,"children":2360},{},[2361,2371],{"type":19,"tag":64,"props":2362,"children":2363},{},[2364,2369],{"type":19,"tag":68,"props":2365,"children":2366},{},[2367],{"type":24,"value":2368},"Constant-depth transformers",{"type":24,"value":2370}," can solve any inherently serial problem as long as it generates sufficiently long intermediate reasoning steps",{"type":19,"tag":64,"props":2372,"children":2373},{},[2374,2379],{"type":19,"tag":68,"props":2375,"children":2376},{},[2377],{"type":24,"value":2378},"Transformers which directly generate final answers",{"type":24,"value":2380}," either requires a huge depth to solve or cannot solve at all",{"type":19,"tag":20,"props":2382,"children":2383},{},[2384],{"type":24,"value":2385},"也就是说，没有中间步骤要么注意力强大到能直接解决问题，要么得到错乱的解。而加入中间步骤，解决序列问题中的每一个简单问题，从而可以解决任何能够分解为序列问题的问题。",{"type":19,"tag":2277,"props":2387,"children":2389},{"id":2388},"llms-as-analogical-reasoners",[2390],{"type":24,"value":2391},"LLMs as Analogical Reasoners",{"type":19,"tag":1319,"props":2393,"children":2394},{},[2395],{"type":19,"tag":20,"props":2396,"children":2397},{},[2398],{"type":24,"value":2399},"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":2401,"children":2402},{},[2403,2405,2411],{"type":24,"value":2404},"出于这种思想，可以导出提示词——Recall a related problem, and then solve this one. （回忆一个相关问题，然后解决这个问题）。这种方法又叫 ",{"type":19,"tag":76,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":24,"value":2410},"Self-generated Examples",{"type":24,"value":2412},"。",{"type":19,"tag":20,"props":2414,"children":2415},{},[2416],{"type":24,"value":2417},"不过提示词的角度太过于简陋，从我个人的角度来说，提示词其实很不安全，而且让我很不安。完全把命运交给多出来的词向量真的太怪了。有没有不使用 Prompting 就可以触发 CoT 的方法？",{"type":19,"tag":20,"props":2419,"children":2420},{},[2421],{"type":24,"value":2422},"有的。从 Decode 下手，以往 GPT 输出的时候是选择 Top-k 中概率最高的词输出，也就是简单的贪心选择。如果让其对 Top-k 中的词继续做生成，在根据置信度选择答案，这就是 CoT-decoding 方法。",{"type":19,"tag":20,"props":2424,"children":2425},{},[2426],{"type":19,"tag":620,"props":2427,"children":2430},{"alt":2428,"src":2429},"Illustration of CoT-decoding","https:\u002F\u002Farxiv.org\u002Fhtml\u002F2402.10200v2\u002Fx1.png",[],{"type":19,"tag":20,"props":2432,"children":2433},{},[2434],{"type":24,"value":2435},"Key takeaways",{"type":19,"tag":1006,"props":2437,"children":2438},{},[2439,2444],{"type":19,"tag":64,"props":2440,"children":2441},{},[2442],{"type":24,"value":2443},"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":2445,"children":2446},{},[2447],{"type":24,"value":2448},"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":2277,"props":2450,"children":2452},{"id":2451},"limits-of-intermediate-steps",[2453],{"type":24,"value":2454},"Limits of Intermediate Steps",{"type":19,"tag":1319,"props":2456,"children":2457},{},[2458],{"type":19,"tag":20,"props":2459,"children":2460},{},[2461,2463],{"type":24,"value":2462},"Always keep in mind that LLMs are probabilistic models of generating next tokens. ",{"type":19,"tag":68,"props":2464,"children":2465},{},[2466],{"type":24,"value":2467},"They are not humans.",{"type":19,"tag":20,"props":2469,"children":2470},{},[2471],{"type":24,"value":2472},"我们希望：给出问题的基础上得到最大可能的最终答案。",{"type":19,"tag":20,"props":2474,"children":2475},{},[2476],{"type":24,"value":2477},"LLM CoT-decoding所做：给出问题的基础上，给出最大可能的 reasoning path 以及最大可能的最终答案。",{"type":19,"tag":2277,"props":2479,"children":2481},{"id":2480},"self-consistency",[2482],{"type":24,"value":2483},"Self-Consistency",{"type":19,"tag":20,"props":2485,"children":2486},{},[2487],{"type":24,"value":2488},"More consistent, more likely to be correct",{"type":19,"tag":20,"props":2490,"children":2491},{},[2492,2494,2502,2504,2509],{"type":24,"value":2493},"人性的一个突出方面是人们的思维方式不同。很自然地假设，在需要深思熟虑的任务中，可能有几种方法可以解决问题。我们建议可以通过从语言模型的解码器中采样来在语言模型中模拟这样的过程。例如，如图 ",{"type":19,"tag":32,"props":2495,"children":2499},{"href":2496,"rel":2497,"title":2498},"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",[2500],{"type":24,"value":2501},"1 所示",{"type":24,"value":2503}," ，一个模型可以对数学问题生成多个合理的回答，这些回答都得出相同的正确答案（输出 1 和 3）。由于语言模型不是完美的推理器，因此模型也可能产生不正确的推理路径或在其中一个推理步骤中出错（例如，在输出 2 中），但此类解决方案不太可能得出相同的答案。也就是说，我们",{"type":19,"tag":68,"props":2505,"children":2506},{},[2507],{"type":24,"value":2508},"假设正确的推理过程，即使它们是多种多样的，也往往比不正确的过程在最终答案中具有更大的一致性",{"type":24,"value":2412},{"type":19,"tag":20,"props":2511,"children":2512},{},[2513],{"type":19,"tag":620,"props":2514,"children":2517},{"alt":2515,"src":2516},"Self-Consistency method contains three steps","https:\u002F\u002Far5iv.labs.arxiv.org\u002Fhtml\u002F2203.11171\u002Fassets\u002Fx1.png",[],{"type":19,"tag":20,"props":2519,"children":2520},{},[2521],{"type":24,"value":2522},"Self-Consistency 利用了复杂的推理任务通常允许多条推理路径到达正确答案的直觉。一个问题越需要深思熟虑的思考和分析 ，可以得到答案的推理路径就越多样化。",{"type":19,"tag":2277,"props":2524,"children":2526},{"id":2525},"quiz",[2527],{"type":24,"value":2528},"Quiz",{"type":19,"tag":1319,"props":2530,"children":2531},{},[2532],{"type":19,"tag":20,"props":2533,"children":2534},{},[2535],{"type":24,"value":2536},"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":2538,"children":2539},{},[2540],{"type":24,"value":2541},"我不会，我倾向于它不能够解决这个问题，而重新换种问法。",{"type":19,"tag":1319,"props":2543,"children":2544},{},[2545],{"type":19,"tag":20,"props":2546,"children":2547},{},[2548],{"type":24,"value":2549},"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":2551,"children":2552},{},[2553],{"type":24,"value":2554},"我认为这其实并不能解决问题。首先模型必须能够得出正确答案，假设其起作用的前提是，采样到的答案中正确的答案占大多数。这只能让复杂但不困难的任务表现的更好，而对于简单任务和复杂困难任务没有帮助。",{"type":19,"tag":486,"props":2556,"children":2558},{"id":2557},"limitations",[2559],{"type":24,"value":2560},"Limitations",{"type":19,"tag":20,"props":2562,"children":2563},{},[2564],{"type":24,"value":2565},"大模型存在什么限制呢？了解限制可以让我们更好的发挥它的作用。",{"type":19,"tag":2277,"props":2567,"children":2569},{"id":2568},"llms-can-be-easily-distracted-by-irrelevant-context",[2570],{"type":24,"value":2571},"LLMs Can Be Easily Distracted by Irrelevant Context",{"type":19,"tag":20,"props":2573,"children":2574},{},[2575],{"type":24,"value":2576},"Psychology studies show that irrelevant information may significantly decrease some children and even adults problem-solving accuracy.",{"type":19,"tag":20,"props":2578,"children":2579},{},[2580],{"type":24,"value":2581},"在大模型上的表现就是——Adding irrelevant contexts to GSM8K leads to 20+ points performance drop.",{"type":19,"tag":20,"props":2583,"children":2584},{},[2585],{"type":24,"value":2586},"知道了如此限制，那么我们可以用提示词去尝试解决——Ignore irrelevant context。这可以挽回一点性能表现。",{"type":19,"tag":2277,"props":2588,"children":2590},{"id":2589},"llms-cannot-self-correct-reasoning-yet",[2591],{"type":24,"value":2592},"LLMs Cannot Self-Correct Reasoning Yet",{"type":19,"tag":20,"props":2594,"children":2595},{},[2596],{"type":24,"value":2597},"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":2599,"children":2600},{},[2601],{"type":24,"value":2602},"尤其是在常识性的问答中，GPT-3.5 Self-Correct 后的表现下降的很厉害。",{"type":19,"tag":1319,"props":2604,"children":2605},{},[2606],{"type":19,"tag":20,"props":2607,"children":2608},{},[2609],{"type":24,"value":2610},"Reported improvements need oracle answers.",{"type":19,"tag":20,"props":2612,"children":2613},{},[2614],{"type":24,"value":2615},"Oracle: Let LLMs self correct only when the answer is wrong",{"type":19,"tag":2277,"props":2617,"children":2619},{"id":2618},"premise-order-matters-in-llm-reasoning",[2620],{"type":24,"value":2621},"Premise Order Matters in LLM Reasoning",{"type":19,"tag":20,"props":2623,"children":2624},{},[2625],{"type":24,"value":2626},"前提条件重排序会让 solving rates 下降。",{"type":19,"tag":486,"props":2628,"children":2629},{"id":1766},[2630],{"type":24,"value":1766},{"type":19,"tag":60,"props":2632,"children":2633},{},[2634,2639,2650,2661,2666],{"type":19,"tag":64,"props":2635,"children":2636},{},[2637],{"type":24,"value":2638},"Generating intermediate steps improves LLM performance",{"type":19,"tag":64,"props":2640,"children":2641},{},[2642],{"type":19,"tag":60,"props":2643,"children":2644},{},[2645],{"type":19,"tag":64,"props":2646,"children":2647},{},[2648],{"type":24,"value":2649},"Training\u002Ffine-tuning\u002Fprompting with intermediate steps",{"type":19,"tag":64,"props":2651,"children":2652},{},[2653],{"type":19,"tag":60,"props":2654,"children":2655},{},[2656],{"type":19,"tag":64,"props":2657,"children":2658},{},[2659],{"type":24,"value":2660},"Zero-shot, analogical reasoning, special decoding",{"type":19,"tag":64,"props":2662,"children":2663},{},[2664],{"type":24,"value":2665},"Self-Consistency greatly improves step-by-step reasoning",{"type":19,"tag":64,"props":2667,"children":2668},{},[2669],{"type":24,"value":2670},"Limitation: irrelevant context, self-correction, premise order",{"title":8,"searchDepth":325,"depth":339,"links":2672},[2673],{"id":2207,"depth":325,"text":2210,"children":2674},[2675,2685,2690],{"id":2267,"depth":339,"text":2270,"children":2676},[2677,2679,2681,2682,2683,2684],{"id":2279,"depth":1654,"text":2678},"Derive the Final Answer through Intermedia Steps",{"id":2307,"depth":1654,"text":2680},"Least-to-Most Prompting Enable easy-to-hard generalization by decomposition",{"id":2388,"depth":1654,"text":2391},{"id":2451,"depth":1654,"text":2454},{"id":2480,"depth":1654,"text":2483},{"id":2525,"depth":1654,"text":2528},{"id":2557,"depth":339,"text":2560,"children":2686},[2687,2688,2689],{"id":2568,"depth":1654,"text":2571},{"id":2589,"depth":1654,"text":2592},{"id":2618,"depth":1654,"text":2621},{"id":1766,"depth":339,"text":1766},"content:posts:CS194-196_LLMAgents.md","posts\u002FCS194-196_LLMAgents.md","posts\u002FCS194-196_LLMAgents",{"_path":2695,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2696,"description":2697,"date":2698,"categories":1417,"tags":2699,"body":2700,"_type":1105,"_id":2741,"_source":1107,"_file":2742,"_stem":2743,"_extension":1110},"\u002Fposts\u002Fwhatsyourworth","价值、位置","你们的生存究竟有何价值？如果毫无价值，你们究竟为何存在？","2024-11-29 02:00:00",[1419],{"type":16,"children":2701,"toc":2739},[2702,2709,2714,2719,2724,2729,2734],{"type":19,"tag":1319,"props":2703,"children":2704},{},[2705],{"type":19,"tag":20,"props":2706,"children":2707},{},[2708],{"type":24,"value":2697},{"type":19,"tag":20,"props":2710,"children":2711},{},[2712],{"type":24,"value":2713},"我们该身处怎样的位置？或者说生活该是怎样的？我不知道。社会主义核心价值观中个人层面的要求提到我们要爱国、敬业、诚信、友善。朗朗上口又空洞的字眼，真的能指引我的生活吗？我否认它。",{"type":19,"tag":20,"props":2715,"children":2716},{},[2717],{"type":24,"value":2718},"对于有些人，这些问题是无需思考的，并非因为短视与无知，而是因为过往的生活经验中存在着经得起质疑的参考，他们信服且可以认定自己的生活方式与存在来源，并以此为生活的指导。另一些人是短视者，或许曾经有挣扎过，但还与社会的规训和解。这不如不做挣扎。我不是其中一员。作为具象的人，我不喜欢被分类，甚至说评价自己。或者换句话说，我讨厌暴露自己，即使现在我就在做着这样的事情。我的自反性强烈地牵引着我来到了一种莫名的境地，在这里我会感受到痛苦，并让我难以理解幸福。",{"type":19,"tag":20,"props":2720,"children":2721},{},[2722],{"type":24,"value":2723},"汲取某一样东西或者深深扎根在一处汲取营养与支持，那是再好不过的事情。我还是犹豫着选择。在上一刻被消灭下一刻不存在的现在，妄图否认一切。是可笑的。专注于某一项东西难免要做出某种选择。这都是胡说八道的谎言。",{"type":19,"tag":20,"props":2725,"children":2726},{},[2727],{"type":24,"value":2728},"事实上是，蜷缩的内心带来长时间不使用而萎靡的声音，惧怕外界的同时在自己内心的系统中不断咀嚼反复。其表象可以归为“微信恐惧症”。",{"type":19,"tag":20,"props":2730,"children":2731},{},[2732],{"type":24,"value":2733},"惧怕否认而自诩，自诩自重而自封。",{"type":19,"tag":20,"props":2735,"children":2736},{},[2737],{"type":24,"value":2738},"在时间的脉络和物质的运动之中，星河翻转的梦境里，时间，时间。不可避免地迈步向前，而由自反诞生的恐惧与疏远仍深深扎根。这一切都是漫长的白夜。我们的生存究竟有何价值？如果毫无价值，我们究竟为何存在？",{"title":8,"searchDepth":325,"depth":339,"links":2740},[],"content:posts:WhatsYourWorth.md","posts\u002FWhatsYourWorth.md","posts\u002FWhatsYourWorth",{"_path":2745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2746,"description":2747,"date":2748,"categories":1417,"tags":2749,"body":2751,"_type":1105,"_id":2829,"_source":1107,"_file":2830,"_stem":2831,"_extension":1110},"\u002Fposts\u002Fblogrelifever2","重启博客v2","忙里偷闲学习前端，还是决定结合想法手搓一个自己的博客。","2024-11-25 00:00:00",[2750],"博客",{"type":16,"children":2752,"toc":2827},[2753,2758,2763,2768,2773,2778,2791,2812,2817,2822],{"type":19,"tag":20,"props":2754,"children":2755},{},[2756],{"type":24,"value":2757},"很遗憾的一件事情——我发现以前的我并没有写出什么值得发表出来的博客，更遗憾的事情，现在的我也没有写出来这样的文字。",{"type":19,"tag":20,"props":2759,"children":2760},{},[2761],{"type":24,"value":2762},"大抵是从初中开始，我就对文字保有偌大的趣味。我认为那是一件值得品味，需要经验积累才能表征出的东西。我想写自己的小说，传达自己的思想。但自我判断后，认为仍需更多的现实经验积累（但其实更重要的是相应的锻炼，比如说写作训练），便将想法设置为遥远的理想，始终铭记，但将其搁置在行动清单外。",{"type":19,"tag":20,"props":2764,"children":2765},{},[2766],{"type":24,"value":2767},"大学刚入学后，学着网上胡乱的言论（还有身边的例子），我也开始写博客。那时候的我，对于博客的写作，其实只是大多停留在复制粘贴的搬运。毕竟经验与感想是需要累计和思考的，没有一定时间的浸润是很难以自己的想法表达出来其他人的想法的。而自我日常的思绪又过于混乱，不花时间做整理，到最后连自己都看不懂。这样记录实在是无趣。",{"type":19,"tag":20,"props":2769,"children":2770},{},[2771],{"type":24,"value":2772},"对于自我的寻找是更关键的。尽管我知道了自我的位置，但是我还是没有以——有足够归属感的、卸下自己防备的方式去接受自我的位置。这很大程度上动摇了我未来决策的基础。",{"type":19,"tag":20,"props":2774,"children":2775},{},[2776],{"type":24,"value":2777},"这实在遗憾。",{"type":19,"tag":20,"props":2779,"children":2780},{},[2781,2783,2789],{"type":24,"value":2782},"好了，谈了不少呓语。下面提一下这次博客的搭建。当然是放弃了 ",{"type":19,"tag":76,"props":2784,"children":2786},{"className":2785},[],[2787],{"type":24,"value":2788},"Hexo",{"type":24,"value":2790},"，感到厌倦，还是不满意。很多时候就是一个想法出现，决定做不做。过后就会很快的把它丢出“缓存”。",{"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},"Markdown",{"type":24,"value":2803}," 文件支持，也需要一些基本的功能，比如说 ",{"type":19,"tag":76,"props":2805,"children":2807},{"className":2806},[],[2808],{"type":24,"value":2809},"RSS",{"type":24,"value":2811}," 订阅、评论、分类、标签、日夜模式切换等等。应该会在后续上线。",{"type":19,"tag":20,"props":2813,"children":2814},{},[2815],{"type":24,"value":2816},"技术栈：Nuxt3(+@nuxt\u002Fcontent) + TailwindCSS",{"type":19,"tag":20,"props":2818,"children":2819},{},[2820],{"type":24,"value":2821},"非常简单的技术栈。摸鱼的时候玩的很爽。www",{"type":19,"tag":20,"props":2823,"children":2824},{},[2825],{"type":24,"value":2826},"就是这样，博客还存在一些问题，但边用边解决吧。",{"title":8,"searchDepth":325,"depth":339,"links":2828},[],"content:posts:BlogRelifeVer2.md","posts\u002FBlogRelifeVer2.md","posts\u002FBlogRelifeVer2",{"_path":2833,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2834,"description":2835,"date":2748,"categories":1417,"tags":2836,"body":2838,"_type":1105,"_id":2965,"_source":1107,"_file":2966,"_stem":2967,"_extension":1110},"\u002Fposts\u002Fhelloworld","First Post","这是第一个帖子，你好！",[2837],"Default",{"type":16,"children":2839,"toc":2960},[2840,2845,2859,2864,2869,2889,2908,2913,2932,2937,2956],{"type":19,"tag":20,"props":2841,"children":2842},{},[2843],{"type":24,"value":2844},"Hello, world!",{"type":19,"tag":20,"props":2846,"children":2847},{},[2848,2850,2857],{"type":24,"value":2849},"你可以通过克隆 ",{"type":19,"tag":32,"props":2851,"children":2854},{"href":2852,"rel":2853},"https:\u002F\u002Fgithub.com\u002Firorange27\u002Fmock_blog",[54],[2855],{"type":24,"value":2856},"本项目",{"type":24,"value":2858}," 并在 posts 文件夹下进行编辑来发布自己的博客。",{"type":19,"tag":222,"props":2860,"children":2862},{"id":2861},"快速开始",[2863],{"type":24,"value":2861},{"type":19,"tag":20,"props":2865,"children":2866},{},[2867],{"type":24,"value":2868},"安装依赖",{"type":19,"tag":296,"props":2870,"children":2872},{"className":504,"code":2871,"language":506,"meta":8,"style":8},"pnpm install\n",[2873],{"type":19,"tag":76,"props":2874,"children":2875},{"__ignoreMap":8},[2876],{"type":19,"tag":306,"props":2877,"children":2878},{"class":308,"line":309},[2879,2884],{"type":19,"tag":306,"props":2880,"children":2881},{"style":313},[2882],{"type":24,"value":2883},"pnpm",{"type":19,"tag":306,"props":2885,"children":2886},{"style":319},[2887],{"type":24,"value":2888}," install\n",{"type":19,"tag":296,"props":2890,"children":2892},{"className":504,"code":2891,"language":506,"meta":8,"style":8},"pnpm dev\n",[2893],{"type":19,"tag":76,"props":2894,"children":2895},{"__ignoreMap":8},[2896],{"type":19,"tag":306,"props":2897,"children":2898},{"class":308,"line":309},[2899,2903],{"type":19,"tag":306,"props":2900,"children":2901},{"style":313},[2902],{"type":24,"value":2883},{"type":19,"tag":306,"props":2904,"children":2905},{"style":319},[2906],{"type":24,"value":2907}," dev\n",{"type":19,"tag":222,"props":2909,"children":2911},{"id":2910},"部署",[2912],{"type":24,"value":2910},{"type":19,"tag":296,"props":2914,"children":2916},{"className":504,"code":2915,"language":506,"meta":8,"style":8},"pnpm build\n",[2917],{"type":19,"tag":76,"props":2918,"children":2919},{"__ignoreMap":8},[2920],{"type":19,"tag":306,"props":2921,"children":2922},{"class":308,"line":309},[2923,2927],{"type":19,"tag":306,"props":2924,"children":2925},{"style":313},[2926],{"type":24,"value":2883},{"type":19,"tag":306,"props":2928,"children":2929},{"style":319},[2930],{"type":24,"value":2931}," build\n",{"type":19,"tag":222,"props":2933,"children":2935},{"id":2934},"预览",[2936],{"type":24,"value":2934},{"type":19,"tag":296,"props":2938,"children":2940},{"className":504,"code":2939,"language":506,"meta":8,"style":8},"pnpm preview\n",[2941],{"type":19,"tag":76,"props":2942,"children":2943},{"__ignoreMap":8},[2944],{"type":19,"tag":306,"props":2945,"children":2946},{"class":308,"line":309},[2947,2951],{"type":19,"tag":306,"props":2948,"children":2949},{"style":313},[2950],{"type":24,"value":2883},{"type":19,"tag":306,"props":2952,"children":2953},{"style":319},[2954],{"type":24,"value":2955}," preview\n",{"type":19,"tag":1087,"props":2957,"children":2958},{},[2959],{"type":24,"value":1091},{"title":8,"searchDepth":325,"depth":339,"links":2961},[2962,2963,2964],{"id":2861,"depth":325,"text":2861},{"id":2910,"depth":325,"text":2910},{"id":2934,"depth":325,"text":2934},"content:posts:HelloWorld.md","posts\u002FHelloWorld.md","posts\u002FHelloWorld",{"_path":2969,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2970,"description":2971,"date":2972,"categories":1417,"tags":2973,"body":2974,"_type":1105,"_id":3099,"_source":1107,"_file":3100,"_stem":3101,"_extension":1110},"\u002Fposts\u002Fblogrelife","重启博客","在我的表达欲与现实所需(问题解决记录)驱动下，我决定重写博客。","2024-10-21 20:44:57",null,{"type":16,"children":2975,"toc":3097},[2976,2980,3001,3058,3077,3082,3087,3092],{"type":19,"tag":20,"props":2977,"children":2978},{},[2979],{"type":24,"value":2971},{"type":19,"tag":20,"props":2981,"children":2982},{},[2983,2985,2991,2993,2999],{"type":24,"value":2984},"我之前写过博客。但之前的流程过于琐碎。当想要看到我新写内容的效果时，我都需要忍受长达几秒的 ",{"type":19,"tag":76,"props":2986,"children":2988},{"className":2987},[],[2989],{"type":24,"value":2990},"hexo g && hexo d",{"type":24,"value":2992},"，编辑的过程也不能够实时渲染。另一个使我厌烦的原因是，之前的博客是 Github Pages 部署的。我公开在 ",{"type":19,"tag":76,"props":2994,"children":2996},{"className":2995},[],[2997],{"type":24,"value":2998},"GitHub Repo",{"type":24,"value":3000}," 上的源代码也很丑陋，实在让我提不起兴趣去写。",{"type":19,"tag":20,"props":3002,"children":3003},{},[3004,3006,3011,3013,3018,3020,3026,3028,3033,3035,3040,3042,3048,3050,3056],{"type":24,"value":3005},"我追求过程的简洁，便想换成渲染 ",{"type":19,"tag":76,"props":3007,"children":3009},{"className":3008},[],[3010],{"type":24,"value":1105},{"type":24,"value":3012}," 文件的博客 (",{"type":19,"tag":2312,"props":3014,"children":3015},{},[3016],{"type":24,"value":3017},"Hugo",{"type":24,"value":3019}," 可行，但没有去尝试)。自己也尝试用 ",{"type":19,"tag":76,"props":3021,"children":3023},{"className":3022},[],[3024],{"type":24,"value":3025},"Nuxt3",{"type":24,"value":3027}," 写过一些 ",{"type":19,"tag":76,"props":3029,"children":3031},{"className":3030},[],[3032],{"type":24,"value":2801},{"type":24,"value":3034}," 的静态渲染网站，实力有限其扩展能力也不强，最后还是用以前的老套路 (",{"type":19,"tag":76,"props":3036,"children":3038},{"className":3037},[],[3039],{"type":24,"value":2788},{"type":24,"value":3041}," + ",{"type":19,"tag":76,"props":3043,"children":3045},{"className":3044},[],[3046],{"type":24,"value":3047},"Butterfly",{"type":24,"value":3049}," theme)。不过这次决定将构建过程迁移到云端，提交到仓库的源代码就只是源代码了，这样我就只用 ",{"type":19,"tag":76,"props":3051,"children":3053},{"className":3052},[],[3054],{"type":24,"value":3055},"git add *.md",{"type":24,"value":3057},"了。",{"type":19,"tag":20,"props":3059,"children":3060},{},[3061,3063,3068,3070,3075],{"type":24,"value":3062},"而且更令我惊喜的是，在这个过程中我还认识了 ",{"type":19,"tag":76,"props":3064,"children":3066},{"className":3065},[],[3067],{"type":24,"value":2809},{"type":24,"value":3069}," 的存在。我可以通过 ",{"type":19,"tag":76,"props":3071,"children":3073},{"className":3072},[],[3074],{"type":24,"value":2809},{"type":24,"value":3076}," 订阅自己的博客而忽略博客本身，这样可以更专注于写作。",{"type":19,"tag":20,"props":3078,"children":3079},{},[3080],{"type":24,"value":3081},"这次的博客更多是内心表达的冲动一直驱使着我，想要写下什么东西。我也时常怀疑自己——表达的方式真的只有这种吗？因此我也迟疑了很久，没有在网上写博客。而是在其他地方更隐私的地方零零碎碎地写下一些东西。但只是心血来潮写写罢了，三天打鱼两天晒网，其实和没写也没区别。",{"type":19,"tag":20,"props":3083,"children":3084},{},[3085],{"type":24,"value":3086},"不过这次就不一样了。",{"type":19,"tag":20,"props":3088,"children":3089},{},[3090],{"type":24,"value":3091},"哈哈？",{"type":19,"tag":20,"props":3093,"children":3094},{},[3095],{"type":24,"value":3096},"如此吧。",{"title":8,"searchDepth":325,"depth":339,"links":3098},[],"content:posts:BlogRelife.md","posts\u002FBlogRelife.md","posts\u002FBlogRelife",{"_path":3103,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":3104,"description":3105,"categories":3106,"mathjax":7,"date":3107,"tags":3108,"body":3111,"_type":1105,"_id":6221,"_source":1107,"_file":6222,"_stem":6223,"_extension":1110},"\u002Fposts\u002Fwindows11","从零配置 Windows11 开发环境","爽快的开发感从这里开始！","他玉集","2023-09-05 10:00:52",[3109,3110],"软件环境","Windows",{"type":16,"children":3112,"toc":6208},[3113,3125,3133,3138,3143,3148,3153,3176,3181,3218,3223,3241,3246,3376,3381,3400,3459,3464,3557,3562,3575,3580,3654,3665,3680,3691,3707,3720,3753,3774,3785,3790,3795,3800,3805,3810,3818,3956,3961,3966,4001,4018,4023,4047,4052,4057,4092,4097,4116,4121,4244,4249,4255,4265,4405,4410,4567,4572,4577,4598,4603,4673,4679,4685,4690,4779,4801,5178,5183,5188,5217,5222,5280,5286,5384,5390,5395,5400,5518,5523,5569,5582,5707,5712,5716,5771,5776,5862,5867,5914,5919,6000,6029,6071,6077,6082,6110,6115,6158,6163,6190,6204],{"type":19,"tag":20,"props":3114,"children":3115},{},[3116,3118],{"type":24,"value":3117},"Fork from: ",{"type":19,"tag":32,"props":3119,"children":3122},{"href":3120,"rel":3121},"https:\u002F\u002Fkirigaya.cn\u002Fblog\u002Farticle?seq=28",[54],[3123],{"type":24,"value":3124},"汇尘轩 - 锦恢的博客 (kirigaya.cn)",{"type":19,"tag":1319,"props":3126,"children":3127},{},[3128],{"type":19,"tag":20,"props":3129,"children":3130},{},[3131],{"type":24,"value":3132},"There is no end though there is a start in space. ---Infinity.",{"type":19,"tag":20,"props":3134,"children":3135},{},[3136],{"type":24,"value":3137},"记录一下简单的电脑配置流程。按照这个顺序配置即可。",{"type":19,"tag":222,"props":3139,"children":3141},{"id":3140},"windows",[3142],{"type":24,"value":3110},{"type":19,"tag":20,"props":3144,"children":3145},{},[3146],{"type":24,"value":3147},"必须是Win11，因为我需要这个版本上面的一些特性，或是功能性的，或是装饰性的。",{"type":19,"tag":20,"props":3149,"children":3150},{},[3151],{"type":24,"value":3152},"一、登录微软账号",{"type":19,"tag":1006,"props":3154,"children":3155},{},[3156,3161,3166,3171],{"type":19,"tag":64,"props":3157,"children":3158},{},[3159],{"type":24,"value":3160},"同步部分OS配置",{"type":19,"tag":64,"props":3162,"children":3163},{},[3164],{"type":24,"value":3165},"同步edge",{"type":19,"tag":64,"props":3167,"children":3168},{},[3169],{"type":24,"value":3170},"同步应用商店",{"type":19,"tag":64,"props":3172,"children":3173},{},[3174],{"type":24,"value":3175},"升级到相应的Win11版本",{"type":19,"tag":20,"props":3177,"children":3178},{},[3179],{"type":24,"value":3180},"二、转移基本的静态文件",{"type":19,"tag":1006,"props":3182,"children":3183},{},[3184,3189,3194,3205],{"type":19,"tag":64,"props":3185,"children":3186},{},[3187],{"type":24,"value":3188},"所有的图片（壁纸+图标+光标）",{"type":19,"tag":64,"props":3190,"children":3191},{},[3192],{"type":24,"value":3193},"所有的额外字体文件（Jetbrain+Nerd等宽字体+几款我喜欢的中文字体）",{"type":19,"tag":64,"props":3195,"children":3196},{},[3197,3203],{"type":19,"tag":76,"props":3198,"children":3200},{"className":3199},[],[3201],{"type":24,"value":3202},".ssh",{"type":24,"value":3204},"文件夹（用于登录服务器）",{"type":19,"tag":64,"props":3206,"children":3207},{},[3208,3210,3216],{"type":24,"value":3209},"windows terminal 的配置文件",{"type":19,"tag":76,"props":3211,"children":3213},{"className":3212},[],[3214],{"type":24,"value":3215},"setting.json",{"type":24,"value":3217},"，并替换本机windows terminal配置文件，将部分的图标路径进行修改。",{"type":19,"tag":20,"props":3219,"children":3220},{},[3221],{"type":24,"value":3222},"三、下载应用软件",{"type":19,"tag":1006,"props":3224,"children":3225},{},[3226,3231,3236],{"type":19,"tag":64,"props":3227,"children":3228},{},[3229],{"type":24,"value":3230},"微软应用商店：Dolby Access（音效）, ScreenMix（录屏）, Snipaste（截屏）、TranslucentTB（美化任务栏）、Starrea（ePub阅读器）",{"type":19,"tag":64,"props":3232,"children":3233},{},[3234],{"type":24,"value":3235},"下载前往魔法址获取SSR订阅，下载并配置CFW。",{"type":19,"tag":64,"props":3237,"children":3238},{},[3239],{"type":24,"value":3240},"网上下载：Google Chrome, FireFox, Tim, 微信, 飞书, 百度网盘, 7z, postman, Office套件, 向日葵, obsidian, OneNote",{"type":19,"tag":20,"props":3242,"children":3243},{},[3244],{"type":24,"value":3245},"四、配置开发环境",{"type":19,"tag":1006,"props":3247,"children":3248},{},[3249,3261],{"type":19,"tag":64,"props":3250,"children":3251},{},[3252,3254],{"type":24,"value":3253},"下载 PowerShell 7.x 最新版本\n官方文档：",{"type":19,"tag":32,"props":3255,"children":3258},{"href":3256,"rel":3257},"https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fpowershell\u002Fscripting\u002Finstall\u002Finstalling-powershell-on-windows?view=powershell-7.3#msi",[54],[3259],{"type":24,"value":3260},"在 Windows 上安装 PowerShell - PowerShell | Microsoft Learn",{"type":19,"tag":64,"props":3262,"children":3263},{},[3264,3266],{"type":24,"value":3265},"删除和python默认起冲突的可执行文件。使用管理员权限打开powershell，输入：",{"type":19,"tag":296,"props":3267,"children":3271},{"className":3268,"code":3269,"language":3270,"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",[3272],{"type":19,"tag":76,"props":3273,"children":3274},{"__ignoreMap":8},[3275,3358],{"type":19,"tag":306,"props":3276,"children":3277},{"class":308,"line":309},[3278,3283,3288,3293,3298,3303,3308,3313,3318,3323,3328,3333,3338,3343,3348,3353],{"type":19,"tag":306,"props":3279,"children":3280},{"style":521},[3281],{"type":24,"value":3282},"cd",{"type":19,"tag":306,"props":3284,"children":3285},{"style":319},[3286],{"type":24,"value":3287}," C:",{"type":19,"tag":306,"props":3289,"children":3290},{"style":521},[3291],{"type":24,"value":3292},"\\U",{"type":19,"tag":306,"props":3294,"children":3295},{"style":319},[3296],{"type":24,"value":3297},"sers",{"type":19,"tag":306,"props":3299,"children":3300},{"style":521},[3301],{"type":24,"value":3302},"\\\u003C",{"type":19,"tag":306,"props":3304,"children":3305},{"style":319},[3306],{"type":24,"value":3307},"用户",{"type":19,"tag":306,"props":3309,"children":3310},{"style":699},[3311],{"type":24,"value":3312},"名",{"type":19,"tag":306,"props":3314,"children":3315},{"style":705},[3316],{"type":24,"value":3317},">",{"type":19,"tag":306,"props":3319,"children":3320},{"style":521},[3321],{"type":24,"value":3322},"\\A",{"type":19,"tag":306,"props":3324,"children":3325},{"style":319},[3326],{"type":24,"value":3327},"ppData",{"type":19,"tag":306,"props":3329,"children":3330},{"style":521},[3331],{"type":24,"value":3332},"\\L",{"type":19,"tag":306,"props":3334,"children":3335},{"style":319},[3336],{"type":24,"value":3337},"ocal",{"type":19,"tag":306,"props":3339,"children":3340},{"style":521},[3341],{"type":24,"value":3342},"\\M",{"type":19,"tag":306,"props":3344,"children":3345},{"style":319},[3346],{"type":24,"value":3347},"icrosoft",{"type":19,"tag":306,"props":3349,"children":3350},{"style":521},[3351],{"type":24,"value":3352},"\\W",{"type":19,"tag":306,"props":3354,"children":3355},{"style":319},[3356],{"type":24,"value":3357},"indowsApps\n",{"type":19,"tag":306,"props":3359,"children":3360},{"class":308,"line":325},[3361,3366,3371],{"type":19,"tag":306,"props":3362,"children":3363},{"style":313},[3364],{"type":24,"value":3365},"rm",{"type":19,"tag":306,"props":3367,"children":3368},{"style":319},[3369],{"type":24,"value":3370}," python",{"type":19,"tag":306,"props":3372,"children":3373},{"style":521},[3374],{"type":24,"value":3375},"*\n",{"type":19,"tag":20,"props":3377,"children":3378},{},[3379],{"type":24,"value":3380},"2.下载 Git",{"type":19,"tag":1006,"props":3382,"children":3383},{},[3384,3395],{"type":19,"tag":64,"props":3385,"children":3386},{},[3387,3389],{"type":24,"value":3388},"前往 ",{"type":19,"tag":32,"props":3390,"children":3393},{"href":3391,"rel":3392},"https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin",[54],[3394],{"type":24,"value":3391},{"type":19,"tag":64,"props":3396,"children":3397},{},[3398],{"type":24,"value":3399},"配置信息：",{"type":19,"tag":296,"props":3401,"children":3403},{"className":3268,"code":3402,"language":3270,"meta":8,"style":8},"git config --global user.email xxx\ngit config --global user.name xxx\n",[3404],{"type":19,"tag":76,"props":3405,"children":3406},{"__ignoreMap":8},[3407,3435],{"type":19,"tag":306,"props":3408,"children":3409},{"class":308,"line":309},[3410,3415,3420,3425,3430],{"type":19,"tag":306,"props":3411,"children":3412},{"style":313},[3413],{"type":24,"value":3414},"git",{"type":19,"tag":306,"props":3416,"children":3417},{"style":319},[3418],{"type":24,"value":3419}," config",{"type":19,"tag":306,"props":3421,"children":3422},{"style":521},[3423],{"type":24,"value":3424}," --global",{"type":19,"tag":306,"props":3426,"children":3427},{"style":319},[3428],{"type":24,"value":3429}," user.email",{"type":19,"tag":306,"props":3431,"children":3432},{"style":319},[3433],{"type":24,"value":3434}," xxx\n",{"type":19,"tag":306,"props":3436,"children":3437},{"class":308,"line":325},[3438,3442,3446,3450,3455],{"type":19,"tag":306,"props":3439,"children":3440},{"style":313},[3441],{"type":24,"value":3414},{"type":19,"tag":306,"props":3443,"children":3444},{"style":319},[3445],{"type":24,"value":3419},{"type":19,"tag":306,"props":3447,"children":3448},{"style":521},[3449],{"type":24,"value":3424},{"type":19,"tag":306,"props":3451,"children":3452},{"style":319},[3453],{"type":24,"value":3454}," user.name",{"type":19,"tag":306,"props":3456,"children":3457},{"style":319},[3458],{"type":24,"value":3434},{"type":19,"tag":20,"props":3460,"children":3461},{},[3462],{"type":24,"value":3463},"3.设置代理：",{"type":19,"tag":296,"props":3465,"children":3467},{"className":3268,"code":3466,"language":3270,"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",[3468],{"type":19,"tag":76,"props":3469,"children":3470},{"__ignoreMap":8},[3471,3516],{"type":19,"tag":306,"props":3472,"children":3473},{"class":308,"line":309},[3474,3478,3482,3486,3491,3496,3501,3506,3511],{"type":19,"tag":306,"props":3475,"children":3476},{"style":313},[3477],{"type":24,"value":3414},{"type":19,"tag":306,"props":3479,"children":3480},{"style":319},[3481],{"type":24,"value":3419},{"type":19,"tag":306,"props":3483,"children":3484},{"style":521},[3485],{"type":24,"value":3424},{"type":19,"tag":306,"props":3487,"children":3488},{"style":319},[3489],{"type":24,"value":3490}," http.proxy",{"type":19,"tag":306,"props":3492,"children":3493},{"style":319},[3494],{"type":24,"value":3495}," http:\u002F\u002F127.0.0.1:",{"type":19,"tag":306,"props":3497,"children":3498},{"style":705},[3499],{"type":24,"value":3500},"\u003C",{"type":19,"tag":306,"props":3502,"children":3503},{"style":319},[3504],{"type":24,"value":3505},"端口",{"type":19,"tag":306,"props":3507,"children":3508},{"style":699},[3509],{"type":24,"value":3510},"号",{"type":19,"tag":306,"props":3512,"children":3513},{"style":705},[3514],{"type":24,"value":3515},">\n",{"type":19,"tag":306,"props":3517,"children":3518},{"class":308,"line":325},[3519,3523,3527,3531,3536,3541,3545,3549,3553],{"type":19,"tag":306,"props":3520,"children":3521},{"style":313},[3522],{"type":24,"value":3414},{"type":19,"tag":306,"props":3524,"children":3525},{"style":319},[3526],{"type":24,"value":3419},{"type":19,"tag":306,"props":3528,"children":3529},{"style":521},[3530],{"type":24,"value":3424},{"type":19,"tag":306,"props":3532,"children":3533},{"style":319},[3534],{"type":24,"value":3535}," https.proxy",{"type":19,"tag":306,"props":3537,"children":3538},{"style":319},[3539],{"type":24,"value":3540}," https:\u002F\u002F127.0.0.1:",{"type":19,"tag":306,"props":3542,"children":3543},{"style":705},[3544],{"type":24,"value":3500},{"type":19,"tag":306,"props":3546,"children":3547},{"style":319},[3548],{"type":24,"value":3505},{"type":19,"tag":306,"props":3550,"children":3551},{"style":699},[3552],{"type":24,"value":3510},{"type":19,"tag":306,"props":3554,"children":3555},{"style":705},[3556],{"type":24,"value":3515},{"type":19,"tag":20,"props":3558,"children":3559},{},[3560],{"type":24,"value":3561},"3.安装python",{"type":19,"tag":20,"props":3563,"children":3564},{},[3565,3567,3573],{"type":24,"value":3566},"1.去 ",{"type":19,"tag":32,"props":3568,"children":3571},{"href":3569,"rel":3570},"https:\u002F\u002Fwww.python.org\u002Fdownloads\u002Fwindows\u002F",[54],[3572],{"type":24,"value":3569},{"type":24,"value":3574}," 寻找稳定版本的x64可执行文件下载",{"type":19,"tag":20,"props":3576,"children":3577},{},[3578],{"type":24,"value":3579},"2.配置pip源：",{"type":19,"tag":296,"props":3581,"children":3583},{"className":3268,"code":3582,"language":3270,"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",[3584],{"type":19,"tag":76,"props":3585,"children":3586},{"__ignoreMap":8},[3587,3614],{"type":19,"tag":306,"props":3588,"children":3589},{"class":308,"line":309},[3590,3595,3599,3604,3609],{"type":19,"tag":306,"props":3591,"children":3592},{"style":313},[3593],{"type":24,"value":3594},"pip",{"type":19,"tag":306,"props":3596,"children":3597},{"style":319},[3598],{"type":24,"value":3419},{"type":19,"tag":306,"props":3600,"children":3601},{"style":319},[3602],{"type":24,"value":3603}," set",{"type":19,"tag":306,"props":3605,"children":3606},{"style":319},[3607],{"type":24,"value":3608}," global.index-url",{"type":19,"tag":306,"props":3610,"children":3611},{"style":319},[3612],{"type":24,"value":3613}," https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n",{"type":19,"tag":306,"props":3615,"children":3616},{"class":308,"line":325},[3617,3621,3625,3629,3634,3638,3642,3646,3650],{"type":19,"tag":306,"props":3618,"children":3619},{"style":313},[3620],{"type":24,"value":3594},{"type":19,"tag":306,"props":3622,"children":3623},{"style":319},[3624],{"type":24,"value":3419},{"type":19,"tag":306,"props":3626,"children":3627},{"style":319},[3628],{"type":24,"value":3603},{"type":19,"tag":306,"props":3630,"children":3631},{"style":319},[3632],{"type":24,"value":3633}," global.proxy",{"type":19,"tag":306,"props":3635,"children":3636},{"style":319},[3637],{"type":24,"value":3495},{"type":19,"tag":306,"props":3639,"children":3640},{"style":705},[3641],{"type":24,"value":3500},{"type":19,"tag":306,"props":3643,"children":3644},{"style":319},[3645],{"type":24,"value":3505},{"type":19,"tag":306,"props":3647,"children":3648},{"style":699},[3649],{"type":24,"value":3510},{"type":19,"tag":306,"props":3651,"children":3652},{"style":705},[3653],{"type":24,"value":3515},{"type":19,"tag":20,"props":3655,"children":3656},{},[3657,3659],{"type":24,"value":3658},"4.安装MinGW ",{"type":19,"tag":32,"props":3660,"children":3663},{"href":3661,"rel":3662},"https:\u002F\u002Fsourceforge.net\u002Fprojects\u002Fmingw\u002F",[54],[3664],{"type":24,"value":3661},{"type":19,"tag":1319,"props":3666,"children":3667},{},[3668],{"type":19,"tag":20,"props":3669,"children":3670},{},[3671,3673],{"type":24,"value":3672},"忘记安装配置怎么选看",{"type":19,"tag":32,"props":3674,"children":3677},{"href":3675,"rel":3676},"https:\u002F\u002Fblog.csdn.net\u002FQuantumYou\u002Farticle\u002Fdetails\u002F119676283",[54],[3678],{"type":24,"value":3679},"这篇博客",{"type":19,"tag":20,"props":3681,"children":3682},{},[3683,3685],{"type":24,"value":3684},"5.安装cmake ",{"type":19,"tag":32,"props":3686,"children":3689},{"href":3687,"rel":3688},"https:\u002F\u002Fcmake.org\u002Fdownload\u002F",[54],[3690],{"type":24,"value":3687},{"type":19,"tag":1319,"props":3692,"children":3693},{},[3694],{"type":19,"tag":20,"props":3695,"children":3696},{},[3697,3699,3705],{"type":24,"value":3698},"如果安装了VS，可以查看路径",{"type":19,"tag":76,"props":3700,"children":3702},{"className":3701},[],[3703],{"type":24,"value":3704},"C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin",{"type":24,"value":3706},"，这里面存在VS构建的cmake，上面的cmake可以不用下载。",{"type":19,"tag":20,"props":3708,"children":3709},{},[3710,3712,3718],{"type":24,"value":3711},"6.安装node ",{"type":19,"tag":32,"props":3713,"children":3716},{"href":3714,"rel":3715},"https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F",[54],[3717],{"type":24,"value":3714},{"type":24,"value":3719},"\nnpm 换源：",{"type":19,"tag":296,"props":3721,"children":3723},{"className":3268,"code":3722,"language":3270,"meta":8,"style":8},"npm config set registry https:\u002F\u002Fregistry.npm.taobao.org\n",[3724],{"type":19,"tag":76,"props":3725,"children":3726},{"__ignoreMap":8},[3727],{"type":19,"tag":306,"props":3728,"children":3729},{"class":308,"line":309},[3730,3735,3739,3743,3748],{"type":19,"tag":306,"props":3731,"children":3732},{"style":313},[3733],{"type":24,"value":3734},"npm",{"type":19,"tag":306,"props":3736,"children":3737},{"style":319},[3738],{"type":24,"value":3419},{"type":19,"tag":306,"props":3740,"children":3741},{"style":319},[3742],{"type":24,"value":3603},{"type":19,"tag":306,"props":3744,"children":3745},{"style":319},[3746],{"type":24,"value":3747}," registry",{"type":19,"tag":306,"props":3749,"children":3750},{"style":319},[3751],{"type":24,"value":3752}," https:\u002F\u002Fregistry.npm.taobao.org\n",{"type":19,"tag":20,"props":3754,"children":3755},{},[3756,3758,3764,3766,3772],{"type":24,"value":3757},"7.安装go\n1. 找到安装 ",{"type":19,"tag":32,"props":3759,"children":3762},{"href":3760,"rel":3761},"https:\u002F\u002Fgolang.google.cn\u002Fdl\u002F",[54],[3763],{"type":24,"value":3760},{"type":24,"value":3765},"\n2. 配置：\n",{"type":19,"tag":76,"props":3767,"children":3769},{"className":3768},[],[3770],{"type":24,"value":3771},"shell      go env -w GO111MODULE=on      go env -w GOPROXY=https:\u002F\u002Fgoproxy.cn,direct     ",{"type":24,"value":3773},"\n3.如果有必要，设置GOROOT和GOPATH环境变量",{"type":19,"tag":20,"props":3775,"children":3776},{},[3777,3779],{"type":24,"value":3778},"8.安装Java：",{"type":19,"tag":32,"props":3780,"children":3783},{"href":3781,"rel":3782},"https:\u002F\u002Fwww.oracle.com\u002Fhk\u002Fjava\u002Ftechnologies\u002Fdownloads\u002F",[54],[3784],{"type":24,"value":3781},{"type":19,"tag":20,"props":3786,"children":3787},{},[3788],{"type":24,"value":3789},"9.测试以上编译器、解释器能否正常工作。",{"type":19,"tag":20,"props":3791,"children":3792},{},[3793],{"type":24,"value":3794},"10.安装vscode（科学上网），安装后打开并登录GitHub账号进行配置与插件同步（等到左下角的“正在同步”消失后，就可以退出了）",{"type":19,"tag":20,"props":3796,"children":3797},{},[3798],{"type":24,"value":3799},"11.安装VS2022（反正是最新版的就行），安装windows通用开发和C++的。",{"type":19,"tag":20,"props":3801,"children":3802},{},[3803],{"type":24,"value":3804},"五、配置终端",{"type":19,"tag":20,"props":3806,"children":3807},{},[3808],{"type":24,"value":3809},"以管理员权限打开windows terminal，执行下面的指令",{"type":19,"tag":1006,"props":3811,"children":3812},{},[3813],{"type":19,"tag":64,"props":3814,"children":3815},{},[3816],{"type":24,"value":3817},"配置 powershell，安装powershell插件",{"type":19,"tag":296,"props":3819,"children":3821},{"className":3268,"code":3820,"language":3270,"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",[3822],{"type":19,"tag":76,"props":3823,"children":3824},{"__ignoreMap":8},[3825,3833,3846,3855,3863,3882,3890,3899,3913,3921,3930,3943],{"type":19,"tag":306,"props":3826,"children":3827},{"class":308,"line":309},[3828],{"type":19,"tag":306,"props":3829,"children":3830},{"style":343},[3831],{"type":24,"value":3832},"# 允许运行Install-Module脚本\n",{"type":19,"tag":306,"props":3834,"children":3835},{"class":308,"line":325},[3836,3841],{"type":19,"tag":306,"props":3837,"children":3838},{"style":313},[3839],{"type":24,"value":3840},"set-executionpolicy",{"type":19,"tag":306,"props":3842,"children":3843},{"style":319},[3844],{"type":24,"value":3845}," remotesigned\n",{"type":19,"tag":306,"props":3847,"children":3848},{"class":308,"line":339},[3849],{"type":19,"tag":306,"props":3850,"children":3852},{"emptyLinePlaceholder":3851},true,[3853],{"type":24,"value":3854},"\n",{"type":19,"tag":306,"props":3856,"children":3857},{"class":308,"line":1654},[3858],{"type":19,"tag":306,"props":3859,"children":3860},{"style":343},[3861],{"type":24,"value":3862},"# 更新最新版本的PSReadLine，为了自动补全\n",{"type":19,"tag":306,"props":3864,"children":3866},{"class":308,"line":3865},5,[3867,3872,3877],{"type":19,"tag":306,"props":3868,"children":3869},{"style":313},[3870],{"type":24,"value":3871},"Install-Module",{"type":19,"tag":306,"props":3873,"children":3874},{"style":319},[3875],{"type":24,"value":3876}," PSReadLine",{"type":19,"tag":306,"props":3878,"children":3879},{"style":521},[3880],{"type":24,"value":3881}," -Force\n",{"type":19,"tag":306,"props":3883,"children":3885},{"class":308,"line":3884},6,[3886],{"type":19,"tag":306,"props":3887,"children":3888},{"emptyLinePlaceholder":3851},[3889],{"type":24,"value":3854},{"type":19,"tag":306,"props":3891,"children":3893},{"class":308,"line":3892},7,[3894],{"type":19,"tag":306,"props":3895,"children":3896},{"style":343},[3897],{"type":24,"value":3898},"# 创建powershell 的初始化脚本，点击确认创建即可\n",{"type":19,"tag":306,"props":3900,"children":3902},{"class":308,"line":3901},8,[3903,3908],{"type":19,"tag":306,"props":3904,"children":3905},{"style":313},[3906],{"type":24,"value":3907},"notepad",{"type":19,"tag":306,"props":3909,"children":3910},{"style":699},[3911],{"type":24,"value":3912}," $profile\n",{"type":19,"tag":306,"props":3914,"children":3916},{"class":308,"line":3915},9,[3917],{"type":19,"tag":306,"props":3918,"children":3919},{"emptyLinePlaceholder":3851},[3920],{"type":24,"value":3854},{"type":19,"tag":306,"props":3922,"children":3924},{"class":308,"line":3923},10,[3925],{"type":19,"tag":306,"props":3926,"children":3927},{"style":343},[3928],{"type":24,"value":3929},"# 安装几个插件\n",{"type":19,"tag":306,"props":3931,"children":3933},{"class":308,"line":3932},11,[3934,3938],{"type":19,"tag":306,"props":3935,"children":3936},{"style":313},[3937],{"type":24,"value":3871},{"type":19,"tag":306,"props":3939,"children":3940},{"style":319},[3941],{"type":24,"value":3942}," posh-git\n",{"type":19,"tag":306,"props":3944,"children":3946},{"class":308,"line":3945},12,[3947,3951],{"type":19,"tag":306,"props":3948,"children":3949},{"style":313},[3950],{"type":24,"value":3871},{"type":19,"tag":306,"props":3952,"children":3953},{"style":319},[3954],{"type":24,"value":3955}," Terminal-Icons\n",{"type":19,"tag":20,"props":3957,"children":3958},{},[3959],{"type":24,"value":3960},"2.安装并配置oh-my-posh",{"type":19,"tag":20,"props":3962,"children":3963},{},[3964],{"type":24,"value":3965},"1.安装oh-my-posh",{"type":19,"tag":296,"props":3967,"children":3969},{"className":3268,"code":3968,"language":3270,"meta":8,"style":8},"winget install JanDeDobbeleer.OhMyPosh -s winget\n",[3970],{"type":19,"tag":76,"props":3971,"children":3972},{"__ignoreMap":8},[3973],{"type":19,"tag":306,"props":3974,"children":3975},{"class":308,"line":309},[3976,3981,3986,3991,3996],{"type":19,"tag":306,"props":3977,"children":3978},{"style":313},[3979],{"type":24,"value":3980},"winget",{"type":19,"tag":306,"props":3982,"children":3983},{"style":319},[3984],{"type":24,"value":3985}," install",{"type":19,"tag":306,"props":3987,"children":3988},{"style":319},[3989],{"type":24,"value":3990}," JanDeDobbeleer.OhMyPosh",{"type":19,"tag":306,"props":3992,"children":3993},{"style":521},[3994],{"type":24,"value":3995}," -s",{"type":19,"tag":306,"props":3997,"children":3998},{"style":319},[3999],{"type":24,"value":4000}," winget\n",{"type":19,"tag":1319,"props":4002,"children":4003},{},[4004],{"type":19,"tag":20,"props":4005,"children":4006},{},[4007,4009,4016],{"type":24,"value":4008},"如果该方法失效，移步",{"type":19,"tag":32,"props":4010,"children":4013},{"href":4011,"rel":4012},"https:\u002F\u002Fohmyposh.dev\u002Fdocs\u002Finstallation\u002Fwindows",[54],[4014],{"type":24,"value":4015},"oh-my-posh windows set up",{"type":24,"value":4017},"查看最新安装方法",{"type":19,"tag":20,"props":4019,"children":4020},{},[4021],{"type":24,"value":4022},"2.下载oh-my-posh主题",{"type":19,"tag":296,"props":4024,"children":4026},{"className":3268,"code":4025,"language":3270,"meta":8,"style":8},"git clone https:\u002F\u002Fgithub.com\u002FJanDeDobbeleer\u002Foh-my-posh \n",[4027],{"type":19,"tag":76,"props":4028,"children":4029},{"__ignoreMap":8},[4030],{"type":19,"tag":306,"props":4031,"children":4032},{"class":308,"line":309},[4033,4037,4042],{"type":19,"tag":306,"props":4034,"children":4035},{"style":313},[4036],{"type":24,"value":3414},{"type":19,"tag":306,"props":4038,"children":4039},{"style":319},[4040],{"type":24,"value":4041}," clone",{"type":19,"tag":306,"props":4043,"children":4044},{"style":319},[4045],{"type":24,"value":4046}," https:\u002F\u002Fgithub.com\u002FJanDeDobbeleer\u002Foh-my-posh\n",{"type":19,"tag":20,"props":4048,"children":4049},{},[4050],{"type":24,"value":4051},"将里面的theme文件夹保留即可。",{"type":19,"tag":20,"props":4053,"children":4054},{},[4055],{"type":24,"value":4056},"3.测试",{"type":19,"tag":296,"props":4058,"children":4060},{"className":3268,"code":4059,"language":3270,"meta":8,"style":8},"oh-my-posh init pwsh | Invoke-Expression\n",[4061],{"type":19,"tag":76,"props":4062,"children":4063},{"__ignoreMap":8},[4064],{"type":19,"tag":306,"props":4065,"children":4066},{"class":308,"line":309},[4067,4072,4077,4082,4087],{"type":19,"tag":306,"props":4068,"children":4069},{"style":313},[4070],{"type":24,"value":4071},"oh-my-posh",{"type":19,"tag":306,"props":4073,"children":4074},{"style":319},[4075],{"type":24,"value":4076}," init",{"type":19,"tag":306,"props":4078,"children":4079},{"style":319},[4080],{"type":24,"value":4081}," pwsh",{"type":19,"tag":306,"props":4083,"children":4084},{"style":705},[4085],{"type":24,"value":4086}," |",{"type":19,"tag":306,"props":4088,"children":4089},{"style":313},[4090],{"type":24,"value":4091}," Invoke-Expression\n",{"type":19,"tag":20,"props":4093,"children":4094},{},[4095],{"type":24,"value":4096},"3.配置整体运行文件",{"type":19,"tag":296,"props":4098,"children":4100},{"className":3268,"code":4099,"language":3270,"meta":8,"style":8},"notepad++ $profile\n",[4101],{"type":19,"tag":76,"props":4102,"children":4103},{"__ignoreMap":8},[4104],{"type":19,"tag":306,"props":4105,"children":4106},{"class":308,"line":309},[4107,4112],{"type":19,"tag":306,"props":4108,"children":4109},{"style":313},[4110],{"type":24,"value":4111},"notepad++",{"type":19,"tag":306,"props":4113,"children":4114},{"style":699},[4115],{"type":24,"value":3912},{"type":19,"tag":20,"props":4117,"children":4118},{},[4119],{"type":24,"value":4120},"将以下文本写入其中：",{"type":19,"tag":296,"props":4122,"children":4124},{"className":3268,"code":4123,"language":3270,"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",[4125],{"type":19,"tag":76,"props":4126,"children":4127},{"__ignoreMap":8},[4128,4175,4187,4198,4216],{"type":19,"tag":306,"props":4129,"children":4130},{"class":308,"line":309},[4131,4135,4139,4143,4148,4153,4158,4163,4167,4171],{"type":19,"tag":306,"props":4132,"children":4133},{"style":313},[4134],{"type":24,"value":4071},{"type":19,"tag":306,"props":4136,"children":4137},{"style":319},[4138],{"type":24,"value":4076},{"type":19,"tag":306,"props":4140,"children":4141},{"style":319},[4142],{"type":24,"value":4081},{"type":19,"tag":306,"props":4144,"children":4145},{"style":521},[4146],{"type":24,"value":4147}," --config",{"type":19,"tag":306,"props":4149,"children":4150},{"style":705},[4151],{"type":24,"value":4152}," \u003C",{"type":19,"tag":306,"props":4154,"children":4155},{"style":319},[4156],{"type":24,"value":4157},"主题路径（json文件",{"type":19,"tag":306,"props":4159,"children":4160},{"style":699},[4161],{"type":24,"value":4162},"）",{"type":19,"tag":306,"props":4164,"children":4165},{"style":705},[4166],{"type":24,"value":3317},{"type":19,"tag":306,"props":4168,"children":4169},{"style":705},[4170],{"type":24,"value":4086},{"type":19,"tag":306,"props":4172,"children":4173},{"style":313},[4174],{"type":24,"value":4091},{"type":19,"tag":306,"props":4176,"children":4177},{"class":308,"line":325},[4178,4183],{"type":19,"tag":306,"props":4179,"children":4180},{"style":313},[4181],{"type":24,"value":4182},"Import-Module",{"type":19,"tag":306,"props":4184,"children":4185},{"style":319},[4186],{"type":24,"value":3942},{"type":19,"tag":306,"props":4188,"children":4189},{"class":308,"line":339},[4190,4194],{"type":19,"tag":306,"props":4191,"children":4192},{"style":313},[4193],{"type":24,"value":4182},{"type":19,"tag":306,"props":4195,"children":4196},{"style":319},[4197],{"type":24,"value":3955},{"type":19,"tag":306,"props":4199,"children":4200},{"class":308,"line":1654},[4201,4206,4211],{"type":19,"tag":306,"props":4202,"children":4203},{"style":313},[4204],{"type":24,"value":4205},"Set-PSReadLineOption",{"type":19,"tag":306,"props":4207,"children":4208},{"style":521},[4209],{"type":24,"value":4210}," -PredictionSource",{"type":19,"tag":306,"props":4212,"children":4213},{"style":319},[4214],{"type":24,"value":4215}," History\n",{"type":19,"tag":306,"props":4217,"children":4218},{"class":308,"line":3865},[4219,4224,4229,4234,4239],{"type":19,"tag":306,"props":4220,"children":4221},{"style":313},[4222],{"type":24,"value":4223},"Set-PSReadlineKeyHandler",{"type":19,"tag":306,"props":4225,"children":4226},{"style":521},[4227],{"type":24,"value":4228}," -Key",{"type":19,"tag":306,"props":4230,"children":4231},{"style":319},[4232],{"type":24,"value":4233}," Tab",{"type":19,"tag":306,"props":4235,"children":4236},{"style":521},[4237],{"type":24,"value":4238}," -Function",{"type":19,"tag":306,"props":4240,"children":4241},{"style":319},[4242],{"type":24,"value":4243}," MenuComplete\n",{"type":19,"tag":20,"props":4245,"children":4246},{},[4247],{"type":24,"value":4248},"重新打开terminal查看安装效果",{"type":19,"tag":222,"props":4250,"children":4252},{"id":4251},"六安装wsl2",[4253],{"type":24,"value":4254},"六、安装WSL2",{"type":19,"tag":20,"props":4256,"children":4257},{},[4258,4263],{"type":19,"tag":68,"props":4259,"children":4260},{},[4261],{"type":24,"value":4262},"以管理员身份",{"type":24,"value":4264},"打开windows terminal",{"type":19,"tag":296,"props":4266,"children":4268},{"className":298,"code":4267,"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",[4269],{"type":19,"tag":76,"props":4270,"children":4271},{"__ignoreMap":8},[4272,4280,4303,4310,4318,4336,4343,4351,4373,4380,4388],{"type":19,"tag":306,"props":4273,"children":4274},{"class":308,"line":309},[4275],{"type":19,"tag":306,"props":4276,"children":4277},{"style":343},[4278],{"type":24,"value":4279},"# 开启VM组件 开启后需要重启电脑\n",{"type":19,"tag":306,"props":4281,"children":4282},{"class":308,"line":325},[4283,4288,4293,4298],{"type":19,"tag":306,"props":4284,"children":4285},{"style":313},[4286],{"type":24,"value":4287},"Enable-WindowsOptionalFeature",{"type":19,"tag":306,"props":4289,"children":4290},{"style":521},[4291],{"type":24,"value":4292}," -Online",{"type":19,"tag":306,"props":4294,"children":4295},{"style":521},[4296],{"type":24,"value":4297}," -FeatureName",{"type":19,"tag":306,"props":4299,"children":4300},{"style":319},[4301],{"type":24,"value":4302}," VirtualMachinePlatform\n",{"type":19,"tag":306,"props":4304,"children":4305},{"class":308,"line":339},[4306],{"type":19,"tag":306,"props":4307,"children":4308},{"emptyLinePlaceholder":3851},[4309],{"type":24,"value":3854},{"type":19,"tag":306,"props":4311,"children":4312},{"class":308,"line":1654},[4313],{"type":19,"tag":306,"props":4314,"children":4315},{"style":343},[4316],{"type":24,"value":4317},"# 列出可安装的安装包\n",{"type":19,"tag":306,"props":4319,"children":4320},{"class":308,"line":3865},[4321,4326,4331],{"type":19,"tag":306,"props":4322,"children":4323},{"style":313},[4324],{"type":24,"value":4325},"wsl",{"type":19,"tag":306,"props":4327,"children":4328},{"style":521},[4329],{"type":24,"value":4330}," --list",{"type":19,"tag":306,"props":4332,"children":4333},{"style":521},[4334],{"type":24,"value":4335}," --online\n",{"type":19,"tag":306,"props":4337,"children":4338},{"class":308,"line":3884},[4339],{"type":19,"tag":306,"props":4340,"children":4341},{"emptyLinePlaceholder":3851},[4342],{"type":24,"value":3854},{"type":19,"tag":306,"props":4344,"children":4345},{"class":308,"line":3892},[4346],{"type":19,"tag":306,"props":4347,"children":4348},{"style":343},[4349],{"type":24,"value":4350},"# 安装你想要的发行版，我这里是Ubuntu-22.04\n",{"type":19,"tag":306,"props":4352,"children":4353},{"class":308,"line":3901},[4354,4358,4363,4368],{"type":19,"tag":306,"props":4355,"children":4356},{"style":313},[4357],{"type":24,"value":4325},{"type":19,"tag":306,"props":4359,"children":4360},{"style":521},[4361],{"type":24,"value":4362}," --install",{"type":19,"tag":306,"props":4364,"children":4365},{"style":521},[4366],{"type":24,"value":4367}," -d",{"type":19,"tag":306,"props":4369,"children":4370},{"style":319},[4371],{"type":24,"value":4372}," Ubuntu-22.04\n",{"type":19,"tag":306,"props":4374,"children":4375},{"class":308,"line":3915},[4376],{"type":19,"tag":306,"props":4377,"children":4378},{"emptyLinePlaceholder":3851},[4379],{"type":24,"value":3854},{"type":19,"tag":306,"props":4381,"children":4382},{"class":308,"line":3923},[4383],{"type":19,"tag":306,"props":4384,"children":4385},{"style":343},[4386],{"type":24,"value":4387},"# 设置为wsl2\n",{"type":19,"tag":306,"props":4389,"children":4390},{"class":308,"line":3932},[4391,4395,4400],{"type":19,"tag":306,"props":4392,"children":4393},{"style":313},[4394],{"type":24,"value":4325},{"type":19,"tag":306,"props":4396,"children":4397},{"style":521},[4398],{"type":24,"value":4399}," --set-default-version",{"type":19,"tag":306,"props":4401,"children":4402},{"style":521},[4403],{"type":24,"value":4404}," 2\n",{"type":19,"tag":20,"props":4406,"children":4407},{},[4408],{"type":24,"value":4409},"WSL可以简单的创建多个发行版，并进行管理和切换。并且可以对接VS code及Jetbrain(学生可以申请专业版！！快去)等IDE。支持CUDA，docker，并且享受linux命令行的各种工具。掌握使用WSL是重要的。\n现在来举例一些基本的操作。",{"type":19,"tag":296,"props":4411,"children":4413},{"className":298,"code":4412,"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",[4414],{"type":19,"tag":76,"props":4415,"children":4416},{"__ignoreMap":8},[4417,4425,4442,4450,4472,4480,4488],{"type":19,"tag":306,"props":4418,"children":4419},{"class":308,"line":309},[4420],{"type":19,"tag":306,"props":4421,"children":4422},{"style":343},[4423],{"type":24,"value":4424},"# 列出已安装的Linux发行版\n",{"type":19,"tag":306,"props":4426,"children":4427},{"class":308,"line":325},[4428,4432,4437],{"type":19,"tag":306,"props":4429,"children":4430},{"style":313},[4431],{"type":24,"value":4325},{"type":19,"tag":306,"props":4433,"children":4434},{"style":521},[4435],{"type":24,"value":4436}," -l",{"type":19,"tag":306,"props":4438,"children":4439},{"style":521},[4440],{"type":24,"value":4441}," -v\n",{"type":19,"tag":306,"props":4443,"children":4444},{"class":308,"line":339},[4445],{"type":19,"tag":306,"props":4446,"children":4447},{"style":343},[4448],{"type":24,"value":4449},"# 导出\u002F备份\n",{"type":19,"tag":306,"props":4451,"children":4452},{"class":308,"line":1654},[4453,4457,4462,4467],{"type":19,"tag":306,"props":4454,"children":4455},{"style":313},[4456],{"type":24,"value":4325},{"type":19,"tag":306,"props":4458,"children":4459},{"style":521},[4460],{"type":24,"value":4461}," --export",{"type":19,"tag":306,"props":4463,"children":4464},{"style":319},[4465],{"type":24,"value":4466}," Ubuntu-22.04",{"type":19,"tag":306,"props":4468,"children":4469},{"style":319},[4470],{"type":24,"value":4471}," Ubuntu-22.04.tar\n",{"type":19,"tag":306,"props":4473,"children":4474},{"class":308,"line":3865},[4475],{"type":19,"tag":306,"props":4476,"children":4477},{"style":343},[4478],{"type":24,"value":4479},"# 导入\u002F还原\u002F利用备份创建新的安装\n",{"type":19,"tag":306,"props":4481,"children":4482},{"class":308,"line":3884},[4483],{"type":19,"tag":306,"props":4484,"children":4485},{"style":343},[4486],{"type":24,"value":4487},"# wsl --import \u003Cwsl_name> \u003Croute> \u003Csource>\n",{"type":19,"tag":306,"props":4489,"children":4490},{"class":308,"line":3892},[4491,4495,4500,4505,4509,4513,4517,4522,4527,4532,4537,4542,4547,4552,4557,4562],{"type":19,"tag":306,"props":4492,"children":4493},{"style":313},[4494],{"type":24,"value":4325},{"type":19,"tag":306,"props":4496,"children":4497},{"style":521},[4498],{"type":24,"value":4499}," --import",{"type":19,"tag":306,"props":4501,"children":4502},{"style":319},[4503],{"type":24,"value":4504}," Anaconda",{"type":19,"tag":306,"props":4506,"children":4507},{"style":319},[4508],{"type":24,"value":3287},{"type":19,"tag":306,"props":4510,"children":4511},{"style":521},[4512],{"type":24,"value":3292},{"type":19,"tag":306,"props":4514,"children":4515},{"style":319},[4516],{"type":24,"value":3297},{"type":19,"tag":306,"props":4518,"children":4519},{"style":521},[4520],{"type":24,"value":4521},"\\n",{"type":19,"tag":306,"props":4523,"children":4524},{"style":319},[4525],{"type":24,"value":4526},"iina",{"type":19,"tag":306,"props":4528,"children":4529},{"style":521},[4530],{"type":24,"value":4531},"\\r",{"type":19,"tag":306,"props":4533,"children":4534},{"style":319},[4535],{"type":24,"value":4536},"oot",{"type":19,"tag":306,"props":4538,"children":4539},{"style":521},[4540],{"type":24,"value":4541},"\\v",{"type":19,"tag":306,"props":4543,"children":4544},{"style":319},[4545],{"type":24,"value":4546},"ar",{"type":19,"tag":306,"props":4548,"children":4549},{"style":521},[4550],{"type":24,"value":4551},"\\w",{"type":19,"tag":306,"props":4553,"children":4554},{"style":319},[4555],{"type":24,"value":4556},"sl",{"type":19,"tag":306,"props":4558,"children":4559},{"style":521},[4560],{"type":24,"value":4561},"\\a",{"type":19,"tag":306,"props":4563,"children":4564},{"style":319},[4565],{"type":24,"value":4566},"naconda\n",{"type":19,"tag":20,"props":4568,"children":4569},{},[4570],{"type":24,"value":4571},"以上操作完成后，在win+Q(或win)中搜索ubuntu on Windows，打开，完成安装和账号注册（Unix账号必须是开头小写的单词）",{"type":19,"tag":20,"props":4573,"children":4574},{},[4575],{"type":24,"value":4576},"完成后打开windows terminal的下拉菜单，会发现多出了一个Ubuntu的标签页。后面移步Linux的配置。",{"type":19,"tag":20,"props":4578,"children":4579},{},[4580,4582,4589,4591],{"type":24,"value":4581},"WSL学习使用：",{"type":19,"tag":32,"props":4583,"children":4586},{"href":4584,"rel":4585},"https:\u002F\u002Flearn.microsoft.com\u002Fzh-cn\u002Fwindows\u002Fwsl\u002F",[54],[4587],{"type":24,"value":4588},"适用于 Linux 的 Windows 子系统文档 | Microsoft Learn",{"type":24,"value":4590},"\n开源的一个WSL入门手册： ",{"type":19,"tag":32,"props":4592,"children":4595},{"href":4593,"rel":4594},"https:\u002F\u002Fdowww.spencerwoo.com\u002F",[54],[4596],{"type":24,"value":4597},"在Windows上优雅地使用WSL开发",{"type":19,"tag":20,"props":4599,"children":4600},{},[4601],{"type":24,"value":4602},"七、兴趣爱好",{"type":19,"tag":60,"props":4604,"children":4605},{},[4606,4617,4627,4632,4642,4652,4662],{"type":19,"tag":64,"props":4607,"children":4608},{},[4609,4611],{"type":24,"value":4610},"cuDNN开发套件（用于开发kernel op和安装编译torch cuda） ",{"type":19,"tag":32,"props":4612,"children":4615},{"href":4613,"rel":4614},"https:\u002F\u002Fdeveloper.nvidia.com\u002Fcuda-downloads",[54],[4616],{"type":24,"value":4613},{"type":19,"tag":64,"props":4618,"children":4619},{},[4620],{"type":19,"tag":32,"props":4621,"children":4624},{"href":4622,"rel":4623},"https:\u002F\u002Fwww.flstudiochina.com\u002Fxiazai.html",[54],[4625],{"type":24,"value":4626},"FL Studio",{"type":19,"tag":64,"props":4628,"children":4629},{},[4630],{"type":24,"value":4631},"Cubase",{"type":19,"tag":64,"props":4633,"children":4634},{},[4635],{"type":19,"tag":32,"props":4636,"children":4639},{"href":4637,"rel":4638},"https:\u002F\u002Fwww.reaper.fm\u002Fdownload.php",[54],[4640],{"type":24,"value":4641},"REAPER",{"type":19,"tag":64,"props":4643,"children":4644},{},[4645],{"type":19,"tag":32,"props":4646,"children":4649},{"href":4647,"rel":4648},"https:\u002F\u002Fdreamtonics.com\u002Fen\u002Fsynthesizerv\u002F",[54],[4650],{"type":24,"value":4651},"Synthesizer V",{"type":19,"tag":64,"props":4653,"children":4654},{},[4655],{"type":19,"tag":32,"props":4656,"children":4659},{"href":4657,"rel":4658},"https:\u002F\u002Fstore.steampowered.com\u002Fabout\u002F",[54],[4660],{"type":24,"value":4661},"Steam",{"type":19,"tag":64,"props":4663,"children":4664},{},[4665,4667],{"type":24,"value":4666},"ACE studio  ",{"type":19,"tag":32,"props":4668,"children":4671},{"href":4669,"rel":4670},"https:\u002F\u002Face-studio.timedomain.cn\u002F",[54],[4672],{"type":24,"value":4669},{"type":19,"tag":222,"props":4674,"children":4676},{"id":4675},"linux",[4677],{"type":24,"value":4678},"Linux",{"type":19,"tag":486,"props":4680,"children":4682},{"id":4681},"一apt换源",[4683],{"type":24,"value":4684},"一、apt换源",{"type":19,"tag":20,"props":4686,"children":4687},{},[4688],{"type":24,"value":4689},"操作如下。",{"type":19,"tag":296,"props":4691,"children":4693},{"className":3268,"code":4692,"language":3270,"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",[4694],{"type":19,"tag":76,"props":4695,"children":4696},{"__ignoreMap":8},[4697,4709,4716,4724,4747,4754,4762],{"type":19,"tag":306,"props":4698,"children":4699},{"class":308,"line":309},[4700,4704],{"type":19,"tag":306,"props":4701,"children":4702},{"style":521},[4703],{"type":24,"value":3282},{"type":19,"tag":306,"props":4705,"children":4706},{"style":319},[4707],{"type":24,"value":4708}," \u002Fetc\u002Fapt\u002F\n",{"type":19,"tag":306,"props":4710,"children":4711},{"class":308,"line":325},[4712],{"type":19,"tag":306,"props":4713,"children":4714},{"emptyLinePlaceholder":3851},[4715],{"type":24,"value":3854},{"type":19,"tag":306,"props":4717,"children":4718},{"class":308,"line":339},[4719],{"type":19,"tag":306,"props":4720,"children":4721},{"style":343},[4722],{"type":24,"value":4723},"# 留个source备份\n",{"type":19,"tag":306,"props":4725,"children":4726},{"class":308,"line":1654},[4727,4732,4737,4742],{"type":19,"tag":306,"props":4728,"children":4729},{"style":313},[4730],{"type":24,"value":4731},"sudo",{"type":19,"tag":306,"props":4733,"children":4734},{"style":319},[4735],{"type":24,"value":4736}," cp",{"type":19,"tag":306,"props":4738,"children":4739},{"style":319},[4740],{"type":24,"value":4741}," sources.list",{"type":19,"tag":306,"props":4743,"children":4744},{"style":319},[4745],{"type":24,"value":4746}," sources.list.backup\n",{"type":19,"tag":306,"props":4748,"children":4749},{"class":308,"line":3865},[4750],{"type":19,"tag":306,"props":4751,"children":4752},{"emptyLinePlaceholder":3851},[4753],{"type":24,"value":3854},{"type":19,"tag":306,"props":4755,"children":4756},{"class":308,"line":3884},[4757],{"type":19,"tag":306,"props":4758,"children":4759},{"style":343},[4760],{"type":24,"value":4761},"# 使用源\n",{"type":19,"tag":306,"props":4763,"children":4764},{"class":308,"line":3892},[4765,4769,4774],{"type":19,"tag":306,"props":4766,"children":4767},{"style":313},[4768],{"type":24,"value":4731},{"type":19,"tag":306,"props":4770,"children":4771},{"style":319},[4772],{"type":24,"value":4773}," vim",{"type":19,"tag":306,"props":4775,"children":4776},{"style":319},[4777],{"type":24,"value":4778}," sources.list\n",{"type":19,"tag":20,"props":4780,"children":4781},{},[4782,4784,4790,4792,4799],{"type":24,"value":4783},"写入：(根据ubuntu版本号自己查, ",{"type":19,"tag":76,"props":4785,"children":4787},{"className":4786},[],[4788],{"type":24,"value":4789},"cat \u002Fetc\u002Fos-release",{"type":24,"value":4791},")\n清华源给出的Ubuntu22.04源的网址 ",{"type":19,"tag":32,"props":4793,"children":4796},{"href":4794,"rel":4795},"https:\u002F\u002Fmirrors.tuna.tsinghua.edu.cn\u002Fhelp\u002Fubuntu\u002F",[54],[4797],{"type":24,"value":4798},"Ubuntu",{"type":24,"value":4800},"\n下面是同版本阿里云的源，复制粘贴进即可。",{"type":19,"tag":296,"props":4802,"children":4804},{"className":3268,"code":4803,"language":3270,"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",[4805],{"type":19,"tag":76,"props":4806,"children":4807},{"__ignoreMap":8},[4808,4816,4854,4886,4893,4925,4956,4963,4995,5026,5033,5065,5096,5104,5137,5169],{"type":19,"tag":306,"props":4809,"children":4810},{"class":308,"line":309},[4811],{"type":19,"tag":306,"props":4812,"children":4813},{"style":343},[4814],{"type":24,"value":4815},"## aliyun mirrors\n",{"type":19,"tag":306,"props":4817,"children":4818},{"class":308,"line":325},[4819,4824,4829,4834,4839,4844,4849],{"type":19,"tag":306,"props":4820,"children":4821},{"style":313},[4822],{"type":24,"value":4823},"deb",{"type":19,"tag":306,"props":4825,"children":4826},{"style":319},[4827],{"type":24,"value":4828}," http:\u002F\u002Fmirrors.aliyun.com\u002Fubuntu\u002F",{"type":19,"tag":306,"props":4830,"children":4831},{"style":319},[4832],{"type":24,"value":4833}," jammy",{"type":19,"tag":306,"props":4835,"children":4836},{"style":319},[4837],{"type":24,"value":4838}," main",{"type":19,"tag":306,"props":4840,"children":4841},{"style":319},[4842],{"type":24,"value":4843}," restricted",{"type":19,"tag":306,"props":4845,"children":4846},{"style":319},[4847],{"type":24,"value":4848}," universe",{"type":19,"tag":306,"props":4850,"children":4851},{"style":319},[4852],{"type":24,"value":4853}," multiverse\n",{"type":19,"tag":306,"props":4855,"children":4856},{"class":308,"line":339},[4857,4862,4866,4870,4874,4878,4882],{"type":19,"tag":306,"props":4858,"children":4859},{"style":313},[4860],{"type":24,"value":4861},"deb-src",{"type":19,"tag":306,"props":4863,"children":4864},{"style":319},[4865],{"type":24,"value":4828},{"type":19,"tag":306,"props":4867,"children":4868},{"style":319},[4869],{"type":24,"value":4833},{"type":19,"tag":306,"props":4871,"children":4872},{"style":319},[4873],{"type":24,"value":4838},{"type":19,"tag":306,"props":4875,"children":4876},{"style":319},[4877],{"type":24,"value":4843},{"type":19,"tag":306,"props":4879,"children":4880},{"style":319},[4881],{"type":24,"value":4848},{"type":19,"tag":306,"props":4883,"children":4884},{"style":319},[4885],{"type":24,"value":4853},{"type":19,"tag":306,"props":4887,"children":4888},{"class":308,"line":1654},[4889],{"type":19,"tag":306,"props":4890,"children":4891},{"emptyLinePlaceholder":3851},[4892],{"type":24,"value":3854},{"type":19,"tag":306,"props":4894,"children":4895},{"class":308,"line":3865},[4896,4900,4904,4909,4913,4917,4921],{"type":19,"tag":306,"props":4897,"children":4898},{"style":313},[4899],{"type":24,"value":4823},{"type":19,"tag":306,"props":4901,"children":4902},{"style":319},[4903],{"type":24,"value":4828},{"type":19,"tag":306,"props":4905,"children":4906},{"style":319},[4907],{"type":24,"value":4908}," jammy-security",{"type":19,"tag":306,"props":4910,"children":4911},{"style":319},[4912],{"type":24,"value":4838},{"type":19,"tag":306,"props":4914,"children":4915},{"style":319},[4916],{"type":24,"value":4843},{"type":19,"tag":306,"props":4918,"children":4919},{"style":319},[4920],{"type":24,"value":4848},{"type":19,"tag":306,"props":4922,"children":4923},{"style":319},[4924],{"type":24,"value":4853},{"type":19,"tag":306,"props":4926,"children":4927},{"class":308,"line":3884},[4928,4932,4936,4940,4944,4948,4952],{"type":19,"tag":306,"props":4929,"children":4930},{"style":313},[4931],{"type":24,"value":4861},{"type":19,"tag":306,"props":4933,"children":4934},{"style":319},[4935],{"type":24,"value":4828},{"type":19,"tag":306,"props":4937,"children":4938},{"style":319},[4939],{"type":24,"value":4908},{"type":19,"tag":306,"props":4941,"children":4942},{"style":319},[4943],{"type":24,"value":4838},{"type":19,"tag":306,"props":4945,"children":4946},{"style":319},[4947],{"type":24,"value":4843},{"type":19,"tag":306,"props":4949,"children":4950},{"style":319},[4951],{"type":24,"value":4848},{"type":19,"tag":306,"props":4953,"children":4954},{"style":319},[4955],{"type":24,"value":4853},{"type":19,"tag":306,"props":4957,"children":4958},{"class":308,"line":3892},[4959],{"type":19,"tag":306,"props":4960,"children":4961},{"emptyLinePlaceholder":3851},[4962],{"type":24,"value":3854},{"type":19,"tag":306,"props":4964,"children":4965},{"class":308,"line":3901},[4966,4970,4974,4979,4983,4987,4991],{"type":19,"tag":306,"props":4967,"children":4968},{"style":313},[4969],{"type":24,"value":4823},{"type":19,"tag":306,"props":4971,"children":4972},{"style":319},[4973],{"type":24,"value":4828},{"type":19,"tag":306,"props":4975,"children":4976},{"style":319},[4977],{"type":24,"value":4978}," jammy-updates",{"type":19,"tag":306,"props":4980,"children":4981},{"style":319},[4982],{"type":24,"value":4838},{"type":19,"tag":306,"props":4984,"children":4985},{"style":319},[4986],{"type":24,"value":4843},{"type":19,"tag":306,"props":4988,"children":4989},{"style":319},[4990],{"type":24,"value":4848},{"type":19,"tag":306,"props":4992,"children":4993},{"style":319},[4994],{"type":24,"value":4853},{"type":19,"tag":306,"props":4996,"children":4997},{"class":308,"line":3915},[4998,5002,5006,5010,5014,5018,5022],{"type":19,"tag":306,"props":4999,"children":5000},{"style":313},[5001],{"type":24,"value":4861},{"type":19,"tag":306,"props":5003,"children":5004},{"style":319},[5005],{"type":24,"value":4828},{"type":19,"tag":306,"props":5007,"children":5008},{"style":319},[5009],{"type":24,"value":4978},{"type":19,"tag":306,"props":5011,"children":5012},{"style":319},[5013],{"type":24,"value":4838},{"type":19,"tag":306,"props":5015,"children":5016},{"style":319},[5017],{"type":24,"value":4843},{"type":19,"tag":306,"props":5019,"children":5020},{"style":319},[5021],{"type":24,"value":4848},{"type":19,"tag":306,"props":5023,"children":5024},{"style":319},[5025],{"type":24,"value":4853},{"type":19,"tag":306,"props":5027,"children":5028},{"class":308,"line":3923},[5029],{"type":19,"tag":306,"props":5030,"children":5031},{"emptyLinePlaceholder":3851},[5032],{"type":24,"value":3854},{"type":19,"tag":306,"props":5034,"children":5035},{"class":308,"line":3932},[5036,5040,5044,5049,5053,5057,5061],{"type":19,"tag":306,"props":5037,"children":5038},{"style":313},[5039],{"type":24,"value":4823},{"type":19,"tag":306,"props":5041,"children":5042},{"style":319},[5043],{"type":24,"value":4828},{"type":19,"tag":306,"props":5045,"children":5046},{"style":319},[5047],{"type":24,"value":5048}," jammy-proposed",{"type":19,"tag":306,"props":5050,"children":5051},{"style":319},[5052],{"type":24,"value":4838},{"type":19,"tag":306,"props":5054,"children":5055},{"style":319},[5056],{"type":24,"value":4843},{"type":19,"tag":306,"props":5058,"children":5059},{"style":319},[5060],{"type":24,"value":4848},{"type":19,"tag":306,"props":5062,"children":5063},{"style":319},[5064],{"type":24,"value":4853},{"type":19,"tag":306,"props":5066,"children":5067},{"class":308,"line":3945},[5068,5072,5076,5080,5084,5088,5092],{"type":19,"tag":306,"props":5069,"children":5070},{"style":313},[5071],{"type":24,"value":4861},{"type":19,"tag":306,"props":5073,"children":5074},{"style":319},[5075],{"type":24,"value":4828},{"type":19,"tag":306,"props":5077,"children":5078},{"style":319},[5079],{"type":24,"value":5048},{"type":19,"tag":306,"props":5081,"children":5082},{"style":319},[5083],{"type":24,"value":4838},{"type":19,"tag":306,"props":5085,"children":5086},{"style":319},[5087],{"type":24,"value":4843},{"type":19,"tag":306,"props":5089,"children":5090},{"style":319},[5091],{"type":24,"value":4848},{"type":19,"tag":306,"props":5093,"children":5094},{"style":319},[5095],{"type":24,"value":4853},{"type":19,"tag":306,"props":5097,"children":5099},{"class":308,"line":5098},13,[5100],{"type":19,"tag":306,"props":5101,"children":5102},{"emptyLinePlaceholder":3851},[5103],{"type":24,"value":3854},{"type":19,"tag":306,"props":5105,"children":5107},{"class":308,"line":5106},14,[5108,5112,5116,5121,5125,5129,5133],{"type":19,"tag":306,"props":5109,"children":5110},{"style":313},[5111],{"type":24,"value":4823},{"type":19,"tag":306,"props":5113,"children":5114},{"style":319},[5115],{"type":24,"value":4828},{"type":19,"tag":306,"props":5117,"children":5118},{"style":319},[5119],{"type":24,"value":5120}," jammy-backports",{"type":19,"tag":306,"props":5122,"children":5123},{"style":319},[5124],{"type":24,"value":4838},{"type":19,"tag":306,"props":5126,"children":5127},{"style":319},[5128],{"type":24,"value":4843},{"type":19,"tag":306,"props":5130,"children":5131},{"style":319},[5132],{"type":24,"value":4848},{"type":19,"tag":306,"props":5134,"children":5135},{"style":319},[5136],{"type":24,"value":4853},{"type":19,"tag":306,"props":5138,"children":5140},{"class":308,"line":5139},15,[5141,5145,5149,5153,5157,5161,5165],{"type":19,"tag":306,"props":5142,"children":5143},{"style":313},[5144],{"type":24,"value":4861},{"type":19,"tag":306,"props":5146,"children":5147},{"style":319},[5148],{"type":24,"value":4828},{"type":19,"tag":306,"props":5150,"children":5151},{"style":319},[5152],{"type":24,"value":5120},{"type":19,"tag":306,"props":5154,"children":5155},{"style":319},[5156],{"type":24,"value":4838},{"type":19,"tag":306,"props":5158,"children":5159},{"style":319},[5160],{"type":24,"value":4843},{"type":19,"tag":306,"props":5162,"children":5163},{"style":319},[5164],{"type":24,"value":4848},{"type":19,"tag":306,"props":5166,"children":5167},{"style":319},[5168],{"type":24,"value":4853},{"type":19,"tag":306,"props":5170,"children":5172},{"class":308,"line":5171},16,[5173],{"type":19,"tag":306,"props":5174,"children":5175},{"style":343},[5176],{"type":24,"value":5177},"## aliyun mirrors End\n",{"type":19,"tag":20,"props":5179,"children":5180},{},[5181],{"type":24,"value":5182},"保存退出。",{"type":19,"tag":20,"props":5184,"children":5185},{},[5186],{"type":24,"value":5187},"移除自带的包（因为可能和国内源的软件有冲突）",{"type":19,"tag":296,"props":5189,"children":5191},{"className":504,"code":5190,"language":506,"meta":8,"style":8},"sudo apt remove ubuntu-advantage-tools\n",[5192],{"type":19,"tag":76,"props":5193,"children":5194},{"__ignoreMap":8},[5195],{"type":19,"tag":306,"props":5196,"children":5197},{"class":308,"line":309},[5198,5202,5207,5212],{"type":19,"tag":306,"props":5199,"children":5200},{"style":313},[5201],{"type":24,"value":4731},{"type":19,"tag":306,"props":5203,"children":5204},{"style":319},[5205],{"type":24,"value":5206}," apt",{"type":19,"tag":306,"props":5208,"children":5209},{"style":319},[5210],{"type":24,"value":5211}," remove",{"type":19,"tag":306,"props":5213,"children":5214},{"style":319},[5215],{"type":24,"value":5216}," ubuntu-advantage-tools\n",{"type":19,"tag":20,"props":5218,"children":5219},{},[5220],{"type":24,"value":5221},"更新包管理器：",{"type":19,"tag":296,"props":5223,"children":5225},{"className":298,"code":5224,"language":300,"meta":8,"style":8},"sudo apt update && sudo apt upgrade\nsudo apt-get update\n",[5226],{"type":19,"tag":76,"props":5227,"children":5228},{"__ignoreMap":8},[5229,5263],{"type":19,"tag":306,"props":5230,"children":5231},{"class":308,"line":309},[5232,5236,5240,5245,5250,5254,5258],{"type":19,"tag":306,"props":5233,"children":5234},{"style":313},[5235],{"type":24,"value":4731},{"type":19,"tag":306,"props":5237,"children":5238},{"style":319},[5239],{"type":24,"value":5206},{"type":19,"tag":306,"props":5241,"children":5242},{"style":319},[5243],{"type":24,"value":5244}," update",{"type":19,"tag":306,"props":5246,"children":5247},{"style":699},[5248],{"type":24,"value":5249}," && ",{"type":19,"tag":306,"props":5251,"children":5252},{"style":313},[5253],{"type":24,"value":4731},{"type":19,"tag":306,"props":5255,"children":5256},{"style":319},[5257],{"type":24,"value":5206},{"type":19,"tag":306,"props":5259,"children":5260},{"style":319},[5261],{"type":24,"value":5262}," upgrade\n",{"type":19,"tag":306,"props":5264,"children":5265},{"class":308,"line":325},[5266,5270,5275],{"type":19,"tag":306,"props":5267,"children":5268},{"style":313},[5269],{"type":24,"value":4731},{"type":19,"tag":306,"props":5271,"children":5272},{"style":319},[5273],{"type":24,"value":5274}," apt-get",{"type":19,"tag":306,"props":5276,"children":5277},{"style":319},[5278],{"type":24,"value":5279}," update\n",{"type":19,"tag":486,"props":5281,"children":5283},{"id":5282},"二安装基本的开发工具",[5284],{"type":24,"value":5285},"二、安装基本的开发工具",{"type":19,"tag":296,"props":5287,"children":5289},{"className":298,"code":5288,"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",[5290],{"type":19,"tag":76,"props":5291,"children":5292},{"__ignoreMap":8},[5293,5301,5326,5333,5341,5361],{"type":19,"tag":306,"props":5294,"children":5295},{"class":308,"line":309},[5296],{"type":19,"tag":306,"props":5297,"children":5298},{"style":343},[5299],{"type":24,"value":5300},"# mingw套组\n",{"type":19,"tag":306,"props":5302,"children":5303},{"class":308,"line":325},[5304,5308,5312,5316,5321],{"type":19,"tag":306,"props":5305,"children":5306},{"style":313},[5307],{"type":24,"value":4731},{"type":19,"tag":306,"props":5309,"children":5310},{"style":319},[5311],{"type":24,"value":5206},{"type":19,"tag":306,"props":5313,"children":5314},{"style":319},[5315],{"type":24,"value":3985},{"type":19,"tag":306,"props":5317,"children":5318},{"style":319},[5319],{"type":24,"value":5320}," build-essential",{"type":19,"tag":306,"props":5322,"children":5323},{"style":319},[5324],{"type":24,"value":5325}," cmake\n",{"type":19,"tag":306,"props":5327,"children":5328},{"class":308,"line":339},[5329],{"type":19,"tag":306,"props":5330,"children":5331},{"emptyLinePlaceholder":3851},[5332],{"type":24,"value":3854},{"type":19,"tag":306,"props":5334,"children":5335},{"class":308,"line":1654},[5336],{"type":19,"tag":306,"props":5337,"children":5338},{"style":343},[5339],{"type":24,"value":5340},"# python3 pip 工具\n",{"type":19,"tag":306,"props":5342,"children":5343},{"class":308,"line":3865},[5344,5348,5352,5356],{"type":19,"tag":306,"props":5345,"children":5346},{"style":313},[5347],{"type":24,"value":4731},{"type":19,"tag":306,"props":5349,"children":5350},{"style":319},[5351],{"type":24,"value":5206},{"type":19,"tag":306,"props":5353,"children":5354},{"style":319},[5355],{"type":24,"value":3985},{"type":19,"tag":306,"props":5357,"children":5358},{"style":319},[5359],{"type":24,"value":5360}," python3-pip\n",{"type":19,"tag":306,"props":5362,"children":5363},{"class":308,"line":3884},[5364,5368,5372,5376,5380],{"type":19,"tag":306,"props":5365,"children":5366},{"style":313},[5367],{"type":24,"value":3594},{"type":19,"tag":306,"props":5369,"children":5370},{"style":319},[5371],{"type":24,"value":3419},{"type":19,"tag":306,"props":5373,"children":5374},{"style":319},[5375],{"type":24,"value":3603},{"type":19,"tag":306,"props":5377,"children":5378},{"style":319},[5379],{"type":24,"value":3608},{"type":19,"tag":306,"props":5381,"children":5382},{"style":319},[5383],{"type":24,"value":3613},{"type":19,"tag":486,"props":5385,"children":5387},{"id":5386},"三美化终端",[5388],{"type":24,"value":5389},"三、美化终端",{"type":19,"tag":2277,"props":5391,"children":5393},{"id":5392},"使用fish",[5394],{"type":24,"value":5392},{"type":19,"tag":20,"props":5396,"children":5397},{},[5398],{"type":24,"value":5399},"安装",{"type":19,"tag":296,"props":5401,"children":5403},{"className":298,"code":5402,"language":300,"meta":8,"style":8},"sudo apt install fish\nchsh -s $(which fish)\nexport SHELL=`which fish` && exec \"$SHELL\" -l\n",[5404],{"type":19,"tag":76,"props":5405,"children":5406},{"__ignoreMap":8},[5407,5427,5459],{"type":19,"tag":306,"props":5408,"children":5409},{"class":308,"line":309},[5410,5414,5418,5422],{"type":19,"tag":306,"props":5411,"children":5412},{"style":313},[5413],{"type":24,"value":4731},{"type":19,"tag":306,"props":5415,"children":5416},{"style":319},[5417],{"type":24,"value":5206},{"type":19,"tag":306,"props":5419,"children":5420},{"style":319},[5421],{"type":24,"value":3985},{"type":19,"tag":306,"props":5423,"children":5424},{"style":319},[5425],{"type":24,"value":5426}," fish\n",{"type":19,"tag":306,"props":5428,"children":5429},{"class":308,"line":325},[5430,5435,5439,5444,5449,5454],{"type":19,"tag":306,"props":5431,"children":5432},{"style":313},[5433],{"type":24,"value":5434},"chsh",{"type":19,"tag":306,"props":5436,"children":5437},{"style":521},[5438],{"type":24,"value":3995},{"type":19,"tag":306,"props":5440,"children":5441},{"style":699},[5442],{"type":24,"value":5443}," $(",{"type":19,"tag":306,"props":5445,"children":5446},{"style":521},[5447],{"type":24,"value":5448},"which",{"type":19,"tag":306,"props":5450,"children":5451},{"style":319},[5452],{"type":24,"value":5453}," fish",{"type":19,"tag":306,"props":5455,"children":5456},{"style":699},[5457],{"type":24,"value":5458},")\n",{"type":19,"tag":306,"props":5460,"children":5461},{"class":308,"line":339},[5462,5466,5471,5475,5480,5484,5489,5493,5498,5503,5508,5513],{"type":19,"tag":306,"props":5463,"children":5464},{"style":705},[5465],{"type":24,"value":849},{"type":19,"tag":306,"props":5467,"children":5468},{"style":699},[5469],{"type":24,"value":5470}," SHELL",{"type":19,"tag":306,"props":5472,"children":5473},{"style":705},[5474],{"type":24,"value":708},{"type":19,"tag":306,"props":5476,"children":5477},{"style":319},[5478],{"type":24,"value":5479},"`",{"type":19,"tag":306,"props":5481,"children":5482},{"style":521},[5483],{"type":24,"value":5448},{"type":19,"tag":306,"props":5485,"children":5486},{"style":319},[5487],{"type":24,"value":5488}," fish`",{"type":19,"tag":306,"props":5490,"children":5491},{"style":699},[5492],{"type":24,"value":5249},{"type":19,"tag":306,"props":5494,"children":5495},{"style":521},[5496],{"type":24,"value":5497},"exec",{"type":19,"tag":306,"props":5499,"children":5500},{"style":319},[5501],{"type":24,"value":5502}," \"",{"type":19,"tag":306,"props":5504,"children":5505},{"style":699},[5506],{"type":24,"value":5507},"$SHELL",{"type":19,"tag":306,"props":5509,"children":5510},{"style":319},[5511],{"type":24,"value":5512},"\"",{"type":19,"tag":306,"props":5514,"children":5515},{"style":521},[5516],{"type":24,"value":5517}," -l\n",{"type":19,"tag":20,"props":5519,"children":5520},{},[5521],{"type":24,"value":5522},"修改风格",{"type":19,"tag":296,"props":5524,"children":5526},{"className":298,"code":5525,"language":300,"meta":8,"style":8},"fish_config prompt choose scope\nfish_config prompt save\n",[5527],{"type":19,"tag":76,"props":5528,"children":5529},{"__ignoreMap":8},[5530,5553],{"type":19,"tag":306,"props":5531,"children":5532},{"class":308,"line":309},[5533,5538,5543,5548],{"type":19,"tag":306,"props":5534,"children":5535},{"style":313},[5536],{"type":24,"value":5537},"fish_config",{"type":19,"tag":306,"props":5539,"children":5540},{"style":319},[5541],{"type":24,"value":5542}," prompt",{"type":19,"tag":306,"props":5544,"children":5545},{"style":319},[5546],{"type":24,"value":5547}," choose",{"type":19,"tag":306,"props":5549,"children":5550},{"style":319},[5551],{"type":24,"value":5552}," scope\n",{"type":19,"tag":306,"props":5554,"children":5555},{"class":308,"line":325},[5556,5560,5564],{"type":19,"tag":306,"props":5557,"children":5558},{"style":313},[5559],{"type":24,"value":5537},{"type":19,"tag":306,"props":5561,"children":5562},{"style":319},[5563],{"type":24,"value":5542},{"type":19,"tag":306,"props":5565,"children":5566},{"style":319},[5567],{"type":24,"value":5568}," save\n",{"type":19,"tag":20,"props":5570,"children":5571},{},[5572,5573,5580],{"type":24,"value":5399},{"type":19,"tag":32,"props":5574,"children":5577},{"href":5575,"rel":5576},"https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish",[54],[5578],{"type":24,"value":5579},"oh-my-fish",{"type":24,"value":5581}," 可选",{"type":19,"tag":296,"props":5583,"children":5585},{"className":298,"code":5584,"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",[5586],{"type":19,"tag":76,"props":5587,"children":5588},{"__ignoreMap":8},[5589,5597,5619,5636,5653,5661,5687],{"type":19,"tag":306,"props":5590,"children":5591},{"class":308,"line":309},[5592],{"type":19,"tag":306,"props":5593,"children":5594},{"style":343},[5595],{"type":24,"value":5596},"# with git\n",{"type":19,"tag":306,"props":5598,"children":5599},{"class":308,"line":325},[5600,5605,5610,5614],{"type":19,"tag":306,"props":5601,"children":5602},{"style":313},[5603],{"type":24,"value":5604},"$",{"type":19,"tag":306,"props":5606,"children":5607},{"style":319},[5608],{"type":24,"value":5609}," git",{"type":19,"tag":306,"props":5611,"children":5612},{"style":319},[5613],{"type":24,"value":4041},{"type":19,"tag":306,"props":5615,"children":5616},{"style":319},[5617],{"type":24,"value":5618}," https:\u002F\u002Fgithub.com\u002Foh-my-fish\u002Foh-my-fish\n",{"type":19,"tag":306,"props":5620,"children":5621},{"class":308,"line":339},[5622,5626,5631],{"type":19,"tag":306,"props":5623,"children":5624},{"style":313},[5625],{"type":24,"value":5604},{"type":19,"tag":306,"props":5627,"children":5628},{"style":319},[5629],{"type":24,"value":5630}," cd",{"type":19,"tag":306,"props":5632,"children":5633},{"style":319},[5634],{"type":24,"value":5635}," oh-my-fish\n",{"type":19,"tag":306,"props":5637,"children":5638},{"class":308,"line":1654},[5639,5643,5648],{"type":19,"tag":306,"props":5640,"children":5641},{"style":313},[5642],{"type":24,"value":5604},{"type":19,"tag":306,"props":5644,"children":5645},{"style":319},[5646],{"type":24,"value":5647}," bin\u002Finstall",{"type":19,"tag":306,"props":5649,"children":5650},{"style":521},[5651],{"type":24,"value":5652}," --offline\n",{"type":19,"tag":306,"props":5654,"children":5655},{"class":308,"line":3865},[5656],{"type":19,"tag":306,"props":5657,"children":5658},{"style":343},[5659],{"type":24,"value":5660},"# with a tarball\n",{"type":19,"tag":306,"props":5662,"children":5663},{"class":308,"line":3884},[5664,5668,5673,5678,5683],{"type":19,"tag":306,"props":5665,"children":5666},{"style":313},[5667],{"type":24,"value":5604},{"type":19,"tag":306,"props":5669,"children":5670},{"style":319},[5671],{"type":24,"value":5672}," curl",{"type":19,"tag":306,"props":5674,"children":5675},{"style":319},[5676],{"type":24,"value":5677}," https:\u002F\u002Fraw.githubusercontent.com\u002Foh-my-fish\u002Foh-my-fish\u002Fmaster\u002Fbin\u002Finstall",{"type":19,"tag":306,"props":5679,"children":5680},{"style":705},[5681],{"type":24,"value":5682}," >",{"type":19,"tag":306,"props":5684,"children":5685},{"style":319},[5686],{"type":24,"value":2888},{"type":19,"tag":306,"props":5688,"children":5689},{"class":308,"line":3892},[5690,5694,5698,5702],{"type":19,"tag":306,"props":5691,"children":5692},{"style":313},[5693],{"type":24,"value":5604},{"type":19,"tag":306,"props":5695,"children":5696},{"style":319},[5697],{"type":24,"value":5453},{"type":19,"tag":306,"props":5699,"children":5700},{"style":319},[5701],{"type":24,"value":3985},{"type":19,"tag":306,"props":5703,"children":5704},{"style":521},[5705],{"type":24,"value":5706}," --offline=omf.tar.gz\n",{"type":19,"tag":2277,"props":5708,"children":5710},{"id":5709},"使用zsh",[5711],{"type":24,"value":5709},{"type":19,"tag":20,"props":5713,"children":5714},{},[5715],{"type":24,"value":5399},{"type":19,"tag":296,"props":5717,"children":5719},{"className":298,"code":5718,"language":300,"meta":8,"style":8},"sudo apt install zsh\nchsh -s $(which zsh)\n",[5720],{"type":19,"tag":76,"props":5721,"children":5722},{"__ignoreMap":8},[5723,5743],{"type":19,"tag":306,"props":5724,"children":5725},{"class":308,"line":309},[5726,5730,5734,5738],{"type":19,"tag":306,"props":5727,"children":5728},{"style":313},[5729],{"type":24,"value":4731},{"type":19,"tag":306,"props":5731,"children":5732},{"style":319},[5733],{"type":24,"value":5206},{"type":19,"tag":306,"props":5735,"children":5736},{"style":319},[5737],{"type":24,"value":3985},{"type":19,"tag":306,"props":5739,"children":5740},{"style":319},[5741],{"type":24,"value":5742}," zsh\n",{"type":19,"tag":306,"props":5744,"children":5745},{"class":308,"line":325},[5746,5750,5754,5758,5762,5767],{"type":19,"tag":306,"props":5747,"children":5748},{"style":313},[5749],{"type":24,"value":5434},{"type":19,"tag":306,"props":5751,"children":5752},{"style":521},[5753],{"type":24,"value":3995},{"type":19,"tag":306,"props":5755,"children":5756},{"style":699},[5757],{"type":24,"value":5443},{"type":19,"tag":306,"props":5759,"children":5760},{"style":521},[5761],{"type":24,"value":5448},{"type":19,"tag":306,"props":5763,"children":5764},{"style":319},[5765],{"type":24,"value":5766}," zsh",{"type":19,"tag":306,"props":5768,"children":5769},{"style":699},[5770],{"type":24,"value":5458},{"type":19,"tag":20,"props":5772,"children":5773},{},[5774],{"type":24,"value":5775},"在bashrc里面加入",{"type":19,"tag":296,"props":5777,"children":5779},{"className":298,"code":5778,"language":300,"meta":8,"style":8},"export SHELL=`which zsh`\n[ -z \"$ZSH_VERSION\" ] && exec \"$SHELL\" -l\n",[5780],{"type":19,"tag":76,"props":5781,"children":5782},{"__ignoreMap":8},[5783,5811],{"type":19,"tag":306,"props":5784,"children":5785},{"class":308,"line":309},[5786,5790,5794,5798,5802,5806],{"type":19,"tag":306,"props":5787,"children":5788},{"style":705},[5789],{"type":24,"value":849},{"type":19,"tag":306,"props":5791,"children":5792},{"style":699},[5793],{"type":24,"value":5470},{"type":19,"tag":306,"props":5795,"children":5796},{"style":705},[5797],{"type":24,"value":708},{"type":19,"tag":306,"props":5799,"children":5800},{"style":319},[5801],{"type":24,"value":5479},{"type":19,"tag":306,"props":5803,"children":5804},{"style":521},[5805],{"type":24,"value":5448},{"type":19,"tag":306,"props":5807,"children":5808},{"style":319},[5809],{"type":24,"value":5810}," zsh`\n",{"type":19,"tag":306,"props":5812,"children":5813},{"class":308,"line":325},[5814,5819,5824,5828,5833,5837,5842,5846,5850,5854,5858],{"type":19,"tag":306,"props":5815,"children":5816},{"style":699},[5817],{"type":24,"value":5818},"[ ",{"type":19,"tag":306,"props":5820,"children":5821},{"style":705},[5822],{"type":24,"value":5823},"-z",{"type":19,"tag":306,"props":5825,"children":5826},{"style":319},[5827],{"type":24,"value":5502},{"type":19,"tag":306,"props":5829,"children":5830},{"style":699},[5831],{"type":24,"value":5832},"$ZSH_VERSION",{"type":19,"tag":306,"props":5834,"children":5835},{"style":319},[5836],{"type":24,"value":5512},{"type":19,"tag":306,"props":5838,"children":5839},{"style":699},[5840],{"type":24,"value":5841}," ] && ",{"type":19,"tag":306,"props":5843,"children":5844},{"style":521},[5845],{"type":24,"value":5497},{"type":19,"tag":306,"props":5847,"children":5848},{"style":319},[5849],{"type":24,"value":5502},{"type":19,"tag":306,"props":5851,"children":5852},{"style":699},[5853],{"type":24,"value":5507},{"type":19,"tag":306,"props":5855,"children":5856},{"style":319},[5857],{"type":24,"value":5512},{"type":19,"tag":306,"props":5859,"children":5860},{"style":521},[5861],{"type":24,"value":5517},{"type":19,"tag":20,"props":5863,"children":5864},{},[5865],{"type":24,"value":5866},"重新打开当前终端，就会进入zsh终端，接着安装oh-my-zsh主题框架。",{"type":19,"tag":296,"props":5868,"children":5870},{"className":298,"code":5869,"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",[5871],{"type":19,"tag":76,"props":5872,"children":5873},{"__ignoreMap":8},[5874,5886,5902],{"type":19,"tag":306,"props":5875,"children":5876},{"class":308,"line":309},[5877,5881],{"type":19,"tag":306,"props":5878,"children":5879},{"style":521},[5880],{"type":24,"value":3282},{"type":19,"tag":306,"props":5882,"children":5883},{"style":319},[5884],{"type":24,"value":5885}," ~\n",{"type":19,"tag":306,"props":5887,"children":5888},{"class":308,"line":325},[5889,5893,5897],{"type":19,"tag":306,"props":5890,"children":5891},{"style":313},[5892],{"type":24,"value":3414},{"type":19,"tag":306,"props":5894,"children":5895},{"style":319},[5896],{"type":24,"value":4041},{"type":19,"tag":306,"props":5898,"children":5899},{"style":319},[5900],{"type":24,"value":5901}," https:\u002F\u002Fgitee.com\u002Fmirrors\u002Foh-my-zsh\n",{"type":19,"tag":306,"props":5903,"children":5904},{"class":308,"line":339},[5905,5909],{"type":19,"tag":306,"props":5906,"children":5907},{"style":313},[5908],{"type":24,"value":3270},{"type":19,"tag":306,"props":5910,"children":5911},{"style":319},[5912],{"type":24,"value":5913}," oh-my-zsh\u002Ftools\u002Finstall.sh\n",{"type":19,"tag":20,"props":5915,"children":5916},{},[5917],{"type":24,"value":5918},"安装两个插件",{"type":19,"tag":296,"props":5920,"children":5922},{"className":298,"code":5921,"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",[5923],{"type":19,"tag":76,"props":5924,"children":5925},{"__ignoreMap":8},[5926,5938,5945,5953,5969,5976,5984],{"type":19,"tag":306,"props":5927,"children":5928},{"class":308,"line":309},[5929,5933],{"type":19,"tag":306,"props":5930,"children":5931},{"style":521},[5932],{"type":24,"value":3282},{"type":19,"tag":306,"props":5934,"children":5935},{"style":319},[5936],{"type":24,"value":5937}," ~\u002F.oh-my-zsh\u002Fcustom\u002Fplugins\u002F\n",{"type":19,"tag":306,"props":5939,"children":5940},{"class":308,"line":325},[5941],{"type":19,"tag":306,"props":5942,"children":5943},{"emptyLinePlaceholder":3851},[5944],{"type":24,"value":3854},{"type":19,"tag":306,"props":5946,"children":5947},{"class":308,"line":339},[5948],{"type":19,"tag":306,"props":5949,"children":5950},{"style":343},[5951],{"type":24,"value":5952},"# 高亮关键词\n",{"type":19,"tag":306,"props":5954,"children":5955},{"class":308,"line":1654},[5956,5960,5964],{"type":19,"tag":306,"props":5957,"children":5958},{"style":313},[5959],{"type":24,"value":3414},{"type":19,"tag":306,"props":5961,"children":5962},{"style":319},[5963],{"type":24,"value":4041},{"type":19,"tag":306,"props":5965,"children":5966},{"style":319},[5967],{"type":24,"value":5968}," https:\u002F\u002Fgitee.com\u002Fhaohaogood\u002Fzsh-syntax-highlighting\n",{"type":19,"tag":306,"props":5970,"children":5971},{"class":308,"line":3865},[5972],{"type":19,"tag":306,"props":5973,"children":5974},{"emptyLinePlaceholder":3851},[5975],{"type":24,"value":3854},{"type":19,"tag":306,"props":5977,"children":5978},{"class":308,"line":3884},[5979],{"type":19,"tag":306,"props":5980,"children":5981},{"style":343},[5982],{"type":24,"value":5983},"# 自动补全\n",{"type":19,"tag":306,"props":5985,"children":5986},{"class":308,"line":3892},[5987,5991,5995],{"type":19,"tag":306,"props":5988,"children":5989},{"style":313},[5990],{"type":24,"value":3414},{"type":19,"tag":306,"props":5992,"children":5993},{"style":319},[5994],{"type":24,"value":4041},{"type":19,"tag":306,"props":5996,"children":5997},{"style":319},[5998],{"type":24,"value":5999}," https:\u002F\u002Fgitee.com\u002Fqiushaocloud\u002Fzsh-autosuggestions\n",{"type":19,"tag":20,"props":6001,"children":6002},{},[6003,6005,6011,6013,6019,6021,6027],{"type":24,"value":6004},"然后进入 ",{"type":19,"tag":76,"props":6006,"children":6008},{"className":6007},[],[6009],{"type":24,"value":6010},"~\u002F.zshrc",{"type":24,"value":6012}," 在 plugins 参数中添加 ",{"type":19,"tag":76,"props":6014,"children":6016},{"className":6015},[],[6017],{"type":24,"value":6018},"zsh-syntax-highlighting",{"type":24,"value":6020}," 和",{"type":19,"tag":76,"props":6022,"children":6024},{"className":6023},[],[6025],{"type":24,"value":6026},"zsh-autosuggestions",{"type":24,"value":6028},"。也就是说你的 .zshrc 中必须要有一行长这样：",{"type":19,"tag":296,"props":6030,"children":6032},{"className":298,"code":6031,"language":300,"meta":8,"style":8},"plugins=(git zsh-syntax-highlighting zsh-autosuggestions)\n",[6033],{"type":19,"tag":76,"props":6034,"children":6035},{"__ignoreMap":8},[6036],{"type":19,"tag":306,"props":6037,"children":6038},{"class":308,"line":309},[6039,6044,6048,6053,6057,6062,6067],{"type":19,"tag":306,"props":6040,"children":6041},{"style":699},[6042],{"type":24,"value":6043},"plugins",{"type":19,"tag":306,"props":6045,"children":6046},{"style":705},[6047],{"type":24,"value":708},{"type":19,"tag":306,"props":6049,"children":6050},{"style":699},[6051],{"type":24,"value":6052},"(",{"type":19,"tag":306,"props":6054,"children":6055},{"style":319},[6056],{"type":24,"value":3414},{"type":19,"tag":306,"props":6058,"children":6059},{"style":319},[6060],{"type":24,"value":6061}," zsh-syntax-highlighting",{"type":19,"tag":306,"props":6063,"children":6064},{"style":319},[6065],{"type":24,"value":6066}," zsh-autosuggestions",{"type":19,"tag":306,"props":6068,"children":6069},{"style":699},[6070],{"type":24,"value":5458},{"type":19,"tag":222,"props":6072,"children":6074},{"id":6073},"四安装部分驱动程序",[6075],{"type":24,"value":6076},"四、安装部分驱动程序",{"type":19,"tag":20,"props":6078,"children":6079},{},[6080],{"type":24,"value":6081},"默认pip 版本较低，升级一下",{"type":19,"tag":296,"props":6083,"children":6085},{"className":298,"code":6084,"language":300,"meta":8,"style":8},"pip install --upgrade pip\n",[6086],{"type":19,"tag":76,"props":6087,"children":6088},{"__ignoreMap":8},[6089],{"type":19,"tag":306,"props":6090,"children":6091},{"class":308,"line":309},[6092,6096,6100,6105],{"type":19,"tag":306,"props":6093,"children":6094},{"style":313},[6095],{"type":24,"value":3594},{"type":19,"tag":306,"props":6097,"children":6098},{"style":319},[6099],{"type":24,"value":3985},{"type":19,"tag":306,"props":6101,"children":6102},{"style":521},[6103],{"type":24,"value":6104}," --upgrade",{"type":19,"tag":306,"props":6106,"children":6107},{"style":319},[6108],{"type":24,"value":6109}," pip\n",{"type":19,"tag":20,"props":6111,"children":6112},{},[6113],{"type":24,"value":6114},"安装opencv的包",{"type":19,"tag":296,"props":6116,"children":6118},{"className":298,"code":6117,"language":300,"meta":8,"style":8},"sudo apt install libopencv-dev\npip install opencv-python\n",[6119],{"type":19,"tag":76,"props":6120,"children":6121},{"__ignoreMap":8},[6122,6142],{"type":19,"tag":306,"props":6123,"children":6124},{"class":308,"line":309},[6125,6129,6133,6137],{"type":19,"tag":306,"props":6126,"children":6127},{"style":313},[6128],{"type":24,"value":4731},{"type":19,"tag":306,"props":6130,"children":6131},{"style":319},[6132],{"type":24,"value":5206},{"type":19,"tag":306,"props":6134,"children":6135},{"style":319},[6136],{"type":24,"value":3985},{"type":19,"tag":306,"props":6138,"children":6139},{"style":319},[6140],{"type":24,"value":6141}," libopencv-dev\n",{"type":19,"tag":306,"props":6143,"children":6144},{"class":308,"line":325},[6145,6149,6153],{"type":19,"tag":306,"props":6146,"children":6147},{"style":313},[6148],{"type":24,"value":3594},{"type":19,"tag":306,"props":6150,"children":6151},{"style":319},[6152],{"type":24,"value":3985},{"type":19,"tag":306,"props":6154,"children":6155},{"style":319},[6156],{"type":24,"value":6157}," opencv-python\n",{"type":19,"tag":20,"props":6159,"children":6160},{},[6161],{"type":24,"value":6162},"安装torch cuda",{"type":19,"tag":296,"props":6164,"children":6166},{"className":298,"code":6165,"language":300,"meta":8,"style":8},"sudo apt install nvidia-cuda-toolkit\n",[6167],{"type":19,"tag":76,"props":6168,"children":6169},{"__ignoreMap":8},[6170],{"type":19,"tag":306,"props":6171,"children":6172},{"class":308,"line":309},[6173,6177,6181,6185],{"type":19,"tag":306,"props":6174,"children":6175},{"style":313},[6176],{"type":24,"value":4731},{"type":19,"tag":306,"props":6178,"children":6179},{"style":319},[6180],{"type":24,"value":5206},{"type":19,"tag":306,"props":6182,"children":6183},{"style":319},[6184],{"type":24,"value":3985},{"type":19,"tag":306,"props":6186,"children":6187},{"style":319},[6188],{"type":24,"value":6189}," nvidia-cuda-toolkit\n",{"type":19,"tag":20,"props":6191,"children":6192},{},[6193,6195,6202],{"type":24,"value":6194},"然后去 ",{"type":19,"tag":32,"props":6196,"children":6199},{"href":6197,"rel":6198},"https:\u002F\u002Fpytorch.org\u002F",[54],[6200],{"type":24,"value":6201},"PyTorch",{"type":24,"value":6203}," 找对应的安装指令。自从某个版本之后 Linux 下载 PyTorch GPU 版本可以直接 pip（自动下载对应 CUDA 依赖）。",{"type":19,"tag":1087,"props":6205,"children":6206},{},[6207],{"type":24,"value":1091},{"title":8,"searchDepth":325,"depth":339,"links":6209},[6210,6211,6212,6220],{"id":3140,"depth":325,"text":3110},{"id":4251,"depth":325,"text":4254},{"id":4675,"depth":325,"text":4678,"children":6213},[6214,6215,6216],{"id":4681,"depth":339,"text":4684},{"id":5282,"depth":339,"text":5285},{"id":5386,"depth":339,"text":5389,"children":6217},[6218,6219],{"id":5392,"depth":1654,"text":5392},{"id":5709,"depth":1654,"text":5709},{"id":6073,"depth":325,"text":6076},"content:posts:从零配置Windows11开发环境.md","posts\u002F从零配置Windows11开发环境.md","posts\u002F从零配置Windows11开发环境",1780162065879]