Arch:安装Archlinux:修订间差异
建立內容為「采取UEFI+win10双系统 =安装= ==准备== * 压缩windows磁盘卷 * 刻录archlinux 引导盘 ==安装系统== ===分区=== <pre> /dev/sda1 EFI /dev/sda2 w…」的新頁面 |
|||
(未显示同一用户的9个中间版本) | |||
第8行: | 第8行: | ||
==安装系统== | ==安装系统== | ||
===分区=== | ===分区=== | ||
<syntaxhighlight lang="bash" inline>fdisk /dev/sda</syntaxhighlight>进行分区: | |||
<pre> | <pre> | ||
/dev/sda1 EFI | /dev/sda1 EFI | ||
第31行: | 第32行: | ||
mount /dev/sda7 /mnt/var | mount /dev/sda7 /mnt/var | ||
swapon /dev/sda5 | swapon /dev/sda5 | ||
</syntaxhighlight> | |||
===创建系统=== | |||
<syntaxhighlight lang="bash"> | |||
ping archlinux.org | |||
timedatectl set-ntp true | |||
pacstrap /mnt base linux linux-firmware | |||
genfstab -U /mnt >> /mnt/etc/fstab | |||
arch-chroot /mnt | |||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |||
hwclock --systohc | |||
pacman -S extra/vim | |||
#/etc/locale.gen 选zh-CN.UTF-8 | |||
locale-gen | |||
#/etc/locale.conf | |||
LANG=zh-CN.UTF-8 | |||
# /etc/hostname | |||
OptiPlex-7080 | |||
# /etc/hosts | |||
127.0.0.1 localhost | |||
::1 localhost | |||
127.0.1.1 OptiPlex 7080 | |||
passwd | |||
pacman -S networkmanager | |||
systemctl enable NetworkManager.service | |||
pacman -S extra/refind | |||
mkdir -p /boot/efi | |||
mount /dev/sda1 /boot/efi | |||
refind-install | |||
</syntaxhighlight> | |||
然后修改/boot/refind_linux.conf,改成最后一行那样。 | |||
==安装完操作== | |||
<syntaxhighlight lang="bash"> | |||
useradd -G wheel -m riguz | |||
passwd riguz | |||
pacman -S wqy-microhei wqy-zenhei | |||
</syntaxhighlight> | |||
===软件源=== | |||
<syntaxhighlight lang="bash"> | |||
pacman -Ss reflector | |||
reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist | |||
pacman -S xorg xorg-server | |||
pacman -S plasma-desktop sddm | |||
pacman -S sudo | |||
systemctl enable sddm.service | |||
</syntaxhighlight> | </syntaxhighlight> | ||
重启即可 | |||
=其他软件安装= | |||
<syntaxhighlight lang="bash"> | |||
sudo pacman -S net-tools dnsutils inetutils iproute2 | |||
sudo pacman -S adobe-source-han-serif-cn-fonts | |||
sudo pacman -S adobe-source-han-sans-cn-fonts | |||
sudo pacman -S openssh | |||
sudo systemctl enable sshd.service | |||
sudo pacman -S zsh | |||
</syntaxhighlight> | |||
== 设置Windows使用UTC硬件时钟 == | |||
貌似还是不准确。 | |||
<syntaxhighlight lang="bash"> | |||
reg add “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation” /v RealTimeIsUniversal /d 1 /t REG_QWORD /f | |||
</syntaxhighlight> | |||
[[Category:Linux]] | [[Category:Linux]] |
2022年10月13日 (四) 11:24的最新版本
采取UEFI+win10双系统
安装
准备
- 压缩windows磁盘卷
- 刻录archlinux 引导盘
安装系统
分区
fdisk /dev/sda
进行分区:
/dev/sda1 EFI /dev/sda2 windows reserved /dev/sda3 windows 10 /dev/sda4 20G / /dev/sda5 16G swap /dev/sda6 50G /home /dev/sda7 others /var
mkfs.ext4 /dev/sda4
mkfs.ext4 /dev/sda6
mkfs.ext4 /dev/sda7
mkswap /dev/sda5
mount /dev/sda4 /mnt
mkdir /mnt/home
mkdir /mnt/var
mount /dev/sda6 /mnt/home
mount /dev/sda7 /mnt/var
swapon /dev/sda5
创建系统
ping archlinux.org
timedatectl set-ntp true
pacstrap /mnt base linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
pacman -S extra/vim
#/etc/locale.gen 选zh-CN.UTF-8
locale-gen
#/etc/locale.conf
LANG=zh-CN.UTF-8
# /etc/hostname
OptiPlex-7080
# /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 OptiPlex 7080
passwd
pacman -S networkmanager
systemctl enable NetworkManager.service
pacman -S extra/refind
mkdir -p /boot/efi
mount /dev/sda1 /boot/efi
refind-install
然后修改/boot/refind_linux.conf,改成最后一行那样。
安装完操作
useradd -G wheel -m riguz
passwd riguz
pacman -S wqy-microhei wqy-zenhei
软件源
pacman -Ss reflector
reflector --verbose --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
pacman -S xorg xorg-server
pacman -S plasma-desktop sddm
pacman -S sudo
systemctl enable sddm.service
重启即可
其他软件安装
sudo pacman -S net-tools dnsutils inetutils iproute2
sudo pacman -S adobe-source-han-serif-cn-fonts
sudo pacman -S adobe-source-han-sans-cn-fonts
sudo pacman -S openssh
sudo systemctl enable sshd.service
sudo pacman -S zsh
设置Windows使用UTC硬件时钟
貌似还是不准确。
reg add “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation” /v RealTimeIsUniversal /d 1 /t REG_QWORD /f