Jump to content

FreeBSD Wi-Fi configuration

Linux Hint

Recommended Posts

This post is about wifimgr, a network configuration utility that manages the Wi-Fi connections. It comes with a graphical user interface and has support for both open and secured networks and networks that use the WPA-PSK, WPA-EAP, and WEP encryption methods. WPS networks cannot be directly accessed with wifimgr, and their credentials have to be entered manually as a WPA-PSK network.

This tutorial will illustrate how to install and configure wifimgr on FreeBSD. Although this tutorial is meant for FreeBSD users, the installation procedure is similar to setting up wifimgr on any other BSD releases.

How wifimgr works?

The operations of wifimgr are entirely dependent on the wpa_supplicant.conf(5) file, which handles all of the processes in the background with the wpa_supplicant(8) software. Wifimgr simply displays the networks in configuration files’ records, along with any networks detected by the scanner to the user. This application allows user to switch Wi-Fi networks at their convenience, prioritize network connections, etc.

Installing wifimgr

We will use the ports system and install wifimgr as a binary package (you can do so by compiling the source as well). Type in the command below to install wifimg:

$ sudo pkg install wifimgr


The command to uninstall is similar:

$ sudo pkg delete wifimgr

To install using the port, issue the commands below:

$ cd /usr/ports
$ portsnap extract net-mgmt/wifimgr
$ cd net-mgmt/wifimgr
$ make


$ make install


Similarly, use the following command to uninstall:

$ cd /usr/ports/net-mgmt/wifimgr
$ make deinstall


We’d recommend you compile wifimgr with the ports system, as the pkg sometimes installs the slightly outdated version of the software.

Configure wifimgr

wifimgr is configured by editing the /etc/rc.conf file. There has to be at least one network configured into the file. Use the configuration for FreeBSD version 8 and up as follows:

# wlans_ath0=wlan0
# ifconfig_wlan0="WPA DHCP"

Remember to use your username instead of ath0 in the command above.

Wrapping up

This tutorial showed you how to set up and configure wifimgr on FreeBSD to manage Wi-Fi networks. You can either use the ports system or download wifimgr as a binary package, as illustrated in this post.

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...