<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Archlinux on qytlix no blogs</title><link>https://blog.qyt.li/x/tags/archlinux/</link><description>Recent content from qytlix no blogs</description><generator>Hugo</generator><language>en-us</language><managingEditor>qytlix@gmail.com (qytlix)</managingEditor><webMaster>qytlix@gmail.com (qytlix)</webMaster><copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright><lastBuildDate>Wed, 08 Apr 2026 11:08:03 +0800</lastBuildDate><atom:link href="https://blog.qyt.li/x/tags/archlinux/index.xml" rel="self" type="application/rss+xml"/><item><title>设置Qt主题</title><link>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/%E8%AE%BE%E7%BD%AEqt%E4%B8%BB%E9%A2%98/</link><pubDate>Wed, 08 Apr 2026 11:08:03 +0800</pubDate><author>qytlix@gmail.com (qytlix)</author><guid>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/%E8%AE%BE%E7%BD%AEqt%E4%B8%BB%E9%A2%98/</guid><description>
<![CDATA[<h1>设置Qt主题</h1><p>Author: qytlix(qytlix@gmail.com)</p>
        
          <p>#qt #theme #config #archlinux #aur #hyprland
使用<code>qt6ct-kde</code>来自AUR
配置环境变量<code>hyprland.conf</code></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">env = QT_QPA_PLATFORMTHEME,qt6ct
</span></span></code></pre></div>
        
        <hr><p>Published on 2026-04-08 at <a href='https://blog.qyt.li/x/'>qytlix no blogs</a>, last modified on 2026-04-08</p>]]></description><category>content</category><category>tech</category><category>技术</category></item><item><title>在arch上面安装新的内核</title><link>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/%E5%9C%A8arch%E4%B8%8A%E9%9D%A2%E5%AE%89%E8%A3%85%E6%96%B0%E7%9A%84%E5%86%85%E6%A0%B8/</link><pubDate>Wed, 08 Apr 2026 11:08:03 +0800</pubDate><author>qytlix@gmail.com (qytlix)</author><guid>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/%E5%9C%A8arch%E4%B8%8A%E9%9D%A2%E5%AE%89%E8%A3%85%E6%96%B0%E7%9A%84%E5%86%85%E6%A0%B8/</guid><description>
<![CDATA[<h1>在arch上面安装新的内核</h1><p>Author: qytlix(qytlix@gmail.com)</p>
        
          <p>#archlinux #core
直接pacman先安装一个想要的内核，例如archlinuxcn/linux-lily</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">sudo pacman -S linux-lily
</span></span></code></pre></div><p>然后更新grub启动项</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">sudo grub-mkconfig -o /boot/grub/grub.cfg
</span></span></code></pre></div><h2 id="更改默认启动项">
<a class="header-anchor" href="#%e6%9b%b4%e6%94%b9%e9%bb%98%e8%ae%a4%e5%90%af%e5%8a%a8%e9%a1%b9"></a>
更改默认启动项
</h2><blockquote>
<p>from deepseek</p>
</blockquote>
<p>设置默认启动项的方法和你使用的引导加载程序（通常是 GRUB）有关。最常用的几种方法我都整理在下面了，你可以根据自己的需求来选择。</p>
<h3 id="-为-grub-用户准备的三种方法">
<a class="header-anchor" href="#-%e4%b8%ba-grub-%e7%94%a8%e6%88%b7%e5%87%86%e5%a4%87%e7%9a%84%e4%b8%89%e7%a7%8d%e6%96%b9%e6%b3%95"></a>
🎯 为 GRUB 用户准备的三种方法
</h3><p>你可以通过编辑 <code>/etc/default/grub</code> 文件来配置 GRUB 的默认行为，修改完成后，<strong>一定记得要运行 <code>sudo grub-mkconfig -o /boot/grub/grub.cfg</code> 命令来更新配置</strong>。</p>
<table>
  <thead>
      <tr>
          <th style="text-align: left">方法</th>
          <th style="text-align: left">核心配置 (<code>/etc/default/grub</code>)</th>
          <th style="text-align: left">适用场景与原理</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td style="text-align: left"><strong>1. 按菜单名称指定</strong></td>
          <td style="text-align: left"><code>GRUB_DEFAULT=&quot;Advanced options for Arch Linux&gt;Arch Linux, with Linux linux&quot;</code></td>
          <td style="text-align: left"><strong>最直观、最推荐</strong>。通过指定启动菜单中显示的名称来设定默认项，即使以后内核更新、菜单位置改变，只要名称不变就能准确启动。对于子菜单（如“高级选项”）中的内核，需要用 <code>&gt;</code> 符号连接主菜单和子菜单项的名称。</td>
      </tr>
      <tr>
          <td style="text-align: left"><strong>2. 按内核文件指定</strong></td>
          <td style="text-align: left"><code>GRUB_TOP_LEVEL=&quot;/boot/vmlinuz-linux-lts&quot;</code></td>
          <td style="text-align: left"><strong>最直接</strong>。直接指定默认启动的内核镜像文件（如你想默认启动 LTS 内核，就填这个路径）。这种方法会将 GRUB 菜单中的第一个（顶级）条目直接替换为你指定的内核。</td>
      </tr>
      <tr>
          <td style="text-align: left"><strong>3. 记住上次选择</strong></td>
          <td style="text-align: left"><code>GRUB_DEFAULT=saved</code> <!-- raw HTML omitted --> <code>GRUB_UB_SAVEDEFAULT=true</code></td>
          <td style="text-align: left"><strong>最灵活</strong>。系统会自动记住你上次启动时选择了哪个内核或系统，并将其作为下一次的默认启动项。</td>
      </tr>
  </tbody>
</table>
<blockquote>
<p>💡 <strong>一点小提示</strong>：方法 2 (<code>GRUB_TOP_LEVEL</code>) 和方法 3 (记住上次选择) 的功能是<strong>互斥的</strong>，同时启用可能会导致冲突，选一种最适合你的就好。</p>
        
        <hr><p>Published on 2026-04-08 at <a href='https://blog.qyt.li/x/'>qytlix no blogs</a>, last modified on 2026-04-08</p>]]></description><category>content</category><category>tech</category><category>技术</category></item><item><title>arch备份所有包名</title><link>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/arch%E5%A4%87%E4%BB%BD%E6%89%80%E6%9C%89%E5%8C%85%E5%90%8D/</link><pubDate>Wed, 08 Apr 2026 11:08:03 +0800</pubDate><author>qytlix@gmail.com (qytlix)</author><guid>https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/arch%E5%A4%87%E4%BB%BD%E6%89%80%E6%9C%89%E5%8C%85%E5%90%8D/</guid><description>
<![CDATA[<h1>arch备份所有包名</h1><p>Author: qytlix(qytlix@gmail.com)</p>
        
          <p>#archlinux #aur #pacman #package</p>
<p><img src="https://blog.qyt.li/x/post/tech/%E6%8A%80%E6%9C%AF/%E6%98%BE%E7%A4%BA%E6%89%80%E6%9C%89%E5%B1%9E%E4%BA%8Eaur%E7%9A%84%E5%8C%85/" alt="显示所有属于aur的包"></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">pacman -Qqm &gt; ~/package_names
</span></span></code></pre></div>
        
        <hr><p>Published on 2026-04-08 at <a href='https://blog.qyt.li/x/'>qytlix no blogs</a>, last modified on 2026-04-08</p>]]></description><category>content</category><category>tech</category><category>技术</category></item></channel></rss>