AnielAlexa

  • 3 Mar
  • Joined Sep 25, 2023
  • 0 best answers
  • Hy,
    If you want to connect to a new wifi using ssh over USB, you can do the following:
    1. Connect RAE (lateral port) with PC and ssh root@192.168.197.55

    2.Create file with nano /etc/wpa_supplicant.conf and paste:
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=wheel
    network={
    ssid="your wifi name"
    psk="your wifi password"
    }

    then Ctrl + O (confirm file name) -> Enter -> Ctrl + X

    3.Create file with nano /etc/systemd/network/20-wifi.networkand paste:
    [Match]
    Name=wlp1s0
    [Network]
    DHCP=ipv4
    [DHCP]
    UseDomains=true

    then Ctrl + O (confirm file name) -> Enter -> Ctrl + X

    4.systemctl stop wifi

    5.wpa_supplicant -i wlp1s0 -c /etc/wpa_supplicant.conf

    6.systemctl restart systemd-networkd (different terminal)

    You will have to remove 20-wifi.network and reboot the device if you want to use robot's access point again.