Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

device list # 没有任何内容 #232

Open
Greet-GitHub opened this issue Jun 4, 2024 · 6 comments
Open

device list # 没有任何内容 #232

Greet-GitHub opened this issue Jun 4, 2024 · 6 comments

Comments

@Greet-GitHub
Copy link

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

@Greet-GitHub
Copy link
Author

VirtualBox_ARCH_05_06_2024_01_59_30

@Greet-GitHub
Copy link
Author

VirtualBox_ARCH_05_06_2024_02_13_18

@Greet-GitHub
Copy link
Author

lspci -k | grep Network
VirtualBox_ARCH_05_06_2024_02_20_36

@Greet-GitHub
Copy link
Author

VirtualBox_ARCH_05_06_2024_02_25_57

@Greet-GitHub
Copy link
Author

Greet-GitHub commented Jun 5, 2024

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
Copy link
Contributor

zlicdt commented Jul 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants