Wednesday, November 26, 2014

Debian on Pogoplug Tutorial - Wireless Configuration

This is a continuation of my Hacking the Pogoplug v4 (Series 4 and Mobile) with Linux (Debian or Arch) Tutorial.



Tested Wi-Fi Adapters:

Wi-Fi Configuration for Debian on Pogoplug


#Add "non-free" repo
echo "deb http://http.debian.net/debian/ wheezy main contrib non-free">>/etc/apt/sources.list


#Update repo
apt-get update

#Install required Wi-Fi packages and common non-free Wi-Fi adapter firmware
apt-get install wireless-tools wpasupplicant usbutils firmware-ralink firmware-realtek firmware-atheros

#Bring up Wi-Fi adapter. If you get an error, try rebooting.
ifconfig wlan0 up

#Scan available Wi-Fi networks
iwlist wlan0 scanning

#Update interfaces file with Wi-Fi configuration
nano /etc/network/interfaces

#Add the following to the end of the /etc/network/interfaces file
#Update "YourWiFiNetworkName" and "YourWiFiPassword" with appropriate values.


#/etc/network/interfaces
#auto wlan0
#iface wlan0 inet dhcp
#   wpa-ssid "YourWiFiNetworkName"
#   wpa-psk "YourWiFiPassword"



#Restart Networking Service
/etc/init.d/networking restart

#Check if Wi-Fi configuration successful
#Note the IP Address assigned to wlan0
ifconfig

At this point, you should be able to reboot and unplug the Ethernet network cable from the Pogoplug.

Notes: I don't use wireless with my Pogoplugs so have not tested Wi-Fi extensively. If you don't have a stable Wi-Fi connection, you may want to look into a Wi-Fi auto reconnect script. If I find a good script or method for Wi-Fi auto reconnect, I'll post it. If you have a good solution, please share via the comments.

If you lose Wi-Fi connection, plugging in the Ethernet network cable should work, but note that it may take 2-3 minutes for the Pogoplug to pick up a IP Address.

Reference: https://wiki.debian.org/rtl819x#Debian_7_.22Wheezy.22

30 comments :

  1. Hi, Qui:
    Thank you for your new contributions. Have you tried this on Debian successfully? I tried many times but never very successful. Eventually I put some heck there and it did the trick. However, if your approach tested working on Debian, I would like try it again. I think it will work on Arch with no problem but I don't want to switch platforms. Thanks.

    ReplyDelete
    Replies
    1. Of course I verified the tutorial before publishing it. :)

      Delete
  2. Qui:
    Thank you for your quick response.
    I tried your approach also. Unfortunately, it has the same problem as before. There's no problem to ssh into the wifi ip address with the ethernet cable connected. However, if I unplug it, the wifi disconnected also. It will not work if I restart the Pogo mobile 4 without the ethernet cable disconnected. Not sure why.

    ReplyDelete
    Replies
    1. Strange. What type of USB network card are you using? What's the content of your /etc/network/interfaces file?

      Delete
  3. I have struggled with this problem for a few months now.
    The USB wifi dongle is Edimax EW-7811Un. It works with RPi. Other 8188cus based card all behave the same.
    The interface file is simply:

    auto lo eth0
    iface lo inet loopback
    iface eth0 inet dhcp
    auto wlan0
    iface wlan0 inet dhcp
    wpa-ssid "..."
    wpa-psk "..."

    I can only make it work by adding the following in the rc.local file before exit:

    if ifconfig wlan0 | grep "inet addr:" ; then
    ifconfig eth0 down
    route add default gw 192.168.0.1
    fi

    ReplyDelete
    Replies
    1. I would suggest trying again using a freshly extracted rootfs and then only following this tutorial. This will assure that the issue isn't related to some other services/package you installed. Chances are the issue is with your setup and not with the Debian wiki (or my tutorial).

      Delete
  4. O.K. I will try that.
    Another interesting thing is that it will work with my patch but when I upgrade the kernel to Bodhi's 3.16 or 3.17, the wifi didn't work at all. Have you ever tried that?

    ReplyDelete
    Replies
    1. No, I have not found a reason to upgrade the kernel.

      Delete
    2. It somehow is working now. Let me see if it will stop working again, if ever.

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Fantastic blog you have here. You’ll discover me looking at your stuff often. Saved! Best wireless router

    ReplyDelete
  7. A debt of gratitude is in order for sharing us. IT Consulting Firms

    ReplyDelete
  8. Fantastic blog you have here. You’ll discover me looking at your stuff often. Saved! mood lamps

    ReplyDelete
  9. In these situations it can be helpful to have these wireless hot spots as we have come to know them. But I wanted to talk about the importance of securing your home or business wireless signal. wolffofcanada.com

    ReplyDelete
  10. Hey nice post man! Thanks for incredible info.That’s really amazing and extraordinary blogs & can help those who get issues in searching this type of information. routers local address

    ReplyDelete
  11. Its my great pleasure to visit your blog and to enjoy your great posts here. I like it a lot. I can feel that you paid much attention for those articles, as all of them make sense and are very useful.  Best Wireless Routers 2018

    ReplyDelete
  12. To utilize this one, one should have a gmail account which is necessary. Netflix Sign In short article is mosting likely to direct you on ways to access a totally.

    ReplyDelete
  13. Now that you understand the basic concepts involved with wireless networking let's put them to use.
    best wireless routers 2018

    ReplyDelete
  14. Although a dual band router will allow you more options for delivering wireless signal in your home or office, the 5GHz signal frequency has some caveats. wireless routers review

    ReplyDelete
  15. Every one of the substance you specified in a post is simply too first-rate and may be pretty precious. I am able to remember it, a debt of gratitude is in order for sharing the information preserve overhauling, searching ahead for additional posts. Gmod game

    ReplyDelete
  16. Hey nice post man! Thanks for incredible info.That’s really amazing and extraordinary blogs & can help those who get issues in searching this type of information. broadband routers

    ReplyDelete
  17. Uptime is one of the most important factors in maintaining an effective online presence. Outages of any duration can be costly. Downtime can impact your organization directly by causing lost sales, signups, etc., or indirectly by hurting your reputation and brand image.cheap shoes in Pakistan

    ReplyDelete
  18. When you start blogging you might find that it is difficult to start it and maintain it. Many people find this because it does take up a fair amount of time and there are tons, almost too many, different models and methods you can use to have a successful blog. Blogging guides also exist where people will give you advice and details about blogging - how to start, what to do, where to find the best money making possibilities etc.mens casual dress shoes

    ReplyDelete
  19. If you enter the incorrect qualifications for attempts consecutively then that account. adplogin.net/ Amongst these two just one thing is mandatory related to the password recuperation.

    ReplyDelete
  20. This is really nice to visit your website. I read your article this is really very informative. I had many useful things from your article.Thanks for shearing that kind of post.

    www.youtube.com/watch?v=m0CEl9ZOETw

    www.youtube.com/watch?v=HyClBa5MYbY

    ReplyDelete
  21. I read that Post and got it fine and informative. Please share more like that... wlan hacken

    ReplyDelete
  22. Thank you so much for sharing this great blog.Very inspiring and helpful too.Hope you continue to share more of your ideas.I will definitely love to read. best-wireless-access-points

    ReplyDelete
  23. Yuk Buruan ikutan bermain di website http://bosnagaqq.com
    Sekarang NAGAQQ Memiliki Game terbaru Dan Ternama loh...
    => Bonus Refferal 20%
    => Bonus Turn Over 0,5%
    => Minimal Depo 15.000
    => Minimal WD 15.000
    => 100% Member Asli
    => Pelayanan DP & WD 24 jam
    => Livechat Kami 24 Jam Online
    => Bisa Dimainkan Di Hp Android
    => Di Layani Dengan 6 Bank Terbaik
    => 1 User ID 4 Permainan Menarik
    Ayo gabung sekarang juga hanya dengan
    mengklick AGEN BANDARQ TERBAIK
    WHATSAPP : +855967014811
    PIN BB : 2B209F68

    ReplyDelete