I am trying to set up a an internet connection through a usb wifi sticker in Linux.Here's the sequence I tried:iw devThis returns the name(?) of the Interface that I want to connect to:phy#0         Interface wlp0s29u1u3    ....So, I set the variable i to that namei=wlp0s29u1u3and try to get the state of that interface:ip link show $iwhich returns3: wlp0s29u1u3: <BROADCAST,MULTICAST> ....  state DOWN .......I try to bring the interface upip link set $i upThis command printed nothing in return.Again, I do a ip link show $iThis time, it prints3: wlp0s29u1u3: <NO-CARRIER,BROADCAST,MULTICAST,UP> ... state DOWN...Although the state is DOWN, it allows me to scan for wifi points to connect to:iwlist $i scanIndeed, I find my wifi, with ESSDI:foobar.I check if I am connectediw $i linkNot surprisingly, I am not:Not connected.So, I try to use wpa_supplicant to establish a connection.First, I store my password for the wifi in the variable k:k=secretThen I create the wpa_supplicant.conf file:wpa_passphrase foobar $k >> /etc/wpa_supplicant.confAnd then try to establish the connection:wpa_supplicant -B -D wext -i $i -c /etc/wpa_supplicant.confwhich returnsSuccessfully initialized wpa_supplicantioctl[SIOCSIWENCODEEXT]: Invalid argumentioctl[SIOCSIWENCODEEXT]: Invalid argumentI had assumed that I now shuold be able to usedhclient $ibut this command does not return at all.Alsoiw $i linkstill returnsNot connected.Andip link show $ishows 3: wlp0s29u1u3: <NO-CARRIER,BROADCAST,MUTLICAST,UP> .... state DOWN mode DORMANTI am especially unsure about the NO-CARRIER part and believe this should be BROADCAST.I have no idea what I should do now.If I use wifi-menu -o, I am able to connect to the wifi (so it seems it's not a hardware problem), but my goal is to go with these iw and ip command line tools.
I am stuck connecting to the internet via a usb wifi stick
networking;command line;arch linux;wifi;ip