240 lines
12 KiB
HTML
Raw Normal View History

2025-01-02 21:19:48 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dich&#x27;blog</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<meta name="robots" content="noodp"/>
<link rel="stylesheet" href="https://blog.dich.bid/style.css">
<link rel="stylesheet" href="https://blog.dich.bid/color/blue.css">
<link rel="stylesheet" href="https://blog.dich.bid/color/background_dark.css">
<link rel="stylesheet" href="https://blog.dich.bid/font-hack-subset.css">
<meta name="description" content="">
<meta property="og:description" content="">
<meta property="og:title" content="Dich'blog">
<meta property="og:type" content="article">
2025-01-21 19:11:02 +08:00
<meta property="og:url" content="https://blog.dich.bid/learn-linux-for-pc-1/">
2025-01-02 21:19:48 +08:00
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:description" content="">
<meta name="twitter:title" content="Dich'blog">
<meta property="twitter:domain" content="blog.dich.bid">
2025-01-21 19:11:02 +08:00
<meta property="twitter:url" content="https://blog.dich.bid/learn-linux-for-pc-1/">
2025-01-02 21:19:48 +08:00
<link rel="alternate" type="application/atom+xml" title="Dich&#x27;blog Atom Feed" href="https://blog.dich.bid/atom.xml" />
</head>
<body class="">
<div class="container">
<header class="header">
<div class="header__inner">
<div class="header__logo">
<a href="https://blog.dich.bid" style="text-decoration: none;">
<div class="logo">
Dich&#x27;blog
</div>
</a>
</div>
</div>
<nav class="menu">
<ul class="menu__inner">
<li class="active"><a href="https://blog.dich.bid">blog</a></li>
<li><a href="https://blog.dich.bid/tags">tags</a></li>
<li><a href="https://blog.dich.bid/archive">archive</a></li>
<li><a href="https://blog.dich.bid/about">about me</a></li>
<li><a href="https://blog.dich.bid/links">links</a></li>
<li><a href="https://blog.dich.bid/search">search</a></li>
<li><a href="https://github.com/Dichgrem" target="_blank" rel="noopener noreferrer">github</a></li>
</ul>
</nav>
</header>
<div class="content">
<div class="post">
2025-01-21 19:11:02 +08:00
<h1 class="post-title"><a href="https://blog.dich.bid/learn-linux-for-pc-1/">Linux-For-PC(一):构成与发行版</a></h1>
2025-01-02 21:19:48 +08:00
<div class="post-meta-inline">
<span class="post-date">
2023-07-20
</span>
</div>
<span class="post-tags-inline">
:: tags:&nbsp;
<a class="post-tag" href="https://blog.dich.bid/tags/linux/">#Linux</a></span>
<div class="post-content">
<p>前言 Linux 作为一款强大、灵活且免费的操作系统吸引了越来越多的用户。然而对于初学者来说Linux 可能显得有些陌生,甚至有些令人望而生畏。本文旨在为那些刚踏入 Linux 世界的新手提供一份指南帮助他们更好地了解、使用这个令人着迷的操作系统。我们将探讨Linux的基本概念解释为何选择Linux深入剖析其主要构成要素以及不同的发行版之间的差异。</p>
<span id="continue-reading"></span><h2 id="yi-shen-me-shi-linux">一.什么是Linux</h2>
<p>Linux 是一种开源的类 UNIX 操作系统内核。它由芬兰的 Linus Torvalds 于1991年开始开发是一个自由、免费的操作系统。Linux 内核是操作系统的核心,负责管理硬件资源,并提供各种系统服务。与 Windows 和 macOS 等操作系统不同Linux 的源代码对所有人开放,任何人都可以查看、修改和重新分发。这使得 Linux 具有极高的自由度和可定制性用户可以根据自己的需求和偏好来定制操作系统。Linux 广泛应用于各种设备,包括个人计算机、服务器、手机、嵌入式系统等,是一个功能强大且灵活多样的操作系统。</p>
<h2 id="er-wei-shen-me-yao-yong-linux">二.为什么要用Linux</h2>
<ol>
<li>
<p><strong>开源免费</strong>Linux 是完全开源的,用户可以免费使用和修改源代码。</p>
</li>
<li>
<p><strong>稳定性和安全性</strong>Linux 系统以其稳定性和安全性而闻名,适合长时间运行的服务。</p>
</li>
<li>
<p><strong>灵活性和可定制性</strong>:用户可以根据需要定制 Linux 系统。</p>
</li>
<li>
<p><strong>广泛的软件支持</strong>:有大量的开源软件可供选择,满足不同需求。</p>
</li>
</ol>
<blockquote>
<p>Liunx可以用来玩游戏吗
实际上著名的 Steam Deck 的系统就是基于Arch linux 的。对于个人使用而言现在有不少原生支持linux 的游戏也可以使用Wine来运行Windows下的游戏。</p>
</blockquote>
<blockquote>
<p>Linux上软件会不会太少
参见 <a href="https://blog.dich.ink/open-source-software">常用跨平台开源软件</a>一文在社区的努力下如今软件生态已经非常丰富你也可以使用如Flatpak等商店安装软件或者直接使用Wine。如果有不得不在Windows下使用的软件可以装双系统。</p>
</blockquote>
<h2 id="san-linuxde-zhu-yao-gou-cheng">三.Linux的主要构成</h2>
<p>Linux操作系统主要由以下几个部分组成</p>
<ol>
<li>
<p><strong>内核</strong>操作系统的核心负责管理系统资源。如Zen内核LTS内核等。</p>
</li>
<li>
<p><strong>Shell</strong>命令行界面用户通过它与系统交互如Bash,Zsh等。</p>
</li>
<li>
<p><strong>图形用户界面GUI</strong>提供图形化操作界面如GNOME、KDE、XFCE等。</p>
</li>
<li>
<p><strong>文件系统</strong>如ext4、Btrfs等用于组织和管理磁盘上的文件。</p>
</li>
<li>
<p><strong>系统库</strong>:为应用程序提供运行时支持。</p>
</li>
<li>
<p><strong>应用程序</strong>用户可以直接使用的软件如文本编辑器、网页浏览器等。其中也有著名的GNU工具如Vim,GCC等。</p>
</li>
</ol>
<h2 id="si-xuan-ze-linuxfa-xing-ban">四.选择Linux发行版</h2>
<p>从上文可以发现选择Linux发行版实际上是在选择 <strong>内核/包管理器/图形界面</strong> 等组件的排列组合。其中最主要的因素是包管理器。</p>
<p>Linux有许多不同的发行版但大致可以分为几个系</p>
<p><strong>Debian系</strong>
DebianDebian以稳定性安全性和轻量级著称适合用于服务器和桌面环境。我们常说的Ubuntu就是基于Debian的发行版注重用户友好性和易用性。它提供了多种桌面环境选择以及许多现成的软件包。</p>
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>APTAdvanced Package Tool是Debian系发行版的主要包管理器。它使用命令行工具如apt-get、aptitude等来管理软件包。
</span></code></pre>
<p><strong>Red Hat系</strong></p>
<ul>
<li>Red Hat Enterprise LinuxRHELRHEL是一款商业发行版专注于企业级应用和支持。它提供了长期支持和专业技术支持服务适用于企业级服务器和工作站。</li>
<li>CentOSCentOS是基于RHEL源代码编译而成的免费发行版与RHEL兼容并提供类似的功能和性能。它也提供了长期支持版本和稳定性较高的特点。</li>
<li>FedoraFedora是由Red Hat支持的社区驱动的发行版注重提供最新的软件特性和技术。它适用于开发者和技术爱好者提供了稳定的发布周期和丰富的软件包。</li>
</ul>
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>YUMYellowdog Updater, Modified是Red Hat系发行版的主要包管理器。最近的版本也开始采用DNFDandified YUM
</span></code></pre>
<p><strong>Arch系</strong>
Arch LinuxArch Linux是一个简洁、轻量级且灵活的发行版注重简洁性和滚动更新。它采用“滚动发布”的方式用户可以通过自定义安装来构建自己的系统适合有一定Linux经验的用户。</p>
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>PacmanPackage Manager是Arch Linux的主要包管理器。它使用简洁的命令来管理软件包如pacman -S安装软件包、pacman -Syu更新系统等。
</span></code></pre>
<p><strong>Gentoo系</strong>
GentooGentoo是一个源码驱动的发行版用户可以通过源代码自定义编译软件包以满足自己的需求。它注重性能和灵活性适合高级用户和技术爱好者。</p>
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>Portage是Gentoo的包管理器它是一个源代码驱动的包管理器允许用户从源代码构建和安装软件包。
</span></code></pre>
<p>除了以上列举的包管理器外还有其他一些较为特殊的包管理器如Slackware系的pkgtool、SUSE系的zypper等。</p>
<p>对于个人使用而言我个人建议新手使用Ubuntu,有比较易用的界面和完善的资料参考如果你是一个系统极客可以使用Arch linux 或者 NixOS。</p>
<h2 id="wu-ge-ren-ri-chang-shi-yong-xu-yao-zhu-yi-shen-me">五.个人日常使用需要注意什么?</h2>
<ol>
<li>
<p><strong>学习命令行</strong>命令行是Linux的强大工具学习基本命令可以提高效率。</p>
</li>
<li>
<p><strong>选择合适的发行版</strong>:根据个人需求和技术水平选择适合的发行版。</p>
</li>
<li>
<p><strong>系统备份</strong>:定期备份重要数据,以防意外丢失。</p>
</li>
<li>
<p><strong>软件管理</strong>:了解如何安装、更新和卸载软件。</p>
</li>
<li>
<p><strong>安全设置</strong>:设置强密码,定期更新系统以修复安全漏洞。</p>
</li>
<li>
<p><strong>社区参与</strong>Linux社区非常活跃遇到问题可以寻求社区帮助。</p>
</li>
<li>
<p><strong>硬件兼容性</strong>检查你的硬件是否与选择的Linux发行版兼容。</p>
</li>
<li>
<p><strong>驱动程序</strong>:确保你的硬件设备有可用的驱动程序,以避免兼容性问题。</p>
</li>
</ol>
</div>
<div class="pagination">
<div class="pagination__title">
<span class="pagination__title-h">Thanks for reading! Read other posts?</span>
<hr />
</div>
<div class="pagination__buttons">
<span class="button next">
2025-01-21 19:11:02 +08:00
<a href="https://blog.dich.bid/learn-linux-for-pc-2/">
2025-01-02 21:19:48 +08:00
<span class="button__text">Linux-For-PC(二):FHS与目录结构</span>&nbsp;
<span class="button__icon"></span>
</a>
</span>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="footer__inner">
<div class="copyright">
<span>©
2025
Dichgrem</span>
<span class="copyright-theme">
<span class="copyright-theme-sep">:: </span>
Theme: <a href="https://github.com/pawroman/zola-theme-terminimal/">Terminimal</a> by pawroman
</span>
</div>
</div>
</footer>
</div>
</body>
</html>