<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OpenWrt &#8211; Daoker小站</title>
	<atom:link href="https://daoker.cc/category/openwrt/feed" rel="self" type="application/rss+xml" />
	<link>https://daoker.cc</link>
	<description>个人随笔小记</description>
	<lastBuildDate>Sat, 21 Dec 2024 02:31:46 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://daoker.cc/wp-content/uploads/2022/08/cropped-daoker_blog_s-32x32.png</url>
	<title>OpenWrt &#8211; Daoker小站</title>
	<link>https://daoker.cc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【NAS折腾记录】部署Home Assistant、开启sftp、部署股票神器「instock」</title>
		<link>https://daoker.cc/jhjto1261.html</link>
					<comments>https://daoker.cc/jhjto1261.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 21 Dec 2024 02:31:45 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1261</guid>

					<description><![CDATA[各个过程仅供参考，环境不一样所以操作也不完全相同。时间过了很久了，平时上班当牛马太累，具体步骤懒得写。 部署H [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>各个过程仅供参考，环境不一样所以操作也不完全相同。时间过了很久了，平时上班当牛马太累，具体步骤懒得写。</p>



<h2 class="wp-block-heading">部署Home Assistant</h2>



<p><a href="https://baijiahao.baidu.com/s?id=1798296446321396265&amp;wfr=spider&amp;for=pc">openwrt服务器部署Home Assistant，实现智能家居控制</a></p>



<p><a href="https://blog.csdn.net/weixin_42878111/article/details/136042375">如何在HA智能家居系统中添加HACS集成并实现异地控制家中苹果与小米设备</a></p>



<h2 class="wp-block-heading">开启SFTP</h2>



<p><a href="https://blog.csdn.net/mr_zql/article/details/108035812">群辉搭建FTP服务</a></p>



<h2 class="wp-block-heading">股票神器「instock」</h2>



<p><a href="https://post.smzdm.com/p/apm93dlw/?zdm_ss=Android_7600663162_&amp;send_by=7600663162&amp;from=singlemessage&amp;invite_code=zdmacngw8minv">NAS也能炒股赚钱！大数据下的股票神器「instock」极空间部署教程</a></p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="myhhub" data-project="stock"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/myhhub/stock" target="_blank" rel="noopener"><span class="github-info-card-name">myhhub/stock</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1261.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>【科学上网】在VPS上搭建Hysteria服务端并在Openwrt中的Passwall上配置客户端</title>
		<link>https://daoker.cc/jhjto1175.html</link>
					<comments>https://daoker.cc/jhjto1175.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 28 Oct 2023 12:34:58 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1175</guid>

					<description><![CDATA[Hysteria1 由于我目前用的openwrt中的Passwall只支持到Hysteria1，更新Passw [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Hysteria1</h2>



<p>由于我目前用的openwrt中的Passwall只支持到Hysteria1，更新Passwall又会遇到内核和依赖等一堆问题，为了减少折腾，先搭建个Hysteria1玩一玩，等有空换了支持Hysteria2的Openwrt固件再尝试Hysteria.</p>



<p>首先参照Hysteria1的官方文档，看到支持docker安装，那二话不说果断选docker，详情见<a href="https://v1.hysteria.network/zh/docs/docker/">Docker | Hysteria</a></p>



<p>这次我选择在一台甲骨文云ARM服务器上使用docker-compose的方式安装，由于github和docker hub上的版本默认都是Hysteria2的，所以安装时要注意版本的选择。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="apernet" data-project="hysteria"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/apernet/hysteria" target="_blank" rel="noopener"><span class="github-info-card-name">apernet/hysteria</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<p>1.创建安装目录并新建docker-compose.yaml文件，配置文件内容</p>



<pre class="wp-block-code"><code>version: '3.9'
services:
  hysteria:
    image: tobyxdd/hysteria:v1.3.5
    container_name: hysteria
    restart: always
    network_mode: "host"
    volumes:
      - ./hysteria.json:/etc/hysteria.json
    command: &#91;"server", "--config", "/etc/hysteria.json"]</code></pre>



<p>2.配置证书申请的文件</p>



<pre class="wp-block-code"><code>cat &lt;&lt;EOF &gt; hysteria.json
{
  "listen": ":36752",
  "acme": {
    "domains": &#91;
      "hy.daoker.cc"
    ],
    "email": "jhjyes@163.com"
  },
  "obfs": "8ZuA2Zrtetr38ds45fdg7vMjD3267BwY",
  "up_mbps": 100,
  "down_mbps": 100
}
EOF</code></pre>



<p>3.使用docker-compose up -d创建并启动容器</p>



<h2 class="wp-block-heading">Hysteria2</h2>



<p>由于Hysteria1的教程文档较少，大多数脚本已经更新到Hysteria2，使用起来挺麻烦，上面的Hysteria1最终没能成功运用，于是我部署了Hysteria2，并在PVE里安装了windows,在windows中使用V2rayN的局域网共享功能，使得Passwall通过V2rayN使用Hysteria2,原因是我暂时没找到好用的支持Hysteria2的Passwall的OpenWRT，因此只能采用曲线救国的方法，下面记录Hysteria2的搭建过程：</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="apernet" data-project="hysteria"><div class="github-info-card-header"><a href="https://github.com/" target="_blank" title="Github" rel="noopener"><span><i class="fa fa-github"></i> GitHub</span></a></div><div class="github-info-card-body"><div class="github-info-card-name-a"><a href="https://github.com/apernet/hysteria" target="_blank" rel="noopener"><span class="github-info-card-name">apernet/hysteria</span></a></div><div class="github-info-card-description"></div></div><div class="github-info-card-bottom"><span class="github-info-card-meta github-info-card-meta-stars"><i class="fa fa-star"></i> <span class="github-info-card-stars"></span></span><span class="github-info-card-meta github-info-card-meta-forks"><i class="fa fa-code-fork"></i> <span class="github-info-card-forks"></span></span></div></div>



<h3 class="wp-block-heading">服务端配置</h3>



<p>首先从上面的github中下载Hysteria2的服务端到服务器，我这里服务器是ARM的，所以下载ARM的；</p>



<pre class="wp-block-code"><code>curl -Lo hysteria https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-arm64 &amp;&amp; chmod +x hysteria &amp;&amp; mv -f hysteria /usr/local/bin/</code></pre>



<p>然后就是域名证书的问题，我这里用x-ui的脚本申请了想使用的域名的证书，并记下了公钥和密钥存储路径；</p>



<p>创建并修改配置文件如下：</p>



<pre class="wp-block-code"><code>vim /root/hysteria_config.yaml</code></pre>



<pre class="wp-block-code"><code>listen: :443（这里改成自己想用的端口）

tls:
  cert: /root/cert/hy2.pornhug.top.cer（公钥路径）
  key: /root/cert/hy2.pornhug.top.key（密钥路径）

auth:
  type: password
  password: chika（自定义的密码）

masquerade:
  type: proxy
  proxy:
    url: https://www.lovelive-anime.jp（证书所对应的域名）
    rewriteHost: true

acl:
  inline: 
    - reject(all, udp/443)（这里的端口也记得修改）
</code></pre>



<p>验证是否搭建成功：curl &#8211;http3 https://hy2.pornhug.top -k</p>



<p>设置开机自启：</p>



<pre class="wp-block-code"><code>vim /etc/systemd/system/hysteria.service</code></pre>



<pre class="wp-block-code"><code>&#91;Unit]
After=network.target nss-lookup.target

&#91;Service]
User=root
WorkingDirectory=/root
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/local/bin/hysteria server -c /root/hysteria_config.yaml --log-level debug
Restart=on-failure
RestartSec=10
LimitNPROC=512
LimitNOFILE=infinity

&#91;Install]
WantedBy=multi-user.target</code></pre>



<p>启动服务</p>



<pre class="wp-block-code"><code>systemctl daemon-reload</code></pre>



<p>启动程序</p>



<pre class="wp-block-code"><code>systemctl enable --now hysteria
</code></pre>



<p>程序信息和常用命令：</p>



<figure class="wp-block-table"><table><tbody><tr><td>项目</td><td>内容</td></tr><tr><td>程序</td><td> /usr/local/bin/hysteria</td></tr><tr><td>配置 </td><td>/root/hysteria_config.yaml</td></tr><tr><td>重启 </td><td>systemctl restart hysteria</td></tr><tr><td>状态</td><td> systemctl status hysteria</td></tr><tr><td>查看日志 </td><td>journalctl -u hysteria -o cat -e</td></tr><tr><td>实时日志 </td><td>journalctl -u hysteria -o cat -f</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">客户端配置</h3>



<p>这里以windows端V2rayN为例，新建.yaml文件并输入以下内容，注意和服务端内容一一对应</p>



<pre class="wp-block-code"><code>server: 3.0.20.121:443

auth: chika

tls:
  sni: hy2.pornhug.top #如果你是自签证书则改为bing.com
  insecure: false #如果你是自签证书则改为insecure: true
fastOpen: true

#bandwith根据需求改，如果不写则默认bbr流控
bandwidth:
  up: 30 mbps
  down: 150 mbps
  
socks5:
  listen: 127.0.0.1:50000</code></pre>



<ul class="wp-block-list">
<li>下载 Windows 客户端程序 hysteria-windows-amd64.exe（这个下载地址也是和第一步一样，可以去 realease 里面找），重命名为 hysteria.exe，复制到 v2rayN\bin\hysteria 文件夹。</li>



<li>修改客户端配置，修改 hy.pornhug.top 为证书中包含的域名，修改 3.0.20.121 为 VPS 的 IP。</li>



<li>v2rayN：服务器 ——&gt; 添加自定义配置服务器 ——&gt; 浏览 ——&gt; 选择客户端配置 ——&gt; Core 类型 hysteria ——&gt; Socks 端口 50000</li>
</ul>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="913" height="623" src="https://daoker.cc/wp-content/uploads/2023/11/image-6.png" alt="" class="wp-image-1189" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-6.png 913w, https://daoker.cc/wp-content/uploads/2023/11/image-6-300x205.png 300w, https://daoker.cc/wp-content/uploads/2023/11/image-6-768x524.png 768w" sizes="(max-width: 913px) 100vw, 913px" /></figure>



<p>最新教程参考波仔的<a href="https://v2rayssr.com/hysteria2.html" target="_blank" rel="noreferrer noopener">Hysteria2节点搭建，抢占宽带，垃圾线路的救星！大幅提升稳定性！第二代歇斯底里Windows/iOS/安卓/MacOS/Openwrt全平台教程！</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1175.html/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>OpenＷrt磁盘分区扩容、网络设置、跳过开机enter、安装哪吒探针</title>
		<link>https://daoker.cc/daokerto398.html</link>
					<comments>https://daoker.cc/daokerto398.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Sat, 10 Sep 2022 07:22:49 +0000</pubDate>
				<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[树莓派]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=398</guid>

					<description><![CDATA[扩容 ext4固件扩容 &#160;Squashfs固件扩容 PVE里的OpenWRT扩容 在PVE里安装Op [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">扩容</h2>



<h3 class="wp-block-heading">ext4固件扩容</h3>



<div class="wp-block-argon-collapse collapse-block shadow-sm collapsed hide-border-left" style="border-left-color:#ffffff00"><div class="collapse-block-title" style="background-color:#ffffff00"><span class="collapse-block-title-inner">ext4固件扩容</span><i class="collapse-icon fa fa-angle-down"></i></div><div class="collapse-block-body" style="display: none">由于我的树莓派使用的是ext4的固件，所以网上的许多扩容方法都不能用。<br>参考文献<br>https://ost.51cto.com/posts/1673<br>把树莓派的ＳＤ卡取出来，插到Linux电脑上，我的环境是Ubuntu。<br><strong>１．确定sd卡盘符</strong><br>使用df -h命令，查看sd卡的盘符：<br><img decoding="async" src="https://dl-harmonyos.51cto.com/images/202011/27f9108895be1c00bec346e01195bd573a5d94.jpg" alt="树莓派OpenＷrt扩容磁盘分区大小-开源基础软件社区"><br>确定ｓｄ的盘符是/dev/sdc。<br><strong>２．卸载/dev/sdc2</strong><br><code>umount /dev/sdc2</code><br>复制<br><br><strong>３．用fdisk命令开始重新分区</strong><br>进入分区程序：<br><code>sudo fdisk /dev/sdc</code><br>复制<br><br>查看当前分区情况：p<br><img decoding="async" src="https://dl-harmonyos.51cto.com/images/202011/f810a2028e09cab0c2a528853309630e00f150.jpg" alt="树莓派OpenＷrt扩容磁盘分区大小-开源基础软件社区"><br>这里一定要记住/dev/sdc２分区的起点（我的是57344，等会要用到）。<br><strong>４．删除分区２</strong><br>删除分区：ｍ<br>选择删除分区２：2<br><img decoding="async" src="https://dl-harmonyos.51cto.com/images/202011/a8fc12e80b8ef47bc62875d8560e0c94acb8db.jpg" alt="树莓派OpenＷrt扩容磁盘分区大小-开源基础软件社区"><br><strong>５．重新新建分区２</strong><br>然后新建分区：ｎ<br>分区类型选择主分区:p<br>分区号输入２：２<br>起始扇区选择原来的点：57344<br>最后一个扇区选择默认：enter<br>这样就新建了一个分区２，并且分区包含了剩下的全部空间。<br><img decoding="async" src="https://dl-harmonyos.51cto.com/images/202011/841457181d890f2b0c2713a4d2b50af78985d4.jpg" alt="树莓派OpenＷrt扩容磁盘分区大小-开源基础软件社区"><br>接着提示是否移除”分区 #2 的 ext4 签名“，选择否：ｎｏ<br><strong>6．保存分区修改</strong><br>最后输入w保存刚才的分区<br><img decoding="async" src="https://dl-harmonyos.51cto.com/images/202011/077a528310f7f34afc224421cfae992a964515.jpg" alt="树莓派OpenＷrt扩容磁盘分区大小-开源基础软件社区"><br><strong>7．使修改生效</strong><br><code>sudo e2fsck /dev/sdc2 sudo resize2fs /dev/sdc2</code><br>复制<br>这样就完成了树莓派ＯpenWrt分区扩容，将ＳＤ卡重新插回树莓派，开机后就可以看到分区已经扩容成功了！<br><img decoding="async" src="https://dl-harmonyos.51cto.com/images/202011/25d31e5696fbdefff510747d977af86d0d7b07.jpg" alt="树莓派OpenＷrt扩容磁盘分区大小-开源基础软件社区"></div></div>



<h3 class="wp-block-heading">&nbsp;Squashfs固件扩容</h3>



<figure class="wp-block-image"><img decoding="async" src="http://daoker.cc/wp-content/uploads/2022/10/image-3.png" alt=""/></figure>



<pre class="wp-block-code"><code><code># 将刚刚新建的 /dev/mmcblk0p3 分区挂载至 /mnt </code>
<code>root@OpenWrt:/# mount /dev/mmcblk0p3 /mnt </code>
<code># 查看分区挂载情况 </code>
<code>root@OpenWrt:/# lsblk </code>
<code>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 760.8M 0 loop /overlay mmcblk0 179:0 0 14.9G 0 disk </code>
<code>├─mmcblk0p1 179:1 0 64M 0 part /boot ├─mmcblk0p2 179:2 0 960M 0 part /rom └─mmcblk0p3 179:3 0 13.8G 0 part /mnt </code>
<code># 将 /overlay 分区下的所有文件拷贝至刚刚建立好的分区内 </code>
<code>root@OpenWrt:/# cp -f -a /overlay/. /mnt </code>
<code># 查看是否拷贝成功 </code>
<code>root@OpenWrt:/# ls -a /mnt </code>
<code>. .. .fs_state lost+found upper work </code>
<code>root@OpenWrt:/# ls -a /overlay </code>
<code>. .. .fs_state upper work </code>
<code># 同步文件 </code>
<code>root@OpenWrt:/# sync </code>
<code># 卸载 /dev/mmcblk0p3 分区 </code>
<code>root@OpenWrt:/# umount /mnt</code></code></pre>



<figure class="wp-block-image"><img decoding="async" src="http://daoker.cc/wp-content/uploads/2022/10/image-4.png" alt=""/></figure>



<h3 class="wp-block-heading">PVE里的OpenWRT扩容</h3>



<p>在PVE里安装OpenWRT并使用上述的两种扩容方式并不生效，由此只有另谋它法。</p>



<p>首先使用常规的方法将OpenWRT安装到PVE里，虽然我们分配了很多的硬盘，但是安装后的系统并不能用那么多，此时在op的命令行中输入如下命令：</p>



<pre class="wp-block-code"><code>opkg update
opkg install cfdisk fdisk e2fsprogs</code></pre>



<p>使用cfdisk进行扩容：</p>



<figure class="wp-block-image size-full is-resized"><img decoding="async" width="675" height="553" src="https://daoker.cc/wp-content/uploads/2023/11/image.png" alt="" class="wp-image-1181" style="width:700px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/11/image.png 675w, https://daoker.cc/wp-content/uploads/2023/11/image-300x246.png 300w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="675" height="553" src="https://daoker.cc/wp-content/uploads/2023/11/image-1.png" alt="" class="wp-image-1182" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-1.png 675w, https://daoker.cc/wp-content/uploads/2023/11/image-1-300x246.png 300w" sizes="(max-width: 675px) 100vw, 675px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="675" height="553" src="https://daoker.cc/wp-content/uploads/2023/11/image-2.png" alt="" class="wp-image-1183" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-2.png 675w, https://daoker.cc/wp-content/uploads/2023/11/image-2-300x246.png 300w" sizes="auto, (max-width: 675px) 100vw, 675px" /></figure>



<p>输入YES并按下回车键，写入新分区；切换 <strong>Quit</strong> ，按下回车键退出。运行 <code>fdisk -l</code> 命令，查看是否成功创建新分区。</p>



<p>然后格式化分区：</p>



<pre class="wp-block-code"><code>mkfs.ext4 /dev/sda3
</code></pre>



<p>此时可能会报错，我们可以使用下列方法解决：</p>



<ul class="wp-block-list">
<li>问题很简单，就是版本不正确，删除旧的版本 然后上传安装新的版本就行了。</li>



<li>在OpenWRT网页管理界面中，进入系统 -> 软件包 查找 e2fsprogs 点击 移除，删除自带的 e2fsprogs</li>



<li>重新下载最新版的<a href="https://mirrors.aliyun.com/openwrt/releases/21.02.3/packages/x86_64/base/e2fsprogs_1.45.6-2_x86_64.ipk">e2fsprogs </a>，我这里下载的是X86版，并上传到OpenWRT上，并使用opkg install 命令安装就行，此时应该可以执行上面的格式化命令了。</li>
</ul>



<p>进入 Open­Wrt 管理后台，依次点击 <strong>系统</strong> &#8211; <strong>挂载点</strong> 找到并点击全局设置中的 <strong>生成配置</strong> 。然后刷新</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="974" height="671" src="https://daoker.cc/wp-content/uploads/2023/11/image-3.png" alt="" class="wp-image-1184" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-3.png 974w, https://daoker.cc/wp-content/uploads/2023/11/image-3-300x207.png 300w, https://daoker.cc/wp-content/uploads/2023/11/image-3-768x529.png 768w" sizes="auto, (max-width: 974px) 100vw, 974px" /></figure>



<p>点击挂载点中的修改，选择根，然后复制下面命令，并应用保存，这里要按照自己的时间情况对路径进行修改</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="944" height="665" src="https://daoker.cc/wp-content/uploads/2023/11/image-4.png" alt="" class="wp-image-1185" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-4.png 944w, https://daoker.cc/wp-content/uploads/2023/11/image-4-300x211.png 300w, https://daoker.cc/wp-content/uploads/2023/11/image-4-768x541.png 768w" sizes="auto, (max-width: 944px) 100vw, 944px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="975" height="343" src="https://daoker.cc/wp-content/uploads/2023/11/image-5.png" alt="" class="wp-image-1186" srcset="https://daoker.cc/wp-content/uploads/2023/11/image-5.png 975w, https://daoker.cc/wp-content/uploads/2023/11/image-5-300x106.png 300w, https://daoker.cc/wp-content/uploads/2023/11/image-5-768x270.png 768w" sizes="auto, (max-width: 975px) 100vw, 975px" /></figure>



<p>在OpenWRT命令行中一步一步执行下列命令：</p>



<pre class="wp-block-code"><code>mkdir -p /tmp/introot
mkdir -p /tmp/extroot
mount --bind / /tmp/introot
mount /dev/sda3 /tmp/extroot
tar -C /tmp/introot -cvf - . | tar -C /tmp/extroot -xf -
umount /tmp/introot
umount /tmp/extroot
</code></pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>参考文献</p>
<cite><a href="https://www.cnblogs.com/mokou/p/17061031.html">PVE部署Openwrt，并转换磁盘，Openwrt扩容 </a><br><a href="https://yooer.me/mkfs-ext4-error-ext2fs_create_orphan_file-symbol-not-found.html">mkfs.ext4 报错 ext2fs_create_orphan_file: symbol not found</a></cite></blockquote>



<p></p>



<p></p>



<h2 class="wp-block-heading">旁路由无法访问国内网络</h2>



<ul class="wp-block-list">
<li>1.LAN口取消桥接；</li>



<li>2.防火墙添加&#8221;iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE&#8221;，重启防火墙，立马就能访问了。</li>
</ul>



<h2 class="wp-block-heading">解决openwrt开机时要按enter才能启动</h2>



<figure class="wp-block-table"><table><tbody><tr><td>修改路由里的这个文件：/etc/inittab<br>文件里的 askfirst 改成 respawn<br><br>ttyS0::respawn:/usr/libexec/login.sh<br>hvc0::respawn:/usr/libexec/login.sh<br>tty1::respawn:/usr/libexec/login.sh</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">openwrt安装哪吒面板agent</h2>



<p>为了方便监控各个设备的情况，想到了能不能和监控vps的哪吒面板整合，想不到真的有：</p>



<p>下载哪吒面板监控端：<a href="https://github.com/naiba/nezha/releases" target="_blank" rel="noreferrer noopener">https://github.com/naiba/nezha/releases</a></p>



<pre class="wp-block-code"><code>wget https://github.com/naiba/nezha/releases/download/v0.14.4/nezha-agent_linux_amd64.zip</code></pre>



<p>解压并赋予权限</p>



<pre class="wp-block-code"><code>unzip nezha-agent_linux_amd64.zip
rm nezha-agent_linux_amd64.zip 
chmod +x /root/nezha-agent</code></pre>



<pre class="wp-block-code"><code>vim /etc/init.d/nezha-service</code></pre>



<pre class="wp-block-code"><code><strong>#!/bin/sh /etc/rc.common</strong>

START=99
USE_PROCD=1

start_service() {
 procd_open_instance
 procd_set_param command /root/nezha-agent -s 面板通信地址:端口 -p 秘钥 -d
 procd_set_param respawn
 procd_close_instance
}

stop_service() {
    killall nezha-agent
}

restart() {
 stop
 sleep 2
 start
}</code></pre>



<pre class="wp-block-code"><code>chmod +x /etc/init.d/nezha-service</code></pre>



<pre class="wp-block-code"><code>/etc/init.d/nezha-service enable &amp;&amp; /etc/init.d/nezha-service start</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="686" src="http://daoker.cc/wp-content/uploads/2022/11/image-8-1024x686.png" alt="" class="wp-image-617" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-8-1024x686.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-8-300x201.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-8-768x515.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-8.png 1282w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto398.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>青龙面板刷京豆</title>
		<link>https://daoker.cc/daokerto547.html</link>
					<comments>https://daoker.cc/daokerto547.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Thu, 20 Oct 2022 13:45:34 +0000</pubDate>
				<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[搞机]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=547</guid>

					<description><![CDATA[踩坑教程 docker部署青龙面板 设置登录信息和机器人提醒 添加账号CK信息 抓包wskey并转换为CK 操 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">踩坑教程</h1>



<h2 class="wp-block-heading">docker部署青龙面板</h2>



<pre class="wp-block-code"><code>docker run -dit \
-v /docker/ql/config:/ql/config \
-v /docker/ql/log:/ql/log \
-v /docker/ql/db:/ql/db \
-v /docker/ql/scripts:/ql/scripts \
-v /docker/ql/jbot:/ql/jbot \
-p 5700:5700 \
-e ENABLE_HANGUP=true \
-e ENABLE_WEB_PANEL=true \
--name qinglong \
--hostname qinglong \
--restart always \
whyour/qinglong:latest</code></pre>



<h2 class="wp-block-heading">设置登录信息和机器人提醒</h2>




<span style="color: red;">温馨提示：</span>此处内容仅管理员可见！




<h2 class="wp-block-heading">添加账号CK信息</h2>




<span style="color: red;">温馨提示：</span>此处内容仅管理员可见！




<h2 class="wp-block-heading">抓包wskey并转换为CK</h2>



<p>操作平台：安卓手机<br>抓包软件：<a rel="noreferrer noopener" href="https://link.zhihu.com/?target=https%3A//www.vnet-tech.com/zh/" target="_blank">https://www.vnet-tech.com/zh/</a></p>



<h3 class="wp-block-heading"><strong>使用vnet抓包</strong></h3>



<p>1、安装证书：手机安装并运行vnet，首次点击<img src="https://s.w.org/images/core/emoji/15.1.0/72x72/25b6.png" alt="▶" class="wp-smiley" style="height: 1em; max-height: 1em;" />箭头开始抓包会进入安装证书。安装完证书后停止抓包。<br>2、添加应用：安装完证书后，点击<img src="https://s.w.org/images/core/emoji/15.1.0/72x72/25b6.png" alt="▶" class="wp-smiley" style="height: 1em; max-height: 1em;" />箭头上方的◆菜单，添加应用中加入京东APP。<br>3、运行抓包。<br>4、切换到京东APP，下拉刷新京东APP首页。<br>5、再返回VNET软件，点击停止抓包。<br>6、可以看到有很多链接，找到<a rel="noreferrer noopener" href="https://link.zhihu.com/?target=http%3A//im-x.jd.com" target="_blank">http://im-x.jd.com</a>开头的链接，点进去往下滑，找到cookie里的pin和wskey，这样就算获取成功了。</p>



<h3 class="wp-block-heading"><strong>青龙wskey转换脚本</strong></h3>



<p>本身就有转换脚本的，直接跳到第3步</p>



<p>1、青龙面板wskey转换脚本&nbsp;https://github.com/Zy143L/wskey。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>ql repo&nbsp;https://github.com/Zy143L/wskey.git&nbsp;&#8220;wskey&#8221;。</p>
</blockquote>



<p>2、添加到青龙面板计划任务中，手动执行一次，面板会生成新的一条转换任务。</p>



<p>3、添加变量名: JD_WSCK 参数: pin=xxxx;wskey=xxxx; #注意结尾有分号。<br>4、手动执行一次新生成的wskey转换。<br>5、环境变量中会新生成JD_COOKIE</p>



<h2 class="wp-block-heading">拉库</h2>



<pre class="wp-block-code"><code>ql repo https://git.metauniverse-cn.com/https://github.com/shufflewzc/faker3.git "jd_|jx_|gua_|jddj_|jdCookie" "activity|backUp" "^jd&#091;^_]|USER|function|utils|sendNotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql|JDSignValidator|magic|depend|h5sts" "main"</code></pre>



<p>定时 50 7-23/2 * * *</p>



<div class="wp-block-argon-collapse collapse-block shadow-sm collapsed hide-border-left" style="border-left-color:#ffffff00"><div class="collapse-block-title" style="background-color:#ffffff00"><span class="collapse-block-title-inner">定时规则</span><i class="collapse-icon fa fa-angle-down"></i></div><div class="collapse-block-body" style="display: none"><strong>代表意义    分钟      小时    日期      月份     周      命令<br>数字范围    0~59    0~23    1~31    1~12    0~7    需要执行的命令</strong><br>周的数字为 0 或 7 时，都代表“星期天”的意思。<br>另外，还有一些辅助的字符，大概有下面这些：<br>特殊字符 代表意义<br>*(星号) 代表任何时刻都接受的意思。举例来说，0 12 * * * command 日、月、周都是*，就代表着不论何月、何日的礼拜几的12：00都执行后续命令的意思。<br>,(逗号) 代表分隔时段的意思。举例来说，如果要执行的工作是3：00与6：00时，就会是：0 3,6 * * * command时间还是有五列，不过第二列是 3,6 ，代表3与6都适用<br>-(减号) 代表一段时间范围内，举例来说，8点到12点之间的每小时的20分都进行一项工作：20 8-12 * * * command仔细看到第二列变成8-12.代表 8,9,10,11,12 都适用的意思<br>/n(斜线) 那个n代表数字，即是每隔n单位间隔的意思，例如每五分钟进行一次，则：*/5 * * * * command用*与/5来搭配，也可以写成0-59/5，意思相同<br><br>1.每分钟定时执行一次规则：<br>每1分钟执行： */1 * * * <em>或者</em> * * * *<br>每5分钟执行： */5 * * * *<br>2.每小时定时执行一次规则：<br>每小时执行： 0 * * * *或者0 */1 * * *<br>每天上午7点执行：0 7 * * *<br>每天上午7点10分执行：10 7 * * *<br>3.每天定时执行一次规则：<br>每天执行 0 0 * * *<br>4.每周定时执行一次规则：<br>每周执行 0 0 * * 0<br>5.每月定时执行一次规则：<br>每月执行 0 0 1 * *<br>6.每年定时执行一次规则：<br>每年执行 0 0 1 1 *<br>7.其他例子<br>5 * * * * 指定每小时的第5分钟执行一次ls命令<br>30 5 * * * ls 指定每天的 5:30 执行ls命令<br>30 7 8 * * ls 指定每月8号的7：30分执行ls命令<br>30 5 8 6 * ls 指定每年的6月8日5：30执行ls命令<br>30 6 * * 0 ls 指定每星期日的6:30执行ls命令[注：0表示星期天，1表示星期1，以此类推，也可以用英文来表示，sun表示星期天，mon表示星期一等。]<br>30 3 10,20 * * ls 每月10号及20号的3：30执行ls命令[注：“，”用来连接多个不连续的时段]<br>25 8-11 * * * ls 每天8-11点的第25分钟执行ls命令[注：“-”用来连接连续的时段]<br>*/15 * * * * ls 每15分钟执行一次ls命令 [即每个小时的第0 15 30 45 60分钟执行ls命令 ]<br>30 6 */10 * * ls 每个月中，每隔10天6:30执行一次ls命令[即每月的1、11、21、31日是的6：30执行一次ls命令。 ]<br><br>原文链接：https://blog.csdn.net/zzddada/article/details/115356641<img loading="lazy" decoding="async" width="500" height="410" class="wp-image-563" style="width: 500px;" src="http://daoker.cc/wp-content/uploads/2022/10/20181019110802617.png" alt="" srcset="https://daoker.cc/wp-content/uploads/2022/10/20181019110802617.png 411w, https://daoker.cc/wp-content/uploads/2022/10/20181019110802617-300x246.png 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /><br></div></div>



<p>定时生成网站：<a href="https://crontab.guru/" target="_blank" rel="noreferrer noopener">https://crontab.guru/</a></p>



<p>配置文件第15行左右   js py ts so sh</p>



<h2 class="wp-block-heading">添加依赖</h2>



<h3 class="wp-block-heading">安装Node</h3>



<pre class="wp-block-code"><code>cd /usr/local/bin/
</code></pre>



<h4 class="wp-block-heading">进入node中文网获取下载地址</h4>



<p>地址：<a href="http://nodejs.cn/download/" target="_blank" rel="noreferrer noopener">http://nodejs.cn/download/</a></p>



<p>点击全部安装包-选择Linux-x64的文件复制下载链接</p>



<p>这里获取的为https://registry.npmmirror.com/-/binary/node/v16.13.2/node-v16.13.2-linux-x64.tar.gz</p>



<pre class="wp-block-code"><code>wget https://registry.npmmirror.com/-/binary/node/v16.13.2/node-v16.13.2-linux-x64.tar.gz</code></pre>



<pre class="wp-block-code"><code>tar -xvf node-v16.13.2-linux-x64.tar.gz</code></pre>



<pre class="wp-block-code"><code>mv node-v16.13.2-linux-x64 Node.js</code></pre>



<pre class="wp-block-code"><code>cd Node.js</code></pre>



<p>安装依赖组件</p>



<pre class="wp-block-code"><code>yum install gcc gcc-c++</code></pre>



<p></p>



<p>创建文件关联</p>



<pre class="wp-block-code"><code>ln -s /usr/local/bin/Node.js/bin/node /usr/bin/node
ln -s /usr/local/bin/Node.js/bin/npm /usr/bin/npm
ln -s /usr/local/bin/Node.js/bin/npx /usr/bin/npx</code></pre>



<h3 class="wp-block-heading">NodeJs 依赖如下</h3>



<pre class="wp-block-code"><code>crypto-js  
prettytable
dotenv  
jsdom
date-fns  
tough-cookie  
tslib
ws@7.4.3  
ts-md5  
jsdom -g  
jieba  
fs
form-data  
json5  
global-agent  
png-js  
@types/node  
require
typescript  
js-base64  
axios</code></pre>



<h3 class="wp-block-heading">Python3 依赖如下</h3>



<pre class="wp-block-code"><code>requests
canvas  
ping3
jieba</code></pre>



<h3 class="wp-block-heading">Linux 依赖如下</h3>



<pre class="wp-block-code"><code>bizCode
bizMsg  
lxml</code></pre>



<h1 class="wp-block-heading">一键版教程</h1>



<h2 class="wp-block-heading">一键安装</h2>



<p>教程来源：<a href="https://thin-hill-428.notion.site/QL-pannel-Faker-Repository-environment-Setup-45edcbfe90d74d8abb2d71896eab3be7">【新手推荐】青龙稳定版一键配置（QL pannel Faker Repository environment Setup） (notion.site)</a>，其中也有不少坑，遇到不少问题，教程是在centos下，我本人的环境为ubuntu20.04，且已经安装过docker,且代码中他有许多他自己架设的代理加速地址，现在地址已经失效，并且我本人有科学上网环境，所以很多和互联网交互的地址经常404，后面的坑大多也是在这些地方，我都已经改正</p>



<p>本脚本功能：安装docker+安装青龙+青龙端口更改（可选）+CK提交版Ninja（可选）</p>



<pre class="wp-block-code"><code>wget -q https://raw.githubusercontent.com/yanyuwangluo/VIP/main/Scripts/sh/ql.sh -O ql.sh &amp;&amp; bash ql.sh</code></pre>



<p>已有青龙保存CK办法，下载env.sh到本地后再进行安装,安装完成后在环境变量一次性复制添加，打开自动拆分即可。</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="768" height="242" src="http://daoker.cc/wp-content/uploads/2022/11/image-10.png" alt="" class="wp-image-652" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-10.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-10-300x95.png 300w" sizes="auto, (max-width: 768px) 100vw, 768px" /></figure>



<p>使用说明：</p>



<p>1、需要更改青龙端口的按提示操作，不需要的一直按回车</p>



<p>已安装青龙2.11+的用户，一键拉库 没反应就是网络问题</p>



<p>一键配置命令，这里我替换成了我的github,如果执行失败，则收到下载<a href="https://github.com/Daoker01/VIP/blob/main/Scripts/sh/1customCDN.sh">1customCDN.sh</a>文件进容器里执行即可，（后来才发觉这里做无用功了，前面说的失效主要就是这个CDN失效，作者也提供了不带CDN版本的，之前没注意看）</p>



<pre class="wp-block-code"><code>docker exec -it qinglong bash -c "$(curl -fsSL https://github.com/Daoker01/VIP/tree/main/Scripts/sh/1customCDN.sh)"</code></pre>



<p>作者不带cdn版的命令应该是如下，理论应该可以用，我配置好了，就不折腾了。</p>



<pre class="wp-block-code"><code>docker exec -it qinglong bash -c "$(curl -fsSL https://github.com/yanyuwangluo/VIP/blob/main/Scripts/sh/1custom.sh)"</code></pre>



<h2 class="wp-block-heading">依赖安装</h2>



<p>1.一般出现这种错误：(缺依赖)</p>



<p>Error: Cannot find module&nbsp; &#8216;xx&#8217;</p>



<p>操作是：</p>



<p>docker exec -it ql(名称) pnpm install&nbsp; xx</p>



<p>2.一般出现这种错误：(缺文件)</p>



<p>Error: Cannot find module&nbsp; &#8216;./xx&#8217;</p>



<p>操作是：那就很有是拉库命令不完整，请检查或复制完整的拉库命令,看看群置顶↑????</p>



<h3 class="wp-block-heading">一键安装大部分依赖（基于Faker一键脚本安装的青龙</h3>



<p>这里的cdn可用，并且貌似要用cdn才能访问</p>



<pre class="wp-block-code"><code>docker exec -it qinglong bash

curl -fsSL https://git.metauniverse-cn.com/https://raw.githubusercontent.com/shufflewzc/QLDependency/main/Shell/QLOneKeyDependency.sh | sh</code></pre>



<h3 class="wp-block-heading">Python3依赖安装失败修复（基于Faker一键脚本安装的青龙）</h3>



<pre class="wp-block-code"><code>docker exec -it qinglong bash

curl -sS https://bootstrap.pypa.io/get-pip.py | python3</code></pre>



<h3 class="wp-block-heading">本地Sign脚本依赖安装（基于Faker一键脚本安装的青龙）</h3>



<p>我这里安装在root目录下</p>



<pre class="wp-block-code"><code>mkdir -p /root/redis/conf
touch /root/redis/conf/redis.conf
docker run -p 6379:6379 --name redis \
-v /root/redis/data:/data \
-v /root/redis/conf/redis.conf:/etc/redis/redis.conf \
-itd redis redis-server /etc/redis/redis.conf \
--appendonly yes</code></pre>



<p>等待一会如图即可完成。</p>



<p>打开青龙面板-依赖管理-Python3 安装如图的依赖即可。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="279" src="http://daoker.cc/wp-content/uploads/2022/11/image-19-1024x279.png" alt="" class="wp-image-667" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-19-1024x279.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-19-300x82.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-19-768x209.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-19-1536x418.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-19.png 1678w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code>requests
PyExecJS
redis
bs4</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="316" src="http://daoker.cc/wp-content/uploads/2022/11/image-12-1024x316.png" alt="" class="wp-image-660" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-12-1024x316.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-12-300x93.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-12-768x237.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-12-1536x475.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-12.png 2000w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code>moment</code></pre>



<p><strong>如果安装失败，多试几次即可</strong></p>



<p>打开青龙面板-配置文件16行</p>



<p>修改为如图</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="169" src="http://daoker.cc/wp-content/uploads/2022/11/image-16-1024x169.png" alt="" class="wp-image-664" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-16-1024x169.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-16-300x49.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-16-768x127.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-16-1536x253.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-16.png 1882w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>然后运行一次jd_check_dependent.py 显示如图即可</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="231" src="http://daoker.cc/wp-content/uploads/2022/11/image-18-1024x231.png" alt="" class="wp-image-666" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-18-1024x231.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-18-300x68.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-18-768x173.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-18-1536x346.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-18.png 1709w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="820" src="http://daoker.cc/wp-content/uploads/2022/11/image-17-1024x820.png" alt="" class="wp-image-665" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-17-1024x820.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-17-300x240.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-17-768x615.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-17.png 1044w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">qq机器人相关</h3>



<p><a href="https://thin-hill-428.notion.site/XDD-PLUS-7d7bd46a482e41e6b67fdea0f08851fb">青龙面板XDD-PLUS安装教程 (notion.site)</a></p>



<p><a href="https://blog.csdn.net/weixin_44501554/article/details/124290987">XDD-PLUS安装—手把手教学（2022年4月24日更新）_Hhhhhxr0601的博客-CSDN博客_xdd安装</a></p>



<p><a href="https://blog.csdn.net/FishBean/article/details/121819862">(2条消息) 青龙2.10.13 稳定版+xdd-plus+阿东教程保姆教程（2022年7月11日更新）_beansqq的博客-CSDN博客_青龙xdd</a></p>



<p><a href="https://github.com/764763903a/xdd-plus/releases/tag/v1.7">Release V1.7 · 764763903a/xdd-plus (github.com)</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto547.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>使用hyper v建立openwrt虚拟机</title>
		<link>https://daoker.cc/daokerto598.html</link>
					<comments>https://daoker.cc/daokerto598.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Fri, 04 Nov 2022 07:41:20 +0000</pubDate>
				<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=598</guid>

					<description><![CDATA[用了hyper-v之后才发觉，效率是真的高，比vm强多了，不过就是使用U盘目前不太方便 参考文献： 使用hyp [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>用了hyper-v之后才发觉，效率是真的高，比vm强多了，不过就是使用U盘目前不太方便</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>参考文献：</p>
<cite><a href="https://www.bilibili.com/read/cv15465277/">使用hyper v建立openwrt旁路由虚拟机 &#8211; 哔哩哔哩 (bilibili.com)</a></cite></blockquote>



<p>1.第一步是下载一个openwrt固件，这里并没有什么强制要求，下载一个自己喜欢的即可。</p>



<p>2.打开hyper v管理器，</p>



<p>在hyper v的右边找到新建&#8211;硬盘。</p>



<ul class="wp-block-list">
<li>新建虚拟磁盘<br>接下来会有一个简单的引导，按着需求一步步操作即可。</li>



<li>直接下一步</li>



<li>磁盘类型，这里选第二个<br>固定大小，openwrt占用小一次分够，没必要使用动态<br>这里是虚拟磁盘的名字和路径，取一个自己喜欢的即可<br>根据个人需求，一般十多个G就够用了，物理磁盘尽可能选在系统盘，这样硬盘休眠能更省电。<br>第三步，写入系统</li>
</ul>



<p>3.在资源管理器中右键此电脑，选择管理</p>



<ul class="wp-block-list">
<li>进入管理</li>



<li>在左侧找到存储&#8211;磁盘管理</li>



<li>选择附件VHD，把虚拟磁盘挂载上</li>



<li>路径是刚刚创建的虚拟磁盘的路径</li>



<li>在虚拟磁盘处邮件，转换为mbr磁盘</li>
</ul>



<p>4.接下来用写盘工具写入即可，我使用的是Rufus</p>



<p>设备选择虚拟磁盘，镜像文件选择下载的openwrt固件（*.img），然后开始写入<br>提示数据会被删除，无视即可，直接确认下一步</p>



<p>等待写入完成后回到刚刚的磁盘管理，把虚拟硬盘脱机。</p>



<p>右键虚拟磁盘，脱机</p>



<p>5.创建虚拟交换机</p>



<p>在hyper v管理器中，选择虚拟交换机管理器，新建虚拟交换机。</p>



<p>创建外部交换机<br>分配硬件选择一个网卡（最好是没在使用的），并勾选共享</p>



<p>6.新建虚拟机</p>



<p>回到hyper v管理器，选择新建&#8211;虚拟机</p>



<p>新建一个虚拟机<br>名称随意<br>此处选择第一代<br>内存分配1~2G<br>选择刚刚的虚拟交换机<br>选择刚刚的虚拟磁盘<br>创建虚拟机后先不启动，进行些额外设置</p>



<p>7.选择虚拟机，在右边找到设置并打开<br>关闭动态内存<br>处理器数量根据自己cpu线程数决定</p>



<p>8.为虚拟机添加wan  lan  口</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="736" height="694" src="http://daoker.cc/wp-content/uploads/2022/11/image.png" alt="" class="wp-image-599" srcset="https://daoker.cc/wp-content/uploads/2022/11/image.png 736w, https://daoker.cc/wp-content/uploads/2022/11/image-300x283.png 300w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="736" height="694" src="http://daoker.cc/wp-content/uploads/2022/11/image-1.png" alt="" class="wp-image-600" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-1.png 736w, https://daoker.cc/wp-content/uploads/2022/11/image-1-300x283.png 300w" sizes="auto, (max-width: 736px) 100vw, 736px" /></figure>



<p></p>
</div>
</div>



<p>然后把他们都添加到刚才创建的虚拟机里面，再网络适配器里修改lan网卡ip和路由器的lan口ip在同一网段，然后进入openwrt开始后续操作。</p>



<h2 class="wp-block-heading">注意</h2>



<p>lan口开启ip动态伪装，wan口两个都开才能正确联网</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="113" src="http://daoker.cc/wp-content/uploads/2022/11/image-9-1024x113.png" alt="" class="wp-image-623" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-9-1024x113.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-9-300x33.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-9-768x85.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-9-1536x170.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-9.png 1546w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">windows下读取linux分区</h2>



<p>Ext2Fsd是一款方便快捷，简易实用的系统分区工具，可以在Windows下读取Linux分区。。。。。。。</p>



<p><a href="https://soft.3dmgame.com/down/214543.html">https://soft.3dmgame.com/down/214543.html</a></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto598.html/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
