Results 1 to 5 of 5

Thread: How To: Connect to wireless routers

  1. #1
    ptrakk
    Guest

    Default How To: Connect to wireless routers

    wireless network manager script

    i could not find a wlan manager on bt4, so heres a script on how to connect to an access point.. dont guess it will work with all cards considering lack of experience with wpa_supplicant.. should work on most i beleive. it uses the wext (generic wireless extension) driver for wpa_supplicant. you may need to specify otherwise. i worked on it for 2 hours now. this is a hella-modded version of a script fakeit.sh created by ochlocracy that is used as a workaround for fake authentication for the intel iwl4965 wireless card.




    .: save script as connect.sh and put in your /root/ :.
    .: to run open a new konsole and type sh connect.sh :.
    .: be sure to save it in linux and not in windows :.
    .: i hear some shell scripts dont work like that :.

    #start

    killall NetworkManager
    killall knetworkmanager
    killall wpa_supplicant
    clear
    echo "(use 'ifconfig' to find out)"
    echo ""
    echo "what is the interface name of your wireless card? (eth1, wlan0, rausb0, etc)"
    read IFACE
    ifconfig $IFACE up; # hehehe if its not up then you cant see it in ifconfig:P
    clear
    echo ""
    echo "you can use 'iwlist $IFACE scan' to find networks"
    echo ""
    echo "Enter the ESSID of the Target Network: (use last)"
    read SEL
    clear
    if [ "$SEL" != "" ]
    then
    echo ""
    if [ -e fake.conf ]; then
    echo "Deleting old fake.conf"
    rm fake.conf
    fi
    echo 'network={ \n ssid="'$SEL'" \n key_mgmt=NONE \n wep_key0="fakeauth" \n }' > fake.conf
    echo "Starting Authentication with $SEL"

    else
    if ! [ -e fake.conf ]; then
    echo "ERROR - No config found, Provide ESSID"
    sh connect.sh
    fi
    echo ""
    echo "Starting Authentication with Previous ESSID"
    fi



    # VVV wpa_sup driver -Dwext
    wpa_supplicant -c fake.conf -i $IFACE -Dwext -B
    echo ""
    echo "If none leave blank"
    echo ""
    echo "Enter the Key: (Wep/Wpa)"
    read WEP
    if [ "$WEP" != "" ]; then iwconfig $IFACE key $WEP ; fi
    clear
    echo ""
    echo " Splooge,"
    echo ""
    echo " Go nuts!"
    #end

    # to run open a new konsole and type sh connect.sh




    -ptrakk

  2. #2
    My life is this forum Barry's Avatar
    Join Date
    Jan 2010
    Posts
    3,817

    Default

    Or before you startx,

    /etc/init.d/networking start
    /etc/init.d/NetworkManager start

    Then when you startx that little green globe in the bottom right of the screen will let you connect to wireless access points.
    Of course, if you really wanted to have some fun, go to Wal-Mart late at night and ask the greeter if they could help you find trashbags, roll of carpet, rope, quicklime, clorox and a shovel. See if they give you any strange looks. --Streaker69

  3. #3
    Good friend of the forums
    Join Date
    Feb 2009
    Posts
    356

    Default

    but we can all agree, although Barry pointed to the logical solution saving tons of energy and brainpower, the script is quite a hack! Kudos to you boy, this way of thinking gets people places others don't see..

  4. #4
    Member
    Join Date
    Jun 2008
    Posts
    101

    Default

    Quote Originally Posted by xorred View Post
    but we can all agree, although Barry pointed to the logical solution saving tons of energy and brainpower, the script is quite a hack! Kudos to you boy, this way of thinking gets people places others don't see..
    Reminds me of someone I know... Hmmm, myself!! Nice script buddy.
    QuadCore AMD Phenon X4 9950, 2600 MHz
    8GB DDR2 800MHz
    Dual Boot System: Windows Server 2008 x64 w/ Hyper-V, Ubuntu 9.10 x64

  5. #5
    ptrakk
    Guest

    Default

    oh i didnt know about the networkmanager start! i appreciate the compliments.

Posting Permissions

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