ArchLinux安装(BIOS)
ArchLinux安装(BIOS)
说在前头:在经历过无数次的失败尝试过后总结出的可用的安装过程(比官方的简单一点)
官方安装指导
一.连接网络
1.连接
# wifi-menu
2.检查是否联通
(ctrl+c停止)
# ping www.baidu.com
3.远程安装
注:连接上网络之后可以通过远程链接(同一个网络下)在另一台电脑上进行安装操作(可方便复制代码),如不想这么做请忽略这一步骤
开启ssh
# systemctl start sshd
查看ip地址
# ip a
更改root账户密码(这还不是系统的root)
# passwd
在另外的电脑上连接
# ssh root@[ip地址]
例如:
ssh root@192.168.1.1
二.更新系统时钟
1.设置
# timedatectl set-ntp true
2.检查
# timedatectl status
三.磁盘分区
1.查看当前的可用磁盘
一般都是 /dev/sda
# fdisk -l
2.创建新分区
# fdisk /dev/sda
-->n -->回车 -->回车 -->回车 -->+500m
-->n -->回车 -->回车 -->回车 -->+6G
-->n -->回车 -->回车 -->回车 -->回车
-->w
如:
root@archiso ~ # fdisk /dev/sda
Welcome to fdisk (util-linux 2.33).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x1d29b8d3.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Partition number (1-4, default 1):
First sector (2048-41943039, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-41943039, default 41943039): +500m
Created a new partition 1 of type 'Linux' and of size 500 MiB.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (2-4, default 2):
First sector (1026048-41943039, default 1026048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-41943039, default 41943039): +6G
Created a new partition 2 of type 'Linux' and of size 6 GiB.
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (3,4, default 3):
First sector (13608960-41943039, default 13608960):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (13608960-41943039, default 41943039):
Created a new partition 3 of type 'Linux' and of size 13.5 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@archiso ~ #
3.格式化分区
将bios分区格式化为ext2
根目录格式化为ext4
请注意自己的对应的目录是那块区域
# mkfs.ext2 /dev/sda1
# mkswap /dev/sda2
# mkfs.ext4 /dev/sda3
4.打开swap分区
请注意自己的swap分区是哪块
swapon /dev/sda2
5.挂载分区
# mount /dev/sda3 /mnt
# mkdir /mnt/boot
# mount /dev/sda1 /mnt/boot
四.安装系统基本包
1.配置源
将国内源放到第一位
# vim /etc/pacman.d/mirrorlist
2.刷新源
# pacman -Syy
3.安装基本包
# pacstrap /mnt base base-devel
4.生成fstab文件
# genfstab -U /mnt >> /mnt/etc/fstab
四.切换环境
1.切换
# arch-chroot /mnt
2.配置时区
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3.硬件时间
# hwclock --systohc
4.安装vim
方便操作
# pacman -S vim
6.设置语言
将/etc/locale.gen中en_US.UTF-8的注释去掉
避免中文乱码,推荐先使用英文
# vim /etc/locale.gen
# locale-gen
7.配置 /etc/locale.conf文件
# vim /etc/locale.conf
写入
LANG=en_US.UTF-8
8.重置root密码
# passwd
9.安装网络相关的包
# pacman -S iw wpa_supplicant dialog net-tools networkmanager
10.安装编码
# pacman -S intel-ucode
11.安装引导
# pacman -S grub
# grub-install /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
五.退出当前环境
# exit
六.卸载新分区
# umount -R /mnt
七.重启
# reboot
到此安装完成
八.可能遇到的问题
1.网络链接不上
具体表现为ping不同百度
解决办法:
# systemctl enable dhcpcd
# systemctl restart dhcpcd
ArchLinux安装(BIOS)的更多相关文章
- Archlinux安装总结
Archlinux安装总结 一.引导 1.BIOS与UEFI root@archiso ~ # ls /sys/firmware/efi/efivars ls: cannot access '/sys ...
- ArchLinux 安装笔记:续 --zz
续前话 在虚拟机里调试了几天,终于鼓起勇气往实体机安装了,到桌面环境为止的安装过程可以看我的前一篇文章<ArchLinux 安装笔记>.桌面环境我使用的是 GNOME,虽然用了很长一段时间 ...
- ArchLinux 安装笔记 --zz
为何安装 ArchLinux 为了更深层次的理解 Linux (其实只是闲的蛋疼 准备安装介质 U盘首选,没有之一.自己的本子是 MBR 的,UEFI 神马的我才不知道呢哼! 制作 U 盘启动: Li ...
- Archlinux 安装配置指导 2015-05-24
因为用的Linode VPS的系统是Archlinux的,想在本地弄个系统做测试用,这样比较方便.然后发现自己在6年前做的一个Archlinux 安装配置Flash,好怀念的赶脚. 时过进迁,没想到A ...
- ArchLinux安装KDE桌面
ArchLinux安装KDE桌面 一.链接网络 1.有线 # dhcpcd 2.无线 # wifi-menu 3.检查 # ping www.baidu.com 二.安装X服务 # pacman -S ...
- ArchLinux安装(UEFI)
ArchLinux安装(UEFI) 一.连接网络 1.连接 # wifi-menu 2.检查是否联通 (ctrl+c停止) # ping www.baidu.com 3.远程安装 注:连接上网络之后可 ...
- 【桌面篇】Archlinux安装kde桌面
ArchLinux安装配置手册[桌面篇] 现在你的U盘可以拔掉了,重启后会发现和刚刚没什么区别,还是命令行的界面,别着急现在就带你安装桌面环境. 连接网络 首先检查一下网络是否连接成功 ping ww ...
- ArchLinux安装后所需要的环境和工具
ArchLinux安装后所需要的环境和工具 工具: Dolphin 文件管理器 ntfs-3G 移动硬盘挂载 octopi 实时检查更新 KDE Connect 手机电脑远程连接 DBeaver Co ...
- ArchLinux安装手册(2022-10-01)
准备工作 镜像下载:北京外国语大学镜像 使用ventoy做启动盘: (1) ventoy下载:github下载地址 (2) 解压运行下载好的ventoy,设备选择准备好的U盘(会清空),然后选择安装即 ...
随机推荐
- Redar Chart_Study
1.Select a theme 2.Experiment with visual customization 3.Edit groups and categories 4.Creat a scrip ...
- Codeforces 1294D - MEX maximizing
思维,真的很巧妙啊,看了以下博客 https://www.cnblogs.com/stelayuri/p/12230033.html
- P1058 选择题
P1058 选择题 转跳点:
- 微软重制Windows 1.0系统:祖师爷出山了
Windows官方推特在7月1日发布了一条很有趣的动态,“向大家介绍全新的Windows 1.0,带MS-DOS.时钟等”.配发的视频回顾了从Windows 1.0/3.1到Windows 10期间, ...
- 51nod 1445:变色DNA 最短路变形
1445 变色DNA 题目来源: TopCoder 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注 有一只特别的狼,它在每个夜晚会进行变色,研究发现 ...
- C++面试常见问题——15函数的值传递、指针传递、引用传递
函数的值传递.指针传递.引用传递 值传递 形参是实参的拷贝,该表形参的值并不会影响外部的实参.值传递是单向的(实参-->形参),参数的值只能传入,不能传出.当函数内部需要修改参数并且不影响调用者 ...
- leetcode617 Merge Two Binary Trees
""" Given two binary trees and imagine that when you put one of them to cover the oth ...
- 【学CG系列】web之审查元素
一.审查元素的作用 审查元素(你的F12)可以做到定位网页元素.实时监控网页元素属性变化的功能,可以及时调试.修改.定位.追踪检查.查看嵌套 ,修改样式和查看js动态输出信息,是开发人员得心应手的好工 ...
- Spring入门之三-------SpringIoC之Scopes
一.singleton和prototype public class Bean1 { public Bean1() { System.out.println(this.getClass().getSi ...
- netty权威指南学习笔记三——TCP粘包/拆包之粘包现象
TCP是个流协议,流没有一定界限.TCP底层不了解业务,他会根据TCP缓冲区的实际情况进行包划分,在业务上,一个业务完整的包,可能会被TCP底层拆分为多个包进行发送,也可能多个小包组合成一个大的数据包 ...