<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>问题 on 随记</title><link>https://blog.liuyi2026.asia/zh/categories/%E9%97%AE%E9%A2%98/</link><description>Recent content in 问题 on 随记</description><generator>Hugo</generator><language>zh</language><lastBuildDate>Thu, 06 Aug 2026 09:26:31 +0800</lastBuildDate><atom:link href="https://blog.liuyi2026.asia/zh/categories/%E9%97%AE%E9%A2%98/index.xml" rel="self" type="application/rss+xml"/><item><title>Crack</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Wifi/Crack/</link><pubDate>Thu, 06 Aug 2026 09:26:31 +0800</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Wifi/Crack/</guid><description>&lt;p>&lt;em>&lt;strong>学习如何破解自己的wifi（o.O）&lt;/strong>&lt;/em>&lt;/p>
&lt;h1 id="这里以安装在路由器上的系统openwrt为例">这里以安装在路由器上的系统openwrt为例&lt;a class="anchor" href="#%e8%bf%99%e9%87%8c%e4%bb%a5%e5%ae%89%e8%a3%85%e5%9c%a8%e8%b7%af%e7%94%b1%e5%99%a8%e4%b8%8a%e7%9a%84%e7%b3%bb%e7%bb%9fopenwrt%e4%b8%ba%e4%be%8b">#&lt;/a>&lt;/h1>
&lt;h2 id="前提">前提&lt;a class="anchor" href="#%e5%89%8d%e6%8f%90">#&lt;/a>&lt;/h2>
&lt;p>安装一些软件&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>apk update &lt;span style="color:#f92672">&amp;amp;&amp;amp;&lt;/span> apk upgrade
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apk add lrzsz &lt;span style="color:#75715e">#在xshell上传下载字典&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apk add hcxtools &lt;span style="color:#75715e">#握手包格式转换&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apk add aircrack-ng &lt;span style="color:#75715e">#监听扫描&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apk add airmon-ng &lt;span style="color:#75715e">#貌似不需要这个&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>接下来会新加两个虚拟接口（重启路由器之后会消失）&lt;/p>
&lt;h2 id="关闭原来的部分接口">关闭原来的部分接口&lt;a class="anchor" href="#%e5%85%b3%e9%97%ad%e5%8e%9f%e6%9d%a5%e7%9a%84%e9%83%a8%e5%88%86%e6%8e%a5%e5%8f%a3">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>wifi down&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>(也可以不关闭原来的接口 &lt;del>即不 &lt;code>wifi down&lt;/code>&lt;/del> ，直接禁用2.4G的wifi，以及中继的5Gwifi。默认就会直接去扫描5G &lt;del>但是也只能扫描部分信道，不能扫描全部的&lt;/del> ，后面也不用特意设置5G频率)&lt;/p>
&lt;h2 id="添加接口">添加接口&lt;a class="anchor" href="#%e6%b7%bb%e5%8a%a0%e6%8e%a5%e5%8f%a3">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#供扫描2.4G wifi用&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>iw phy phy0 interface add mon24 type monitor
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#启用该接口&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ip link set mon24 up 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#供扫描5G wifi用&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>iw phy phy0 interface add mon5 type monitor
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#启用该接口&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ip link set mon5 up 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#查看是否添加成功&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>iw dev&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="设置频率并扫描">设置频率并扫描&lt;a class="anchor" href="#%e8%ae%be%e7%bd%ae%e9%a2%91%e7%8e%87%e5%b9%b6%e6%89%ab%e6%8f%8f">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#设置2.4G wifi&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>iw dev mon24 set freq &lt;span style="color:#ae81ff">2412&lt;/span> 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#设置5G wifi&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>iw dev mon5 set freq &lt;span style="color:#ae81ff">5180&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>查看一下是否设置成功&lt;/p></description></item><item><title>如何搜索</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Other/01/</link><pubDate>Fri, 26 Apr 2024 00:00:00 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Other/01/</guid><description>&lt;h1 id="原则">原则&lt;a class="anchor" href="#%e5%8e%9f%e5%88%99">#&lt;/a>&lt;/h1>
&lt;ol>
&lt;li>搜索的时候，要&lt;strong>简约&lt;/strong>，且尽量把&lt;strong>关键词分散&lt;/strong>，不要有&amp;quot;的&amp;quot;，&amp;ldquo;地&amp;rdquo;，或者其他动词什么的，尽量是&lt;strong>名词&lt;/strong>。&lt;/li>
&lt;li>关键词之间用&lt;strong>空格隔开&lt;/strong>&lt;/li>
&lt;/ol>
&lt;p>比如想要看一部电影，那么关键词有&amp;quot;电影名&amp;quot;，&amp;ldquo;bt&amp;rdquo;，&amp;ldquo;迅雷&amp;rdquo;，&amp;ldquo;阿里云盘&amp;rdquo;，&amp;ldquo;百度网盘&amp;rdquo;&lt;/p>
&lt;blockquote class='book-hint '>
&lt;p>解释一下，这里来源（迅雷|阿里云盘|百度网盘），资源类型（bt）也是关键词&lt;/p>&lt;/blockquote>&lt;p>所以搜索就是**&amp;ldquo;孤注一掷 bt&amp;rdquo;，&amp;ldquo;孤注一掷 阿里云盘&amp;rdquo;，&amp;ldquo;孤注一掷 百度网盘&amp;rdquo;，&amp;ldquo;孤注一掷 迅雷&amp;rdquo;，注意，中间都有空格**&lt;/p>
&lt;h1 id="例子">例子&lt;a class="anchor" href="#%e4%be%8b%e5%ad%90">#&lt;/a>&lt;/h1>
&lt;h2 id="bt种子形式">bt种子形式&lt;a class="anchor" href="#bt%e7%a7%8d%e5%ad%90%e5%bd%a2%e5%bc%8f">#&lt;/a>&lt;/h2>
&lt;p>&lt;img src="img/ly-20241212141836193.png" alt="image-20240226132336128" />&lt;br>
点进来之后，滑到最下面（一般链接都是以浅蓝色标识，点过一次后就变成暗红色）&lt;br>
&lt;img src="img/ly-20241212141836507.png" alt="image-20240226132614759" />&lt;/p>
&lt;p>bt文件一般要用&amp;quot;迅雷&amp;quot;这个软件下载，上面随便点击一个，迅雷这个软件就会跳出来&lt;br>
&lt;img src="img/ly-20241212141836693.png" alt="image-20240226132743460" />&lt;br>
然后选择好目录点击确认就可以下载了&lt;/p>
&lt;h2 id="阿里云盘形式">阿里云盘形式&lt;a class="anchor" href="#%e9%98%bf%e9%87%8c%e4%ba%91%e7%9b%98%e5%bd%a2%e5%bc%8f">#&lt;/a>&lt;/h2>
&lt;p>&lt;img src="img/ly-20241212141836869.png" alt="image-20240226133054195" />&lt;/p>
&lt;p>第一个链接有人提出质疑了，我们点下面那个，这是进入之后的画面：&lt;br>
&lt;img src="img/ly-20241212141837046.png" alt="image-20240226133201891" />&lt;br>
再点击&amp;quot;阿里xxxxxxxxxx&amp;quot;这个链接，进入阿里云盘：&lt;br>
&lt;img src="img/ly-20241212141837227.png" alt="image-20240226133251855" />&lt;/p>
&lt;p>点进来看视频文件还在不在，在的话，保存就可以了&lt;br>
&lt;img src="img/ly-20241212141837403.png" alt="image-20240226133340936" />&lt;br>
之后到自己的阿里云盘下载就行了&lt;/p>
&lt;h2 id="百度云盘形式">百度云盘形式&lt;a class="anchor" href="#%e7%99%be%e5%ba%a6%e4%ba%91%e7%9b%98%e5%bd%a2%e5%bc%8f">#&lt;/a>&lt;/h2>
&lt;p>百度云盘被限速了，不得已的情况下，不要用百度云盘，基本上前面两种形式的资源没找到的话，百度云盘大概率也不会有&lt;/p></description></item><item><title>Linux操作符问题</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230919/</link><pubDate>Tue, 19 Sep 2023 17:59:37 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230919/</guid><description>&lt;h1 id="函数退出">函数退出&lt;a class="anchor" href="#%e5%87%bd%e6%95%b0%e9%80%80%e5%87%ba">#&lt;/a>&lt;/h1>
&lt;p>函数退出状态：0（成功），非零（非正常，失败）&lt;/p>
&lt;h1 id="引号">引号&lt;a class="anchor" href="#%e5%bc%95%e5%8f%b7">#&lt;/a>&lt;/h1>
&lt;p>双引号中使用转义字符可以防止展开&lt;br>
这意味着单词分割(空格制表换行分割单词)、路径名展开(*星号)、波浪线展开和花括号展开都将失效，然而&lt;strong>参数展开&lt;/strong>、
&lt;strong>算术展开&lt;/strong>和&lt;strong>命令替换&lt;/strong>仍然执行&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>echo &lt;span style="color:#e6db74">&amp;#34;text ~/*.txt {a,b} &lt;/span>&lt;span style="color:#66d9ef">$(&lt;/span>echo foo&lt;span style="color:#66d9ef">)&lt;/span>&lt;span style="color:#e6db74"> &lt;/span>&lt;span style="color:#66d9ef">$((&lt;/span>&lt;span style="color:#ae81ff">2&lt;/span>&lt;span style="color:#f92672">+&lt;/span>&lt;span style="color:#ae81ff">2&lt;/span>&lt;span style="color:#66d9ef">))&lt;/span>&lt;span style="color:#e6db74"> &lt;/span>$USER&lt;span style="color:#e6db74">&amp;#34;&lt;/span> &lt;span style="color:#75715e">#禁止部分&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>text ~/*.txt &lt;span style="color:#f92672">{&lt;/span>a,b&lt;span style="color:#f92672">}&lt;/span> foo &lt;span style="color:#ae81ff">4&lt;/span> me
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>echo &lt;span style="color:#e6db74">&amp;#39;text ~/*.txt {a,b} $(echo foo) $((2+2)) $USER&amp;#39;&lt;/span> &lt;span style="color:#75715e">#全部禁止&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>text ~/*.txt &lt;span style="color:#f92672">{&lt;/span>a,b&lt;span style="color:#f92672">}&lt;/span> &lt;span style="color:#66d9ef">$(&lt;/span>echo foo&lt;span style="color:#66d9ef">)&lt;/span> &lt;span style="color:#66d9ef">$((&lt;/span>&lt;span style="color:#ae81ff">2&lt;/span>&lt;span style="color:#f92672">+&lt;/span>&lt;span style="color:#ae81ff">2&lt;/span>&lt;span style="color:#66d9ef">))&lt;/span> $USER&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="各种操作符">各种操作符&lt;a class="anchor" href="#%e5%90%84%e7%a7%8d%e6%93%8d%e4%bd%9c%e7%ac%a6">#&lt;/a>&lt;/h1>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>[ expression ] / test&lt;/th>
 &lt;th>[[ expression ]]&lt;/th>
 &lt;th>$(( expression ))&lt;/th>
 &lt;th>$var&lt;/th>
 &lt;th>$( termi )&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>文件表达式 -e file，字符串表达式 -n string，整数表达式 integer1 -eq integer2&lt;/td>
 &lt;td>test增强，增加 [ str =~ regex ]，增加 ==&lt;br > [[ $FILE == foo.* ]]&lt;/td>
 &lt;td>整数加减乘除取余&lt;/td>
 &lt;td>取变量&lt;/td>
 &lt;td>执行命令/函数&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>termi取变量$必加，里面被看作命令参数，&amp;lt; &amp;gt; ( ) 必须转义 否则 小于号 &amp;lt; 大于号&amp;gt;被认为重定向&lt;/td>
 &lt;td>与[ ] 一致&lt;/td>
 &lt;td>取变量$可加可不加&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>termi取变量$必加&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;td>&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;img src="img/ly-20241212141835875.png" alt="image-20230920195057911" />&lt;/p></description></item><item><title>Debian问题处理3</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230819/</link><pubDate>Sat, 19 Aug 2023 11:05:17 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230819/</guid><description>&lt;h1 id="fcitx配合各种软件出现的问题">fcitx配合各种软件出现的问题&lt;a class="anchor" href="#fcitx%e9%85%8d%e5%90%88%e5%90%84%e7%a7%8d%e8%bd%af%e4%bb%b6%e5%87%ba%e7%8e%b0%e7%9a%84%e9%97%ae%e9%a2%98">#&lt;/a>&lt;/h1>
