Results 1 to 7 of 7

Thread: Wireless with WEP before login

  1. #1
    Join Date
    Sep 2009
    Beans
    16

    Wireless with WEP before login

    Hi all,

    I have a laptop, with Ubuntu 9.10, that I never take anywhere outside of my home wireless network. I want to set it up so that it will log in to my wireless router and gain an internet connection before I log in to my user account using gnome.

    My router uses WEP and requires me to log into it using a very long numerical key. Something like 1234567894561354789543412. I've tried editing /etc/network/interfaces thinking that this would do the trick. My file had a stanza similar to the following:

    Code:
    auto wlan0
    iface wlan0 inet dhcp
        address 192.168.2.11
        netmask 255.255.255.0
        broadcast 192.168.2.255
        gateway 192.168.2.1
        dns-nameservers 192.168.2.1
        wireless-essid MYSSID
        wireless-key 1234567894561354789543412
        wireless-keymode open
    However that didn't work. I've tried taking away some of the options, changing the 'dhcp' option to 'static', etc etc. I've even tried setting up wpa_supplicant to work with WEP but i'm not sure that I've done the right thing.

    Has anyone managed to configure /etc/network/interfaces to allow their Ubuntu machine to connect to a wireless router with WEP before login?

    Inkhorn
    Last edited by inkhorn; February 7th, 2010 at 11:12 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    23,614
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Wireless with WEP before login

    I suggest:
    auto wlan0
    iface wlan0 inet static
    address 192.168.2.11
    netmask 255.255.255.0
    # broadcast 192.168.2.255
    gateway 192.168.2.1
    # dns-nameservers 192.168.2.1
    wireless-essid MYSSID
    wireless-key 1234567894561354789543412
    # wireless-keymode open
    I would drop the dns part because I don't see anywhere in man interfaces where you can specify DNS nameservers here. I'd just edit /etc/resolv.conf to add this information.

    I also suggest proofreading...twice...the WEP key. Is it 26 characters?

    Key mode is open by default.

    Last, it will probably never work unless you do:
    Code:
    sudo apt-get remove --purge network-manager
    For comparison, here is my interfaces file with the WEP key obscured:
    auto lo
    iface lo inet loopback

    auto wlan0
    iface wlan0 inet static
    address 192.168.1.108
    netmask 255.255.255.0
    gateway 192.168.1.254
    wireless-essid GBR1
    wireless-key 096XXXXXAFE

    #auto eth0
    iface eth0 inet dhcp
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Sep 2009
    Beans
    16

    Re: Wireless with WEP before login

    Thank you so much! I've been obsessing over this all day and I can finally access my computer's SSH server without having to log in to my main user account. It really seems like the key component was getting rid of network manager!

    You rock, chili555

    Inkhorn

  4. #4
    Join Date
    Oct 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Wireless with WEP before login

    I'm on a wired connection on Lucid and had the problem of no connection before login.

    I fixed it by simply checking the option "Available to all users" on my connection properties on the Network Manager.
    Maybe this can help you as well.

  5. #5
    Join Date
    Aug 2008
    Beans
    2

    Re: Wireless with WEP before login

    I'm looking to solve the same problem as inkhorn except that the access point is using WPA. Would this method work for a WPA key -- or do I need to setup wpa_supplicant too (sorry, new to this.)

    Thanks in advance.
    Last edited by netcarver; May 10th, 2010 at 01:11 AM. Reason: Too many "too"s

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    23,614
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: Wireless with WEP before login

    In spite of how complex some posts make WPA look, this simple arrangement works for me:
    Code:
    auto lo
    iface lo inet loopback
    
    auto wlan0
    iface wlan0 inet static
    address 192.168.1.108
    netmask 255.255.255.0
    gateway 192.168.1.1
    wpa-ssid mylilrouter
    wpa-psk mysecretkey
    
    #auto eth0
    iface eth0 inet dhcp
    Pretty simple, eh? The downside is that anyone that has access to your computer and a live CD can read the key in plain text. If my computer is lost or stolen, I will disconnect my router until my ISP cancels the account. My WPA password will be the least of my problems.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  7. #7
    Join Date
    Aug 2008
    Beans
    2

    Re: Wireless with WEP before login

    @chili555, many thanks for the reply. However, heitzmann's solution has solved this for me.

    Thank you both!

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
  •