Skip to content

Commit 9ac3ad9

Browse files
committed
update
1 parent e20abce commit 9ac3ad9

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

config/_default/params.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ favicon = ""
66

77
[footer]
88
since = 2023
9-
customText = "**Give_the_world_My_approaches**"
9+
customText = ""
1010

1111
[dateFormat]
1212
published = "2006-01-02"

content/post/archlinux-setup/index.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: "Archlinux安装"
3+
date: 2024-01-17T18:27:12+08:00
4+
draft: true
5+
---
6+
7+
Arch的安装确实照着官方教程做一遍就会了,不过每次安装总要看着wiki那还是挺麻烦的,把整个流程记下来方便日后再安装。
8+
9+
```shell
10+
# iwctl联网
11+
device list
12+
station <device> scan
13+
station <device> get-networks
14+
station <device> connect <SSID>
15+
16+
# 硬盘分区
17+
fdisk -l <disk>
18+
fdisk <disk>
19+
fdisk>> g # 新建GPT分区表
20+
fdisk>> n # 新建分区
21+
fdisk>> t # 更改分区类型 1 19 23
22+
fdisk>> w
23+
24+
# 格式化分区
25+
mkfs.fat -F 32 <EFI_partition>
26+
mkswap <swap_partition>
27+
mkfs.ext4 <root_partition>
28+
29+
# 挂载分区
30+
mount <root_partition> /mnt
31+
mount --mkdir <EFI_partition> /mnt/boot
32+
swapon <swap_partition>
33+
34+
# 安装系统
35+
vim /etc/pacman.d/mirrorlist # Server=https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
36+
37+
pacstrap -K /mnt base linux linux-firmware amd-ucode networkmanager vim
38+
39+
# 配置系统
40+
genfstab -U /mnt >> /mnt/etc/fstab
41+
arch-chroot /mnt
42+
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
43+
hwclock --systohc
44+
vim /etc/locale.gen # en_US.UTF-8
45+
locale-gen
46+
vim /etc/locale.conf # LANG=en_US.UTF-8
47+
echo <hostname> >> /etc/hostname
48+
passwd
49+
50+
# bootloader
51+
pacman -S grub efibootmanager
52+
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
53+
54+
# Nvidia
55+
pacman -S nvidia nvidia-utils nvidia-setting
56+
57+
# 桌面环境
58+
pacman -S gnome gnome-tweak
59+
```

0 commit comments

Comments
 (0)