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