root@archiso ~ # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 8c:16:45:ae:72:24 brd ff:ff:ff:ff:ff:ff inet 192.168.100.15/24 metric 100 brd 192.168.100.255 scope global dynamic enp0s31f6 valid_lft 75794sec preferred_lft 75794sec inet6 fe80::8e16:45ff:feae:7224/64 scope link valid_lft forever preferred_lft forever 4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether c0:b6:f9:2c:a0:10 brd ff:ff:ff:ff:ff:ff root@archiso ~ #
然后在ssh本地机器上登录
1
ssh root@192.168.100.15
登录上后,测试目标机器的网络连接
1
ping www.baidu.com
如果是无线网络连接请参考:
使用 iwctl 进行连接:
1 2 3 4 5 6
iwctl # 进入交互式命令行 device list # 列出无线网卡设备名,比如无线网卡看到叫 wlan0 station wlan0 scan # 扫描网络 station wlan0 get-networks # 列出所有 wifi 网络 station wlan0 connect wifi-name # 进行连接,注意这里无法输入中文。回车后输入密码即可 exit# 连接成功后退出
更新系统时钟
1 2
timedatectl set-ntp true # 将系统时间与网络时间进行同步 timedatectl status # 检查服务状态
更换国内源
使用 vim 编辑器修改 /etc/pacman.d/mirrorlist 文件。将 pacman 软件仓库源更换为国内软件仓库镜像源:
1
vim /etc/pacman.d/mirrorlist
放在最上面的是会使用的软件仓库镜像源,推荐的镜像源如下:
1 2 3 4
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch # 中国科学技术大学开源镜像站 Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch # 清华大学开源软件镜像站 Server = https://repo.huaweicloud.com/archlinux/$repo/os/$arch # 华为开源镜像站 Server = http://mirror.lzu.edu.cn/archlinux/$repo/os/$arch # 兰州大学开源镜像站
Device Start End Sectors Size Type >> /dev/sda1 2048 616447 614400 300M EFI System /dev/sda2 616448 649215 32768 16M Microsoft reserved Free space 649216 420081663 419432448 200G /dev/sda3 420081664 1613363199 1193281536 569G Microsoft basic data /dev/sda4 1613363200 2806644735 1193281536 569G Microsoft basic data /dev/sda5 2806644736 4000797326 1194152591 569.4G Microsoft basic data