Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (31 sloc) 1.424 kB
01c62fc Initial import
Amos Wenger authored
1 ## Requirements
2
3 * `wpa_supplicant`
4 * `dhcpcd`
5 * A gaspar login/password at the EPFL (you get one if you're a student or an employee there)
6 * A working wifi adapter (tee hee)
7
8 ## Installation
9
10 Copy `wpa_supplicant.conf` to /etc/
11 Edit `wpa_supplicant.conf` to replace the `GASPAR_LOGIN` and `GASPAR_PASSWORD` values with your own.
12
13 Copy `go-wifi` and `stop-wifi` to somewhere in your `$PATH` (e.g. `/usr/bin/`)
14 Edit `go-wifi` and `stop-wifi` to set the proper values for `WIRELESS_IF` (default = wlan0) and `KERNEL_MODULE` (default = iwlagn)
15
16 A passwordless sudo makes them more comfy, use the `NOPASSWD` directive in `visudo` if you want to enable it (at your own risk!)
17
18 ## Usage
19
20 ### Connecting
21
22 Do
23
24 go-wifi
25
26 to start the network. It might take some time to associate + get an IP address.
27
28 You can use `sudo wpa_cli status`, `iwconfig`, and `ifconfig` to check, respectively what `wpa_supplicant` is doing, what wireless access point you're associated to, and if you already have an IP address
29
30 ### Disconnecting
31
32 Do
33
34 stop-wifi
35
36 to disconnect from the network. This will kill the DHCP daemon and `wpa_supplicant`
37
38 ### Reconnecting
39
40 The soft way:
41
42 go-wifi
43
44 This will tell `wpa_supplicant` to reassociate
45
46 The hard way:
47
48 stop-wifi; go-wifi
49
50 This will shut down the dhcpcd daemon and `wpa_supplicant`, then try to connect again from scratch
51
52 ## Licence
53
54 [WTFPL 2.0](http://sam.zoy.org/wtfpl/)
55
56 Enjoy!
Something went wrong with that request. Please try again.