nakanomikuorg / arch-guide

✨ archlinux 简明指南 | 本指南包含从 archlinux 安装、显卡驱动、日常软件配置、多媒体制作、编程等你可能需要的全部内容 | 提供在线文档 ✨
https://arch.icekylin.online/
Creative Commons Attribution Share Alike 4.0 International
1.43k stars 138 forks source link

device list # 没有任何内容 #232

Open Greet-GitHub opened 1 month ago

Greet-GitHub commented 1 month ago

VirtualBox_ARCH_05_06_2024_01_35_44 屏幕截图(7) 屏幕截图(8) 屏幕截图(9) 屏幕截图(10)

Greet-GitHub commented 1 month ago

VirtualBox_ARCH_05_06_2024_01_59_30

Greet-GitHub commented 1 month ago

VirtualBox_ARCH_05_06_2024_02_13_18

Greet-GitHub commented 1 month ago

lspci -k | grep Network VirtualBox_ARCH_05_06_2024_02_20_36

Greet-GitHub commented 1 month ago

VirtualBox_ARCH_05_06_2024_02_25_57

Greet-GitHub commented 4 weeks ago

myArchInstallStart.zsh

`#!/bin/zsh

停止reflector服务

sudo systemctl stop reflector.service

检查reflector服务状态

sudo systemctl status reflector.service

检查UEFI模式

ls /sys/firmware/efi/efivars

网络配置

ip addr ip link

时间同步

timedatectl set-ntp true timedatectl status

磁盘分区和格式化

lsblk

假设您已经知道要操作的磁盘设备,例如 /dev/sda

parted /dev/sda

(在 parted 中创建GPT分区表和分区)

cfdisk /dev/sda fdisk -l lsblk

格式化分区

mkfs.fat -F32 /dev/sda1 mkswap /dev/sda2 mkfs.btrfs -L myArch /dev/sda3

挂载分区

mount -t btrfs -o compress=zstd /dev/sda3 /mnt mount -a df -h btrfs subvolume create /mnt/@ btrfs subvolume create /mnt/@home btrfs subvolume list -p /mnt umount /mnt # mount -t btrfs -o subvol=/@,compress=zstd /dev/sda3 /mnt mkdir /mnt/home mount -t btrfs -o subvol=/@home,compress=zstd /dev/sda3 /mnt/home mkdir -p /mnt/boot/EFI mount /dev/sda1 /mnt/boot/EFI swapon /dev/sda2 mount -a df -h free -h

安装Arch Linux基本系统

pacstrap /mnt base base-devel linux linux-firmware btrfs-progs pacman -S archlinux-keyring pacstrap /mnt networkmanager vim sudo zsh zsh-completions openssh gcc

配置fstab文件

genfstab -U /mnt > /mnt/etc/fstab cat /mnt/etc/fstab mount -a df -h free -h

进入chroot环境

arch-chroot /mnt `

myArchInstalling.zsh

`#!/bin/zsh

!/bin/zsh

设置系统配置

echo "myArch" > /etc/hostname echo "127.0.0.1 localhost" >> /etc/hosts echo "::1 localhost" >> /etc/hosts echo "127.0.1.1 myArch.localdomain myArch" >> /etc/hosts

设置时区和locale

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime hwclock --systohc echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen echo "zh_CN.UTF-8 UTF-8" >> /etc/locale-gen locale-gen echo 'LANG=en_US.UTF-8' > /etc/locale.conf

设置root密码

passwd root

安装微码

pacman -S intel-ucode # 对于Intel CPU

pacman -S amd-ucode # 对于AMD CPU

安装GRUB引导程序

pacman -S grub efibootmgr os-prober grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=myArch vim /etc/default/grub # 根据需要编辑配置 grub-mkconfig -o /boot/grub/grub.cfg

修复EFI启动项

mv /boot/EFI/grub /boot/EFI/BOOT

mv /boot/EFI/GRUB/grubx64.efi /boot/EFI/BOOT/BOOTX64.EFI

退出chroot环境并卸载所有挂载

exit umount -R /mnt

重启系统

reboot

`

myArchInstallEnd.zsh

`

systemctl enable --now NetworkManager # 设置开机自启并立即启动 NetworkManager 服务
systemctl enable --now sshd # 设置开机自启并立即启动 sshd 服务 chsh -s $(which zsh) echo $SHELL

ZSH环境

pacman -S neofetch neofetch`

通过scp等方式下载脚本,方便安装

zlicdt commented 8 hours ago

iwctl只能探测无线硬件,正常的