Arch install problem @ Erwin Li | 2022-11-23T16:17:44Z | 2 minutes read | Update at 2023-12-06T00:27:08Z

Most of installation steps can be done by following official tutorial. This are some tricky problem when I install the Arch.

Problem 1: GRUB boot problem

Do not forget gennerate GRUB configuration:

pacman -S grub bootmgr efibootmgr
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg  #!!!!!!!!do not forget!!!!!!!!!

Problem 2: Network configuration

Please install dhcpcd when Install essential packages:

pacstrap -K /mnt base linux linux-firmware dhcpcd wpa_suppicant wireless_tools
               #| officially recomended   |            for network            |

dhcpcd reference: https://wiki.archlinux.org/title/dhcpcd

wpa_supplicant reference: https://wiki.archlinux.org/title/Wpa_supplicant

Setup wired network

ip link             # check interface(optial)
dhcpcd $(interface) # interface is optial

Setup wireless network

Firstly, edit the basic conf file for wpa_supplicant:

/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/run/wpa_supplicant
update_config=1

Then generate network conf part.

  1. eduroma

    Generate conf file by official tools https://cat.eduroam.org/.

    example: /path/to/cat_installer.conf
    network={
            ssid="eduroam"
            key_mgmt=WPA-EAP
            pairwise=CCMP
            group=CCMP TKIP
            eap=PEAP
            ca_cert="/path/to/ca.pem"
            identity="xxxxxxxxxxx"
            altsubject_match="DNS:radius01.is.ed.ac.uk"
            phase2="auth=MSCHAPV2"
    	password="xxxxxxxxxxx"
    
    }
    

    Then add the conf to default conf and start it :

    cat /path/to/cat_installer.conf >> /etc/wpa_supplicant/wpa_supplicant.conf
    
    wpa_supplicant -B -i interface -c /etc/wpa_supplicant/wpa_supplicant.conf
    
    iwconfig   # (optial) you will find your $(interface) access to a wifi now
    
    wpa_cli -p /run/wpa_supplicant.conf  # (optial) if you want to manage your links
    

    reference: https://wiki.archlinux.org/title/Network_configuration/Wireless#eduroam

  2. normal wifi

    Generate conf file by wpa_passphrase:

    wpa_passphrase WIFI_name(SSID) password(passphrase) >> /etc/wpa_supplicant/wpa_supplicant.conf
    
    wpa_supplicant -B -i interface -c /etc/wpa_supplicant/wpa_supplicant.conf
    
    iwconfig   # (optial) you will find your $(interface) access to a wifi now
    
    wpa_cli -p /run/wpa_supplicant.conf  # (optial) if you want to manage your links
    

    reference: https://wiki.archlinux.org/title/Wpa_supplicant#Connecting_with_wpa_passphrase

At last start dhcpcd:

dhcpcd $(interface) # interface is optial

Start dhcpcd and wpa_supplicant as service:

systemctl enable wpa_supplicant@interface.service
# config file for this service: /etc/wpa_supplicant/wpa_supplicant-interface.conf
systemctl enable dhcpcd@interface.service

© 2020 - 2024 Li Yuanhao's Blog

Powered by Hugo with theme Dream.

avatar

Li Yuanhao's BlogJust do it

Social Links