Letzte Änderung am 2006-11-04 07:54:04 von bluewater
Erweiterungen:
To bind the script im init process runlevels 0 und 6 (shutdown and restart). %%ln -s /usr/local/bin/copy_interfaces /etc/rc0?.d/S05copy_interfaces
Löschungen:
with %%ln -s /usr/local/bin/copy_interfaces /etc/rc0?.d/S05copy_interfaces
bind the script im init process runlevels 0 und 6 (shutdown and restart).
Editiert am 2006-08-06 19:15:04 von RoEn
Erweiterungen:
Make Wlan configuration persistent
The Essid must be in UPPERCASE. This should be the case even if you have entered lowercas in the router.
Löschungen:
Make Wlan configuration persistent
The Essid must be in UPPERCASE. This should be the case even if you have entered lowercas in the router.
Editiert am 2006-08-06 19:11:25 von RoEn
Erweiterungen:
were eth0 a normal network card, that was configured with a static IP.
The WLAN card is here wlan0 but can also be as "eth so it would be in our example eth1. You can find how your card is identified examining the output of the program wlancardconfig.
If you want the WLAN card configured on boot the file /etc/network/interfaces must be enhanced with the following:
iface wlan0 inet dhcp
wireless_key YOUR_WEP_KEY
wireless_essid YOUR_WLAN_ID
wireless_mode MODE
wireless_channel CHANNEL
Löschungen:
were eth0 a normal network card, that was configured with a static IP.
The WLAN card is here wlan0" but can also be as "eth" so it would be in our example "eth1". You can find how your card is identified examining the output of the program wlancardconfig.
If you want the WLAN card configured on boot the file /etc/network/interfaces"" must be enhanced with the following:
...
wireless_key YOUR_WEP_KEY
wireless_essid YOUR_WLAN_ID
wireless_mode MODE
wireless_channel CHANNEL
...
Editiert am 2006-08-06 19:01:58 von RoEn
Erweiterungen:
up
Löschungen:
Category ContributedOldWikiEn
Editiert am 2006-08-06 11:55:18 von cokeinthebottle
Erweiterungen:
The solution can be achieved with a change in the file /etc/network/interfaces.
Löschungen:
It happens sometimes with wireless cards that Kanotix forget on each boot the configuration and this must be redone everytime. The solution can be achieved with a change in the file /etc/network/interfaces.
Editiert am 2006-06-18 14:27:08 von indro
Erweiterungen:
If you have static ip adresses on your WLAN use the eth0 part as example.
Löschungen:
If you have static ip adresses on you WLan use the eth0 part as example.
Editiert am 2006-06-18 13:39:42 von cokeinthebottle
Erweiterungen:
Thanks an BlueLupo for the script
Category ContributedOldWikiEn
Löschungen:
Thanks an BlueLupo for the script
Editiert am 2006-06-18 13:36:42 von cokeinthebottle
Erweiterungen:
Make Wlan configuration persistent
It happens sometimes with wireless cards that Kanotix forget on each boot the configuration and this must be redone everytime. The solution can be achieved with a change in the file /etc/network/interfaces.
Mostly this file contains someting as the following:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
## The loopback interface
##automatically added when upgrading
auto lo wlan0 eth0
iface lo inet loopback
iface wlan0 inet dhcp
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
were eth0 a normal network card, that was configured with a static IP.
The WLAN card is here wlan0" but can also be as "eth" so it would be in our example "eth1". You can find how your card is identified examining the output of the program wlancardconfig.
If you want the WLAN card configured on boot the file /etc/network/interfaces must be enhanced with the following:
%% ...
iface wlan0 inet dhcp
wireless_key YOUR_WEP_KEY
wireless_essid YOUR_WLAN_ID
wireless_mode MODE
wireless_channel CHANNEL
... %%
The uppercase WORDS must be substituted with the right values for you WLAN.
If you dont need a value, or you have not entered in wlancardconfig can be skipped or deleted. MODE can be Managed, Adhoc" or something like that, the right values can be found in the configuration window from wlancardconfig.
As start point is enough to set ESSID (ie the name of the Wlan), the rest ist not needed.
The WEP-Key is needed if the WLAN is encoded (If the lan is encoded with WPA take a look hier.
If you have static ip adresses on you WLan use the eth0 part as example.
Some Notes:
ESSID
The Essid must be in UPPERCASE. This should be the case even if you have entered lowercas in the router.
Manual restart of the WLAN connection
If after starting the WLAN, you have start the network card configuration tool "netcardconfig" then the file "/etc/network/interfaces" will be overwritten with the standard values. If you want to restat the newtork then is better to use:
/etc/init.d/networking restart
If you really need to call it then save the WLAN configuration part an append it after reconfiguring the nic.
With the following script you make before shutdown a copy of a running interfaces file
Create (copy_interfaces) in /usr/local/bin
change mode
chmod u+x /usr/local/bin/copy_interfaces
put the following in the file:
#!/bin/bash
# /etc/init.d/copy_interfaces
#
IF_FILE=/etc/network/interfaces
IF_BACKUPFILE=/etc/network/interfaces.backup
IF_OWNFILE=/etc/network/interfaces.my
case "$1" in
start)
echo "Make a copy from the active file $IF_FILE...."
cp -p $IF_FILE $IF_BACKUPFILE
if [ $? -ne 0 ]; then
echo "Copy write error (1)"
exit 1
fi
echo "Replace the active File $IF_FILE by my own file $IF_OWNFILE...."
cp -p $IF_OWNFILE $IF_FILE
if [ $? -ne 0 ]; then
echo "Copy write error (2)"
exit 2
fi
;;
stop)
echo "Nothing to do in that case"
;;
*)
echo "Usage: $0 {start|stop}"
exit 3
;;
esac
exit 0
with
ln -s /usr/local/bin/copy_interfaces /etc/rc0.d/S05copy_interfaces
ln -s /usr/local/bin/copy_interfaces /etc/rc6.d/S05copy_interfaces
bind the script im init process runlevels 0 und 6 (shutdown and restart).
Create a correct version of the filee /etc/network/interfaces as /etc/network/interfaces.my.
On each boot/shutdown a backup ot the actual 'interfaces' file will be made 'interfaces.my'.
Thanks an BlueLupo for the script
Löschungen:
Make Wlan configuration persistent
It happens sometimes with wireless cards that Kanotix forget on each boot the configuration and this must be redone everytime. The solution can be achieved with a change in the file /etc/network/interfaces.
Mostly this file contains someting as the following:
:code: # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
The loopback interface
automatically added when upgrading
auto lo wlan0? eth0
iface lo inet loopback
iface wlan0? inet dhcp
iface eth0 inet static
- 192.168.0.3
- 255.255.255.0
- 192.168.0.0
- 192.168.0.255 :code:
were eth0 a normal network card, that was configured with a static IP. The WLAN card is here wlan0" but can also be as "eth" so it would be in our example "eth1". You can find how your card is identified examining the output of the program wlancardconfig.
If you want the WLAN card configured on boot the file /etc/network/interfaces must be enhanced with the following:
:code: ...
iface wlan0 inet dhcp
wireless_key YOUR_WEP_KEY
wireless_essid YOUR_WLAN_ID
wireless_mode MODE
wireless_channel CHANNEL
... :code:
The uppercase WORDS must be substituted with the right values for you WLAN.
If you dont need a value, or you have not entered in wlancardconfig can be skipped or deleted. MODE can be Managed, Adhoc" or something like that, the right values can be found in the configuration window from wlancardconfig.
As start point is enough to set ESSID (ie the name of the Wlan), the rest ist not needed.
The WEP-Key is needed if the WLAN is encoded (If the lan is encoded with WPA take a look hier.
If you have static ip adresses on you WLan use the eth0 part as example.
Some Notes:
ESSID
The Essid must be in UPPERCASE. This should be the case even if you have entered lowercas in the router.
Manual restart of the WLAN connection
If after starting the WLAN, you have start the network card configuration tool "netcardconfig" then the file "/etc/netwwork/interfcaes" will be overwritten with the standard values. If you want to restat the newtork then is better
to use :code:/etc/init.d/networking restart:code: .
If you really need to call it then save the WLAN configuration part an append it after reconfiguring the nic.
With the following script you make before shutdown a copy of a running interfaces file
>1)Create (copy_interfaces) in /usr/local/bin
>1) change mode :code:chmod u+x /usr/local/bin/copy_interfaces:code:
>1) put the following in the file::code: #!/bin/bash
# /etc/init.d/copy_interfaces
#
IF_FILE=/etc/network/interfaces
IF_BACKUPFILE=/etc/network/interfaces.backup
IF_OWNFILE=/etc/network/interfaces.my
case "$1" in
-
- "Make a copy from the active file $IF_FILE...."
-p $IF_FILE $IF_BACKUPFILE
[ $? -ne 0 ]; then
- "Copy write error (1)"
- 1
- "Replace the active File $IF_FILE by my own file $IF_OWNFILE...."
-p $IF_OWNFILE $IF_FILE
[ $? -ne 0 ]; then
- "Copy write error (2)"
- 2
;;
-
- "Nothing to do in that case"
;;
)
- "Usage: $0 {start|stop}"
- 3
;;
esac
exit 0:code:
>1) with :code:ln -s /usr/local/bin/copy_interfaces /etc/rc0?.d/S05copy_interfaces
ln -s /usr/local/bin/copy_interfaces /etc/rc6?.d/S05copy_interfaces:code:bind the script im init process runlevels 0 und 6 (shutdown and restart).
>1) Create a correct version of the filee /etc/network/interfaces as /etc/network/interfaces.my.
On each boot/shutdown a backup ot the actual 'interfaces' file will be made 'interfaces.my'.
Thanks an BlueLupo? for the script
älteste bekannte Version dieser Seite wurde bearbeitet am 2005-05-25 19:28:40 von CokeintheBottle [ ]
Make Wlan configuration persistent
It happens sometimes with wireless cards that Kanotix forget on each boot the configuration and this must be redone everytime. The solution can be achieved with a change in the file /etc/network/interfaces.
Mostly this file contains someting as the following:
:code: # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
The loopback interface
automatically added when upgrading
auto lo
wlan0? eth0
iface lo inet loopback
iface
wlan0? inet dhcp
iface
eth0 inet static
- 192.168.0.3
- 255.255.255.0
- 192.168.0.0
- 192.168.0.255 :code:
were eth0 a normal network card, that was configured with a static IP. The WLAN card is here wlan0" but can also be as "eth" so it would be in our example "eth1". You can find how your card is identified examining the output of the program wlancardconfig.
If you want the WLAN card configured on boot the file /etc/network/interfaces must be enhanced with the following:
:code: ...
iface wlan0 inet dhcp
wireless_key YOUR_WEP_KEY
wireless_essid YOUR_WLAN_ID
wireless_mode MODE
wireless_channel CHANNEL
... :code:
The uppercase WORDS must be substituted with the right values for you WLAN.
If you dont need a value, or you have not entered in wlancardconfig can be skipped or deleted. MODE can be Managed, Adhoc" or something like that, the right values can be found in the configuration window from wlancardconfig.
As start point is enough to set ESSID (ie the name of the Wlan), the rest ist not needed.
The WEP-Key is needed if the WLAN is encoded (If the lan is encoded with WPA take a look
hier.
If you have static ip adresses on you WLan use the eth0 part as example.
Some Notes:
ESSID
The Essid must be in UPPERCASE. This should be the case even if you have entered lowercas in the router.
Manual restart of the WLAN connection
If after starting the WLAN, you have start the network card configuration tool "netcardconfig" then the file "/etc/netwwork/interfcaes" will be overwritten with the standard values. If you want to restat the newtork then is better
to use :code:/etc/init.d/networking restart:code: .
If you really need to call it then save the WLAN configuration part an append it after reconfiguring the nic.
With the following script you make before shutdown a copy of a running interfaces file
>1)Create (copy_interfaces) in /usr/local/bin
>1) change mode :code:chmod u+x /usr/local/bin/copy_interfaces:code:
>1) put the following in the file::code: #!/bin/bash
# /etc/init.d/copy_interfaces
#
IF_FILE=/etc/network/interfaces
IF_BACKUPFILE=/etc/network/interfaces.backup
IF_OWNFILE=/etc/network/interfaces.my
case "$1" in
-
- "Make a copy from the active file $IF_FILE...."
-p $IF_FILE $IF_BACKUPFILE
[ $? -ne 0 ]; then
- "Copy write error (1)"
- 1
- "Replace the active File $IF_FILE by my own file $IF_OWNFILE...."
-p $IF_OWNFILE $IF_FILE
[ $? -ne 0 ]; then
- "Copy write error (2)"
- 2
;;
-
- "Nothing to do in that case"
;;
)
- "Usage: $0 {start|stop}"
- 3
;;
esac
exit 0:code:
>1) with :code:ln -s /usr/local/bin/copy_interfaces /etc/rc0?.d/S05copy_interfaces
ln -s /usr/local/bin/copy_interfaces /etc/rc6?.d/S05copy_interfaces:code:bind the script im init process runlevels 0 und 6 (shutdown and restart).
>1) Create a correct version of the filee /etc/network/interfaces as /etc/network/interfaces.my.
On each boot/shutdown a backup ot the actual 'interfaces' file will be made 'interfaces.my'.
Thanks an BlueLupo? for the script
Letzter Editor :
Eigentümer :