<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>buidlHodler</title>
        <link>https://paragraph.com/@buidlhodler</link>
        <description>buidler, hodler</description>
        <lastBuildDate>Mon, 07 Sep 2026 07:15:48 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>buidlHodler</title>
            <url>https://storage.googleapis.com/papyrus_images/d4e4078b4bcfd25c7d01b99f2456e01f1f0766da1a18a53cb8c4c44ac1822297.jpg</url>
            <link>https://paragraph.com/@buidlhodler</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[curl www.baidu.com失败]]></title>
            <link>https://paragraph.com/@buidlhodler/curl-www-baidu-com</link>
            <guid>6QzUbDITiKBHPbSIt5RY</guid>
            <pubDate>Sat, 05 Feb 2022 08:27:17 GMT</pubDate>
            <description><![CDATA[1 环境背景:deepin 20.04 1 个人电脑睡觉前安装了nodejs, 遇到了一堆环境依赖的怪问题, 各种报错, 失败,卡顿 2 安装过程涉及shell命令需要tizi, 搞了一堆奇奇杂杂, 包括全局变量, 修改deepin自带的代理 3 tz提供商前两天出了故障, 没法用, 这两天还发了公告 结果, 再开电脑, 谷歌上不去了2 具体表现:1 shell终端: curl www.baidu.com 失败, 卡住, curl -v 查看也是卡住 curl www.google.com.hk 失败 ping www.baidu.com 成功 ping www.google.com.hk 失败 2 浏览器端: 国内网站正常, 海外网站异常 3 tz Trojon 查看延迟数据正常3 假设与排查流程猜想假设 假设1 : 昨天安装nodejs留下了隐患, 或者藏了坑, 我有几次是直接ctrl c 强制关停的 假设2 : 昨天安装过程, 设置的一些全局变量影响到了代理 假设3: tz商又出问题了 排查经过: 1 先是联系tz商, 估计是过年回家, 一直没人搭理 2 用手机的tz, 尝...]]></description>
            <content:encoded><![CDATA[<h2 id="h-1" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1 环境背景:</h2><p>deepin 20.04</p><p>1 个人电脑睡觉前安装了nodejs, 遇到了一堆环境依赖的怪问题, 各种报错, 失败,卡顿</p><p>2 安装过程涉及shell命令需要tizi, 搞了一堆奇奇杂杂, 包括全局变量, 修改deepin自带的代理</p><p>3 tz提供商前两天出了故障, 没法用, 这两天还发了公告</p><p>结果, 再开电脑, 谷歌上不去了</p><h2 id="h-2" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">2 具体表现:</h2><p><strong>1 shell终端:</strong></p><p>curl <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.baidu.com">www.baidu.com</a> 失败, 卡住, curl -v 查看也是卡住</p><p>curl <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.google.com.hk">www.google.com.hk</a> 失败</p><p>ping <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.baidu.com">www.baidu.com</a> 成功</p><p>ping <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.google.com.hk">www.google.com.hk</a> 失败</p><p><strong>2 浏览器端:</strong></p><p>国内网站正常, 海外网站异常</p><p><strong>3 tz Trojon</strong></p><p>查看延迟数据正常</p><h2 id="h-3" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">3 假设与排查流程</h2><p><strong>猜想假设</strong></p><p>假设1 : 昨天安装nodejs留下了隐患, 或者藏了坑, 我有几次是直接ctrl c 强制关停的</p><p>假设2 : 昨天安装过程, 设置的一些全局变量影响到了代理</p><p>假设3: tz商又出问题了</p><p><strong>排查经过:</strong></p><p>1 先是联系tz商, 估计是过年回家, 一直没人搭理</p><p>2 用手机的tz, 尝试登录, 出现了闪断, 但是没有出现电脑端一直卡住的问题, 能连上</p><p>猜想和tz商没关系, 昨天trojan也没有乱动, 改了不少deepin的默认代理</p><p>3 禁掉系统代理, shell终端和浏览器表现不变</p><p>4 把应用代理输入的内容全清除, curl和浏览器表现正常</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ad923e800083b335616cad3fe2f029f000221330e61127572b0a594209881319.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>结论:</strong></p><p>deepin的应用代理, 昨天在处理安装问题时, 病急乱投医,乱改, 没有处理干净现场, 以为自己处理干净了</p><p>curl是7层协议, 最终要走http代理的</p><p>ping是3层协议, 传输层</p>]]></content:encoded>
            <author>buidlhodler@newsletter.paragraph.com (buidlHodler)</author>
        </item>
        <item>
            <title><![CDATA[报错npm install fails at sha3@1.2.2 install script ]]></title>
            <link>https://paragraph.com/@buidlhodler/npm-install-fails-at-sha3-1-2-2-install-script</link>
            <guid>bBF4jphOC0ZdrkjpMzMU</guid>
            <pubDate>Fri, 04 Feb 2022 15:49:19 GMT</pubDate>
            <description><![CDATA[环境deepin 20.04 安装完nodejs后,执行npm install报错 1 先是以用户身份执行sudo npm install报没权限后, 转root用户再次执行npm install, 依旧报错解决方法: 缺少环境依赖, 安装build-essential软件 sudo apt-get install build-essential]]></description>
            <content:encoded><![CDATA[<p>环境deepin 20.04</p><p>安装完nodejs后,执行npm install报错</p><p>1 先是以用户身份执行sudo npm install</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8859b6aab65e18e93e8abf83a727c26e7b0e72c0c689bd8d09d44fe50ed78ace.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>报没权限后, 转root用户再次执行npm install, 依旧报错</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/cc6251f46f0798fe617f89cf51e1658f2d31cd988bf7192debc17c3de37b3c36.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>解决方法:</p><p>缺少环境依赖, 安装build-essential软件</p><p>sudo apt-get install build-essential</p>]]></content:encoded>
            <author>buidlhodler@newsletter.paragraph.com (buidlHodler)</author>
        </item>
        <item>
            <title><![CDATA[设置shell终端走代理]]></title>
            <link>https://paragraph.com/@buidlhodler/shell</link>
            <guid>sOoiOOo4LlVuZc5zE5Q4</guid>
            <pubDate>Fri, 04 Feb 2022 15:30:26 GMT</pubDate>
            <description><![CDATA[环境: deepin 自带shell , 使用Trojan代理 执行一些脚本不走代理, 本质是执行一些curl ,wget 命令, 底层是http, https 7层协议的代理 1 修改环境变量, 全局方式 在 home 目录下的.bashrc文件添加 export all_proxy="socks5://127.0.0.1:51837" source ~/.bashrc 测试: curl www.google.com.hk 2 设置局部应用走代理 安装 proxychains 软件 , sudo apt install -y proxychains 编辑 /etc/proxychains.conf 文件，在最后的**[ProxyList] 增加** socks5 127.0.0.1 1080 在需要走代理的地方,添加 proxychains 命令 proxychains git clone https://github.com/hijkpw/scripts 注意, ping命令是执行三层的icmp协议, 上述方式适用于七层 ip协议]]></description>
            <content:encoded><![CDATA[<p>环境:</p><p>deepin 自带shell , 使用Trojan代理</p><p>执行一些脚本不走代理, 本质是执行一些curl ,wget 命令, 底层是http, https 7层协议的代理</p><p><strong>1 修改环境变量, 全局方式</strong></p><p>在 home 目录下的.bashrc文件添加</p><p>export all_proxy=&quot;socks5://127.0.0.1:51837&quot;</p><p>source ~/.bashrc</p><p>测试: curl <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.google.com.hk">www.google.com.hk</a></p><p><strong>2 设置局部应用走代理</strong></p><p>安装 proxychains 软件 , sudo apt install -y proxychains</p><p>编辑 <code>/etc/proxychains.conf</code> 文件，在最后的**[ProxyList] 增加** socks5 127.0.0.1 1080</p><p>在需要走代理的地方,添加 proxychains 命令</p><p>proxychains git clone <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/hijkpw/scripts">https://github.com/hijkpw/scripts</a></p><p>注意, ping命令是执行三层的icmp协议, 上述方式适用于七层 ip协议</p>]]></content:encoded>
            <author>buidlhodler@newsletter.paragraph.com (buidlHodler)</author>
        </item>
        <item>
            <title><![CDATA[报错Your distribution, identified as "n/a", is not currently supported]]></title>
            <link>https://paragraph.com/@buidlhodler/your-distribution-identified-as-n-a-is-not-currently-supported</link>
            <guid>T5matD5Xsva7MlA3FkP4</guid>
            <pubDate>Fri, 04 Feb 2022 14:32:13 GMT</pubDate>
            <description><![CDATA[环境:deepin 20.04 安装nodejs, npm报错 Your distribution, identified as "n/a", is not currently supported解法 本机添加nodejs deb软件源, 彻底删干净nodejs, 重新安装在 /etc/apt/sources.list.d/nodesource.list 添加: deb https://deb.nodesource.com/node_14.x buster main 保存后, 命令行添加nodesource公钥 curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add - 重装nodejs sudo apt remove nodejs npm sudo apt autoremove sudo apt update sudo apt install nodejs 参考: https://stackoverflow.com/questions/64648158/deepin-20...]]></description>
            <content:encoded><![CDATA[<p>环境:deepin 20.04</p><p>安装nodejs, npm报错</p><p>Your distribution, identified as &quot;n/a&quot;, is not currently supported</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/65cc6c99074dbd2cdd7ac6a4ab7de61edb2930b09a51aa836d7ec0a7edaaa8f1.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>解法</p><p>本机添加nodejs deb软件源, 彻底删干净nodejs, 重新安装</p><pre data-type="codeBlock" text="在 /etc/apt/sources.list.d/nodesource.list 添加:
deb https://deb.nodesource.com/node_14.x buster main
保存后, 命令行添加nodesource公钥
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -

重装nodejs
sudo apt remove nodejs npm
sudo apt autoremove
sudo apt update
sudo apt install nodejs
"><code>在 <span class="hljs-operator">/</span>etc<span class="hljs-operator">/</span>apt<span class="hljs-operator">/</span>sources.list.d/nodesource.list 添加:
deb https:<span class="hljs-comment">//deb.nodesource.com/node_14.x buster main</span>
保存后, 命令行添加nodesource公钥
curl <span class="hljs-operator">-</span>sSL https:<span class="hljs-comment">//deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -</span>

重装nodejs
sudo apt remove nodejs npm
sudo apt autoremove
sudo apt update
sudo apt install nodejs
</code></pre><p>参考:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://stackoverflow.com/questions/64648158/deepin-20-and-updated-nodejs">https://stackoverflow.com/questions/64648158/deepin-20-and-updated-nodejs</a></p>]]></content:encoded>
            <author>buidlhodler@newsletter.paragraph.com (buidlHodler)</author>
        </item>
    </channel>
</rss>