Announcement

Collapse
No announcement yet.

how to automate/make script for network

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to automate/make script for network

    hey, I was wondering if anyone would be able to tell me how to generate a script that will run in Konsole (if possible autorun on startup) that will do as follows:

    sudo -s
    (prompt/wait for password)
    iwconfig wlan0 essid "network"
    iwpriv wlan0 set AuthMode=WPAPSK
    iwpriv wlan0 set WPAPSK="password"
    iwpriv wlan0 set EncrypType=TKIP
    dhclient wlan0

    if anyone knows how to automate that please let me know how to do it at the moment I have to enter all these each startup to connect my network

    #2
    Re: how to automate/make script for network

    Is there any reason you can't use knetworkmanager?

    Comment


      #3
      Re: how to automate/make script for network

      I was using knetworkmanager, but I changed the drivers for my wireless card to enable me to crack WEP keys (just for the fun of it, its a home computer so not really any point to it) and the network manager doesnt seem to work anymore

      Comment


        #4
        Re: how to automate/make script for network

        To write a script open an empty file and start off with a shebang:

        #!/bin/bash
        Below that you can write copy your commands. Save it, make it executable (chmod +x /path_to_file/name_of_file) and execute it.

        HTH
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment

        Working...
        X