Page 1 of 5 123 ... LastLast
Results 1 to 10 of 49

Thread: HOWTO: WiFi that just works

  1. #1
    Join Date
    Apr 2005
    Beans
    11

    HOWTO: WiFi that just works

    Hey everyone. NetworkManager doesn't seem to work well with the version of D-BUS in hoary. And netapplet isn't exactly stable for me and requires too much user intervention. So, I hacked up this little screen-scraping PHP script today that accomplishes what I need for my WiFi roaming needs (at least until NetworkManager matures and is integrated into Breezy). I'm not too concerned about developing a more elegant solution, as this is working wonderfully for me. I just thought I'd post it here in case it could be of help to anybody. Cheers.

    http://www.thecardinal1978.com/ubunt...ig-0.3.tar.bz2

    wicme - Wireless Internet Configuration Made Easy
    By Brad Griffith.
    Licensed under the GNU General Public License.
    ================================================== ==========
    This is a small PHP hack that allows for easy configuration
    of a wireless card in Ubuntu Hoary. It may work in other
    distros/environments, but I haven't tested it. I'm not
    planning on improving this tool too much, but I hope it can
    be of use to somebody while project like NetworkManager
    mature.

    When wicme is run, either from the commandline or from its
    menu item in System >> Administration >> Wireless Networks
    it will first look to see if any networks in range are in
    your preferred networks list. If so, it will automatically
    connect to that network. If not, it will present a list of
    networks that you can connect to, allow you to enter a WEP
    key if needed, connect to that new network, and add it to
    your list of preferred networks. If a connection is made
    successfully an lightbulb icon will appear in the notifica-
    tion area. If the connection fails, an X will be displayed
    there instead.

    INSTRUCTIONS
    ================================================== ==========
    1) Change lines 4 and 5 of "wicme" to match your wireless
    device and home directory.
    2) Run "sh install.sh" as root.
    3) Setup sudo to require no password for the admin group:
    a. Run "sudo visudo"
    b. Change the line that begins with "%admin" to read:
    "%admin ALL=(ALL) NOPASSWD: ALL
    4) Add wicme to your startup programs in GNOME by using the
    "Sessions" preference tool's "Startup Programs" tab.

    TODO
    ================================================== ==========
    Currently an incorrect WEP key can only be determined by a
    time out of dhclient. This takes a long time. It would be
    nice to have a faster method of testing this.
    Last edited by bradg; April 12th, 2005 at 02:25 AM.

  2. #2

    Re: WiFi that just works

    This rocks, I can't wait to test it on my laptop!

  3. #3
    Join Date
    Apr 2005
    Beans
    11

    Re: HOWTO: WiFi that just works

    Awesome. Let me know how it works out for you.

  4. #4
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: WiFi that just works

    nice script thx man!!
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  5. #5
    Join Date
    Apr 2005
    Beans
    11

    Re: HOWTO: WiFi that just works

    Glad it helped you out. Thanks for commenting.

  6. #6
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: WiFi that just works

    Quote Originally Posted by bradg
    Glad it helped you out. Thanks for commenting.
    no problem
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  7. #7
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: WiFi that just works

    You have a bug (not a bug just a typo mistake) in the script,
    open wicme file
    search for
    Code:
    function scan()
    {
        exec('sudo iwlist wlan0 scan', $output);
    replace with
    Code:
    function scan()
    {
        exec("sudo iwlist $device scan", $output);
    note the changes, double quotes instead of single and $device instead of wlan0
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  8. #8
    Join Date
    Apr 2005
    Beans
    11

    Re: HOWTO: WiFi that just works

    Great! Thanks for pointing it out.

    New version is at http://www.thecardinal1978.com/ubunt...ig-0.2.tar.bz2

  9. #9
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: WiFi that just works

    Quote Originally Posted by bradg
    Great! Thanks for pointing it out.

    New version is at http://www.thecardinal1978.com/ubunt...ig-0.2.tar.bz2
    no problem
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  10. #10
    Join Date
    Apr 2005
    Beans
    11

    Re: HOWTO: WiFi that just works

    OK, another new version:
    http://www.thecardinal1978.com/ubunt...ig-0.3.tar.bz2

    This version will eliminate any repeats in the list. Without this, on my campus for instance, choosing one "TigerNet" network will then cause the program to ask for all the WEP keys one after the other which is annoying. This would also mean that if you selected the third network on a list and the first had the same name that you would be logged into the first.

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •