Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Connect to a network via command line?

  1. #1
    Join Date
    Apr 2007
    Location
    Lower 48, US
    Beans
    511
    Distro
    Ubuntu 11.04 Natty Narwhal

    Connect to a network via command line?

    Im very close to creating a server, but I will need to connect wirelessly to my router, is it possible (easy) to connect to a wireless network via command line?

    by the way, my wireless network is encrypted via "WPA-PSK [TKIP]" if that makes a difference?

  2. #2
    Join Date
    Apr 2007
    Location
    Lower 48, US
    Beans
    511
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Connect to a network via command line?

    sorry to bother all of you, google answered my question, finally:
    http://www.stoltenow.com/archives/20..._configur.html

  3. #3
    Join Date
    Dec 2008
    Beans
    Hidden!

    Re: Connect to a network via command line?

    Quote Originally Posted by kevin11951 View Post
    Im very close to creating a server, but I will need to connect wirelessly to my router,
    Is the router or your server providing DHCP, or is the lan static addressed?

    If the router is handling DHCP (probably the simplest option) then first configure your network interface device (eth0 for my wired box configured via ifconfig commands), then run the dhclient <dev> command to poll for DHCP information.

    If this completes successfully you should be seeing the network from your server.

    As for the encryption, I use wired networks to avoid the wireless encryption protocols. I imagine setting the keys is just a matter of passing the right parameter when applying for network credentials.

  4. #4
    Join Date
    Apr 2007
    Location
    Lower 48, US
    Beans
    511
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Connect to a network via command line?

    new problem:

    when i type: sudo iwconfig wlan0 key <my key>

    it doesn't work

    it outputs that "<my key>" is an invalid argument...

  5. #5
    Join Date
    Sep 2007
    Beans
    671
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Connect to a network via command line?

    Install ceni.
    2010 IBM Thinkpad 510, 4GB RAM, i5-540M, NVS 3100M

    Running Ubuntu 11.04

  6. #6
    Join Date
    Apr 2007
    Location
    Lower 48, US
    Beans
    511
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Connect to a network via command line?

    Quote Originally Posted by zmjjmz View Post
    Install ceni.
    hm? What is that? its not in the repo.

    also: w/o internet?

  7. #7
    Join Date
    Sep 2007
    Beans
    671
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Connect to a network via command line?

    I'm hoping you can get a temporary ethernet connection.
    It can be found here.
    https://launchpad.net/~inx-devel/+archive
    2010 IBM Thinkpad 510, 4GB RAM, i5-540M, NVS 3100M

    Running Ubuntu 11.04

  8. #8
    Join Date
    Dec 2008
    Beans
    Hidden!

    Re: Connect to a network via command line?

    I have never used Ceni, but have heard good things about it. I think Sidux.com is the place for more info, right?

    Before installing a new tool though, the OP might try passing the key differently.

    So, Kevin11951, what are you doing before attempting to assign the key? Are you running sudo iwconfig essid <networkname>?

    Are you using any characters that need to be escaped in the parameters you are passing?

    I do not use wireless, but there are threads I have read on needing to set a restricted flag for routers that only accept encrypted sessions.

    More info might help us find an instant solution, but installing a tool like Ceni might make your life easier in the long run anyhow...

  9. #9
    Join Date
    Aug 2007
    Beans
    406
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Connect to a network via command line?

    Is the key in hex or ascii?

  10. #10
    Join Date
    May 2007
    Beans
    7,032
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Connect to a network via command line?

    Moved to Networking and Wireless.

    +1 for Ceni.
    I am aware of all internet traditions. | Getting the best help | Text formatting codes | My last.fm profile
    Should I PM support questions? NO!

Page 1 of 2 12 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
  •