1 .\" Author: Sean Robinson <robinson@tuxfamily.org>
2 .\" Copyright 2009,2014 by Sean Robinson
3 .\" Made available under the Creative Commons Attribution License 3.0
4 .\" -----------------------------------------------------------------
6 .TH wifi-radar.conf 5 "July 2009" "WiFi Radar 2.0"
10 wifi-radar.conf \- configuration file for WiFi Radar
18 wifi-radar.conf is the configuration file for
21 a PyGTK2 utility for managing WiFi profiles in
24 The file is an ini-type format with three global sections:
29 zero or more profile sections.
31 The settings contained in the configuration file can all be edited
38 But you are free to edit the configuration file manually if you like.
40 .SH Interpolated Strings
42 It is possible to use configuration options in the value of other
43 options. To use interpolated strings, surround any option from the
44 configuration file with
52 section in the value of any other option, use
53 \fB%(\fIinterface\fB)s\fR
54 in the option's value.
63 Comma-separated list of profiles, surrounded by square brackets,
64 specifying the order of profiles in the main window. An example value:
65 ['test:00:00:00:00:00:00', 'WinterPalace:']
75 commit should be used after each iwconfig command.
83 the command to use when manipulating the IP settings of the NIC.
85 .B (default: /sbin/ifconfig)
91 if the NIC must be activated (i.e. ifconfig wlan0 up) before scanning
98 Specifies the interface to scan. Set to the name of your NIC (e.g.
99 eth1 or wlan0). The special value 'auto_detect' will use the
100 first-found WiFi interface.
102 .B (default: auto_detect)
108 the command to use when trying to associate with a network.
110 .B (default: /sbin/iwconfig)
116 the command to use for scanning for access points.
118 .B (default: /sbin/iwlist)
122 Sets the location of the log file.
124 .B (default: /var/log/wifi-radar.log)
128 This sets the verbosity of messages sent to the logfile. The number
129 given here is a threshold value, only those messages emitted by
131 which exceed loglevel will be written to the logfile. The maximum
132 (and default) value of 50 means to only save the most critical
133 messages and a loglevel of 0 means to save all messages to the
142 the command to use to set up network routing if DHCP is not used.
144 .B (default: /sbin/route)
148 Specify the path to the command to use to speak status messages.
149 This can be any program which takes a string on the command line.
151 .B (default: /usr/bin/say)
157 to use the speak command.
165 which created this configuration file. This value is overwritten by
167 each time the configuration file is saved.
170 Options for the DHCP client used by
175 The parameters to pass to the DHCP client when acquiring a lease
176 (i.e. setting up a connection).
178 .B (default: -D -o -i dhcp_client -t %(timeout)s)
182 The command to use to automatically set up the IP networking. This
183 can be any DHCP client, like
187 which forks into the background or exits when it acquires an IP address
190 .B (default: /sbin/dhcpcd)
194 The parameters to pass to the DHCP client when disconnecting from a
201 Specify where the DHCP client saves its state info. This file is
202 used if the standard DHCP disconnect does not work and
204 must kill the client on its own.
206 .B (default: /etc/dhcpc/dhcpcd-%(interface)s.pid)
210 The time (in seconds) to allow the DHCP client to try to acquire a
211 lease. If the DHCP client does not stop itself after this length of
212 time plus five seconds,
214 will force the client to end.
219 Options for the WPA supplicant used by
224 The parameters to pass to the WPA supplicant when associating with the
227 .B (default: -B -i %(interface)s -c %(configuration)s -D %(driver)s -P %(pidfile)s)
231 Specify the command to use as the WPA supplicant.
233 .B (default: /usr/sbin/wpa_supplicant)
237 The WPA supplicant's configuration file.
239 .B (default: /etc/wpa_supplicant.conf)
243 The WPA supplicant driver to use.
249 The command to use to end the WPA supplicant.
251 .B The default is an empty value.
255 Specify where the WPA supplicant saves its state info.
257 .B (default: /var/run/wpa_supplicant.pid)
259 .SH Per-profile Settings
260 Each profile header consists of the network name (a.k.a. ESSID),
261 followed by a colon, and optionally followed by the network address
262 (a.k.a. BSSID). The BSSID may be blank if the profile is a roaming
263 profile. So a sample roaming profile section name could look like
270 to indicate whether an access point is currently detected, it should
271 always be False in the configuration file.
277 A copy of the BSSID in the section name, it is used to calculate the
278 section name. The BSSID is the network address, it usually matches the
279 AP address. It may be blank in a roaming profile.
281 .B (default: 00:00:00:00:00:00)
285 The channel to use to connect with the network.
291 The command to run after connecting to the network.
293 .B The default is an empty value.
297 The command to run before connecting to the network.
299 .B The default is an empty value.
303 The command to run after disconnecting from the network.
305 .B The default is an empty value.
309 The command to run before disconnecting from the network.
311 .B The default is an empty value.
315 The primary DNS server. Part of the static configuration to use when
318 .B The default is an empty value.
322 The secondary DNS server. Part of the static configuration to use when
325 .B The default is an empty value.
329 The domain (e.g. winterpalace.org) of the network. Part of the static
330 configuration to use when not using DHCP.
332 .B The default is an empty value.
336 Whether the network is encrypted. The value for this option is
337 determined by scanning and will be overwritten if changed manually in
338 the configuration file.
344 The network name. This is a copy of the ESSID in the section name and
345 is used to calculate the section name.
347 .B The default is an empty value.
351 The IP address of the gateway to other networks. Part of the static
352 configuration to use when not using DHCP.
354 .B The default is an empty value.
358 The fixed IP address to use on this network. Part of the static
359 configuration to use when not using DHCP.
361 .B The default is an empty value.
365 The WEP encryption key. This is not used with WPA.
367 .B The default is an empty value.
371 This is used internally by
373 to indicate whether an access point has a configured profile, it
374 should always be True in the configuration file.
380 This is the association mode to use. This is not the same as the mode
381 reported by the AP. In fact, this should be a reflection of the AP
382 mode (i.e. Master mode AP should be Managed mode here).
388 The netmask (e.g. 192.168.1.0/255) to use. Part of the static
389 configuration to use when not using DHCP.
391 .B The default is an empty value.
395 The WiFi protocol used by the access point (AP). This is only used as
396 a place to store the protocol read from the AP. This will be
397 overwritten the next time the AP is scanned.
403 Set to True if this is a roaming profile.
409 This should/will be the security mode (i.e. open or restricted), but
410 as it currently causes crashes, it is not used.
412 .B The default is an empty value.
416 The signal level read from the access point (AP). This is used
419 the value will be overwritten each time the configuration file is saved.
427 will ask the DHCP client to configure the IP settings.
435 will ask the WPA supplicant to handle associating with the access point.
441 The card driver the WPA supplicant should use.
443 .B The default is an empty value.
449 auto_profile_order = ['test:00:00:00:00:00:00', 'WinterPalace:']
450 commit_required = False
451 ifconfig_command = /sbin/ifconfig
453 interface = auto_detect
454 iwconfig_command = /sbin/iwconfig
455 iwlist_command = /sbin/iwlist
456 logfile = /var/log/wifi-radar.log
458 route_command = /sbin/route
459 speak_command = /usr/bin/say
464 args = -D -o -i dhcp_client -t %(timeout)s
465 command = /sbin/dhcpcd
467 pidfile = /etc/dhcpc/dhcpcd-%(interface)s.pid
471 args = -B -i %(interface)s -c %(configuration)s -D %(driver)s -P %(pidfile)s
472 command = /usr/sbin/wpa_supplicant
473 configuration = /etc/wpa_supplicant.conf
476 pidfile = /var/run/wpa_supplicant.pid
478 [test:00:00:00:00:00:00]
480 bssid = 00:00:00:00:00:00
520 key = 123456789ABCDEF
535 .B /etc/wifi-radar/wifi-radar.conf
544 .I wpa_supplicant.conf(5)