<?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>玩docker &#8211; Daoker小站</title>
	<atom:link href="https://daoker.cc/category/%E7%8E%A9docker/feed" rel="self" type="application/rss+xml" />
	<link>https://daoker.cc</link>
	<description>个人随笔小记</description>
	<lastBuildDate>Sun, 16 Feb 2025 04:22:12 +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>玩docker &#8211; Daoker小站</title>
	<link>https://daoker.cc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>黑裙-飞牛OS后hyperbackup的替代品duplicati</title>
		<link>https://daoker.cc/daokerto1278.html</link>
					<comments>https://daoker.cc/daokerto1278.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Sun, 16 Feb 2025 04:22:10 +0000</pubDate>
				<category><![CDATA[NAS]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[玩机]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1278</guid>

					<description><![CDATA[飞牛OS在去年横空出世，网上都是铺天盖地的称赞，但是作者认为新出的系统肯定功能还不够完善，出于数据安全的考虑一 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>飞牛OS在去年横空出世，网上都是铺天盖地的称赞，但是作者认为新出的系统肯定功能还不够完善，出于数据安全的考虑一直选择观望。在春节期间，有点小闲暇时光，将我的工控机使用QNAS4的机箱进行改造后，在我的PVE上新开一个虚拟机部署了一个，使用后发觉挺不错的，确实挺符合国人使用习惯，于是开始进行数据迁移，迁移结束后为了数据安全开始设置备份。此时发现飞牛自带的备份十分简单，不支持加密，不支持多版本备份，这十分不利于数据安全，和群辉上的hyperbackup比起来弱爆了，于是各种寻找替代项目，期间一度开始后悔，想重新用回黑群晖，直到看到了<a href="https://www.lllyyb.com/archives/U0NOY8Sr">解锁 Duplicati：备份与恢复的终极指南</a>这篇文章，感想大佬！</p>



<p>参考文章：</p>



<p><a href="https://docs.linuxserver.io/images/docker-duplicati/#application-setup">https://docs.linuxserver.io/images/docker-duplicati/#application-setup</a></p>



<p><a href="https://www.lllyyb.com/archives/U0NOY8Sr">https://www.lllyyb.com/archives/U0NOY8Sr</a></p>



<p>多的不说，直接上docker，适度修改后直接用。</p>



<pre class="wp-block-code"><code>---
services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - SETTINGS_ENCRYPTION_KEY=
      - CLI_ARGS= #optional
      - DUPLICATI__WEBSERVICE_PASSWORD= #optional
    volumes:
      - /path/to/duplicati/config:/config
      - /path/to/backups:/backups
      - /path/to/source:/source
    ports:
      - 8200:8200
    restart: unless-stopped</code></pre>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><code>SETTINGS_ENCRYPTION_KEY=</code></td><td>设置数据库的加密密钥。至少 8 个字符，字母数字。</td></tr><tr><td><code>CLI_ARGS=</code></td><td>（可选）指定要用于启动应用程序的任何<a href="https://duplicati.readthedocs.io/en/latest/07-other-command-line-utilities/">CLI 变量</a></td></tr><tr><td><code>DUPLICATI__WEBSERVICE_PASSWORD=</code></td><td>WebUI 的密码。如果未设置，则默认为，<code>changeme</code>并可从 WebUI 设置中更改。</td></tr></tbody></table></figure>



<pre class="wp-block-code"><code>services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - TZ=Asia/Shanghai
      - CLI_ARGS= #optional
      - PUID=0
      - PGID=0
    volumes:
      - /vol3/1000/安装的软件/duplicati/appdata/config:/config
      - /vol3/1000/安装的软件/duplicati/backups:/backups
      - /vol3/1000/安装的软件/duplicati/source:/source
      - type: bind
        source: /vol2/1000/Photos
        target: /Photos
        read_only: true
    ports:
      - 8200:8200
    restart: unless-stopped</code></pre>



<p>其它设置嘛看着文字有手就行，就懒得记录了。</p>



<p>现在终于可以放心删除黑群晖了，后面考虑不套pve了，直接裸机部署飞牛OS</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto1278.html/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>使用IPv6+DDNS-GO+CloudFlare随时随地访问家中nas黑群晖（已弃用改用lucky）</title>
		<link>https://daoker.cc/daokerto1198.html</link>
					<comments>https://daoker.cc/daokerto1198.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Tue, 26 Dec 2023 14:11:18 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[搞机]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1198</guid>

					<description><![CDATA[2025年2月16日更新：已弃用DDNS-GO，直接部署一个lucky，好用易用 之前我是使用的zerotie [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>2025年2月16日更新：已弃用DDNS-GO，直接部署一个lucky，好用易用</p>
</blockquote>



<p>之前我是使用的zerotier搭建虚拟局域网的方案，每次使用都要打开客户端，并且速度还受到限制，非常的不方便。最近买了新华三的NX30pro路由器，并且桥接了运营商送的光猫，发现能分配到正确的IPv6,并且在路由器中把防火墙关闭后能直接从互联网访问我的黑群晖，于是有了给他安排一个DDNS动态域名解析服务的想法。</p>



<h2 class="wp-block-heading">黑群晖安装DDNS-GO</h2>



<p>这里有人选择从套件中心安装DDns-GO套件的方法，由于作者更前向于使用docker,因此采用群辉中的docker进行部署，在群晖的docker界面中拉取如下所示的映像并创建容器，创建容器时记得开启自动重启和改网络类型为host模式(bridge模式会比较麻烦，后面出文章讲解)</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="999" height="108" src="https://daoker.cc/wp-content/uploads/2024/02/image.png" alt="" class="wp-image-1202" srcset="https://daoker.cc/wp-content/uploads/2024/02/image.png 999w, https://daoker.cc/wp-content/uploads/2024/02/image-300x32.png 300w, https://daoker.cc/wp-content/uploads/2024/02/image-768x83.png 768w" sizes="(max-width: 999px) 100vw, 999px" /></figure>



<h2 class="wp-block-heading">CloudFlare相关设置</h2>



<p>参考这篇文章：<a href="https://baijiahao.baidu.com/s?id=1736704192493242126&amp;wfr=spider&amp;for=pc" target="_blank" rel="noreferrer noopener">利用DDNS-GO更新cloudflare域名！</a></p>



<h2 class="wp-block-heading">DDNS-GO的web管理界面设置</h2>



<ol class="wp-block-list">
<li class="has-medium-font-size">输入群晖IP:9876进入DDNS-GO的web管理界面</li>



<li class="has-medium-font-size">DNS服务商选择CF</li>



<li class="has-medium-font-size">Token就是我们的AIP令牌地址：</li>



<li class="has-medium-font-size">我们没有公网IPv4所以选择不启用，只启用IPv6</li>



<li class="has-medium-font-size">域名就是我们要解析的域名：</li>



<li class="has-medium-font-size">建议添加禁止公网访问以保证安全，否则就整个复杂点的密码</li>



<li class="has-medium-font-size">添加完毕后点保存，然后测试下有没有生效！</li>
</ol>



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



<p>2024年2月20日</p>



<p>最新发现使用lucky比DNS-go更简单且支持ipv4流量转发到ipv6流量，其集成了DDNS、域名解析、端口转发、反向代理、证书申请、内网穿透等功能。</p>



<p>2024年2月21日</p>



<p>在云服务器端，其实只要服务器开启了ipv6支持，宝塔面板的反代也可以把ipv4流量转发到ipv6流量</p>



<h2 class="wp-block-heading">Debian10开启动态ipv6支持</h2>



<pre class="wp-block-code"><code>vim /etc/network/interfaces
</code></pre>



<p>在最下面加入 iface ens192 inet6 dhcp，其中ens192 是网卡名称，可以通过ifconfig命令查看，最后重启服务器即可</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto1198.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>【Docker】atmoz/sftp权限报错remote readdir(&#8220;/sftp&#8221;): Permission denied解决</title>
		<link>https://daoker.cc/daokerto1270.html</link>
					<comments>https://daoker.cc/daokerto1270.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Mon, 10 Feb 2025 12:37:10 +0000</pubDate>
				<category><![CDATA[NAS]]></category>
		<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=1270</guid>

					<description><![CDATA[最近从黑群晖换到了飞牛OS，由于飞牛目前不支持sftp，因此只能用docker镜像atmoz/sftp部署容器 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>最近从黑群晖换到了飞牛OS，由于飞牛目前不支持sftp，因此只能用docker镜像atmoz/sftp部署容器来解决，部署命令如下：</p>



<pre class="wp-block-code"><code>sudo docker run \
 -d \
 --name atmoz-sftp-server \
 --restart=unless-stopped \
 --privileged=true \
 -p 2222:22 \
 -v /data/docker/atmoz/upload:/home/foo/sftp \
 atmoz/sftp foo:pass:1001
</code></pre>



<p>其中的挂载目录，端口，用户名密码登根据自己个人情况设定，注意用户名foo和容器内目录foo要对应。</p>



<p>部署成功后，使用sftp命令连接（sftp -P 2222 foo@atmoz-sftp-server-ip）上会报错remote readdir(&#8220;/sftp&#8221;): Permission denied，alist挂载后页面也会报错failed <a href="https://so.csdn.net/so/search?q=get&amp;spm=1001.2101.3001.7020" target="_blank" rel="noreferrer noopener">get</a> objs: failed to list objs: open /volume2/disk1: permission denied</p>



<p>解决办法：</p>



<p>使用bin/bash进入容器内部，进入到相关目录，然后执行下列命令，把foo加入root用户组</p>



<pre class="wp-block-code"><code> chown -R foo:root /sftp</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto1270.html/feed</wfw:commentRss>
			<slash:comments>35</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>[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 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 loading="lazy" 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="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 搭建 MTP/socks5——让Telegram永远在线</title>
		<link>https://daoker.cc/daokerto299.html</link>
					<comments>https://daoker.cc/daokerto299.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Sat, 03 Sep 2022 13:47:09 +0000</pubDate>
				<category><![CDATA[玩docker]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=299</guid>

					<description><![CDATA[MTP 普通MTP 先运行应该容器： 查看日志获取到 secret 把上面生成的容器删除，然后把secret参 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">MTP</h2>



<h3 class="wp-block-heading">普通MTP</h3>



<p>先运行应该容器：</p>



<pre class="wp-block-code"><code>docker run -d -p 4437:443 --name=mtproto-proxy --restart=always -v proxy-config:/data telegrammessenger/proxy:latest</code></pre>



<p>查看日志获取到 secret</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="641" height="126" src="http://daoker.cc/wp-content/uploads/2022/09/image-2.png" alt="" class="wp-image-301" srcset="https://daoker.cc/wp-content/uploads/2022/09/image-2.png 641w, https://daoker.cc/wp-content/uploads/2022/09/image-2-300x59.png 300w" sizes="auto, (max-width: 641px) 100vw, 641px" /></figure>



<p>把上面生成的容器删除，然后把secret参数加入到新的容器启动中：</p>



<p>docker run -d -p 4437:443 &#8211;name=mtproto-proxy &#8211;restart=always -v proxy-config:/data -e SECRET=&lt;secret> telegrammessenger/proxy:latest</p>



<h3 class="wp-block-heading">带白名单的MTP</h3>



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



<pre class="wp-block-code"><code>bash &lt;(curl -sSL "https://raw.githubusercontent.com/xb0or/nginx-mtproxy/main/mtp.sh")</code></pre>



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



<p>用socks5也挺方便的，一行代码即可配置：</p>



<pre class="wp-block-code"><code>docker run --name s5 -d --restart=always -p 1111:1111 -e "USERS=user1:pass1,user2:pass2" egregors/socks5-server</code></pre>



<p>上面的不支持ARM,或者用下面的</p>



<pre class="wp-block-code"><code>version: '3'
services:
  socks5:
    image: justsky/socks5
    container_name: socks5
    ports:
      - '1080:1080'
    environment:
      - PROXY_USER=&lt;PROXY_USER&gt;           # Optional
      - PROXY_PASSWORD=&lt;PROXY_PASSWORD&gt;   # Optional</code></pre>



<p>在portainer中删除容器时，一定要现在services中删除相关服务，否则会无限重建容器</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto299.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>搞机常用命令</title>
		<link>https://daoker.cc/daokerto342.html</link>
					<comments>https://daoker.cc/daokerto342.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Thu, 08 Sep 2022 03:23:25 +0000</pubDate>
				<category><![CDATA[搞机]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[玩docker]]></category>
		<category><![CDATA[私服]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=342</guid>

					<description><![CDATA[日常玩机过程中不断积累的常用命令 宝塔纯净版 来源网站： https://www.hostcli.com/ c [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p></p>
<cite>日常玩机过程中不断积累的常用命令</cite></blockquote>



<h2 class="wp-block-heading">宝塔纯净版</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>来源网站：</p>
<cite><a href="https://www.hostcli.com/" target="_blank" rel="noreferrer noopener">https://www.hostcli.com/</a></cite></blockquote>



<p>centos</p>



<pre class="wp-block-code"><code>yum install -y wget &amp;&amp; wget -O install.sh http://v7.hostcli.com/install/install_6.0.sh &amp;&amp; sh install.sh</code></pre>



<p>ubuntu/debian</p>



<pre class="wp-block-code"><code>wget -O install.sh http://v7.hostcli.com/install/install-ubuntu_6.0.sh &amp;&amp; bash install.sh</code></pre>



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



<pre class="wp-block-code"><code>sudo apt update
sudo apt upgrade 
sudo apt install docker
sudo apt install docker-compose
#创建daoker_net网桥
docker network create daoker_net
</code></pre>



<h3 class="wp-block-heading">docker开启ipv6支持</h3>



<pre class="wp-block-code"><code>cat &gt; /etc/docker/daemon.json &lt;&lt; EOF
{
    "log-driver": "json-file",
    "log-opts": {
        "max-size": "20m",
        "max-file": "3"
    },
    "ipv6": true,
    "fixed-cidr-v6": "fd00:dead:beef:c0::/80",
    "experimental":true,
    "ip6tables":true
}
EOF
</code></pre>



<h3 class="wp-block-heading">portainer</h3>



<p><a href="https://docs.portainer.io/start/install/server/docker/linux">https://docs.portainer.io/start/install/server/docker/linux</a></p>



<pre class="wp-block-code"><code>docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always --privileged=true -v /var/run/docker.sock:/var/run/docker.sock -v /docker/portainer_data:/data portainer/portainer-ce:latest
</code></pre>



<p>portainer管理面板： <a href="https://ip:9443">https://ip:9443</a></p>



<h3 class="wp-block-heading"><a href="https://nginxproxymanager.com/guide/#quick-setup"><strong>Nginx Proxy Manager</strong></a> </h3>



<p>貌似也有本地版的，但是对于arm不兼容，docker版的ARM和x86都可用，docker-compose 构建：</p>



<p>管理后台:  <a href=" http://ip:81"> http://ip:81</a></p>



<p>Default Admin User:   </p>



<ul class="wp-block-list">
<li>Email: admin@example.com</li>



<li> Password: changeme</li>
</ul>



<pre class="wp-block-code"><code>version: '2'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    environment:
      DB_MYSQL_HOST: ""
      DB_MYSQL_PORT: 
      DB_MYSQL_USER: ""
      DB_MYSQL_PASSWORD: ""
      DB_MYSQL_NAME: ""
    volumes:
      - /docker/npm/data:/data
      - /docker/npm/letsencrypt:/etc/letsencrypt
  db:
    image: 'jc21/mariadb-aria:latest'
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: ''
      MYSQL_DATABASE: ''
      MYSQL_USER: ''
      MYSQL_PASSWORD: ''
    volumes:
      - /docker/npm/data/mysql:/var/lib/mysql
networks:
  default:
    name: daoker_net
    external: true</code></pre>



<h3 class="wp-block-heading">WordPress</h3>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p></p>
<cite>NPM中已经安装了mysql,这里也可以把其中的mysql的部分删除</cite></blockquote>



<pre class="wp-block-code"><code>version: "3"
services:
   mysql:
     image: mysql
     ports:
       - "31306:3306"
     networks:
       - persist    
     environment:
       - "MYSQL_ROOT_PASSWORD="
       - "MYSQL_PASSWORD="
       - "MYSQL_USER="
       - "MYSQL_DATABASE="
   wordpress:
     image: wordpress
     ports:
       - "9001:80"
     networks:
       - persist    
     environment:
       - "WORDPRESS_DB_NAME="
       - "WORDPRESS_DB_USER="
       - "WORDPRESS_DB_PASSWORD="
       - "WORDPRESS_DB_HOST="
networks:
  persist:
    external:
      name: daoker_net</code></pre>



<h3 class="wp-block-heading">Alist</h3>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="alist-org" data-project="alist"><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/alist-org/alist" target="_blank" rel="noopener"><span class="github-info-card-name">alist-org/alist</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>安装时正好遇到作者更新了最新版，结果发觉bug很多，所以手动安装了上一个版本</p>



<pre class="wp-block-code"><code>docker run -d --restart=always -v /docker/alist:/opt/alist/data  -p 5244:5244 --name="alist" xhofe/alist:v2.6.4</code></pre>



<p>nginx反代信息：</p>



<pre class="wp-block-code"><code>location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header Range $http_range;
	  proxy_set_header If-Range $http_if_range;
    proxy_redirect off;
    proxy_pass http://alist:5244;
    # the max size of file to upload
    client_max_body_size 20000m;
}
</code></pre>



<p>初始密码请查看日志输出：</p>



<pre class="wp-block-code"><code>docker logs alist<br><em># 或者</em><br>docker exec -it alist ./alist -password</code></pre>




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




<h3 class="wp-block-heading">x-ui</h3>



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



<h4 class="wp-block-heading">docker版</h4>



<p>编译：</p>



<p>首先从GitHub git clone下来，然后进入到文件夹里docker bulid，最后到要安装的目录里docker run</p>



<pre class="wp-block-code"><code>git clone https://github.com/vaxilu/x-ui.git
cd x-ui
docker build -t x-ui .
#建立的镜像名为x-ui
mkdir -p /docker/x-ui &amp;&amp; cd /docker/x-ui
docker run -itd --network=host \
    -v /docker/x-ui/db/:/etc/x-ui/ \
    -v /docker/x-ui/cert/:/root/cert/ \
    --name x-ui --restart=unless-stopped \
    x-ui

docker run -itd --network daoker_net -p 666:54321 58253:58253 -v /docker/x-ui/db/:/etc/x-ui/ -v /docker/x-ui/cert/:/root/cert/ --name x-ui --restart=unlessstopped x-ui</code></pre>



<p>默认用户名、密码：admin</p>



<h4 class="wp-block-heading">一键安装带tg提醒版</h4>



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



<pre class="wp-block-code"><code>bash &lt;(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)</code></pre>



<h3 class="wp-block-heading">speedtest</h3>



<p>支持ARM和x86</p>



<pre class="wp-block-code"><code>docker run -d --name=speedtest-x --restart=always -p 12345:80 stilleshan/speedtest-x</code></pre>



<h3 class="wp-block-heading">青龙面板</h3>



<pre class="wp-block-code"><code>docker run -dit \
  -v docker/ql/data:/ql/data \
  -p 5700:5700 \
  --name qinglong \
  --hostname qinglong \
  --restart unless-stopped \
  whyour/qinglong:latest</code></pre>



<pre class="wp-block-code"><code>docker run -dit \
-v $pwd/ql/config:/ql/config \
-v $pwd/ql/log:/ql/log \
-v $pwd/ql/db:/ql/db \
-v $pwd/ql/scripts:/ql/scripts \
-v $pwd/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>



<h3 class="wp-block-heading">远程ubuntu桌面</h3>



<pre class="wp-block-code"><code>docker run -d -p 6080:80 -v /docker/ubuntudesktop:/workspace:rw -e HTTP_PASSWORD=415408807 -e RESOLUTION=1280x720 --name ubuntu-novnc fredblgr/ubuntu-novnc:20.04
</code></pre>



<h3 class="wp-block-heading">远程chrome浏览器</h3>



<p>访问远程局域网的神器</p>



<pre class="wp-block-code"><code>sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/chrome:1.13.0</code></pre>



<figure class="wp-block-table"><table><tbody><tr><td>管理界面</td><td>https://IP:6901</td></tr><tr><td>用户名</td><td>kasm_user</td></tr><tr><td>密码</td><td>password</td></tr></tbody></table><figcaption class="wp-element-caption">这里的IP可以用zerotier进行内网穿透</figcaption></figure>



<h2 class="wp-block-heading">综合工具箱</h2>



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



<pre class="wp-block-code"><code>wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh &amp;&amp; chmod +x box.sh &amp;&amp; clear &amp;&amp; ./box.sh</code></pre>



<h2 class="wp-block-heading">重装</h2>



<p>实测甲骨文ubuntu  -&gt; Debian 成功，Debian -&gt; ubuntu 失败</p>



<pre class="wp-block-code"><code>bash &lt;(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 123456 -port 22</code></pre>



<p>系统参数</p>



<p><strong>-d 10&nbsp;&nbsp;</strong>【7、8、9、10，11】Debian</p>



<p><strong>-u 20.04 </strong>【14.04、16.04、18.04、20.04】Ubuntu</p>



<p>密码参数，可以改成别的</p>



<p><strong>-p 12345</strong></p>



<p>端口参数</p>



<p>port&nbsp;<strong>22</strong></p>



<p>BBRPLUS四合一脚本</p>



<pre class="wp-block-code"><code>wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" &amp;&amp; chmod +x tcp.sh &amp;&amp; ./tcp.sh</code></pre>



<h2 class="wp-block-heading">命令行代理</h2>



<p><a href="https://zhuanlan.zhihu.com/p/166375631">https://zhuanlan.zhihu.com/p/166375631</a></p>



<h2 class="wp-block-heading">笔记</h2>



<h3 class="wp-block-heading">哪吒面板相关</h3>



<p>准备迁移服务器时才发现，我哪吒面板是搭建在国外洛杉矶的服务器上，但是哪吒面板的域名指向的是国内的阿里云的服务器，然后反代到洛杉矶的服务器上，我也想不起来当初为啥要这么做了。</p>



<p>阿里云服务器上npm里的设置：</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="223" src="https://daoker.cc/wp-content/uploads/2024/02/image-9-1024x223.png" alt="" class="wp-image-1233" style="width:848px;height:auto" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-9-1024x223.png 1024w, https://daoker.cc/wp-content/uploads/2024/02/image-9-300x65.png 300w, https://daoker.cc/wp-content/uploads/2024/02/image-9-768x167.png 768w, https://daoker.cc/wp-content/uploads/2024/02/image-9.png 1295w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="528" height="511" src="https://daoker.cc/wp-content/uploads/2024/02/image-10.png" alt="" class="wp-image-1234" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-10.png 528w, https://daoker.cc/wp-content/uploads/2024/02/image-10-300x290.png 300w" sizes="auto, (max-width: 528px) 100vw, 528px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="498" height="374" src="https://daoker.cc/wp-content/uploads/2024/02/image-11.png" alt="" class="wp-image-1235" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-11.png 498w, https://daoker.cc/wp-content/uploads/2024/02/image-11-300x225.png 300w" sizes="auto, (max-width: 498px) 100vw, 498px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="512" height="675" src="https://daoker.cc/wp-content/uploads/2024/02/image-12.png" alt="" class="wp-image-1236" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-12.png 512w, https://daoker.cc/wp-content/uploads/2024/02/image-12-228x300.png 228w" sizes="auto, (max-width: 512px) 100vw, 512px" /></figure>



<pre class="wp-block-code"><code>#PROXY-START/
location / {
    proxy_pass http://204.44.94.242:8008;
    proxy_set_header Host $http_host;
    proxy_set_header      Upgrade $http_upgrade;
}
location ~ ^/(ws|terminal/.+)$  {
    proxy_pass http://204.44.94.242:8008;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $http_host;
}
#PROXY-END/</code></pre>



<h3 class="wp-block-heading">debian开机自动挂载目录</h3>



<p>1.查看uuid</p>



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



<p>2.配置开机自动挂载</p>



<pre class="wp-block-code"><code>sudo vim /etc/fstab</code></pre>



<p>跟着原有的在末尾填入挂载信息</p>



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



<p>第一个参数是磁盘uuid，第二个参数是挂载在哪里，第三个参数是磁盘格式，第四个参数是默认，第五个参数是是否备份，0不备份，1或2备份，第六个参数是是否检查磁盘，1表示检查</p>



<p>3.验证挂载是否成功，无输出就是成功</p>



<pre class="wp-block-code"><code>mount -a</code></pre>



<h3 class="wp-block-heading">ubuntu相关</h3>



<p>1.查看cpu当前频率</p>



<pre class="wp-block-code"><code> <code>cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq</code> </code></pre>



<p></p>



<p>2.合上盖子不挂起</p>



<p>把/etc/systemd/logind.conf中的#HandleLidSwitch=suspend改成ingnroe,然后使用services systemd-logind restart重启服务</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto342.html/feed</wfw:commentRss>
			<slash:comments>6</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/15.1.0/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>
	</channel>
</rss>
