Cripperz Prodigy - Solutions For All Your IT Needs.
You are here: Home Forum
  • narrow screen
  • wide screen
  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Please Login or Register.    Lost Password?

[ KB ] Setting permanent wireless settings to interfaces
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [ KB ] Setting permanent wireless settings to interfaces
#203
admin
Admin
Posts: 353
graph
User Offline Click here to see the profile of this user
[ KB ] Setting permanent wireless settings to interfaces 1 Year, 6 Months ago Karma: 4
Setting up a fixed wireless settings as similar as using iwconfig command on logging into the box. In /etc/network/intefaces set the following setting

iface wlan0 inet static
essid 2WIRE578
wireless_key 1234567890
address 10.0.1.2
netmask 255.255.0.0
broadcast 10.0.255.255

Assuming the "2WIRE578" is your wireless router name and key is "1234567890".

Special note for those using Ebox Platform ( ebox-platform.com ). Ebox uses loading scripts of post and pre in its /etc/ebox/hooks.

You can refer to the link and details below:

Link Source - trac.ebox-platform.com/wiki/Document/HowTo/SetupWireless

Starting with eBox 1.1 Alpha, it is possible to set hooks that can be run at several different moments while changes to a module are being saved. Using this feature it is possible to configure a wireless card in an eBox friendly way.

The eBox Network Module provides a helper script called "ebox-setup-wireless" to help us with this task.

If we have an interface called wlan0 that we want to configure, we just need to write a file called /etc/ebox/hooks/network.postsetconf with the following script:

Code:

#!/bin/sh

# set WLAN_IFACE to the name of your interface
export WLAN_IFACE=wlan0

# set WLAN_IFACE to the ESSID of your network
export WLAN_ESSID=mindstorm

# set WLAN_CONF to contain any extra configuration needed in /etc/network/interfaces for your 
# interface, for example, uncomment this line if you want to set up
# export WLAN_CONF="wireless-mode master"

# execute the helper script
/usr/share/ebox-network/ebox-setup-wireless

# if you need to setup several wireless cards just set the variables and run the script again

# we need to tell ebox we have updated the interfaces file so we are not asked in the interface
# every time we save
/usr/share/ebox/ebox-update-file-digest network /etc/network/interfaces

exit 0

 
The administrator has disabled public write access.
Go to topPage: 1

Social Connect Sign-In


Easy Sign In
RPX

Tell A Friend

SocialTwist Tell-a-Friend

Login

If you are experiencing issues, do contact us via our contact form.