arch linux安装

by Andrea Giammarchi

由Andrea Giammarchi

In this article, you'll learn how to install Arch Linux from scratch… and in about 5 minutes. So let's get to it.

在本文中,您将学习如何从头开始安装Arch Linux,大约需要5分钟。 因此,让我们开始吧。

As of today, it’s been more or less 3 years I am happily using Arch Linux as my primary Operating System, and I’ve used it daily not only on my laptop, but also on my Gaming PC and many Single Board Computers too.

到今天为止,大约3年以来,我一直很愉快地将Arch Linux用作主要操作系统,不仅每天在笔记本电脑上使用它,而且在游戏PC和许多单板计算机上也都使用了它。

I’ve been using my archibold.io installer for quite a while, and recently I’ve rewritten it after learning more and more about Arch Linux.

我使用archibold.io安装程序已经有一段时间了,最​​近在了解了有关Arch Linux的更多信息后,我对其进行了重写。

This post is about me giving back few things I’ve learned from the Arch Linux project and its community, hopefully simplifying life to whoever would like to embrace this awesome distribution!

这篇文章是关于回馈我从Arch Linux项目及其社区中学到的一些东西的,希望可以简化那些希望接受这种出色发行的人的生活!

简而言之引导Linux OS (Booting a Linux OS in a nutshell)

You need a special partition recognized as bootable, and with some automatically recognized binary file capable of telling the motherboard how to booth, and where to boot on.

您需要一个特殊的分区,该分区被认为是可引导的,并带有一些自动识别的二进制文件,该文件能够告诉主板如何放置以及在哪里引导。

In Arch Linux land, there are basically 3 major players: U-Boot, the default boot loader used by Arch Linux ARM ports, Syslinux, which is the preferred choice of the very same Arch Linux ISO installer, and Grub, usually easier to configure on multi-boot systems, which is not part of this very post scope.

在Arch Linux领域中,基本上有3个主要参与者: U-Boot ( Arch Linux ARM端口使用的默认引导加载程序), Syslinux (是同一Arch Linux ISO安装程序的首选)和Grub (通常更易于配置)在多引导系统上,这不属于本发布范围。

Tools to deal with partitions are usually 2: parted, preferred when it comes to advanced features like UEFI partition and optimized disk alignment, or fdisk, which just works and does the job in a “less scriptysh” way.

处理分区的工具通常是2: parted ,当涉及高级功能(例如UEFI分区和优化的磁盘对齐)或fdisk时,首选使用fdisk ,它们以“ 少脚本 ”的方式起作用

开机如何? (Booting How ?)

There are few ways to tell a motherboard how to boot a system: UEFI configuration, which is mostly suitable for Windows OS running on Intel CPUs but usable to boot Linux distros too, and legacy BIOS compatible, which has less features than UEFI but it always delivers (and is the most widely available).

几乎没有什么方法可以告诉主板如何引导系统: UEFI配置,它最适合运行在Intel CPU上的Windows操作系统,但也可以用于引导Linux发行版,并且兼容旧BIOS,其功能比UEFI少,但始终交付(并且是使用最广泛的)。

On top of this distinction, while UEFI has a secure boot mode, which is again basically a Windows specific thing only, a boot can also include special commands capable of enabling, or disabling, an EDD mode, which is a good old Enhanced Disk Drive technology that might not be needed on boot time and in some case should be explicitly disabled like in VirtualBox images or some AMD based SBC like the Gizmo 2 board.

最重要的是,UEFI具有安全启动模式(基本上也仅是Windows专用),启动也可以包含能够启用或禁用EDD模式的特殊命令,这是一个很好的旧增强磁盘驱动器。在启动时可能不需要的技术,在某些情况下,应显式禁用该功能,例如在VirtualBox映像中或某些基于AMD的SBC(例如Gizmo 2板)中。

开机什么? (Booting What ?)

There is one and one only consolidated cross platform and universal File System out there and it’s sadly or thankfully the good old FAT one.

那里只有一个和一个统一的跨平台和通用文件系统,可悲的是,还是很幸运的是旧的FAT文件系统。

There are surely more suitable, more secure, faster, and more HW caring options out there, but FAT with a loader is a safe bet with both UEFI and legacy.

肯定有更合适,更安全,更快和更多的硬件维护选项,但是带有UEFI和传统的加载程序的FAT是一个安全的选择。

In few words, the most basic amount of partitions on your system should be 2: a FAT bootable one, and a “whatever you want” else. Please note that ext4 is still a very valid choice for daily tasks, but there are few valid alternatives to consider, yet not part of this post scope.

