Automatically Connect to wireless network

Discussion in 'Linux, BSD and Other OS's' started by thomas234, Jul 9, 2006.

  1. thomas234

    thomas234 Big Geek

    Likes Received:
    0
    Trophy Points:
    16
    I'm having a struggle setting up Wireless and WEP on Linux (Slackware 10.2, Kernel 2.4.31) . Every time I boot up, I have to open Konsole, and do the following:
    Code:
    ifconfig wlan0 up
    iwconfig wlan0 key open <WEP CODE>
    dhcpcd wlan0
    It was all running fine while I had WEP disabled, but I'd rather have security set up. I have the wireless card drivers installed using ndiswrapper. Can anyone tell me what to do (in NEWBIE language :D please!), to make it so that I don't have to type anything in Konsole when I boot up to connect to the network Thanks, Thomas
     
  2. Impotence

    Impotence May the source be with u!

    Likes Received:
    6
    Trophy Points:
    38
    Try creating a shell script with thoose commands.... it would let you double click to join the network :p (bit of a security problem though... having your wep key in plain text, but weps next to useless anyway :p)

    How to write a shell script [LINK]
     
  3. thomas234

    thomas234 Big Geek

    Likes Received:
    0
    Trophy Points:
    16
    Thanks, If I don't get any easier suggestions I'll give that a try, but it looks pretty complex.
     
  4. thomas234

    thomas234 Big Geek

    Likes Received:
    0
    Trophy Points:
    16
    Ok tried it and it was a lot easier than I had thought. Does anybody know now how to make it instead of having to open Konsole and typing ./wireless in, I can just press a putton on the KDE Panel?

    Thanks, Thomas
     
  5. kenji san

    kenji san Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    You can do it by panel button/icon/link very easily.

    Right click desktop > create new link to file >

    Just name it and right click to get to properties and make it run your command. Sorry if that sounds vague, I don't have it in front of me right now.

    You could also make it run automatically:

    /etc/rc.d/init.d/ is where you would put startup scripts (not sure if the same in slack). Read this
     
  6. thomas234

    thomas234 Big Geek

    Likes Received:
    0
    Trophy Points:
    16
    Thanks I've managed to get it on the Panel. I will look into making it start automatically.

    Thomas
     

Share This Page