Ubuntu Networking without Gnome?!

Discussion in 'Networking' started by chelnov, Jul 15, 2009.

  1. chelnov

    chelnov

    Joined:
    Jul 22, 2008
    Messages:
    8
    Likes Received:
    0
    Hello everyone,

    I bet this would be a nice tutorial for others too..
    I have a problem, sometimes I would like to use only commanline so I have disabled gdm autostart, but the thing is that wireless network isn't working..
    How wireless should be configured by hand?

    Thanks!
     
    chelnov, Jul 15, 2009
    #1
  2. chelnov

    DutchDK

    Joined:
    Jun 2, 2009
    Messages:
    338
    Likes Received:
    0
    Location:
    Copenhagen
    That all depends on whether you are connecting to an open or WEP encrypted accesspoint, or if you are connecting to a WPA encrypted accesspoint.

    Open accesspoint :
    sudo iwconfig wlan0 essid name_of_accesspoint <enter>
    sudo ifconfig wlan0 up <enter>
    sudo dhclient wlan0 <enter>

    WEP encrypted accesspoint :
    sudo iwconfig wlan0 essid name_of_accesspoint key s:encryption_key_of_accesspoint <enter> (If you only have the encryption key in hex, then omit the "s:" part)
    sudo ifconfig wlan0 up <enter>
    sudo dhclient wlan0 <enter>

    WPA encrypted accesspoint :
    sudo wpa_passphrase name_of_accesspoint encryption_passphrase_of_accesspoint >> /etc/wpa_supplicant.conf <enter>
    sudo ifconfig wlan0 up <enter>
    sudo wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant.conf <enter>
    sudo dhclient wlan0 <enter>


    Remember NOT to have NetworkManager running. ( sudo /etc/init.d/NetworkManager stop<enter> )
     
    DutchDK, Jul 15, 2009
    #2
  3. chelnov

    chelnov

    Joined:
    Jul 22, 2008
    Messages:
    8
    Likes Received:
    0
    great, many many thanks DutchDK!
    I will try that one out when I get back to home!
     
    chelnov, Jul 18, 2009
    #3
  4. chelnov

    DutchDK

    Joined:
    Jun 2, 2009
    Messages:
    338
    Likes Received:
    0
    Location:
    Copenhagen
    You're welcome, revert back with the results, as the above was written from memory.
     
    DutchDK, Jul 18, 2009
    #4
  5. chelnov

    chelnov

    Joined:
    Jul 22, 2008
    Messages:
    8
    Likes Received:
    0
    Hi,

    So according my tests it doens't work :(
    sudo wpa_supplicant -iwlan0 -Dwext -c/etc/wpa_supplicant.conf <enter> with proper parameters says:

    Trying to associate with XX:XX:XX:XX:XX:XX(proper mac address here) (SSID='ssid or wlan' freq?2437 MHz)
    Associated with 00:00:00:00:00:00
    CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
    ioctl[SIOCSIWENCODEEXT]: No such file or directory

    --


    Also if I wrote: /usr/local/bin/acer_ec.pl get wireless
    it returns " Wireles off "

    And wlan on / off button at front of the laptop doens't work either..

    Any advises?
     
    chelnov, Jul 19, 2009
    #5
  6. chelnov

    DutchDK

    Joined:
    Jun 2, 2009
    Messages:
    338
    Likes Received:
    0
    Location:
    Copenhagen
    Did you stop NetworkManager ?
    Also, it looks like I forgot to add the parameter for sending wpa_supplicant to the background, so try to add a -B to the wpa_supplicant command.
     
    DutchDK, Jul 19, 2009
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.