简而言之,系统上最基本的分区数量应该是2:FAT可引导分区,其他“ 随心所欲 ”分区。 请注意, ext4仍然是日常任务的非常有效的选择,但是没有什么有效的替代方法要考虑,但不属于本文的范围。

任何交换? (Any Swap ?)

If you are installing Arch Linux on a system with more than 4GB or RAM, and you are not planning to use such system to develop complex software, I’d say you shouldn’t worry much about having a backup swap partition.

如果要在具有超过4GB或RAM的系统上安装Arch Linux,并且不打算使用该系统来开发复杂的软件,那么我想说,您不必担心拥有备份交换分区。

Generally speaking, old laptops I’ve tested, with just 2GB of RAM, has been doing great without any extra swap and a graphical Desktop like GNOME without effort.

一般来说,我测试过的旧笔记本电脑只有2GB的内存,它在没有任何额外交换的情况下运行起来非常出色,而图形桌面(如GNOME)则毫不费力。

However, if you’d like to have some extra room to build more complex software, and you have more than 1GB of RAM, use 1/4 of your RAM amount and you’d be fine.

但是,如果您想腾出更多空间来构建更复杂的软件,并且拥有超过1GB的RAM,则使用1/4的RAM数量就可以了。

可以,但是所有安装Linux的命令在哪里? (OK but where are all the commands to install Linux ?)

This is the best part of this post, the moment you’ve reached this part is the moment you are self trained to answer all basic questions archibold.io installer is going to ask you.

这是本文的最佳部分,当您到达此部分的那一刻是您经过自我训练以回答archibold.io安装程序将要问您的所有基本问题的那一刻。

Download the Arch Linux ISO from the website, and use it for a VirtualBox boot, or burn it to an USB stick following this Wiki Page, you’ll have everything you need to boot into a terminal and run the following code:

从网站上下载Arch Linux ISO ,并将其用于VirtualBox引导,或在此Wiki页面之后将其刻录到USB记忆棒 ,您将拥有引导到终端并运行以下代码所需的一切:

$ bash <(curl -s archibold.io/base)

That’s basically it, the procedure will install the most basic Arch Linux you could think of on your machine or, like the video on top of this post shows, on a VirtualBox, in case you want to try it first.

基本上就是这个过程,该过程将在您的计算机上安装您可能想到的最基本的Arch Linux,或者像您在这篇文章顶部显示的视频一样,将其安装在VirtualBox上,以防您想先尝试一下。

好的,很酷……但是我也想要一个台式机! (OK, cool … but I’d like to have a Desktop too!)

In this case, oce you have booted into your account, you can check if you have an internet connection typing:

在这种情况下,一旦您启动了帐户,就可以检查是否有互联网连接输入:

ip addr

and if nothing appears under your wifi or ethernet name, follow these instructions:

如果您的wifi或以太网名称下没有任何内容,请按照以下说明进行操作:

# if not logged as root already, type 'su'su# use root as default password# now, in case you have a wired connectionip addr # to see the name of the adapterdhcpcd enp0s3 # where enp0s3 is just a made up name, use your one
# if it was wi-fi cardwifi-menu # and configure it
exit # to go back to your user

Once you have an internet connection, you can simply use another helper:

建立互联网连接后,您只需使用其他帮助器即可:

bash <(curl -s archibold.io/install/gnome)

The latter will guide you to install the best Desktop environment out there.

后者将指导您在那里安装最佳的桌面环境。

是的..但是... (Right .. but …)

If you’re stuck at any point, please don’t hesitate to file a bug in the Open Source archibold repository, or simply ask me questions in here.

如果您有任何困难 ,请随时在Open Source archibold存储库中提交错误,或在这里向我提问。

I’m pretty sure I can answer most of them so … bring it on! :-)

我敢肯定我能回答大多数人,所以……来吧! :-)

翻译自: https://www.freecodecamp.org/news/installing-arch-linux-from-scratch-b595095ddd48/

arch linux安装

