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盘(会清空),然后选择安装即 ...
随机推荐
- 使用FFmpeg处理视频文件:视频转码、剪切、合并、播放速调整
安装 略. 转码 最简单命令如下: ffmpeg -i out.ogv -vcodec h264 out.mp4ffmpeg -i out.ogv -vcodec mpeg4 out.mp4ffmpe ...
- springboot启动报错:Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.zxkj.lockserver.dao.CompanyDao' available: expected at least 1 bean which qua
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of ty ...
- XV6源代码阅读-中断与系统调用
Exercise1 源代码阅读 1.启动部分: bootasm.S bootmain.c 和xv6初始化模块:main.c bootasm.S 由16位和32位汇编混合编写成的XV6引导加载器.boo ...
- XV6源代码阅读-进程线程
Exercise1 源代码阅读 1.基本头文件:types.h param.h memlayout.h defs.h x86.h asm.h mmu.h elf.h types.h:仅仅是定义uint ...
- 人脸识别 API Key和Secret Key作用
App key简称API接口验证序号,是用于验证API接入合法性的.接入哪个网站的API接口,就需要这个网站允许才能够接入,如果简单比喻的话:可以理解成是登陆网站的用户名 App Secret简称AP ...
- Gym 101158D(暴力)
题意:给定两个长度为N的字符串,1<=N<=4000,求满足字符串1中的某个区间所有的字母种类和个数都与字符串2中的某个区间相同最长的区间长度. 分析: 1.预处理每个串字母个数的前缀和. ...
- zoj1002
Suppose that we have a square city with straight streets. A map of a city is a square board with n r ...
- 统计返回的Decimal/long型数据转换问题
mysql数据库在进行统计时候,返回的count()是个long型,sum()返回的是bigDecimal类型,前段需要的是int型故而需要进行转换. <select id="getD ...
- 英语语法 - the + 形容词 的意义
1,表示一类人 (复数) the young 青年 the old 老年the poor 穷人 the rich 富人the sick 病人 The old need care more than ...
- Vulkan SDK 之 DrawCube
Waiting for a Swapchain Buffer Beginning the Render Pass Bind the Pipeline Bind the Descriptor Sets ...