-
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?
-
Re: how do I write a script?
![Quote](images/misc/quote_icon.png)
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
-
By alex52 in forum General Support
Replies: 0
Last Post: 02-01-2005, 08:08 AM
-
By bob58 in forum General Support
Replies: 2
Last Post: 11-26-2004, 07:25 AM
-
By fsiviero in forum Ideas
Replies: 0
Last Post: 09-22-2003, 08:35 PM
-
By lindros in forum General Support
Replies: 10
Last Post: 07-24-2003, 08:26 PM
-
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
-
Forum Rules
![Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch picture](/store/img/g/-yUAAOSw-JVlyRj9/s-l225/Dell-X1018-X-Series-Smart-Managed-Switches-16-Port.jpg)
Dell X1018 X-Series Smart Managed Switches 16-Port Gigabit 2-Port SFP Switch
$42.00
![TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D picture](/store/img/g/rvkAAOSwZBBi5CPU/s-l225/TP-Link-24-Port-Gigabit-Ethernet-Unmanaged-Switch-.jpg)
TP-Link 24-Port Gigabit Ethernet Unmanaged Switch Desktop/Rackmount TL-SG1024D
$69.99
![CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture](/store/img/g/uj4AAOSw8hhmYQRm/s-l225/CISCO-MERAKI-MS120-24P-HW-24-PORT-GIGABIT-CLOUD-MA.jpg)
CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED
$98.55
![Cisco SG300-52 52-Port Gigabit Managed Switch *Tested For Power & Factory Reset* picture](/store/img/g/DJsAAOSwegJmXdhO/s-l225/Cisco-SG300-52-52-Port-Gigabit-Managed-Switch-Test.jpg)
Cisco SG300-52 52-Port Gigabit Managed Switch *Tested For Power & Factory Reset*
$69.99
![Dell X1026P E11W 24-Port PoE Smart Managed Gigabit Ethernet Switch 2X SFP picture](/store/img/g/KhoAAOSwVqZmUJTH/s-l225/Dell-X1026P-E11W-24-Port-PoE-Smart-Managed-Gigabit.jpg)
Dell X1026P E11W 24-Port PoE Smart Managed Gigabit Ethernet Switch 2X SFP
$25.00
![NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture](/store/img/g/GtAAAOSw441l3Jx1/s-l225/NETGEAR-GS108-ProSafe-8-Port-GbE-Unmanaged-Switch-.jpg)
NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter
$14.99
![Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch picture](/store/img/g/IjQAAOSwqrVmUJen/s-l225/Dell-X1052P-Series-52-Port-Gigabit-Rack-Mountable-.jpg)
Dell X1052P Series 52-Port Gigabit Rack Mountable Managed Network Switch
$30.00
![NETGEAR 8-Port Gigabit Ethernet Unmanaged Switch (GS308) - Home Network Hub,... picture](/store/img/g/~coAAOSwFRFmdELS/s-l225/NETGEAR-8-Port-Gigabit-Ethernet-Unmanaged-Switch-G.jpg)
NETGEAR 8-Port Gigabit Ethernet Unmanaged Switch (GS308) - Home Network Hub,...
$12.00
![Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch picture](/store/img/g/BUMAAOSwtOFjdfzi/s-l225/Loocam-Gigabit-PoE-Switch-8-Port-96W-2-Uplink-Port.jpg)
Loocam Gigabit PoE Switch 8 Port 96W 2 Uplink Port Unmanaged Ethernet Switch
$49.99
![Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture](/store/img/g/kjQAAOSwNkhj0o7Y/s-l225/Fortinet-FortiSwitch-FS-124D-POE-24-Port-Gigabit-E.jpg)
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97