Firstly, via USB. I set a gateway on Beaglebone, but the desktop (host Ubuntu) does not care. There are some instructions on the internet, followed by "if does not work add use echo 1 > /proc/sys/net/ipv4/ip_forward, a thing with iptables, whatever", it all did not work, ping 126.96.36.199 on the bone does not work. Someone told that you need to put the respective interface to a "trusted zone". I do not know where I can found that zone. To add a VPN connection. "Add a VPN connection" is grayed on my system.
I did not want to touch wifi, because I would prefer beaglebone to be a hotspot, but if it did not work with the cable...
Firstly, there is "connman", to make it easier. I tried connman, but the wifi network is enterprise tunneled double-authentication etc, connman just prints "invalid arguments" when I try to connect. There is some wpa-supplicant-like configuration file, added it as instructed, but no effect, all I see is still "invalid arguments". No detailed error, no problematic file, no problematic line, no list of these arguments, nothing, just "invalid arguments".
Lastly, there is wpa-supplicant itself. I made a respective file, but it all starts and stops with
$ wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0
Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlan0 flags: No such device
nl80211: Could not set interface 'p2p-dev-wlan0' UP
nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
p2p-dev-wlan0: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface
There is nothing about p2p-dev-wlan0, whatever it is, in wpa_supplicant.conf
Could you please help me? I had never problems with RPi, with BBone Black, but Blue, no idea. I am not a network expert and I do not want to be one. I just want to apt update etc. Thanks.