<?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/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>https://daoker.cc</link>
	<description>个人随笔小记</description>
	<lastBuildDate>Wed, 21 Feb 2024 14:13:25 +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>未分类 &#8211; Daoker小站</title>
	<link>https://daoker.cc</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【好玩的Docker项目】搭建一个小而美的网站流量监控——Umami</title>
		<link>https://daoker.cc/daokerto904.html</link>
					<comments>https://daoker.cc/daokerto904.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Mon, 26 Dec 2022 17:26:00 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=904</guid>

					<description><![CDATA[又抄咕咕的文章了，哈哈哈 https://blog.laoda.de/archives/umami 1.首先从 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>又抄咕咕的文章了，哈哈哈</p>
<cite>https://blog.laoda.de/archives/umami</cite></blockquote>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="umami-software" data-project="umami"><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/umami-software/umami" target="_blank" rel="noopener"><span class="github-info-card-name">umami-software/umami</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.首先从github上克隆项目</p>



<pre class="wp-block-code"><code>git clone https://github.com/umami-software/umami.git
cd umami/
vim docker-compose.yml</code></pre>



<pre class="wp-block-code"><code>---
version: '3'
services:
  umami:
    image: ghcr.io/umami-software/umami:postgresql-latest
    ports:
      - "3000:3000"
    environment:
      DATABASE_URL: postgresql://umami:umami@db:5432/umami # 这里的数据库和密码要和下方你修改的相同
      DATABASE_TYPE: postgresql
      HASH_SALT: replace-me-with-a-random-string
    depends_on:
      - db
    restart: always
  db:
    image: postgres:12-alpine
    environment:
      POSTGRES_DB: umami
      POSTGRES_USER: umami # 数据库用户
      POSTGRES_PASSWORD: umami  # 数据库密码
    volumes:
      - ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
      - ./umami-db-data:/var/lib/postgresql/data
    restart: always
</code></pre>



<pre class="wp-block-code"><code>docker-compose up -d
</code></pre>



<pre class="wp-block-preformatted">访问http://ip:3000就可以访问了，打开的是英文界面，右上方可以切换语言，默认用户名为admin，密码为umami</pre>



<h2 class="wp-block-heading">迁移到另外一台服务器（2024年2月21日）</h2>



<p>将安装目录的所有文件打包发送(打包发送速度会快很多，可以使用xftp两台服务器对拷)到新服务器，主要是上文docker-compose.yaml中的挂载的目录。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>tar 压缩和解压命令</p>
<cite>1.tar 命令压缩<br>tar -cvf test.tar 1.txt 2.txt 3.txt<br>将1.txt 2.txt 3.txt 压缩到test.tar文件内<br>2.tar 解压<br>tar -xvf test.tar<br>解压test.tar，将文件解压至当前目录<br>tar -xvf test.tar -C /home/itheima<br>解压test.tar，将文件解压至指定目录（/home/itheima）</cite></blockquote>



<p>docker 容器打包成镜像及在新服务器导入方法：</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="616" src="https://daoker.cc/wp-content/uploads/2024/02/image-13-1024x616.png" alt="" class="wp-image-1247" srcset="https://daoker.cc/wp-content/uploads/2024/02/image-13-1024x616.png 1024w, https://daoker.cc/wp-content/uploads/2024/02/image-13-300x180.png 300w, https://daoker.cc/wp-content/uploads/2024/02/image-13-768x462.png 768w, https://daoker.cc/wp-content/uploads/2024/02/image-13.png 1056w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>完成上述步骤后更改ymal文件中的镜像名为导入的镜像名然后就可以构建了。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto904.html/feed</wfw:commentRss>
			<slash:comments>35</slash:comments>
		
		
			</item>
		<item>
		<title>frp内网穿透和ZeroTier内网穿透</title>
		<link>https://daoker.cc/daokerto407.html</link>
					<comments>https://daoker.cc/daokerto407.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Mon, 12 Sep 2022 07:08:38 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=407</guid>

					<description><![CDATA[frp内网穿 打算试一试把域名解析到我的树莓派软路由上，正好用的openwrt上有frp插件，于是查了下使用方 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">frp内网穿</h2>



<p>打算试一试把域名解析到我的树莓派软路由上，正好用的openwrt上有frp插件，于是查了下使用方法。由于我所以的VPS都安装了宝塔面板或者NPM，唯一一台没装的又在洛杉矶，延迟较高，所以就把甲骨文新加坡的其中一台2c12g降低配置，然后再新建一台，重置好debian后开始整活。</p>



<div class="wp-block-argon-github github-info-card card shadow-sm github-info-card-full" data-author="fatedier" data-project="frp"><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/fatedier/frp" target="_blank" rel="noopener"><span class="github-info-card-name">fatedier/frp</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>下载arm64版本的包到服务器上，然后参考官网的文档，修改 frps.ini 文件，设置监听 HTTP 请求端口为 8080：</p>



<pre class="wp-block-code"><code>&#91;common]
bind_port = 7000
vhost_http_port = 8080</code></pre>



<p>然后通过<code>./frps -c ./frps.ini</code>&nbsp;启动服务端，这里可以采用</p>



<pre class="wp-block-code"><code>nohup /root/frp/frps -c /root/frp/frps.ini &gt;&gt; /root/frp/log_frps.txt 2&gt;&amp;1 &amp;</code></pre>



<p>将服务挂载到后台</p>



<p>使用docker部署并且带web监控界面参考：<a href="https://iwanlab.com/frp-with-nginx-proxy-manager/">【好玩儿的Docker项目】家里没有公网IP？FRP+NPM+VPS = 随时随地用域名访问家里的任何设备！内网穿透，从未如此简单！ | 爱玩实验室 (iwanlab.com)</a></p>



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



<p>参考教程：https://blog.laoda.de/archives/frp-with-nginx-proxy-manager</p>



<p>由于openwrt自带的frp内网穿透插件功能较少,所以此处采用在docker中安装frpc的办法。</p>



<p>首先在客户机上创建frpc.ini文件</p>



<pre class="wp-block-code"><code>mkdir -p /docker/frp

cd /docker/frp

vim ./frpc.ini 
</code></pre>



<p>在其中输入如下配置信息</p>



<pre class="wp-block-code"><code># frpc.ini
&#91;common]
server_addr = 43.132.202.152  
server_port = 5443             
token = 8ad3d1x429a2d          

&#91;router]                      
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 6005
</code></pre>



<p>其中server_addr 为远程服务器地址，server_port 为远程端口 </p>



<p>最后，部署容器</p>



<pre class="wp-block-code"><code>docker run --restart=always --network host -d --privileged=true -v /docker/frp/frpc.ini:/etc/frp/frpc.ini --name frpc snowdreamtech/frpc</code></pre>



<p>然后在服务端把域名申请ssl后反代到对应的端口即可</p>



<figure class="wp-block-image size-full"><img decoding="async" width="655" height="478" src="http://daoker.cc/wp-content/uploads/2022/10/image-5.png" alt="" class="wp-image-520" srcset="https://daoker.cc/wp-content/uploads/2022/10/image-5.png 655w, https://daoker.cc/wp-content/uploads/2022/10/image-5-300x219.png 300w" sizes="(max-width: 655px) 100vw, 655px" /></figure>



<h2 class="wp-block-heading">ZeroTier内网穿透</h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>参考来源</p>
<cite>https://blog.csdn.net/qq_39300041/article/details/126645375<br>https://blog.csdn.net/COCO56/article/details/123296985<br></cite></blockquote>



<h3 class="wp-block-heading">openwrt加入zerotier</h3>



<p>1.首先在本地加入申请的zerotier网络</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="385" src="http://daoker.cc/wp-content/uploads/2022/11/image-2-1024x385.png" alt="" class="wp-image-605" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-2-1024x385.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-2-300x113.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-2-768x289.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-2-1536x578.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-2.png 1920w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>2.在zerotier的网络中授权刚才加入的设备，并做如下设置</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="468" src="http://daoker.cc/wp-content/uploads/2022/11/image-3-1024x468.png" alt="" class="wp-image-607" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-3-1024x468.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-3-300x137.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-3-768x351.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-3-1536x702.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-3.png 1903w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="477" src="http://daoker.cc/wp-content/uploads/2022/11/image-4-1024x477.png" alt="" class="wp-image-608" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-4-1024x477.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-4-300x140.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-4-768x358.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-4-1536x716.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-4.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>3.在openwrt中添加接口</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="461" src="http://daoker.cc/wp-content/uploads/2022/11/image-5-1024x461.png" alt="" class="wp-image-609" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-5-1024x461.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-5-300x135.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-5-768x346.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-5-1536x692.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-5.png 1690w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>4.设置防火墙：入站允许，出站允许，转发允许；对当前接口防火墙进行修改，将【端口触发】全部切换到Lan中</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="535" src="http://daoker.cc/wp-content/uploads/2022/11/image-6-1024x535.png" alt="" class="wp-image-610" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-6-1024x535.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-6-300x157.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-6-768x401.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-6-1536x802.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-6.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="538" src="http://daoker.cc/wp-content/uploads/2022/11/image-7-1024x538.png" alt="" class="wp-image-611" srcset="https://daoker.cc/wp-content/uploads/2022/11/image-7-1024x538.png 1024w, https://daoker.cc/wp-content/uploads/2022/11/image-7-300x158.png 300w, https://daoker.cc/wp-content/uploads/2022/11/image-7-768x403.png 768w, https://daoker.cc/wp-content/uploads/2022/11/image-7-1536x806.png 1536w, https://daoker.cc/wp-content/uploads/2022/11/image-7.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>5.最后我们需要进入到防火墙自定义规则中，添加以下规则</p>



<pre class="wp-block-code"><code>iptables -I FORWARD -i ztrta3lbl3 -j ACCEPT<br>iptables -I FORWARD -o ztrta3lbl3 -j ACCEPT<br>iptables -t nat -I POSTROUTING -o ztrta3lbl3 -j MASQUERADE</code></pre>



<h3 class="wp-block-heading">其他系统加入zerotier</h3>



<p>下载：</p>



<pre class="wp-block-code"><code>curl -s https://install.zerotier.com | sudo bash</code></pre>



<p>加入网络：</p>



<pre class="wp-block-code"><code>zerotier-cli join 8286ac0e47198b3c</code></pre>



<p>开机自启动：</p>



<pre class="wp-block-code"><code>systemctl enable zerotier-one.service</code></pre>



<h3 class="wp-block-heading">更换zerotier地址</h3>



<p>有的时候，由于种种原因，zerotier不正常，但是卸载重装地址不变，其实是没有删除配置文件</p>



<pre class="wp-block-code"><code>sudo apt remove zerotier-one</code></pre>



<pre class="wp-block-code"><code>sudo rm -rf /var/lib/zerotier-one/</code></pre>



<p>然后再执行上面的安装命令</p>



<h2 class="wp-block-heading">黑群晖 安装 zerotier-docker,实现外网访问家里的NAS</h2>



<p>1.在黑群晖docker注册表中拉取zerotier/zerotier-synology镜像</p>



<p>2.双击镜像创建一个容器，记得给予高级权限，网络类型和docker hub一样，并映射一个目录/var/lib/zerotier-one</p>



<p>3.开启ssh访问群晖</p>



<p>4.创建 tun 模块</p>



<ul class="wp-block-list">
<li>检查是否安装了&nbsp;<code>tun</code>&nbsp;模块：</li>
</ul>



<pre class="wp-block-code"><code>lsmod | grep tun
</code></pre>



<ul class="wp-block-list">
<li>如果结果为空，请尝试安装它：</li>
</ul>



<pre class="wp-block-code"><code>insmod /lib/modules/tun.ko
</code></pre>



<ul class="wp-block-list">
<li>查看 TUN 的运行状态</li>
</ul>



<pre class="wp-block-code"><code>ls /dev/net/tun
</code></pre>



<p>返回为 /dev/net/tun 即可</p>



<ul class="wp-block-list">
<li>再次查看 tun 是否安装完成</li>
</ul>



<pre class="wp-block-code"><code>lsmod | grep tun
</code></pre>



<p>5.加入网络</p>



<pre class="wp-block-code"><code>docker exec -it 容器名称 zerotier-cli join 网络id
</code></pre>



<p>6.开启IP转发</p>



<p>在群晖系统&nbsp;<code>/etc/sysctl.conf</code>&nbsp;中增加</p>



<pre class="wp-block-code"><code>net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
</code></pre>



<p>ipV6按需添加</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><a href="https://blog.csdn.net/m0_63314361/article/details/131326719?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-4-131326719-blog-115684928.235^v38^pc_relevant_anti_vip&amp;spm=1001.2101.3001.4242.3&amp;utm_relevant_index=7">黑/白群晖 安装 zerotier-docker 完美版_docker安装zerotier_AYing丶L灬小绵羊的博客-CSDN博客</a></p>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto407.html/feed</wfw:commentRss>
			<slash:comments>37</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>github工作流</title>
		<link>https://daoker.cc/daokerto734.html</link>
					<comments>https://daoker.cc/daokerto734.html#comments</comments>
		
		<dc:creator><![CDATA[博主]]></dc:creator>
		<pubDate>Fri, 25 Nov 2022 03:45:53 +0000</pubDate>
				<category><![CDATA[未分类]]></category>
		<guid isPermaLink="false">https://daoker.cc/?p=734</guid>

					<description><![CDATA[最近发觉自己很多代码都存在本地，时间久了就忘了，或者硬盘坏了丢失了都有可能，最关键的是版本控制很不，打算学习下 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>最近发觉自己很多代码都存在本地，时间久了就忘了，或者硬盘坏了丢失了都有可能，最关键的是版本控制很不，打算学习下github仓库发布更新的方法。</p>



<iframe src="//player.bilibili.com/player.html?aid=561005338&#038;bvid=BV19e4y1q7JJ&#038;cid=846391446&#038;page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 500px; max-width: 100%；align:center; padding:20px 0;" > </iframe>



<pre class="wp-block-code"><code>1.git clone // 到本地
2.git checkout -b xxx 切换至新分支xxx
（相当于复制了remote的仓库到本地的xxx分支上
3.修改或者添加本地代码（部署在硬盘的源文件上）
4.git diff 查看自己对代码做出的改变
5.git add 上传更新后的代码至暂存区
6.git commit 可以将暂存区里更新后的代码更新到本地git
7.git push origin xxx 将本地的xxxgit分支上传至github上的git
-----------------------------------------------------------
（如果在写自己的代码过程中发现远端GitHub上代码出现改变）
1.git checkout main 切换回main分支
2.git pull origin master(main) 将远端修改过的代码再更新到本地
3.git checkout xxx 回到xxx分支
4.git rebase main 我在xxx分支上，先把main移过来，然后根据我的commit来修改成新的内容
（中途可能会出现，rebase conflict -----》手动选择保留哪段代码）
5.git push -f origin xxx 把rebase后并且更新过的代码再push到远端github上
（-f ---》强行）
6.原项目主人采用pull request 中的 squash and merge 合并所有不同的commit
----------------------------------------------------------------------------------------------
远端完成更新后
1.git branch -d xxx 删除本地的git分支
2.git pull origin master 再把远端的最新代码拉至本地</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://daoker.cc/daokerto734.html/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