&lt;blockquote class='book-hint '>
&lt;p>本文章中出现的引号都是英文状态下的引号，切记！&lt;/p>&lt;/blockquote>&lt;h2 id="安装完毕后环境变量设置">安装完毕后环境变量设置&lt;a class="anchor" href="#%e5%ae%89%e8%a3%85%e5%ae%8c%e6%af%95%e5%90%8e%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f%e8%ae%be%e7%bd%ae">#&lt;/a>&lt;/h2>
&lt;p>/etc/profile 和/etc/enviroment 均可，profile针对用户，environment针对系统。一般都是放profile里面&lt;/p>
&lt;h3 id="不行的话">不行的话&lt;a class="anchor" href="#%e4%b8%8d%e8%a1%8c%e7%9a%84%e8%af%9d">#&lt;/a>&lt;/h3>
&lt;p>如果修改profile无效，则在/etc/enviroment添加修改&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#/etc/enviroment 末尾添加&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>fcitx &amp;amp; &lt;span style="color:#75715e">#这行要添加&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XIM_PROGRAM&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XIM&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export GTK_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export QT_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XMODIFIERS&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;@im=fcitx&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export LANG&lt;span style="color:#f92672">=&lt;/span>zh_CN.UTF-8&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>source后再重启一下哦&lt;/p>
&lt;h2 id="装了zsh后从终端打开idea等各种软件不出现fcitx输入法的问题">装了zsh后(从终端打开)idea等各种软件不出现fcitx输入法的问题&lt;a class="anchor" href="#%e8%a3%85%e4%ba%86zsh%e5%90%8e%e4%bb%8e%e7%bb%88%e7%ab%af%e6%89%93%e5%bc%80idea%e7%ad%89%e5%90%84%e7%a7%8d%e8%bd%af%e4%bb%b6%e4%b8%8d%e5%87%ba%e7%8e%b0fcitx%e8%be%93%e5%85%a5%e6%b3%95%e7%9a%84%e9%97%ae%e9%a2%98">#&lt;/a>&lt;/h2>
&lt;p>在&lt;code>/.zshrc&lt;/code>最后添加&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>export XIM_PROGRAM&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XIM&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export GTK_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export QT_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XMODIFIERS&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;@im=fcitx&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export LANG&lt;span style="color:#f92672">=&lt;/span>zh_CN.UTF-8
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export LC_MESSAGES&lt;span style="color:#f92672">=&lt;/span>en_US.UTF-8 &lt;span style="color:#75715e">#让终端报错时，显示英文 而不是中文&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>也可以不在/.zshrc中追加这些，而是直接追加 &lt;code>source /etc/profile&lt;/code>或者&lt;code>/etc/enviroment&lt;/code>即可&lt;/p>
&lt;p>如果还有问题，就要在idea的配置文件&lt;code>idea.vmoptions&lt;/code>添加&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>-Drecreate.x11.input.method&lt;span style="color:#f92672">=&lt;/span>true&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="如果使用系统默认终端的情况下出的问题">如果使用系统默认终端的情况下出的问题&lt;a class="anchor" href="#%e5%a6%82%e6%9e%9c%e4%bd%bf%e7%94%a8%e7%b3%bb%e7%bb%9f%e9%bb%98%e8%ae%a4%e7%bb%88%e7%ab%af%e7%9a%84%e6%83%85%e5%86%b5%e4%b8%8b%e5%87%ba%e7%9a%84%e9%97%ae%e9%a2%98">#&lt;/a>&lt;/h3>
&lt;p>可以在 ~/.bashrc最后添加这段话，重启试试&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>export XIM_PROGRAM&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XIM&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export GTK_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export QT_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XMODIFIERS&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;@im=fcitx&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export LANG&lt;span style="color:#f92672">=&lt;/span>zh_CN.UTF-8&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="各个文件的解释">各个文件的解释&lt;a class="anchor" href="#%e5%90%84%e4%b8%aa%e6%96%87%e4%bb%b6%e7%9a%84%e8%a7%a3%e9%87%8a">#&lt;/a>&lt;/h1>
&lt;p>/etc/profile //用户级，所有用户登陆时才会执行 对于fcitx没效果(firefox无效)&lt;br>
/etc/enviroment //系统级，一般不修改 这里有效果&lt;br>
~/.bashrc //系统默认终端打开时执行
~/.zshrc //zsh使用前执行&lt;/p></description></item><item><title>Debian问题处理2</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230817/</link><pubDate>Thu, 17 Aug 2023 23:49:36 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230817/</guid><description>&lt;h1 id="代理">代理&lt;a class="anchor" href="#%e4%bb%a3%e7%90%86">#&lt;/a>&lt;/h1>
&lt;p>Vmware里面的debian,连接外面物理机的v2ray。&lt;/p>
&lt;h2 id="对于浏览器">对于浏览器&lt;a class="anchor" href="#%e5%af%b9%e4%ba%8e%e6%b5%8f%e8%a7%88%e5%99%a8">#&lt;/a>&lt;/h2>
&lt;p>无论是firefox还是chromium，都可以直接通过v2ray允许局域网，然后使用ProxySwitchOmege代理访问&lt;/p>
&lt;h2 id="对于命令">对于命令&lt;a class="anchor" href="#%e5%af%b9%e4%ba%8e%e5%91%bd%e4%bb%a4">#&lt;/a>&lt;/h2>
&lt;p>可以使用proxychains，直接用apt-get 安装即可，注意事项&lt;/p>
&lt;h3 id="作用范围">作用范围&lt;a class="anchor" href="#%e4%bd%9c%e7%94%a8%e8%8c%83%e5%9b%b4">#&lt;/a>&lt;/h3>
&lt;p>对tcp生效，ping是不生效的，不要白费力气&lt;/p>
&lt;h3 id="需要修改两个地方">需要修改两个地方&lt;a class="anchor" href="#%e9%9c%80%e8%a6%81%e4%bf%ae%e6%94%b9%e4%b8%a4%e4%b8%aa%e5%9c%b0%e6%96%b9">#&lt;/a>&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>libproxychains.so.3 提示不存在 ly&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>whereis libproxychains.so.3 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#libproxychains.so.3: /usr/lib/x86_64-linux-gnu/libproxychains.so.3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#修改/usr/bin/proxychains&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#export LD_PRELOAD = libproxychains.so.3 修改为：&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export LD_PRELOAD &lt;span style="color:#f92672">=&lt;/span> /usr/lib/x86_64-linux-gnu/libproxychains.so.3&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>l&amp;rsquo;y配置修改&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#修改文件/etc/proxychains.conf，在最后一行添加&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>socks5 	192.168.1.201 &lt;span style="color:#ae81ff">1082&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>使用&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>proxychains git pull
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#直接在命令最前面输入proxychains即可&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;/ol>
&lt;h2 id="直接网络gui配置代理">直接网络（gui）配置代理&lt;a class="anchor" href="#%e7%9b%b4%e6%8e%a5%e7%bd%91%e7%bb%9cgui%e9%85%8d%e7%bd%ae%e4%bb%a3%e7%90%86">#&lt;/a>&lt;/h2>
&lt;p>这个对于终端不生效&lt;/p>
&lt;h1 id="zsh安装">zsh安装&lt;a class="anchor" href="#zsh%e5%ae%89%e8%a3%85">#&lt;/a>&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>proxychains wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>proxychains sh install.sh&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="zsh主题安装">zsh主题安装&lt;a class="anchor" href="#zsh%e4%b8%bb%e9%a2%98%e5%ae%89%e8%a3%85">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>proxychains git clone --depth&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span> https://github.com/romkatv/powerlevel10k.git &lt;span style="color:#e6db74">${&lt;/span>ZSH_CUSTOM&lt;span style="color:#66d9ef">:-&lt;/span>$HOME/.oh-my-zsh/custom&lt;span style="color:#e6db74">}&lt;/span>/themes/powerlevel10k
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#修改&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>vim ~/.zshrc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ZSH_THEME&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;powerlevel10k/powerlevel10k&amp;#34;&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>重新配置 &lt;code>p10k configure&lt;/code>&lt;/p>
&lt;h1 id="程序环境设置">程序环境设置&lt;a class="anchor" href="#%e7%a8%8b%e5%ba%8f%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae">#&lt;/a>&lt;/h1>
&lt;p>环境变量&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#java环境变量&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export JAVA_HOME&lt;span style="color:#f92672">=&lt;/span>/usr/local/jdk1.8.0_281
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export CLASSPATH&lt;span style="color:#f92672">=&lt;/span>$:CLASSPATH:$JAVA_HOME/lib/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export PATH&lt;span style="color:#f92672">=&lt;/span>$PATH:$JAVA_HOME/bin
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#maven环境变量&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export MAVEN_HOME&lt;span style="color:#f92672">=&lt;/span>/usr/local/apache-maven-3.3.9
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export PATH&lt;span style="color:#f92672">=&lt;/span>$PATH:$MAVEN_HOME/bin &lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="typora破解">typora破解&lt;a class="anchor" href="#typora%e7%a0%b4%e8%a7%a3">#&lt;/a>&lt;/h1>
&lt;p>声明：破解可耻，尊重正版。这里仅以学习为目的&lt;/p></description></item><item><title>Debian问题处理1</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230815/</link><pubDate>Tue, 15 Aug 2023 09:05:57 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230815/</guid><description>&lt;h1 id="清华源设置">清华源设置&lt;a class="anchor" href="#%e6%b8%85%e5%8d%8e%e6%ba%90%e8%ae%be%e7%bd%ae">#&lt;/a>&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>vim /etc/apt/sources.list
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#注释掉原来的，并添加&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># 默认注释了源码镜像以提高 apt update 速度，如有需要可自行取消注释&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="中文环境">中文环境&lt;a class="anchor" href="#%e4%b8%ad%e6%96%87%e7%8e%af%e5%a2%83">#&lt;/a>&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>su
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo apt-get install locales
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#配置中文环境 1.选择zh开头的 2 后面选择en(cn也行，不影响输入法)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo dpkg-reconfigure locales
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#设置上海时区&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo timedatectl set-timezone Asia/Shanghai&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="中文输入法">中文输入法&lt;a class="anchor" href="#%e4%b8%ad%e6%96%87%e8%be%93%e5%85%a5%e6%b3%95">#&lt;/a>&lt;/h1>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#清除旧的环境&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt-get remove ibus &lt;span style="color:#75715e">#不兼容问题&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt-get remove fcitx5 fcitx5-chinese-addons 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt-get autoremove 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>ly &lt;span style="color:#75715e"># gnome-shell-extension-kimpanel&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>im-config &lt;span style="color:#75715e">#配置使用fcitx5 &lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>vim /etc/profile
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#环境变量添加&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export XMODIFIERS&lt;span style="color:#f92672">=&lt;/span>@im&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export GTK_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>export QT_IM_MODULE&lt;span style="color:#f92672">=&lt;/span>fcitx
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#退出root用户权限，使用普通用户权限再终端&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>fcitx5-configtool &lt;span style="color:#75715e">#配置中文输入法即可&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#附加组件-经典用户界面--这里可以修改字体及大小&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#fcitx5自动开启&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>mkdir -p ~/.config/autostart &lt;span style="color:#f92672">&amp;amp;&amp;amp;&lt;/span> cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="其他">其他&lt;a class="anchor" href="#%e5%85%b6%e4%bb%96">#&lt;/a>&lt;/h1>
&lt;p>应用程序-优化 修改默认字体大小&lt;/p></description></item><item><title>安卓手机及平板安装linuxDeploy的问题简记</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230803/</link><pubDate>Thu, 03 Aug 2023 12:06:46 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230803/</guid><description>&lt;blockquote class='book-hint '>
&lt;p>为什么是简记呢，因为这几天折腾这些太累了，等以后回过头来重新操作再详细记载&lt;/p>&lt;/blockquote>&lt;h1 id="前言">前言&lt;a class="anchor" href="#%e5%89%8d%e8%a8%80">#&lt;/a>&lt;/h1>
&lt;h2 id="初衷">初衷&lt;a class="anchor" href="#%e5%88%9d%e8%a1%b7">#&lt;/a>&lt;/h2>
&lt;p>一开始的初衷是为了在平板上使用idea，之前看了一篇docker使用idea的文章，心血来潮。所以想直接在平板的termux安装docker然后使用，结果一堆问题。后面妥协了，在手机上装，然后开远程吧&lt;/p>
&lt;blockquote class='book-hint '>
&lt;p>这年头机在人在，所以装手机还是平板，还真没有很大的问题。后面使用情况证明：手机不需要开热点的情况（开热点是为了保证网络联通，在同一局域网），其实不怎么发热也不怎么耗电的。&lt;/p>&lt;/blockquote>&lt;h2 id="平板上">平板上&lt;a class="anchor" href="#%e5%b9%b3%e6%9d%bf%e4%b8%8a">#&lt;/a>&lt;/h2>
&lt;p>本来想在tab s8平板上通过termux安装linux（无root权限），但是总会遇到一堆问题&amp;ndash;连系统都装不上。因为root会有两个问题，所以一开始没有考虑使用linuxDeploy（需要root）&lt;/p>
&lt;ul>
&lt;li>保修失效&lt;/li>
&lt;li>无法通过系统直接更新（需要线刷）&lt;/li>
&lt;/ul>
&lt;h2 id="手机上root">手机上（root）&lt;a class="anchor" href="#%e6%89%8b%e6%9c%ba%e4%b8%8aroot">#&lt;/a>&lt;/h2>
&lt;h3 id="配置">配置&lt;a class="anchor" href="#%e9%85%8d%e7%bd%ae">#&lt;/a>&lt;/h3>
&lt;p>后面尝试在root过的手机上安装linuxDeploy，照样有一堆问题，这里配上能使用的配置（能进系统）：&lt;/p>
&lt;p>&lt;img src="img/ly-20241212141834176.png" alt="ly-20241212141834176" />&lt;br>
我用的时候ssh端口改了一下，不过不影响，第一次用的22端口也是能连上的。初始用户写的root，这里也是设置的root。&lt;br>
最好挂载一下&lt;br>
&lt;img src="img/ly-20241212141834486.png" alt="ly-20241212141834486" />&lt;/p>
&lt;h3 id="问题">问题&lt;a class="anchor" href="#%e9%97%ae%e9%a2%98">#&lt;/a>&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>用其他桌面环境，可能会导致图标没有（应该是就没有那个应用，比如浏览器），不过我这个配置完也没有浏览器，不过好在图标也没，不用自己再去移除了。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>装完之后vns有出错过一次，突然就蹦了，死活连不上。后面我直接重装系统了（linux deploy），没有再出现问题。装完之后需要在&lt;code>/etc/rc.local&lt;/code>添加:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#删除vns临时文件，保证每次启动都是使用端口:5901&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#(linux上显示:1，连接使用时要+5900，即使用5901端口)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>rm -rf /tmp/.X&lt;span style="color:#f92672">[&lt;/span>1-9&lt;span style="color:#f92672">]&lt;/span>-lock
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>rm -rf /tmp/.X11-unix/X&lt;span style="color:#f92672">[&lt;/span>1-9&lt;span style="color:#f92672">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#保证系统每次启动后都自动启动vncserver&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>vncserver&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>电脑上随便找了个VNCServer 绿色免安装程序可以连上&lt;br>
&lt;img src="img/ly-20241212141834670.png" alt="ly-20241212141834670" />&lt;br>
平板上使用AVNC，电脑不方便截图，就不截了.. 类似长这样&lt;br>
&lt;img src="img/ly-20241212141834882.png" alt="ly-20241212141834882" />&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#常用命令(也不常，这两天用的最多的)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>vncserver -kill :1 &lt;span style="color:#75715e">#强制关闭端口1&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>vncserver &lt;span style="color:#75715e">#启动&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>安装idea，也不用安装，就是去官网下载解压即可。问题：需要jdk11以上才能打开（疑惑，貌似之前在windows安装的时候没这要求，反正后面我妥协了，装了11，之后就是配置环境变量什么的）&lt;br>
一开始linuxDeploy的Ubuntu，然后..发现openjdk11装完之后，&lt;code>java -version&lt;/code>显示的10，一脸蒙圈，搞得后面又重装了Debian（中途还试了centos）&lt;/p>
&lt;/li>
&lt;li>
&lt;p>装完没有中文输入法，系统装完就是要用的，如果随便打打命令倒是不需要中文输入法，但是如果打点代码写点注解，那蹩脚英语就&amp;hellip;总不能句句good good study,day day up..真是one day day de&amp;hellip;&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h1 id="问题处理">问题处理&lt;a class="anchor" href="#%e9%97%ae%e9%a2%98%e5%a4%84%e7%90%86">#&lt;/a>&lt;/h1>
&lt;p>其实解决方案前面好像都说了，输入法单独开一块吧，比较恶心，主要是让我意识到了自己水平有多菜&amp;hellip;&lt;/p>
&lt;h2 id="某些机器平板省电模式下默认的那个用户会断网原因不明">某些机器（平板）省电模式下，默认的那个用户会断网，原因不明&lt;a class="anchor" href="#%e6%9f%90%e4%ba%9b%e6%9c%ba%e5%99%a8%e5%b9%b3%e6%9d%bf%e7%9c%81%e7%94%b5%e6%a8%a1%e5%bc%8f%e4%b8%8b%e9%bb%98%e8%ae%a4%e7%9a%84%e9%82%a3%e4%b8%aa%e7%94%a8%e6%88%b7%e4%bc%9a%e6%96%ad%e7%bd%91%e5%8e%9f%e5%9b%a0%e4%b8%8d%e6%98%8e">#&lt;/a>&lt;/h2>
&lt;p>所以那个用户就别用了，再创建一个新的&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>useradd -d /home/ly -s /bin/bash -m ly &lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>然后设置下密码&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>passwd ly&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="配置中文环境">配置中文环境&lt;a class="anchor" href="#%e9%85%8d%e7%bd%ae%e4%b8%ad%e6%96%87%e7%8e%af%e5%a2%83">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>sudo dpkg-reconfigure locales
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#前面选英文和中文，后面选英文&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#设置时区&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo timedatectl set-timezone Asia/Shanghai&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="中文字体安装">中文字体安装&lt;a class="anchor" href="#%e4%b8%ad%e6%96%87%e5%ad%97%e4%bd%93%e5%ae%89%e8%a3%85">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>apt-get install ttf-wqy-zenhei
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt-get install xfonts-intl-chinese wqy*&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="输入法相关安装">输入法相关安装&lt;a class="anchor" href="#%e8%be%93%e5%85%a5%e6%b3%95%e7%9b%b8%e5%85%b3%e5%ae%89%e8%a3%85">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#fcitx安装&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt install fcitx -y
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#输入法安装&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt install fcitx-googlepinyin fcitx-sunpinyin fcitx-pinyin
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#中文字体包，简体繁体&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt install fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-gkai00mp
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>apt install fcitx-table*&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;img src="img/ly-20241212141835065.png" alt="image-20231109203455234" />&lt;/p></description></item><item><title>JDK代理和CGLIB代理</title><link>https://blog.liuyi2026.asia/zh/docs/problem/JVM/20230526/</link><pubDate>Fri, 26 May 2023 09:29:06 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/JVM/20230526/</guid><description>&lt;blockquote class='book-hint '>
&lt;p>完全转载自https://juejin.cn/post/7011357346018361375 ，以防丢失故作备份 。&lt;/p>&lt;/blockquote>&lt;h2 id="一什么是代理模式">一、什么是代理模式&lt;a class="anchor" href="#%e4%b8%80%e4%bb%80%e4%b9%88%e6%98%af%e4%bb%a3%e7%90%86%e6%a8%a1%e5%bc%8f">#&lt;/a>&lt;/h2>
&lt;p>代理模式（Proxy Pattern）给某一个对象提供一个代理，并由代理对象控制原对象的引用。代理对象在客户端和目标对象之间起到中介作用。&lt;/p>
&lt;p>代理模式是常用的结构型设计模式之一，当直接访问某些对象存在问题时可以通过一个代理对象来间接访问，为了保证客户端使用的透明性，所访问的真实对象与代理对象需要实现相同的接口。代理模式属于结构型设计模式，属于GOF23种设计模式之一。&lt;/p>
&lt;p>代理模式可以分为静态代理和动态代理两种类型，而动态代理中又分为JDK动态代理和CGLIB代理两种。
&lt;img src="img/ly-20241212141833243.png" alt="" />
&lt;strong>代理模式包含如下角色:&lt;/strong>&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Subject (抽象主题角色)&lt;/strong> 抽象主题角色声明了真实主题和代理主题的共同接口,这样一来在任何使用真实主题 的地方都可以使用代理主题。客户端需要针对抽象主题角色进行编程。&lt;/li>
&lt;li>&lt;strong>Proxy (代理主题角色)&lt;/strong> 代理主题角色内部包含对真实主题的引用，从而可以在任何时候操作真实主题对象。 在代理主题角色中提供一个与真实主题角色相同的接口，以便在任何时候都可以替代真实 主体。代理主题角色还可以控制对真实主题的使用，负责在需要的时候创建和删除真实主 题对象,并对真实主题对象的使用加以约束。代理角色通常在客户端调用所引用的真实主 题操作之前或之后还需要执行其他操作，而不仅仅是单纯的调用真实主题对象中的操作。&lt;/li>
&lt;li>&lt;strong>RealSubject (真实主题 角色)&lt;/strong> 真实主题角色定义了代理角色所代表的真实对象，在真实主题角色中实现了真实的业 务操作,客户端可以通过代理主题角色间接调用真实主题角色中定义的方法。&lt;/li>
&lt;/ol>
&lt;h3 id="代理模式的优点">代理模式的优点&lt;a class="anchor" href="#%e4%bb%a3%e7%90%86%e6%a8%a1%e5%bc%8f%e7%9a%84%e4%bc%98%e7%82%b9">#&lt;/a>&lt;/h3>
&lt;ul>
&lt;li>代理模式能将代理对象与真实被调用的目标对象分离。&lt;/li>
&lt;li>一定程度上降低了系统的耦合度，扩展性好。&lt;/li>
&lt;li>可以起到保护目标对象的作用。&lt;/li>
&lt;li>可以对目标对象的功能增强。&lt;/li>
&lt;/ul>
&lt;h3 id="代理模式的缺点">代理模式的缺点&lt;a class="anchor" href="#%e4%bb%a3%e7%90%86%e6%a8%a1%e5%bc%8f%e7%9a%84%e7%bc%ba%e7%82%b9">#&lt;/a>&lt;/h3>
&lt;ul>
&lt;li>代理模式会造成系统设计中类的数量增加。&lt;/li>
&lt;li>在客户端和目标对象增加一个代理对象，会造成请求处理速度变慢。&lt;/li>
&lt;/ul>
&lt;h2 id="二jdk动态代理">二、JDK动态代理&lt;a class="anchor" href="#%e4%ba%8cjdk%e5%8a%a8%e6%80%81%e4%bb%a3%e7%90%86">#&lt;/a>&lt;/h2>
&lt;p>在java的动态代理机制中，有两个重要的类或接口，一个是 &lt;code>InvocationHandler&lt;/code>(Interface)、另一个则是 &lt;code>Proxy&lt;/code>(Class)，这一个类和接口是实现我们动态代理所必须用到的。&lt;/p>
&lt;h3 id="invocationhandler">InvocationHandler&lt;a class="anchor" href="#invocationhandler">#&lt;/a>&lt;/h3>
&lt;p>每一个动态代理类都必须要实现InvocationHandler这个接口，并且每个代理类的实例都关联了一个handler，当我们通过代理对象调用一个方法的时候，这个方法的调用就会被转发为由InvocationHandler这个接口的 invoke 方法来进行调用。&lt;/p>
&lt;p>InvocationHandler这个接口的唯一一个方法 invoke 方法：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-java" data-lang="java">&lt;span style="display:flex;">&lt;span>java
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>复制代码Object &lt;span style="color:#a6e22e">invoke&lt;/span>(Object proxy, Method method, Object&lt;span style="color:#f92672">[]&lt;/span> args) &lt;span style="color:#66d9ef">throws&lt;/span> Throwable&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>这个方法一共接受三个参数，那么这三个参数分别代表如下：&lt;/p>
&lt;ul>
&lt;li>&lt;strong>proxy&lt;/strong>:指代JDK动态生成的最终代理对象&lt;/li>
&lt;li>&lt;strong>method&lt;/strong>:指代的是我们所要调用真实对象的某个方法的Method对象&lt;/li>
&lt;li>&lt;strong>args&lt;/strong>:指代的是调用真实对象某个方法时接受的参数&lt;/li>
&lt;/ul>
&lt;h3 id="proxy">Proxy&lt;a class="anchor" href="#proxy">#&lt;/a>&lt;/h3>
&lt;p>Proxy这个类的作用就是用来动态创建一个代理对象的类，它提供了许多的方法，但是我们用的最多的就是newProxyInstance 这个方法：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-java" data-lang="java">&lt;span style="display:flex;">&lt;span>java
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>复制代码public &lt;span style="color:#66d9ef">static&lt;/span> Object &lt;span style="color:#a6e22e">newProxyInstance&lt;/span>(ClassLoader loader, Class&lt;span style="color:#f92672">&amp;lt;?&amp;gt;[]&lt;/span> interfaces, InvocationHandler handler) &lt;span style="color:#66d9ef">throws&lt;/span> IllegalArgumentException&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>这个方法的作用就是得到一个动态的代理对象，其接收三个参数，我们来看看这三个参数所代表的含义：&lt;/p>
&lt;ul>
&lt;li>&lt;strong>loader&lt;/strong>：ClassLoader对象，定义了由哪个ClassLoader来对生成的代理对象进行加载，即代理类的类加载器。&lt;/li>
&lt;li>&lt;strong>interfaces&lt;/strong>：Interface对象的数组，表示的是我将要给我需要代理的对象提供一组什么接口，如果我提供了一组接口给它，那么这个代理对象就宣称实现了该接口(多态)，这样我就能调用这组接口中的方法了。&lt;/li>
&lt;li>&lt;strong>Handler&lt;/strong>：InvocationHandler对象，表示的是当我这个动态代理对象在调用方法的时候，会关联到哪一个InvocationHandler对象上。&lt;/li>
&lt;/ul>
&lt;p>所以我们所说的DynamicProxy（动态代理类）是这样一种class：它是在运行时生成的class，在生成它时你必须提供一组interface给它，然后该class就宣称它实现了这些 interface。这个DynamicProxy其实就是一个Proxy，它不会做实质性的工作，在生成它的实例时你必须提供一个handler，由它接管实际的工作。&lt;/p></description></item><item><title>linux中调试open jdk</title><link>https://blog.liuyi2026.asia/zh/docs/problem/JVM/2023052302/</link><pubDate>Tue, 23 May 2023 14:29:06 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/JVM/2023052302/</guid><description>&lt;blockquote class='book-hint '>
&lt;p>完全转载自https://lin1997.github.io/2020/07/19/debug-openjdk-on-ubuntu.html ，以防丢失故作备份，目前还没看懂。&lt;/p>&lt;/blockquote>&lt;h1 id="在ubuntu中编译和调试openjdk">在Ubuntu中编译和调试OpenJDK&lt;a class="anchor" href="#%e5%9c%a8ubuntu%e4%b8%ad%e7%bc%96%e8%af%91%e5%92%8c%e8%b0%83%e8%af%95openjdk">#&lt;/a>&lt;/h1>
&lt;ul>
&lt;li>
&lt;p>
&lt;a target="_blank" href="https://lin1997.github.io/archive.html?tag=OpenJDK">OpenJDK&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>
&lt;a target="_blank" href="https://lin1997.github.io/archive.html?tag=Ubuntu">Ubuntu&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>
&lt;a target="_blank" href="https://lin1997.github.io/archive.html?tag=CLion">CLion&lt;/a>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>2020年 07月19日&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h2 id="构建编译环境">构建编译环境&lt;a class="anchor" href="#%e6%9e%84%e5%bb%ba%e7%bc%96%e8%af%91%e7%8e%af%e5%a2%83">#&lt;/a>&lt;/h2>
&lt;p>安装GCC编译器：&lt;/p>
&lt;pre tabindex="0">&lt;code>sudo apt install build-essential&lt;/code>&lt;/pre>&lt;p>安装OpenJDK依赖库：&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>工具&lt;/th>
 &lt;th>库名称&lt;/th>
 &lt;th>安装命令&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>FreeType&lt;/td>
 &lt;td>The FreeType Project&lt;/td>
 &lt;td>&lt;code>sudo apt install libfreetype6-dev&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>CUPS&lt;/td>
 &lt;td>Common UNIX Printing System&lt;/td>
 &lt;td>&lt;code>sudo apt install libcups2-dev&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>X11&lt;/td>
 &lt;td>X Window System&lt;/td>
 &lt;td>&lt;code>sudo apt install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxtst-dev libxt-dev&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>ALSA&lt;/td>
 &lt;td>Advanced Linux Sound Architecture&lt;/td>
 &lt;td>&lt;code>sudo apt install libasound2-dev&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>libffi&lt;/td>
 &lt;td>Portable Foreign Function Interface&lt;/td>
 &lt;td>&lt;code>sudo apt install libffi-dev&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Autoconf&lt;/td>
 &lt;td>Extensible Package of M4 Macros&lt;/td>
 &lt;td>&lt;code>sudo apt install autoconf&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>zip/unzip&lt;/td>
 &lt;td>unzip&lt;/td>
 &lt;td>&lt;code>sudo apt install zip unzip&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>fontconfig&lt;/td>
 &lt;td>fontconfig&lt;/td>
 &lt;td>&lt;code>sudo apt install libfontconfig1-dev&lt;/code>&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>假设要编译大版本号为N的JDK，我们还要安装一个大版本号&lt;strong>至少为N-1&lt;/strong>的、已经编译好的JDK作为“Bootstrap JDK”：&lt;/p></description></item><item><title>zsh卸载后root无法登录及vm扩容centos7报错处理</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230523/</link><pubDate>Tue, 23 May 2023 12:06:46 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20230523/</guid><description>&lt;h1 id="zsh卸载后root无法登录">zsh卸载后root无法登录&lt;a class="anchor" href="#zsh%e5%8d%b8%e8%bd%bd%e5%90%8eroot%e6%97%a0%e6%b3%95%e7%99%bb%e5%bd%95">#&lt;/a>&lt;/h1>
&lt;blockquote class='book-hint '>
&lt;p>主要参考文档 
&lt;a target="_blank" href="https://blog.csdn.net/Scoful/article/details/119746150">https://blog.csdn.net/Scoful/article/details/119746150&lt;/a>&lt;/p>&lt;/blockquote>&lt;ol>
&lt;li>重启，开机引导进入下面的那个，按e进入编辑模式&lt;/li>
&lt;/ol>
&lt;p>&lt;img src="img/ly-20241212141833490.png" alt="ly-20241212141833490" />&lt;/p>
&lt;ol start="2">
&lt;li>
&lt;p>移动光标，找到&lt;code>ro crashkernel=auto&lt;/code>，修改为 &lt;code>rw init=sysroot/bin/sh&lt;/code>&lt;/p>
&lt;p>&lt;img src="img/ly-20241212141833799.png" alt="ly-20241212141833799" />&lt;/p>
&lt;/li>
&lt;li>
&lt;p>按ctrl+x进入单用户模式界面&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>&lt;img src="img/ly-20241212141833982.png" alt="ly-20241212141833982" />&lt;/p>
&lt;ol start="4">
&lt;li>输入chroot /sysroot 获取权限&lt;/li>
&lt;li>vim /etc/passwd&lt;/li>
&lt;li>第一行 ，root &amp;hellip;&amp;hellip;zsh，中&lt;code>/bin/zsh&lt;/code>，改为&lt;code>/bin/bash&lt;/code>&lt;/li>
&lt;li>用&lt;code>touch /.autorelabel&lt;/code>更新SELinux信息&lt;/li>
&lt;li>两次exit 推出chroot&lt;/li>
&lt;li>reboot 重启：需要一定时间，耐心等待&lt;/li>
&lt;/ol>
&lt;h1 id="vm扩容centos7">vm扩容centos7&lt;a class="anchor" href="#vm%e6%89%a9%e5%ae%b9centos7">#&lt;/a>&lt;/h1>
&lt;p>这里是因为我在vm手动扩容后，进入centos7系统&amp;mdash;用了 可视化界面中的disk软件直接扩容，发生错误（具体错误我没注意，一闪而过了），后面呢我再使用命令&lt;code>resize2fs /dev/sda3&lt;/code>的时候，发现总是提示 busy&lt;/p>
&lt;h2 id="解决办法">解决办法&lt;a class="anchor" href="#%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95">#&lt;/a>&lt;/h2>
&lt;p>按照上面的办法，进入到第3步结束之后（&lt;strong>按ctrl+x进入单用户模式界面&lt;/strong> 要做）&lt;br>
输入 umount /dev/sda3 进行卸载&lt;br>
然后输入下面进行修复（极为重要），然后出现问题是否修复一直按&amp;rsquo;y&amp;rsquo;即可&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>xfs_repair /dev/sda4
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>注：如果你当前文件系统是ext4，可以执行fsck.ext4 /dev/sda4&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>然后输入 mount /dev/sda3 / 进行挂载（这步可能不需要）&lt;br>
最后 reboot 重启 &lt;br>
重启之后，再执行 &lt;code>resize2fs /dev/sda3&lt;/code> 即可&lt;/p></description></item><item><title>hexo在线查看pdf</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Hexo/01/</link><pubDate>Tue, 25 Apr 2023 09:31:50 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Hexo/01/</guid><description>&lt;h1 id="场景">场景&lt;a class="anchor" href="#%e5%9c%ba%e6%99%af">#&lt;/a>&lt;/h1>
&lt;p>由于在看《mysql是如何运行的》，做md文件笔记时，发现好多都是按pdf一字不漏打出来。所以想着能不能直接&lt;strong>本地编辑pdf&lt;/strong>，然后博客上支持&lt;strong>在线查看&lt;/strong>。&lt;/p>
&lt;blockquote class='book-hint '>
&lt;p>事后觉得这个方式有待斟酌，电脑上/平板上查看没啥问题，手机上查看字有点小，但也还能接受。==&amp;gt;待斟酌&lt;br>
不过下面的方案是可行的。&lt;/p>&lt;/blockquote>&lt;h1 id="准备">准备&lt;a class="anchor" href="#%e5%87%86%e5%a4%87">#&lt;/a>&lt;/h1>
&lt;p>需要到官网下载 pdf.js&lt;/p>
&lt;p>
&lt;a target="_blank" href="https://github.com/mozilla/pdf.js/releases">https://github.com/mozilla/pdf.js/releases&lt;/a> ，这里选择 v3.4.120中的
&lt;a target="_blank" href="https://github.com/mozilla/pdf.js/releases/download/v3.4.120/pdfjs-3.4.120-dist.zip">pdfjs-3.4.120-dist.zip&lt;/a> ，最新版本好像有问题&lt;/p>
&lt;h1 id="操作">操作&lt;a class="anchor" href="#%e6%93%8d%e4%bd%9c">#&lt;/a>&lt;/h1>
&lt;h2 id="pdfjs处理">pdfjs处理&lt;a class="anchor" href="#pdfjs%e5%a4%84%e7%90%86">#&lt;/a>&lt;/h2>
&lt;p>在source/下创建myjs/pdfjs文件夹，并解压到这个文件夹下&lt;br>
&lt;img src="img/ly-20241212141830564.png" alt="ly-20241212141830564" />&lt;/p>
&lt;p>修改pdfjs/web/viewer.js&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-javascript" data-lang="javascript">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">if&lt;/span> (&lt;span style="color:#a6e22e">fileOrigin&lt;/span> &lt;span style="color:#f92672">!==&lt;/span> &lt;span style="color:#a6e22e">viewerOrigin&lt;/span>) {&lt;span style="color:#75715e">//1563行左右
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>	&lt;span style="color:#66d9ef">throw&lt;/span> &lt;span style="color:#66d9ef">new&lt;/span> Error(&lt;span style="color:#e6db74">&amp;#34;file origin does not match viewer&amp;#39;s&amp;#34;&lt;/span>);
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">//注释掉，为了处理跨域问题，注释掉后允许在线访问其他网站的pdf
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// if (fileOrigin !== viewerOrigin) {
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">//	throw new Error(&amp;#34;file origin does not match viewer&amp;#39;s&amp;#34;);
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">//}
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="hexo配置修改">hexo配置修改&lt;a class="anchor" href="#hexo%e9%85%8d%e7%bd%ae%e4%bf%ae%e6%94%b9">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yml" data-lang="yml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># 找到# Directory下的skip_render项，添加忽略渲染的文件夹&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">skip_render&lt;/span>: [&lt;span style="color:#e6db74">&amp;#39;myjs/pdfjs/**/*&amp;#39;&lt;/span>]&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="清理hexo中public及其他缓存文件">清理hexo中public及其他缓存文件&lt;a class="anchor" href="#%e6%b8%85%e7%90%86hexo%e4%b8%adpublic%e5%8f%8a%e5%85%b6%e4%bb%96%e7%bc%93%e5%ad%98%e6%96%87%e4%bb%b6">#&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span> hexo clean &amp;amp; hexo g&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h1 id="文件预览测试">文件预览测试&lt;a class="anchor" href="#%e6%96%87%e4%bb%b6%e9%a2%84%e8%a7%88%e6%b5%8b%e8%af%95">#&lt;/a>&lt;/h1>
&lt;h2 id="本地文件">本地文件&lt;a class="anchor" href="#%e6%9c%ac%e5%9c%b0%e6%96%87%e4%bb%b6">#&lt;/a>&lt;/h2>
&lt;p>我们在hexo的source文件夹下，放置这样一个文件： source/pdf/my.pdf&lt;br>
&lt;img src="img/ly-20241212141830812.png" alt="ly-20241212141830812" />&lt;/p>
&lt;h3 id="md文件修改">MD文件修改&lt;a class="anchor" href="#md%e6%96%87%e4%bb%b6%e4%bf%ae%e6%94%b9">#&lt;/a>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&amp;lt;iframe src&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#39;/myjs/pdfjs/web/viewer.html?file=/pdf/my.pdf&amp;#39;&lt;/span> style&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;padding: 0;width:100%;&amp;#34;&lt;/span> marginwidth&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;0&amp;#34;&lt;/span> frameborder&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;no&amp;#34;&lt;/span> scrolling&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;no&amp;#34;&lt;/span> height&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#e6db74">&amp;#34;2000px&amp;#34;&lt;/span>&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="操作并查看">操作并查看&lt;a class="anchor" href="#%e6%93%8d%e4%bd%9c%e5%b9%b6%e6%9f%a5%e7%9c%8b">#&lt;/a>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>hexo g &amp;amp; hexo s&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;img src="img/ly-20241212141831013.png" alt="ly-20241212141831013" />&lt;/p></description></item><item><title>post</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20221101/</link><pubDate>Tue, 01 Nov 2022 09:05:57 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Linux/20221101/</guid><description>&lt;ul>
&lt;li>
&lt;p>在安装可视化的时候，出现&lt;code>需要libmysqlclient.so.18()(64bit)&lt;/code>解决方案&lt;/p>
&lt;blockquote class='book-hint '>
&lt;p>将mysql卸载即可

&lt;a target="_blank" href="http://wenfeifei.com/art/detail/yGM1BG4">http://wenfeifei.com/art/detail/yGM1BG4&lt;/a>&lt;/p>&lt;/blockquote>&lt;/li>
&lt;li>&lt;/li>
&lt;/ul></description></item><item><title>问题01</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Idea/01/</link><pubDate>Sat, 14 May 2022 22:30:18 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Idea/01/</guid><description>&lt;h2 id="cannot-download-sources">Cannot download sources&lt;a class="anchor" href="#cannot-download-sources">#&lt;/a>&lt;/h2>
&lt;p>在maven项目(根目录)下执行&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>mvn dependency:resolve -Dclassifier&lt;span style="color:#f92672">=&lt;/span>sources&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>会开始下载，有控制台输出，结束后再点即可&lt;/p>
&lt;h2 id="预留">预留&lt;a class="anchor" href="#%e9%a2%84%e7%95%99">#&lt;/a>&lt;/h2></description></item><item><title>git使用ssh连不上</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Git/01/</link><pubDate>Fri, 22 Apr 2022 00:00:00 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Git/01/</guid><description>&lt;ul>
&lt;li>
&lt;p>处理方式
在系统的host文件中，添加ip指定&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-tex" data-lang="tex">&lt;span style="display:flex;">&lt;span>199.232.69.194 github.global.ssl.fastly.net
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>140.82.114.4 github.com&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>&lt;/li>
&lt;/ul></description></item><item><title>hugo踩坑</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Hugo/p1/</link><pubDate>Mon, 27 Dec 2021 09:31:50 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Hugo/p1/</guid><description>&lt;ul>
&lt;li>
&lt;p>对于访问文件资源&lt;/p>
&lt;ul>
&lt;li>hugo的文件夹名不能以-结尾。&lt;/li>
&lt;li>一个文件夹(比如这里是hugo文件夹)中，其中的index.md文件中引用图片时，是以index.md所在文件夹(也就是hugo文件夹)为根目录访问图片；而其中的01a.md文件中引用图片时，是以和该文件同级的01a文件夹(也就是hugo/01a/)为根目录，访问图片&lt;br>
&lt;img src="img/ly-20241212141832633.png" alt="" />&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>当一个文件夹下存在index.md文件时，其他文件(代表的文章)不显示在网站的文章列表&lt;br>
&lt;img src="img/ly-20241212141832862.png" alt="" />&lt;/p>
&lt;/li>
&lt;li>
&lt;p>为了某些文件预览功能，我建议使用下面的文件夹结构处理文章及资源&lt;br>
&lt;img src="img/ly-20241212141833048.png" alt="" />&lt;/p>
&lt;/li>
&lt;/ul></description></item><item><title>图片测试(hugo踩坑)</title><link>https://blog.liuyi2026.asia/zh/docs/problem/Hugo/01a/</link><pubDate>Mon, 27 Dec 2021 09:31:50 +0000</pubDate><guid>https://blog.liuyi2026.asia/zh/docs/problem/Hugo/01a/</guid><description>&lt;h2 id="图片测试">图片测试&lt;a class="anchor" href="#%e5%9b%be%e7%89%87%e6%b5%8b%e8%af%95">#&lt;/a>&lt;/h2>
&lt;p>&lt;img src="img/ly-20241212141831580.png" alt="yutyutyu" />&lt;br>
&lt;img src="img/ly-20241212141831894.png" alt="grwerweer" />&lt;/p>
&lt;p>&lt;img src="img/ly-20241212141832073.png" alt="" />&lt;/p>
&lt;p>&lt;img src="img/ly-20241212141832254.png" alt="" />&lt;br>
&lt;img src="img/ly-20241212141832439.png" alt="" />&lt;/p></description></item></channel></rss>