{"id":1334,"date":"2025-08-04T17:03:27","date_gmt":"2025-08-04T05:03:27","guid":{"rendered":"https:\/\/fishy.fisher.net.nz\/?page_id=1334"},"modified":"2025-08-04T17:03:28","modified_gmt":"2025-08-04T05:03:28","slug":"wifi-on-headless-debian-on-mac-mini","status":"publish","type":"page","link":"https:\/\/fishy.fisher.net.nz\/?page_id=1334","title":{"rendered":"WiFi on Headless Debian on Mac Mini"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Installing BCM4360 Driver on Debian<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure your system is updated.<\/li>\n\n\n\n<li>You need to have <code>sudo<\/code> privileges.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step-by-Step Installation<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Add Non-Free Repository<\/strong> Open the sources list file: <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apt\/sources.list\n<\/code><\/pre>\n\n\n\n<p>Add <code>non-free<\/code> to the end of the lines for your Debian version. For example, for Debian 12 &#8220;Bookworm&#8221;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/deb.debian.org\/debian bookworm main contrib non-free-firmware non-free\n<\/code><\/pre>\n\n\n\n<p>Save and exit the editor.<\/p>\n\n\n\n<p><strong>Update Package List<\/strong><\/p>\n\n\n\n<p>Run the following command to update the package list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\n<\/code><\/pre>\n\n\n\n<p><strong>Install Required Packages<\/strong><\/p>\n\n\n\n<p>Install the necessary packages for the BCM4360 driver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install linux-image-$(uname -r|sed 's,&#91;^-]*-&#91;^-]*-,,') linux-headers-$(uname -r|sed 's,&#91;^-]*-&#91;^-]*-,,') broadcom-sta-dkms\n<\/code><\/pre>\n\n\n\n<p><strong>Load the Driver<\/strong><\/p>\n\n\n\n<p>After installation, load the driver:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo modprobe wl\n<\/code><\/pre>\n\n\n\n<p><strong>Check Driver Status<\/strong><\/p>\n\n\n\n<p>Verify that the driver is loaded correctly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dkms status\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Using_ifupdown_and_wpasupplicant\">Using ifupdown and wpasupplicant<\/h2>\n\n\n\n<p>These instructions require and make use of <a href=\"https:\/\/packages.debian.org\/ifupdown\">ifupdown<\/a>, <a href=\"https:\/\/packages.debian.org\/iproute2\">iproute2<\/a>, <a href=\"https:\/\/packages.debian.org\/wpasupplicant\">wpasupplicant<\/a> (For WPA2 support), <a href=\"https:\/\/packages.debian.org\/iw\">iw<\/a>, and <a href=\"https:\/\/packages.debian.org\/wireless-tools\">wireless-tools<\/a>. Ensure you have all of these installed before continuing. You also might be interested in the instructions below that <em>only<\/em> use <a href=\"https:\/\/packages.debian.org\/ifupdown\">ifupdown<\/a> and <a href=\"https:\/\/packages.debian.org\/wpasupplicant\">wpasupplicant<\/a>, along with using a more advanced configuration. See <a href=\"https:\/\/wiki.debian.org\/WiFi\/HowToUse#wpasupplicant\">#wpasupplicant<\/a><\/p>\n\n\n\n<p>Find your wireless interface and bring it up: (NOTE: wlp2s0 is an example, you will need to make sure to use the correct device name for your system)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># ip a\n# iw dev\n# ip link set wlp2s0 up<\/pre>\n\n\n\n<p>Scan for available networks and get network details (If you already know your wifi network id\/ESSID, you can skip this step):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ su -l\n# iwlist scan<\/pre>\n\n\n\n<p>Now edit \/etc\/network\/interfaces. The required configuration is much dependent on your particular setup. The following example will work for most commonly found WPA\/WPA2 networks:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># my wifi device\nallow-hotplug wlp2s0\niface wlp2s0 inet dhcp\n        wpa-ssid ESSID\n        wpa-psk PASSWORD<\/pre>\n\n\n\n<p>Bring up your interface and verify the connection:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># ifup wlp2s0\n# iw wlp2s0 link\n# ip a<\/pre>\n\n\n\n<p>You can manually bring your interface up and down with the ifup and ifdown commands. If you added allow-hotplug&nbsp;wlp2s0 as in the example above, the interface will be brought up automatically at boot.<\/p>\n\n\n\n<p>For further information on available configuration options, see man&nbsp;interfaces, man&nbsp;iw, man&nbsp;wireless and \/usr\/share\/doc\/wireless-tools\/README.Debian.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPS\"><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Installing BCM4360 Driver on Debian Prerequisites Step-by-Step Installation Add non-free to the end of the lines for your Debian version. For example, for Debian 12 &#8220;Bookworm&#8221;: Save and exit the editor. Update Package List Run the following command to update the package list: Install Required Packages Install the necessary packages for the BCM4360 driver: Load [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1334","page","type-page","status-publish","hentry","post-preview"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=\/wp\/v2\/pages\/1334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1334"}],"version-history":[{"count":2,"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=\/wp\/v2\/pages\/1334\/revisions"}],"predecessor-version":[{"id":1337,"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=\/wp\/v2\/pages\/1334\/revisions\/1337"}],"wp:attachment":[{"href":"https:\/\/fishy.fisher.net.nz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}