apt install wpa_supplicant dhcpcd5 

cp /usr/share/dhcpcd/hooks/10-wpa_supplicant /lib/dhcpcd/dhcpcd-hooks/ 

echo "ctrl_interface=/run/wpa_supplicant GROUP=netdev" > /etc/wpa_supplicant/wpa_supplicant-wlxd0374580ba41.conf 

wpa_passphrase r3l0c.name "12345678" >> /etc/wpa_supplicant/wpa_supplicant-wlxd0374580ba41.conf

systemctl disable wpa_supplicant.service 

systemctl enable [email protected] 

systemctl enable dhcpcd.service 

systemctl enable dhcpcd.service && systemctl restart dhcpcd.service