arch linux安装_如何从头开始安装Arch Linux相关推荐

  1. zabbix-server-mysql安装_详解zabbix安装部署(Server端篇)

    分类: 网络与安全 Linux下常用的系统监控软件有Nagios.Cacti.Zabbix.Monit等,这些开源的软件,可以帮助我们更好的管理机器,在第一时间内发现,并警告系统维护人员. 今天开始研 ...

  2. eclipse ide安装_如何下载和安装Eclipse IDE?

    eclipse ide安装 Eclipse is a project which mainly provides a free, advanced integrated development env ...

  3. python pil无法安装_解决virtualenv下安装Python PIL的support not available问题

    配置的Debian Web服务器,通过virtualenv构建了Pyramid项目,大部分代码运行挺正常,到一个验证码程序时出错了,检查日志得到如下Python异常: ImportError: No ...

  4. python中的pandas怎么安装_如何优雅的安装Python的pandas?

    本文是我<量化小讲堂>系列文章中的一篇,正好可以解决楼主的问题,转帖如下,其他系列文章可见:[量化小讲堂 - Python&Pandas系列]目录汇总 - 量化小讲堂 开发环境的搭 ...

  5. basemap安装_【我是解决安装问题系列_1】Mac python basemap安装

    「2020/3/21更新」 附basemap网盘下载地址⏬ Python需要跳过的安装的坑太太太太多了!!!!! 最近看<利用python进行数据分析>这本书,到可视化的部分,看着最后的例 ...

  6. python源码包安装_源码包安装python2.7.6和ipython1.2.1

    1. CentOS 6.X的安装就不多说 2.安装包Python2.7.6 和Ipython的下载官网都有,自行下载. 注意,不要去卸载系统自带的python程序,在CentOS6.X中python为 ...

  7. adhoc包无法安装_关于iOS 应用安装失败的原因找到了

    原标题:关于iOS 应用安装失败的原因找到了 iOS 的内测应用在安装时,很多人都遇到过安装失败的情况,安装失败的原因比较多,下面我们将一些常见原因总结如下,方便开发者进行排查. 启动应用时,出现提示 ...

  8. debian nvidia 安装_在 Debian 上安装 Nvidia 显卡驱动启用 Nvenc

    最近弄了一台带 GT 710 显卡的杜甫,便想着可以利用 Nvenc 显卡硬件编码来驱动 Jellyfin 在线转码云播.不过折腾的过程中遇到了不少问题,在此梳理一番正确的安装流程,以便来日查询参考. ...

  9. 友基s400手写板怎么安装_电脑手写板怎么安装 轻松学会安装手写板【图文】

    很多人买了手写板拿到手,却苦恼于自己是电脑小白而不会安装手写板或者是电脑手写板安装不成功.电脑手写板怎么安装?下面我们一起来学习下怎么安装电脑手写板. 电脑手写板怎么安装 1.把手写板的驱动盘放进光驱 ...

最新文章

  1. div渐变遮罩效果:纵向和水平反向渐变遮罩效果,让戛然而止的页面多一丝丝淡淡的过渡效果,温柔中透露着一缕缕优雅...
  2. datatables
  3. IDC:企业向云转变推动了SD-WAN市场增长
  4. Android Scroll分析
  5. 关于百度网盘限速第三方客户端的提醒
  6. 推荐两款工具给爱做实验的人
  7. JavaScript 面向对象编程(三) —— 函数进阶 / 严格模式 / 高阶函数 / 闭包 / 浅拷贝和深拷贝
  8. 【Python】strip()方法
  9. 25个超适合学生党的0成本兼职,自我增值的最有效方式
  10. Android Launcher研究与开发——桌面的初步定制化
  11. 用手持式频谱分析仪进行干扰检测
  12. Detours学习之七:Detours示例程序构建
  13. 开源协议及应用 (BSD/GPL/LGPL/Apache/MIT)
  14. VUE微信开放平台实现网站微信登陆
  15. [从零开始unity3D]“五子连珠”游戏实现,网格数组的创建(1)
  16. 径向基神经网络(rbfn)进行函数插值,代码实现
  17. 简单的文本编辑器C语言实现
  18. SAP 发票校验统驭科目替代解决方案
  19. 人脸识别损失函数梳理与分析/相关方法整理
  20. matlab中的数据导入.mat

热门文章

  1. iOS架构篇-3 网络接口封装
  2. python表格筛选打印_按行名进行表格筛选:awkpythonR
  3. iOS 模糊效果相关
  4. iOS crash日志分析
  5. iOS中你可能没有完全弄清楚的(一)synthesize
  6. 如何用 OS X 的 Xcode 写C语言程序
  7. iOS 自定义双向滑块Slider
  8. seg:NLP之正向最大匹配分词
  9. 全网把Map中的hash()分析的最透彻的文章,别无二家。
  10. Linux6版本系统搭建Open***远程访问