Why-fi?

[Permalink]     blog

I'm an arch linux user and I love it; there's no other distro for me. The things that arch gets criticism for are the exact same reasons I love it and they all more or less boil down to one thing: arch does not hold your hand.

It's been a while since an update in arch caused me any problems but it did today.

It seems there's an issue with the latest version of wpa_supplicant which renders it incompatible with the way wifi is setup at boot time. The problem was caught and resolved very quickly by package maintainers who simply rolled the wpa_supplicant package back. However, I was unlucky enough to have caught the intervening upgrade shortly before turning my laptop off. I came home this evening to find I had no wifi!

This wasn't a huge challenge but I haven't written a blog post for a while and someone might find this useful:


If your wifi doesn't start at boot...

And you're using a laptop with no ethernet port...

And you know an upgrade will solve your problem...

How do you get internet so you can upgrade?

Simples :)

  1. First, find the name of your wireless interface:

    iw dev
    

    Which will output something like:

    phy#0
        Interface wlp2s0
            ifindex 2
            wdev 0x1
            addr e8:b1:fc:6c:bf:b5
            type managed
            channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz
    

    Where wlp2s0 is the bit we're interested in.

  2. Now bring the interface up:

    ip link set wlp2s0 up
    
  3. Connect to the access point:

    iw dev wlp2s0 connect "AP name"
    
  4. Create a temporary configuration file for wpa_supplicant:

    wpa_passphrase "AP name" "password" > /tmp/wpa.config
    
  5. Run wpa_supplicant to authenticate with the access point:

    wpa_supplication -iwlp2s0 -c/tmp/wpa.config
    
  6. In another terminal (or you could have backgrounded the above), run dhcpcd to get an IP address from your router:

    dhcpcd wlp2s0
    
  7. Update and reboot or whatever :)

  It turns   blog   My nicks   about   Cleaning out my closet   blog   Devicive   blog   Why am I called Stilvoid?   about   Geek Code   about   Thoth   words   Pinally   blog pi   Keychain and GnuPG >= 2.1   blog   TODO   blog   Testing a Django app with Docker   blog django docker proxama   Just call me Anneka   blog code   Stony Silence   blog   When all the things went wrong   blog   Things   blog   Lessons learned   blog holiday   O Baggage Where Art Thou   blog holiday   All fired up   blog   Quayside   blog   tmux   blog linux   Simple mail transfer pondering   blog linux   Ramble   blog   Eligarf   blog   Laziness   blog   Netcat   blog linux   Judon't   blog   Things   blog   btw   blog c code   Stuff what I done   blog   Diet?   blog   TODO   blog   Shootah   code games games inactive   Tatil   blog holiday   Things we learned at the LUG meet   blog linux   MarkPoint   code command line desktop inactive other   Luck   blog   Yawn   blog   HBTM :)   blog code git   TODO   blog   Krobes   code games games inactive   Homophones   words   Non-euclidian pork scratching   blog   Lost at C   blog c code   JSTLV   code inactive other web   Ire   blog code   Ire   code command line inactive other   So, so dry   blog code   Gruff   code inactive other web   Things I've written recently   blog code   require("child_process");   blog   JZON   code inactive other web   Wyrm   code games games inactive   Picture Puzzle   code games games inactive   Zoomsite   code inactive other web   Rotate4   code games games inactive   Lines   code games games inactive   BreakIn   code games games inactive   nosef   code inactive javascript server server   Scary stuff   blog   Primes   blog   Hokey Cokey   blog   Web terminal lense book   blog   Strange lunch break   blog   Obfuna   code inactive other programming   Markdown   blog   ploxy   code command line inactive server server   miniserv   code command line inactive server server   Gnowt   code inactive other web   dmenu-notify   code desktop inactive other   Violining a contemptible fellow   blog code git   Break In!   blog games   xmodmap Hints and Tips   blog linux   Black Jack - pick up seven!   blog games   My favourite spoonerisms   words   Good things that have happened in the past week   blog   Good times with git   blog git   It's all Geek to me   blog   Javascript Closures   blog code javascript   Waffle. Move along.   blog   Things I learned today   blog   Hey, at least I'm not rioting   blog   HTML5 and holidays   blog holiday   Blah, cold. Do not want.   blog   Worst.Landlord.Ever   blog   Wheeee   blog   First!!1!one!!eleven   blog