<?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>小编 &#8211; Daoker小站</title>
	<atom:link href="https://daoker.cc/author/jhj/feed" rel="self" type="application/rss+xml" />
	<link>https://daoker.cc</link>
	<description>个人随笔小记</description>
	<lastBuildDate>Thu, 30 Apr 2026 18:11:55 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://daoker.cc/wp-content/uploads/2022/08/cropped-daoker_blog_s-32x32.png</url>
	<title>小编 &#8211; Daoker小站</title>
	<link>https://daoker.cc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[docker]使用甲骨文云ARM搭建ServerStatus服务端</title>
		<link>https://daoker.cc/jhjto1084.html</link>
					<comments>https://daoker.cc/jhjto1084.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Mon, 27 Mar 2023 12:19:35 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[玩机]]></category>
		<category><![CDATA[甲骨文云]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1084</guid>

					<description><![CDATA[很喜欢ServerStatus大概是因为它有三网延迟监控，所有我基本都是哪吒探针和ServerStatus一起 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>很喜欢ServerStatus大概是因为它有三网延迟监控，所有我基本都是哪吒探针和ServerStatus一起用，我的ServerStatus是部署在一台pacificrack的服务器上，前阵子他的IP被防火墙墙了，换Ip又太贵，更惨的是过了一台，挂了科学上网也连不上这台服务器，pacificrack官网也打不开，有人说疑似pacificrack要跑路了（我写文章时已经断断续续的恢复），于是决定把它迁移到我稍微有点空闲的甲骨文ARM服务器上，使用GitHub上的docker容器，发觉报错，看来是没有适配ARM啊(2024-11-12更新，最新版已经适配ARM版docker)，于是就只好编译安装，然后把web端挂载到docker里面。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="cppla" data-project="ServerStatus"><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/cppla/ServerStatus" target="_blank" rel="noopener"><span class="github-info-card-name">cppla/ServerStatus</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>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="390" src="https://daoker.cc/wp-content/uploads/2023/03/image-17-1024x390.png" alt="" class="wp-image-1085" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-17-1024x390.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-17-300x114.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-17-768x293.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-17.png 1288w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>2.下载GitHub上的ServerStatus并解压；</p>



<p>3.进入解压后的ServerStatus的web目录，创建提供http文件服务的容器</p>



<pre class="wp-block-code"><code>docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4</code></pre>



<p>4.进入解压后的ServerStatus的server目录</p>



<p>安装编译环境</p>



<pre class="wp-block-code"><code>apt-get -y install gcc g++ make libcurl4-openssl-dev</code></pre>



<p>编译</p>



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



<p>5.把旧服务器上的配置文件覆盖新的配置文件</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1023" height="83" src="https://daoker.cc/wp-content/uploads/2023/03/image-19.png" alt="" class="wp-image-1087" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-19.png 1023w, https://daoker.cc/wp-content/uploads/2023/03/image-19-300x24.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-19-768x62.png 768w" sizes="(max-width: 1023px) 100vw, 1023px" /></figure>



<p>执行下列命令启动程序并挂载在后台，也可以加入开机启动，在本博客有讲到，我这里就先不设置了</p>



<pre class="wp-block-code"><code>nohup ./sergate 2&gt;1 &amp;
</code></pre>



<p>6.使用ip加端口访问，发觉可以正常收到服务器信息，我这里只改了一台阿里云的服务器，所有只接收到一台的信息，其他客户端可以依次下载GitHub的ServerStatus并设置即可，这里主要关注服务端</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="447" src="https://daoker.cc/wp-content/uploads/2023/03/image-20-1024x447.png" alt="" class="wp-image-1088" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-20-1024x447.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-20-300x131.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-20-768x335.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-20.png 1435w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>2026/05/01<br>工作后就太忙了，好久没有更新了，今天继续维护下，发觉还增加了很多功能嘛</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="445" src="https://daoker.cc/wp-content/uploads/2023/03/image-21-1024x445.png" alt="" class="wp-image-1292" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-21-1024x445.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-21-300x130.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-21-768x334.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-21-1536x667.png 1536w, https://daoker.cc/wp-content/uploads/2023/03/image-21.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1084.html/feed</wfw:commentRss>
			<slash:comments>33</slash:comments>
		
		
			</item>
		<item>
		<title>自建docker镜像加速服务</title>
		<link>https://daoker.cc/jhjto1264.html</link>
					<comments>https://daoker.cc/jhjto1264.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 21 Dec 2024 03:33:18 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1264</guid>

					<description><![CDATA[在上一个文章部署股票神器instock过程中，虽然作者提供了打包好的镜像文件，但是不想使用，想自己拉取。但是又 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>在<a href="https://daoker.cc/jhjto1261.html">上一个文章部署股票神器instock</a>过程中，虽然作者提供了打包好的镜像文件，但是不想使用，想自己拉取。但是又想起之前自己群辉的docker套件中的注册表功能基本用不了，每次都是自己通过命令行的方式拉取镜像，这需要提前把网关改到旁路由且拉取十分的不稳定。虽然也有别人搭建的镜像加速服务可以使用（诸如<a href="https://dockerpull.org/">https://dockerpull.org/</a>），但是考虑到安全性，还是决定自己搭建。</p>



<h2 class="wp-block-heading">服务搭建</h2>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="dqzboy" data-project="Docker-Proxy"><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/dqzboy/Docker-Proxy" target="_blank" rel="noopener"><span class="github-info-card-name">dqzboy/Docker-Proxy</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>作者这里选择在云服务上自己搭建，虽然也有用CF的work搭建的方法（<a href="https://www.znnu.com/28.html">利用Cloudflare Workers搭建Docker镜像加速服务</a>）.</p>



<p>1.下载<a href="https://github.com/dqzboy/Docker-Proxy/tree/main/config">config</a>目录下对应的<code>yml</code>文件到云服务器上。我这里只需要<strong><em>docker-hub.yml</em></strong>，也可直接新建文件插入以下代码</p>



<pre class="wp-block-code"><code>version: 0.1
log:
  fields:
    service: registry
storage:
  filesystem:
    rootdirectory: /var/lib/registry
  #inmemory: #此存储驱动程序不会在运行期间保留任何数据,适合磁盘空间下的机器使用(但是会使用内存开销,只适合测试)
  delete:
    enabled: true
  cache:
    blobdescriptor: inmemory   
    blobdescriptorsize: 10000
  maintenance:
    uploadpurging:
      enabled: true
      age: 168h
      interval: 24h
      dryrun: false
    readonly:
      enabled: false
http:
  addr: :5000
  headers:
    X-Content-Type-Options: &#091;nosniff]
    Access-Control-Allow-Origin: &#091;'*']
    Access-Control-Allow-Methods: &#091;'HEAD', 'GET', 'OPTIONS', 'DELETE']
    Access-Control-Allow-Headers: &#091;'Authorization', 'Accept', 'Cache-Control']
    Access-Control-Max-Age: &#091;1728000]
    Access-Control-Allow-Credentials: &#091;true]
    Access-Control-Expose-Headers: &#091;'Docker-Content-Digest']

health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3

proxy:
  remoteurl: https://registry-1.docker.io
  username: 
  password:
  ttl: 168h  </code></pre>



<p>2.docker-compose.yaml文件编辑</p>



<pre class="wp-block-code"><code>version: '3'
services:
  ## docker hub
  dockerhub:
    container_name: reg-docker-hub
    image: dqzboy/registry:latest
    restart: always
    environment:
      - OTEL_TRACES_EXPORTER=none
      # 如果需要配置代理，请把下面的注释去掉，并配置你的代理地址
      #- http_proxy=http://host:port
      #- https_proxy=http://host:port
    volumes:
      #这里需要注意registry-hub.yml文件的具体路径
      - /docker/docker-proxy/registry/data:/var/lib/registry
      - /docker/docker-proxy/registry-hub.yml:/etc/distribution/config.yml
      #- ./htpasswd:/auth/htpasswd
    ports:
      - 51000:5000
    networks:
      - registry-net
  ## UI
  registry-ui:
    container_name: registry-ui
    image: dqzboy/docker-registry-ui:latest
    environment:
      # UI所关联的REGISTRY容器服务地址,这里我是后来才更改的，原来是ip:端口的模式
      - DOCKER_REGISTRY_URL=https://hub.daoker.cc
      # &#091;必须]使用 openssl rand -hex 16 生成唯一值
      - SECRET_KEY_BASE=9f18244a1e1179fa5aa4a06a335d01b2
      # 启用Image TAG 的删除按钮
      - ENABLE_DELETE_IMAGES=true
      - NO_SSL_VERIFICATION=true
    restart: always
    ports:
      - 50000:8080
    networks:
      - registry-net
 
networks:
  registry-net:</code></pre>



<p>3.在NPM里将域名反代至相关端口</p>



<p>可视化页面：<a href="http://ui.daoker.cc">ui.daoker.cc</a></p>



<p>加速地址：<a href="http://hub.daoker.cc">hub.daoker.cc</a></p>



<p>使用方法docker pull hub.daoker.cc/library/nginx:latest</p>



<p>library必须有，github上有省略的办法，但是在npm的规则编辑里没有成功，先凑合用。</p>



<h2 class="wp-block-heading">所遇问题及解决方案</h2>



<p>1.添加hub.daoker.cc/library至黑群晖docker中的注册表加速地址后，导致docker套件直接无法使用</p>



<p>（1）查看日志文件/var/log/upstart/pkg-Docker-dockerd.log</p>



<p>发现是我改的加速地址惹得锅。在docker服务要启动sock的时候，因为无法加载json配置文件失败，json文件有错</p>



<p>（2）编辑配置文件/var/packages/Docker/etc/dockerd.json</p>



<p>删除registry-mirrors的值，如下所示，只保留[]</p>



<pre class="wp-block-code"><code>{
"data-root" : "/var/packages/Docker/target/docker",
"log-driver" : "db",
"registry-mirrors" : &#091;]
}</code></pre>



<p>（3）到套件中心启动docker，成功搞定</p>



<p>2.在黑群辉上使用自建的加速地址拉取镜像，返回x509: certificate signed by unknown authority，其它系统环境上并没有此问题</p>



<p> 真正的解决方案是更新系统的ca证书，从letsencrypt.org网站中获取证书更新到系统中</p>



<pre class="wp-block-code"><code>sudo -i &amp;&amp; cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.ORIG &amp;&amp; curl -k "https://letsencrypt.org/certs/isrgrootx1.pem" &gt;&gt; /etc/ssl/certs/ca-certificates.crt &amp;&amp; reboot
</code></pre>



<p>3.找资料时发现的小tips，留着以后备用</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>（3）&nbsp; &nbsp; docker的容器镜像如何迁移到其他设备？<br>解答：<br>群晖的docker管理界面里，容器-设置-导出-可以选择导出内容和设置，以及只导出设置。导出后是一个txz文件，例如transmission挂了几百个种，想迁移设备咋办？如果不拔盘整个迁移的话，可以用这个功能导出容器，在其他设备docker直接导入即可。（注意data目录、config目录要重新配置）<br>（4）&nbsp; &nbsp; 重点干货来了，如果我手贱卸了docker，例如我这次为了定位，卸载、重装了docker几十次（当然卸载时没勾选干掉容器镜像和数据），且没做提前做容器导出备份（docker都启动不了，导出个毛啊），此时我怎么恢复docker数据？<br>解答：<br>首先，在你原来docker的存储空间位置装上docker，此时注意存储空间下会有2个目录，如果你都被挪，自然就好了。如果要无界面备份的话，我再说说这两个目录作用：<br>目录1：存储空间下@docker目录<br>你有多少个容器，容器的文件、docker本身的配置，各类数据都在这里面，卸载时这个目录不会被清空，所以安装后就回来了。如果在docker无法启动时要备份docker数据，第一就是备份这个目录，今后在其他地方安装后，把这个目录的东西盖回去。<br>目录2：存储空间下docker目录</p>



<p>这是一个共享文件夹，各容器的config、data目录都在这下面，备份并盖回去。当然，如果没挪位置，重装后自然就好了。</p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1264.html/feed</wfw:commentRss>
			<slash:comments>36</slash:comments>
		
		
			</item>
		<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>【入狱指南】机场面板v2board与XrayR后端三协议搭建，（支付系统、邮件系统、中转隧道只做了解）</title>
		<link>https://daoker.cc/jhjto935.html</link>
					<comments>https://daoker.cc/jhjto935.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 03:16:49 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[入狱系列]]></category>
		<category><![CDATA[奇奇怪怪]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[玩机]]></category>
		<category><![CDATA[甲骨文云]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=935</guid>

					<description><![CDATA[我的vps机器虽然不多，但是要用到上网服务的机器比较多，手机、平板、小主机、实验室台式双系统、笔记本电脑双系统 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>我的vps机器虽然不多，但是要用到上网服务的机器比较多，手机、平板、小主机、实验室台式双系统、笔记本电脑双系统、还有偶尔给朋友用，每次修改节点信息后，使用相关设备发觉使用不了，然后又要去开x-ui面板导入，非常的麻烦，于是就想到了机场的管理模式，只用更新订阅就行，于是打算自己给自己搭个机场用用。只做私用，销售和分享有入狱风险，哈哈哈。</p>



<p></p>



<p>v2board项目地址：</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="v2board" data-project="v2board"><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/v2board/v2board" target="_blank" rel="noopener"><span class="github-info-card-name">v2board/v2board</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>文档：<a href="https://v2board.com/CHANGELOG.html" target="_blank" rel="noreferrer noopener">https://v2board.com/CHANGELOG.html</a></p>



<p>视频教程：</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://www.youtube.com/watch?v=V8of3uAfK1c
</div></figure>



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




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




<h2 class="wp-block-heading">XrayR对接</h2>



<p>装了v2board后，我发觉只要更新订阅链接，然后节点的密码就会改变，并且把节点信息添加到v2board时也没有密码选项，然后仔细看了上面的视频，才知道，原来面板可以和后面的节点服务进行通信，我的x-ui不知道可不可以，但是视频用的XrayR貌似也挺方便。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="XrayR-project" data-project="XrayR"><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/XrayR-project/XrayR" target="_blank" rel="noopener"><span class="github-info-card-name">XrayR-project/XrayR</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>




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




<h2 class="wp-block-heading">acme.sh命令</h2>



<p>查看已经签名的证书：</p>



<pre class="wp-block-code"><code>./.acme.sh/acme.sh --list</code></pre>



<p>移除某个域名的证书：</p>



<p>./.acme.sh/acme.sh &#8211;remove -d [域名]</p>



<h2 class="wp-block-heading">报错解决</h2>



<p>1.rejected proxy/vmess/encoding: invalid user > proxy/vmess: Not Found</p>



<pre class="wp-block-code"><code>apt-get install -y ntp &amp;&amp; /lib/systemd/systemd-sysv-install enable ntp</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto935.html/feed</wfw:commentRss>
			<slash:comments>35</slash:comments>
		
		
			</item>
		<item>
		<title>【老司机必备】使用telegram_media_downloader将Telegram视频通过Bot下载到远程服务器，以本地黑群晖NAS为例</title>
		<link>https://daoker.cc/jhjto1164.html</link>
					<comments>https://daoker.cc/jhjto1164.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 28 Oct 2023 04:34:29 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[奇奇怪怪]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[机器人]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1164</guid>

					<description><![CDATA[在黑群晖上使用docker安装 下载配置文件 在Github项目仓库中下载以下文件到群辉中建立的telegra [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>概述</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="tangyoha" data-project="telegram_media_downloader"><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/tangyoha/telegram_media_downloader" target="_blank" rel="noopener"><span class="github-info-card-name">tangyoha/telegram_media_downloader</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>
<cite><code><strong>telegram_media_downloader</strong></code>是一个支持下载音频、文档、照片、视频、视频笔记、语音的 Telegram 下载工具， 可以下载禁止转发和保存的文件哦<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f47b.png" alt="👻" class="wp-smiley" style="height: 1em; max-height: 1em;" />。跨平台，支持web查看下载进度 ，支持bot下发指令下载，支持下载已经加入的私有群但是限制下载的资源</cite></blockquote>



<h2 class="wp-block-heading">在黑群晖上使用docker安装</h2>



<h3 class="wp-block-heading">下载配置文件</h3>



<p>在Github项目仓库中下载以下文件到群辉中建立的telegram_media_downloader的安装目录下</p>



<ul class="wp-block-list">
<li>config.yaml</li>



<li>data.yaml</li>
</ul>



<h3 class="wp-block-heading">拉取镜像并创建web服务容器</h3>



<p>在群辉docker注册表中搜索angyoha/telegram_media_downloader，拉取镜像并创建容器，群辉本地端口我设置的5008，容器本身的端口是5000，映射提前建立好文件夹如下：</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="989" height="295" src="https://daoker.cc/wp-content/uploads/2023/10/image.png" alt="" class="wp-image-1165" style="aspect-ratio:3.352542372881356;width:604px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image.png 989w, https://daoker.cc/wp-content/uploads/2023/10/image-300x89.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-768x229.png 768w" sizes="auto, (max-width: 989px) 100vw, 989px" /></figure>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="573" src="https://daoker.cc/wp-content/uploads/2023/10/image-1-1024x573.png" alt="" class="wp-image-1166" style="aspect-ratio:1.787085514834206;width:613px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-1-1024x573.png 1024w, https://daoker.cc/wp-content/uploads/2023/10/image-1-300x168.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-1-768x430.png 768w, https://daoker.cc/wp-content/uploads/2023/10/image-1.png 1078w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="528" height="358" src="https://daoker.cc/wp-content/uploads/2023/10/image-2.png" alt="" class="wp-image-1167" style="aspect-ratio:1.4748603351955307;width:528px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-2.png 528w, https://daoker.cc/wp-content/uploads/2023/10/image-2-300x203.png 300w" sizes="auto, (max-width: 528px) 100vw, 528px" /></figure>



<h3 class="wp-block-heading">配置config.yaml文件</h3>



<pre class="wp-block-code"><code>api_hash: **********************
api_id: **********
web_host: 0.0.0.0
bot_token: ****************************
file_formats:
  audio:
  - all
  document:
  - all
  video:
  - all
file_path_prefix:
- chat_title
- media_datetime
media_types:
- audio
- photo
- video
- document
- voice
- video_note
# in linux please use /
save_path: /app/downloads</code></pre>



<p>其中api_hash和api_id需要登录 <a rel="noreferrer noopener" href="https://my.telegram.org/apps" target="_blank">TG 开发者平台</a> 获取，bot_token可以通过电报机器人BotFather创建并获取</p>



<p><a href="https://github.com/tangyoha/telegram_media_downloader/wiki/%E4%B8%AD%E6%96%87%E6%95%99%E7%A8%8B#3-%E8%8E%B7%E5%8F%96-api_id-%E5%92%8C-api_hash">https://github.com/tangyoha/telegram_media_downloader/wiki/%E4%B8%AD%E6%96%87%E6%95%99%E7%A8%8B#3-%E8%8E%B7%E5%8F%96-api_id-%E5%92%8C-api_hash</a></p>



<p>发生错误可以多试几次，标题和短名字中尽量别出现空格</p>



<h3 class="wp-block-heading">创建下载服务容器并启动web服务容器</h3>



<p>连接上群辉的SSH,并执行如下命令，这里我第二步创建的容器名为tangyoha-telegram_media_downloader1，配置文件映射根据自己情况来</p>



<p>首先创建下载服务容器</p>



<pre class="wp-block-code"><code>docker run -itd --name telegram_media_downloader -v /volume1/docker/telegram_media/config.yaml:/app/config.yaml -v /volume1/docker/telegram_media/sessions/:/app/sessions tangyoha/telegram_media_downloader:latest
</code></pre>



<p>然后启动第2步时创建的容器，并根据提示输入你的手机号码（包含国家前缀） 和 验证码（来自TG客户端）。</p>



<pre class="wp-block-code"><code>docker start -i tangyoha-telegram_media_downloader1</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="980" height="296" src="https://daoker.cc/wp-content/uploads/2023/10/image-3.png" alt="" class="wp-image-1168" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-3.png 980w, https://daoker.cc/wp-content/uploads/2023/10/image-3-300x91.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-3-768x232.png 768w" sizes="auto, (max-width: 980px) 100vw, 980px" /></figure>



<p>打开web端验证下，同时只需将下载的连接或者内容转发给机器人就可以开始下载啦</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="283" src="https://daoker.cc/wp-content/uploads/2023/10/image-4-1024x283.png" alt="" class="wp-image-1169" style="aspect-ratio:3.618374558303887;width:632px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2023/10/image-4-1024x283.png 1024w, https://daoker.cc/wp-content/uploads/2023/10/image-4-300x83.png 300w, https://daoker.cc/wp-content/uploads/2023/10/image-4-768x213.png 768w, https://daoker.cc/wp-content/uploads/2023/10/image-4-1536x425.png 1536w, https://daoker.cc/wp-content/uploads/2023/10/image-4.png 1788w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="568" height="978" src="https://daoker.cc/wp-content/uploads/2023/10/未命名1698467504.png" alt="" class="wp-image-1171" srcset="https://daoker.cc/wp-content/uploads/2023/10/未命名1698467504.png 568w, https://daoker.cc/wp-content/uploads/2023/10/未命名1698467504-174x300.png 174w" sizes="auto, (max-width: 568px) 100vw, 568px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1164.html/feed</wfw:commentRss>
			<slash:comments>19</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 loading="lazy" 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="auto, (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>Bitwarden迁移</title>
		<link>https://daoker.cc/jhjto1070.html</link>
					<comments>https://daoker.cc/jhjto1070.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Fri, 24 Mar 2023 03:45:03 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1070</guid>

					<description><![CDATA[Bitwarden 是一款开源密码管理器，它会将所有密码加密存储在服务器上，它的工作方式与 LastPass、 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://daoker.cc/wp-content/uploads/2023/03/image-13-1024x423.png" alt="" class="wp-image-1071" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-13-1024x423.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-13-300x124.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-13-768x317.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-13.png 1536w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre id="block-2fc0a2c8-06e5-4248-8371-b31db72c70cd" class="wp-block-preformatted">Bitwarden 是一款开源密码管理器，它会将所有密码加密存储在服务器上，它的工作方式与 LastPass、1Password 或 Dashlane 相同。</pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="546" src="https://daoker.cc/wp-content/uploads/2023/03/image-14-1024x546.png" alt="" class="wp-image-1072" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-14-1024x546.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-14-300x160.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-14-768x410.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-14.png 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-preformatted">官方的版本搭建对服务器要求很高，搭建不容易，GitHub上有人用 Rust 实现了 Bitwarden 服务器，项目叫 vaultwarden，并且提供了 Docker 镜像，这个实现更进一步降低了对机器配置的要求，并且 Docker 镜像体积很小，部署非常方便。这个项目目前在GitHub也有9.8k的star，非常受欢迎。
此外，官方服务器中需要付费订阅的一些功能，在这个实现中是免费的。</pre>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="dani-garcia" data-project="vaultwarden"><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/dani-garcia/vaultwarden" target="_blank" rel="noopener"><span class="github-info-card-name">dani-garcia/vaultwarden</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>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="772" height="614" src="https://daoker.cc/wp-content/uploads/2023/03/image-15.png" alt="" class="wp-image-1073" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-15.png 772w, https://daoker.cc/wp-content/uploads/2023/03/image-15-300x239.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-15-768x611.png 768w" sizes="auto, (max-width: 772px) 100vw, 772px" /></figure>



<p>我的Bitwarden原本在国外，后来ip被墙了无法使用，因此决定把它搬到国内。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="115" src="https://daoker.cc/wp-content/uploads/2023/03/image-16-1024x115.png" alt="" class="wp-image-1076" srcset="https://daoker.cc/wp-content/uploads/2023/03/image-16-1024x115.png 1024w, https://daoker.cc/wp-content/uploads/2023/03/image-16-300x34.png 300w, https://daoker.cc/wp-content/uploads/2023/03/image-16-768x86.png 768w, https://daoker.cc/wp-content/uploads/2023/03/image-16.png 1171w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>1.复制旧服务器上的挂载的目录文件到新服务器</p>



<p>2.docker run起来</p>



<pre class="wp-block-code"><code>docker run -d --name bitwardenrs \
  --restart unless-stopped \
  -e WEBSOCKET_ENABLED=true \
  -v /docker/bitwaden/:/data/ \
  -p 6687:80 \
  -p 3012:3012 \
  vaultwarden/server:latest</code></pre>



<p>3.设置域名解析和反向代理</p>



<h2 class="wp-block-heading">2024年2月21日再次迁移</h2>



<p>国内的阿里云服务器也到期了，续费又太贵，于是新换了1年的腾讯云。但是不想每年都迁移一次，还要涉及域名备案迁移等等特别麻烦，因此直接部署回本地的群辉上安心也放心。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1070.html/feed</wfw:commentRss>
			<slash:comments>33</slash:comments>
		
		
			</item>
		<item>
		<title>【AI翻唱】从So-VITS-SVC到DDSP-SVC 3.0（小显存，旧显卡福音） </title>
		<link>https://daoker.cc/jhjto1114.html</link>
					<comments>https://daoker.cc/jhjto1114.html#respond</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Tue, 20 Jun 2023 02:45:24 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1114</guid>

					<description><![CDATA[原本看了零度的视频，觉得&#160;So-VITS-SVC真牛，于是趁这段时间比较空闲，打算部署一个，用自己的 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>原本看了零度的视频，觉得&nbsp;So-VITS-SVC真牛，于是趁这段时间比较空闲，打算部署一个，用自己的声音作为训练，然后翻唱歌曲。然而发觉我的GTX 960 4G 版根本跑不动So-VITS-SVC，于是在网上找到了替代的DDSP-SVC 3.0。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1114.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PVE中LXC容器安装ubuntu套娃docker</title>
		<link>https://daoker.cc/jhjto1101.html</link>
					<comments>https://daoker.cc/jhjto1101.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Wed, 12 Apr 2023 13:31:33 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1101</guid>

					<description><![CDATA[在pve里安装ubuntu系统的vm虚拟机再安装docker较耗费资源，在lxc容器里安装ubuntu再套娃d [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>在pve里安装ubuntu系统的vm虚拟机再安装docker较耗费资源，在lxc容器里安装ubuntu再套娃docker就能节省很多资源。</p>



<h2 class="wp-block-heading">lxc容器安装ubuntu</h2>



<p>主要设置：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="910" height="644" src="https://daoker.cc/wp-content/uploads/2023/04/image.png" alt="" class="wp-image-1102" srcset="https://daoker.cc/wp-content/uploads/2023/04/image.png 910w, https://daoker.cc/wp-content/uploads/2023/04/image-300x212.png 300w, https://daoker.cc/wp-content/uploads/2023/04/image-768x544.png 768w" sizes="auto, (max-width: 910px) 100vw, 910px" /></figure>



<p>选项-功能中进行如下设置：</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="397" src="https://daoker.cc/wp-content/uploads/2023/04/image-1-1024x397.png" alt="" class="wp-image-1103" srcset="https://daoker.cc/wp-content/uploads/2023/04/image-1-1024x397.png 1024w, https://daoker.cc/wp-content/uploads/2023/04/image-1-300x116.png 300w, https://daoker.cc/wp-content/uploads/2023/04/image-1-768x298.png 768w, https://daoker.cc/wp-content/uploads/2023/04/image-1.png 1080w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>修改配置文件：</p>



<p>我们需要编辑这个lxc容器的配置文件，保证docker容器的权限，注意此处的id需要根据实际情况修改</p>



<pre class="wp-block-code"><code>vim /etc/pve/lxc/id.conf</code></pre>



<p>在最后添加以下内容</p>



<pre class="wp-block-code"><code>lxc.apparmor.profile: unconfined  
lxc.cgroup.devices.allow: a  
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 10:200 rwm  
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file</code></pre>



<h2 class="wp-block-heading">安装docker.io</h2>



<pre class="wp-block-code"><code>apt install docker.io</code></pre>



<p>接下来就可以愉快的run起来了</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/jhjto1101.html/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Microsoft365_E5开发者账号申请及自建网页版续签服务</title>
		<link>https://daoker.cc/jhjto1092.html</link>
					<comments>https://daoker.cc/jhjto1092.html#comments</comments>
		
		<dc:creator><![CDATA[小编]]></dc:creator>
		<pubDate>Sat, 01 Apr 2023 14:05:06 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1092</guid>

					<description><![CDATA[Microsoft365_E5开发者账号申请 注册入口：https://developer.microsoft [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Microsoft365_E5开发者账号申请</h2>



<p>注册入口：<a href="https://developer.microsoft.com/zh-cn/microsoft-365/dev-program">https://developer.microsoft.com/zh-cn/microsoft-365/dev-program</a></p>



<p>1T改成5T：<a href="https://admin.onedrive.com/?v=StorageSettings">https://admin.onedrive.com/?v=StorageSettings</a></p>



<p>添加新用户：<a href="https://admin.microsoft.com/">https://admin.microsoft.com/</a></p>



<p>续签API设置：<a href="https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps">https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps</a></p>



<h2 class="wp-block-heading">自建网页版续签服务</h2>



<p>Microsoft365_E5开发者账号送office365全家桶和5T的onedrive用起来还是挺香的，之前学习的零度解说的教程使用别人搭建的续签服务，后来失效了；有专门的续签软件，但是只支持Windows端，十分麻烦，今天看到了科技lion讲的一个docker容器，那果断pull run起来。</p>



<p>项目地址：</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="hongyonghan" data-project="Docker_Microsoft365_E5_Renew_X"><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/hongyonghan/Docker_Microsoft365_E5_Renew_X" target="_blank" rel="noopener"><span class="github-info-card-name">hongyonghan/Docker_Microsoft365_E5_Renew_X</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.创建容器：</p>



<p>x86:</p>



<pre class="wp-block-code"><code>docker run -d -p 1066:1066 -e TZ=Asia/Shanghai --name ms365  hanhongyong/ms365-e5-renew-x:latest</code></pre>



<p>ARM:</p>



<pre class="wp-block-code"><code>docker run -d -p 1066:1066 -e TZ=Asia/Shanghai --name ms365  hanhongyong/ms365-e5-renew-x:arm</code></pre>



<p>初始密码为：123456</p>



<p>创建后记得放开端口，设置完成后可以关闭端口或者指定个域名，确保安全</p>



<p>2.修改密码</p>



<p>在容器的命令行里，修改/app/Deploy目录下的Config.xml文件并重启容器生效</p>



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