Results 1 to 2 of 2

Thread: how do I write a script?

  1. #1
    Member registered user
    Join Date
    Dec 2004
    Posts
    30

    how do I write a script?

    I'm trying to get my wireless up and running as per: the instructions at http://www.linuxquestions.org/questions/answers/405.

    I came across this step:

    Finally, you need to create a script, name it whatever you want, I named mine: wlan.
    Add to this script the following:

    echo "Loading ndiswrapper..."
    modprobe ndiswrapper

    ....
    ...
    ..
    .

    echo "Activating UP address via DHCP..."
    dhclient wlan0

    Make it executable: chmod 755, then add it to your rc.local, and your set to go. Every time the computer boots up, your wireless lan should come up ready to go.
    I figure I can just copy/paste the stuff the belongs in the script, but I have no idea where i should paste it!
    and I also do not understand the last line

    so, where do I go from here?

  2. #2
    Member registered user
    Join Date
    Oct 2004
    Location
    waterloo
    Posts
    32

    Re: how do I write a script?

    Quote Originally Posted by jehan60188
    I'm trying to get my wireless up and running as per: the instructions at http://www.linuxquestions.org/questions/answers/405.

    I came across this step:

    Finally, you need to create a script, name it whatever you want, I named mine: wlan.
    Add to this script the following:

    echo "Loading ndiswrapper..."
    modprobe ndiswrapper

    ....
    ...
    ..
    .

    echo "Activating UP address via DHCP..."
    dhclient wlan0

    Make it executable: chmod 755, then add it to your rc.local, and your set to go. Every time the computer boots up, your wireless lan should come up ready to go.
    I figure I can just copy/paste the stuff the belongs in the script, but I have no idea where i should paste it!
    and I also do not understand the last line

    so, where do I go from here?
    did youu try using the ndiswrapper script in the networking menu? ... it makes life a lot easier but to answer your question

    ok a script is basically a set of instructions. So all you need to do is open up kwrite or kate (same as a notepad) type in what ever the forum says and then save it.
    now you need to give it permissions to exectute so just do
    # chmod 755 filename (make sure u are in the directory where the file is)

    and finally add this in your /etc/init.d/rc.local file. Do you need more help?

Similar Threads

  1. Replies: 0
    Last Post: 02-01-2005, 08:08 AM
  2. help with simple script
    By bob58 in forum General Support
    Replies: 2
    Last Post: 11-26-2004, 07:25 AM
  3. script for services
    By fsiviero in forum Ideas
    Replies: 0
    Last Post: 09-22-2003, 08:35 PM
  4. Help with a script
    By lindros in forum General Support
    Replies: 10
    Last Post: 07-24-2003, 08:26 PM
  5. script
    By punk000 in forum General Support
    Replies: 3
    Last Post: 02-26-2003, 07:02 PM

Posting Permissions

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


(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$174.99



AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1) picture

AMD Ryzen 7 PRO 8700GE 8-Core/16-Thread Up to 5.1GHz AM5 (FL1)

$189.00



Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11 picture

Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11

$250.00



SGIN 17.3

SGIN 17.3" Laptop Intel Quad-Core Up to 2.4 GHZ 8GB RAM 256GB SSD HD

$229.99



AMD Ryzen 7 7800X3D 4.20GHz Quad Core 100-000000510 8 Thread AM4 picture

AMD Ryzen 7 7800X3D 4.20GHz Quad Core 100-000000510 8 Thread AM4

$279.99



Apple Macbook Pro 13

Apple Macbook Pro 13" M1 8-Core 16GB 512GB - Good

$464.99



Intel Xeon E5 - 2667V2  / SR19W   3.30GHz 25MB  8-Core CPU Socket LGA2011 picture

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011

$30.00



AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused picture

AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 CPU Processor Brand New Unused

$395.95



Dell OptiPlex 7060 Intel Core i7-8700 3.2GHz 8GB RAM 256GB Windows 11 Pro FAST picture

Dell OptiPlex 7060 Intel Core i7-8700 3.2GHz 8GB RAM 256GB Windows 11 Pro FAST

$159.99



Pair ID-COOLING A8-SP3 CPU Heatsink Coolers and AMD EPYC 7601 32 Core Processors picture

Pair ID-COOLING A8-SP3 CPU Heatsink Coolers and AMD EPYC 7601 32 Core Processors

$290.00