This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gettingstarted [2018/07/29 17:29] Likhith Chitneni Added dependencies required to configure ell |
gettingstarted [2022/04/01 16:47] (current) James Prestwood |
||
---|---|---|---|
Line 46: | Line 46: | ||
</code> | </code> | ||
- | Now it is time to build iwd source itself. First we need to configure. There are some dependencies required to build configure. They are libtool, readline development headers and glib development headers. | + | Now it is time to build iwd source itself. First we need to configure. There are some dependencies required to configure. They are libtool, readline development headers and glib development headers. For building the manual pages rst2man is also required (python-docutils package on some distros). |
For debian based systems, run the following command | For debian based systems, run the following command | ||
<code> | <code> | ||
- | sudo apt install libtool libreadline-dev libdbus-glib-1-dev | + | $ sudo apt install libtool libreadline-dev libdbus-glib-1-dev python-docutils |
</code> | </code> | ||
Line 100: | Line 100: | ||
scripts/config --enable CONFIG_CRYPTO_AES | scripts/config --enable CONFIG_CRYPTO_AES | ||
scripts/config --enable CONFIG_CRYPTO_ECB | scripts/config --enable CONFIG_CRYPTO_ECB | ||
- | scripts/config --enable CONFIG_CRYPTO_ARC4 | ||
scripts/config --enable CONFIG_CRYPTO_DES | scripts/config --enable CONFIG_CRYPTO_DES | ||
scripts/config --enable CONFIG_CRYPTO_CBC | scripts/config --enable CONFIG_CRYPTO_CBC | ||
Line 127: | Line 126: | ||
-p, --phys Phys to manage | -p, --phys Phys to manage | ||
-P, --nophys Phys to ignore | -P, --nophys Phys to ignore | ||
- | -c, --config Configuration directory to use | ||
-l, --plugin Plugins to include | -l, --plugin Plugins to include | ||
-L, --noplugin Plugins to exclude | -L, --noplugin Plugins to exclude | ||
+ | -d, --debug Enable debug output | ||
+ | -v, --version Show version | ||
-h, --help Show help options | -h, --help Show help options | ||
</code> | </code> | ||
Line 145: | Line 145: | ||
== Connecting to a Network == | == Connecting to a Network == | ||
- | For this HOWTO we will be using iwd's command line client, iwctl, starting it from the iwd build directory. iwctl should be shipped by default with most distributions, so if you are using iwd from a distribution package, you can simply invoke 'iwctl'. | + | For this HOWTO we will be using iwd's command line client, iwctl, starting it from the iwd build directory. The default DBus configuration requires users to be part of the netdev group. If you are not, add yourself: |
+ | |||
+ | <code> | ||
+ | usermod -a -G netdev <user> | ||
+ | </code> | ||
+ | |||
+ | iwctl should be shipped by default with most distributions, so if you are using iwd from a distribution package, you can simply invoke 'iwctl'. | ||
<code> | <code> | ||
denkenz@iwd-test ~/iwd $ client/iwctl | denkenz@iwd-test ~/iwd $ client/iwctl | ||
- | [iwd]# | + | [iwd]# device list |
- | [iwd]# device list | + | |
Devices * | Devices * | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
- | Name Address State Adapter | + | Name Address Powered Adapter Mode |
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
- | wlp2s0b1 5c:ac:4c:ab:3f:7d disconnected phy0 | + | wlp2s0b1 f6:1c:7f:ee:56:24 on phy2 station |
</code> | </code> | ||
- | Here we can see that this system has a single wireless device, 'wlp2s0b1'. Lets try to find a network to connect to: | + | Here we can see that this system has a single wireless device in 'station' mode, 'wlp2s0b1'. Lets try to find a network to connect to: |
<code> | <code> | ||
- | [iwd]# device wlp2s0b1 scan | + | [iwd]# station wlp2s0b1 scan |
- | [iwd]# device wlp2s0b1 get-networks | + | [iwd]# station wlp2s0b1 get-networks |
Available networks * | Available networks * | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | ||
Line 174: | Line 179: | ||
<code> | <code> | ||
- | [iwd]# device wlp2s0b1 connect TestWPA2 | + | [iwd]# station wlp2s0b1 connect TestWPA2 |
Type the network passphrase for TestWPA2 psk. | Type the network passphrase for TestWPA2 psk. | ||
Passphrase: ********************* | Passphrase: ********************* | ||
- | [iwd]# device wlp2s0b1 get-networks | + | [iwd]# station wlp2s0b1 get-networks |
Available networks | Available networks | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |