<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>卡泽</name>
  </author>
  <generator uri="https://hexo.io/">Hexo</generator>
  <icon>https://cdn.bytedream.org/images/GBwKat1I3hfMhaMkwMRGmJGKN5AWS7.webp</icon>
  <id>https://www.bytedream.org/</id>
  <link href="https://www.bytedream.org/" rel="alternate"/>
  <link href="https://www.bytedream.org/atom.xml" rel="self"/>
  <rights>All rights reserved 2026, 卡泽</rights>
  <subtitle>生活不必非要意义，有趣足矣 ✨</subtitle>
  <title>BYTEDREAM</title>
  <updated>2026-04-13T05:25:58.472Z</updated>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="信息技术" scheme="https://www.bytedream.org/categories/%E4%BF%A1%E6%81%AF%E6%8A%80%E6%9C%AF/"/>
    <category term="hexo" scheme="https://www.bytedream.org/tags/hexo/"/>
    <content>
      <![CDATA[<p>记录一下今天给 Hexo 配置 Git 部署的过程，免得下次又忘。</p><h2 id="1-安装部署"><a href="#1-安装部署" class="headerlink" title="1. 安装部署"></a>1. 安装部署</h2><p>先装上 <code>hexo-deployer-git</code>，Hexo 默认不带这个，得自己装。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure><h2 id="2-设置-Git-用户信息"><a href="#2-设置-Git-用户信息" class="headerlink" title="2. 设置 Git 用户信息"></a>2. 设置 Git 用户信息</h2><p>告诉 Git 你是谁。用户名和邮箱建议跟 GitHub 账号保持一致，尤其是邮箱，否则提交记录上的”小绿点”可能对不上号。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global user.name <span class="string">&quot;你的GitHub用户名&quot;</span></span><br><span class="line">git config --global user.email <span class="string">&quot;你的GitHub关联邮箱&quot;</span></span><br></pre></td></tr></table></figure><h2 id="3-生成-SSH-密钥"><a href="#3-生成-SSH-密钥" class="headerlink" title="3. 生成 SSH 密钥"></a>3. 生成 SSH 密钥</h2><p>执行命令后一路回车就行，然后找到 id_rsa.pub 文件，把里面的内容复制出来。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh-keygen -t rsa -C <span class="string">&quot;你的GitHub关联邮箱&quot;</span></span><br></pre></td></tr></table></figure><h2 id="4-把公钥添加到-GitHub"><a href="#4-把公钥添加到-GitHub" class="headerlink" title="4. 把公钥添加到 GitHub"></a>4. 把公钥添加到 GitHub</h2><p>打开 GitHub → Settings → SSH and GPG keys → New SSH key，把刚才复制的内容粘进去，起个名字保存。</p><h2 id="5-测试连接"><a href="#5-测试连接" class="headerlink" title="5. 测试连接"></a>5. 测试连接</h2><p>跑这条命令，如果看到 Hi xxx! You’ve successfully authenticated… 就说明 SSH 配置好了。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ssh -T git@github.com</span><br></pre></td></tr></table></figure><h2 id="6-修改-Hexo-配置文件"><a href="#6-修改-Hexo-配置文件" class="headerlink" title="6. 修改 Hexo 配置文件"></a>6. 修改 Hexo 配置文件</h2><p>最后一步，打开项目根目录下的 _config.yml，找到 deploy 部分（没有就自己加），改成这样。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line">  <span class="built_in">type</span>: git</span><br><span class="line">  repo: git@github.com:你的GitHub用户名/你的GitHub用户名.github.io.git</span><br><span class="line">  branch: main</span><br></pre></td></tr></table></figure><p>搞定之后，hexo clean &amp;&amp; hexo deploy 就能直接推送了，舒服 😋</p>]]>
    </content>
    <id>https://www.bytedream.org/posts/hexo-configure-git-repository.html</id>
    <link href="https://www.bytedream.org/posts/hexo-configure-git-repository.html"/>
    <published>2026-04-05T14:21:13.000Z</published>
    <summary>
      <![CDATA[<p>记录一下今天给 Hexo 配置 Git 部署的过程，免得下次又忘。</p>
<h2 id="1-安装部署"><a href="#1-安装部署" class="headerlink" title="1. 安装部署"></a>1. 安装部署</h2><p>先装上]]>
    </summary>
    <title>记一下 Hexo 配置 Git 部署</title>
    <updated>2026-04-13T05:25:58.472Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="信息技术" scheme="https://www.bytedream.org/categories/%E4%BF%A1%E6%81%AF%E6%8A%80%E6%9C%AF/"/>
    <category term="Docker" scheme="https://www.bytedream.org/tags/Docker/"/>
    <content>
      <![CDATA[<div class="note warning simple"><p>本文以 Debian 环境安装 Docker 并编写。</p></div><p>Docker 是一种开源的容器化平台，用于将应用及其依赖打包到一个轻量级、可移植、自包含的运行环境中，从而实现“一次构建，到处运行”。它基于 Linux 内核的命名空间（namespace）和控制组（cgroups） 技术，实现进程级隔离和资源限制，比传统虚拟机更高效。</p><blockquote><p>Docker 分为 Docker EE（企业版） 和 Docker CE（社区版），本文使用 Docker CE。</p></blockquote><h2 id="1-安装基础工具"><a href="#1-安装基础工具" class="headerlink" title="1. 安装基础工具"></a>1. 安装基础工具</h2><p>我使用 Debian 10 (Buster) 作为基础环境。如果你的服务器是初次使用那么需要先安装一些必须的依赖。</p><p><strong>更新本地软件包索引列表并安装必要依赖：</strong></p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> apt update</span><br><span class="line"><span class="built_in">sudo</span> apt install ca-certificates curl</span><br></pre></td></tr></table></figure><h2 id="2-配置-Docker-GPG-密钥"><a href="#2-配置-Docker-GPG-密钥" class="headerlink" title="2. 配置 Docker GPG 密钥"></a>2. 配置 Docker GPG 密钥</h2><p>创建一个目录用于存放 Docker GPG 密钥，并给予 <code>0755</code> 权限。从 Docker 官方地址下载 GPG 密钥保存到 <code>/etc/apt/keyrings/docker.asc</code></p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> install -m 0755 -d /etc/apt/keyrings</span><br><span class="line"><span class="built_in">sudo</span> curl -fsSL [https://download.docker.com/linux/debian/gpg](https://download.docker.com/linux/debian/gpg) -o /etc/apt/keyrings/docker.asc</span><br><span class="line"><span class="built_in">sudo</span> <span class="built_in">chmod</span> a+r /etc/apt/keyrings/docker.asc</span><br></pre></td></tr></table></figure><h2 id="3-添加-Docker-软件源"><a href="#3-添加-Docker-软件源" class="headerlink" title="3. 添加 Docker 软件源"></a>3. 添加 Docker 软件源</h2><p>将 Docker 的官方仓库添加到 APT 源列表中。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">echo</span> \</span><br><span class="line">  <span class="string">&quot;deb [arch=<span class="subst">$(dpkg --print-architecture)</span> signed-by=/etc/apt/keyrings/docker.asc] [https://download.docker.com/linux/debian](https://download.docker.com/linux/debian) \</span></span><br><span class="line"><span class="string">  <span class="subst">$(. /etc/os-release &amp;&amp; echo <span class="string">&quot;<span class="variable">$VERSION_CODENAME</span>&quot;</span>)</span> stable&quot;</span> | \</span><br><span class="line">  <span class="built_in">sudo</span> <span class="built_in">tee</span> /etc/apt/sources.list.d/docker.list &gt; /dev/null</span><br></pre></td></tr></table></figure><h2 id="4-安装-Docker-组件"><a href="#4-安装-Docker-组件" class="headerlink" title="4. 安装 Docker 组件"></a>4. 安装 Docker 组件</h2><p>再次更新源列表并安装 Docker Engine、CLI、Containerd 以及 Docker Compose 插件。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> apt update</span><br><span class="line"><span class="built_in">sudo</span> apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin</span><br></pre></td></tr></table></figure><h2 id="5-验证安装"><a href="#5-验证安装" class="headerlink" title="5. 验证安装"></a>5. 验证安装</h2><p>运行 hello-world 镜像来确认 Docker 是否安装成功。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">sudo</span> docker run hello-world</span><br></pre></td></tr></table></figure>]]>
    </content>
    <id>https://www.bytedream.org/posts/docker-environment-setup.html</id>
    <link href="https://www.bytedream.org/posts/docker-environment-setup.html"/>
    <published>2026-04-05T11:42:47.000Z</published>
    <summary>
      <![CDATA[<div class="note warning simple"><p>本文以 Debian 环境安装 Docker 并编写。</p>
</div>

<p>Docker]]>
    </summary>
    <title>Docker 基础环境安装</title>
    <updated>2026-04-13T05:25:48.452Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <category term="信息技术" scheme="https://www.bytedream.org/categories/%E4%BF%A1%E6%81%AF%E6%8A%80%E6%9C%AF/"/>
    <category term="Debian" scheme="https://www.bytedream.org/tags/Debian/"/>
    <content>
      <![CDATA[<p>今天下午打算给服务器装个 Docker 部署一些服务用，选了 Debian 10。<br>但是执行更新软件列表的命令，发现系统的软件源已经停止维护了，没法用。<br>随后查了资料，Debian 10 (buster)，它已经在 2024年6月结束了标准支持（EOL），软件源已经被移到了 Archive。可以把系统源改成归档源解决，记下过程方便之后查看。</p><div class="note warning simple"><p>注意：Debian 10 已经停止推送安全更新，如非必要请使用仍处于维护生命周期的版本！</p></div><h2 id="更换归档软件源"><a href="#更换归档软件源" class="headerlink" title="更换归档软件源"></a>更换归档软件源</h2><h3 id="1-备份系统源列表"><a href="#1-备份系统源列表" class="headerlink" title="1. 备份系统源列表"></a>1. 备份系统源列表</h3><p>事前须备份养成好习惯 😋</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">cp</span> /etc/apt/sources.list /etc/apt/sources.list.bak</span><br></pre></td></tr></table></figure><h3 id="2-编辑源列表"><a href="#2-编辑源列表" class="headerlink" title="2. 编辑源列表"></a>2. 编辑源列表</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nano /etc/apt/sources.list</span><br></pre></td></tr></table></figure><h3 id="3-替换软件源地址"><a href="#3-替换软件源地址" class="headerlink" title="3. 替换软件源地址"></a>3. 替换软件源地址</h3><p>替换完后 Ctrl + O 保存修改，Ctrl + X 退出 nano。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">deb http://archive.debian.org/debian/ buster main contrib non-free</span><br><span class="line">deb http://archive.debian.org/debian/ buster-updates main contrib non-free</span><br><span class="line">deb http://archive.debian.org/debian-security buster/updates main contrib non-free</span><br></pre></td></tr></table></figure><h3 id="4-更新软件列表"><a href="#4-更新软件列表" class="headerlink" title="4. 更新软件列表"></a>4. 更新软件列表</h3><p>执行命令，apt 就顺畅起来了 😋</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">apt update -o Acquire::Check-Valid-Until=<span class="literal">false</span></span><br></pre></td></tr></table></figure>]]>
    </content>
    <id>https://www.bytedream.org/posts/debian-10-change-archive-sources.html</id>
    <link href="https://www.bytedream.org/posts/debian-10-change-archive-sources.html"/>
    <published>2026-03-31T11:28:47.000Z</published>
    <summary>
      <![CDATA[<p>今天下午打算给服务器装个 Docker 部署一些服务用，选了 Debian 10。<br>但是执行更新软件列表的命令，发现系统的软件源已经停止维护了，没法用。<br>随后查了资料，Debian 10 (buster)，它已经在]]>
    </summary>
    <title>Debian 10 更换归档源</title>
    <updated>2026-04-13T05:49:50.128Z</updated>
  </entry>
  <entry>
    <author>
      <name>卡泽</name>
    </author>
    <content>
      <![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p><h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">&quot;My New Post&quot;</span></span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/writing.html">Writing</a></p><h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/server.html">Server</a></p><h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/generating.html">Generating</a></p><h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure><p>More info: <a href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>]]>
    </content>
    <id>https://www.bytedream.org/posts/hello-world.html</id>
    <link href="https://www.bytedream.org/posts/hello-world.html"/>
    <published>2026-03-30T11:50:00.000Z</published>
    <summary>
      <![CDATA[<p>Welcome to <a href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/">documentation</a>]]>
    </summary>
    <title>Hello World</title>
    <updated>2026-04-13T05:25:53.624Z</updated>
  </entry>
</feed>
