Установить драйвер wifi linux debian

Debian GNU/Linux + Macbook Air 2017 (установка wifi драйверов)

Так случилось что захотелось снести MacOS на Macbook’е Air и поставить что то более свободное и линуксовое. Макбук 2017 года, долгое время пользовался MacOS Mojave, обновляться до новых выпусков, зная возможные проблемы, желания не было. Немного перебирая варианты дистрибутивов и попробовав различные Live образы, выбор пал на Debian 11 но так как официально он еще не вышел (выход намечен на 14 августа 2021), то взял его второй релиз кандидат Bullseye RC 2.

Проблема 1

Вот тут и появился первый подводный камень: Debian поддерживает не все wifi устройства из коробки. На помощь могут прийти non-free прошивки, которые можно установить после установки системы, добавив репозитории этих несвободных прошивок, в файле sources.list .

Проблема 2

Теперь появляется второй подводный камень: а как мы установим прошивку для wifi устройства если у нас не работает сеть после установки? Тут уже на помощь пришел смартфон с включенным режимом USB Tethering. Подключив с помощью кабеля USB к макбуку, установщик на удивление сразу распознал это как проводное сетевое соединение. Таким образом интернет соединение для установки драйверов на wifi и первоначальных пакетов, мы себе обеспечили.

Действия после установки

Сам процесс инсталляции я описывать не буду так как все индивидуально, и это тема для отдельной статьи.

После установки открываем терминал и утилитой lspci узнаем модель нашего wifi устройства, введя следующую команду:

На выводе получим название модели устройства, в моей случае это:

Network controller [0280]: Broadcom Inc. and subsidiaries BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

BCM4360 это и есть модель wifi устройства. Свободных прошивок к сожалению на него нет и теперь чтобы wifi заработал, нам придется установить несвободный драйвер broadcom-sta-dkms который предоставляет исходный код для модуля ядра wl Остальной список поддерживаемых моделей можно посмотреть в описании драйвера https://packages.debian.org/buster/broadcom-sta-dkms

Так же перед установкой, поставим пару необходимых пакетов wireless-tools и wpasupplicant

sudo apt install wireless-tools sudo apt install wpasupplicant

Далее открываем из под рута, файл sources.list (я использую nano)

sudo nano /ect/apt/sources.list

И вписываем возле каждого урла репозитория, напротив слова main , теги contrib non-free . Должно получится примерно следующее:

Затем сохраняем файл и обновляем инфу о пакетах командой sudo apt update .

Теперь устанавливаем сам драйвер введя команду:

sudo apt install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

По ее завершению, убираем модули b44 b43 b43legacy ssb brcmsmac bcma из ядра системы, командой:

sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

После этого в Network manager’е (я использовал его для настройки сети) появится раздел Wi-Fi Networks где мы уже сможем выбрать доступную сеть и ввести пароль для доступа.

Читайте также:  Посмотреть точки монтирования linux

Заключение

Данный гайд может быть полезен не только владельцам маков но и других ноутбуков и десктопов. Так же гайд подойдет остальным Debian производным дистрибутивам (хотя могут быть нюансы).

Источник

Эта страница описывает, как включить поддержку для устройств Intel 802.11n в ОС Debian.

  • Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
  • Intel Wireless WiFi 5150AGN
  • Intel WiFi Link 1000BGN
  • Intel 6000 Series WiFi Adapters (6200AGN and 6300AGN)
  • Intel Wireless WiFi Link 6250AGN Adapter
  • Intel 6005 Series WiFi Adapters
  • Intel 6030 Series WiFi Adapters
  • Intel Wireless WiFi Link 6150BGN 2 Adapter
  • Intel 100 Series WiFi Adapters (100BGN and 130BGN)
  • Intel 2000 Series WiFi Adapters
  • Intel 7260 WiFi Adapter
  • Intel 7265 WiFi Adapter
  • Intel 3160 WiFi Adapter

Поддерживаемые устройства перечислены в конце этой страницы. Несвободные микропрограммы (Non-free firmware) требуют установки пакета firmware-iwlwifi.

<i data-lazy-src=

# apt-get update && apt-get install firmware-iwlwifi
# modprobe -r iwlwifi ; modprobe iwlwifi

Debian 7 «Wheezy»

# Debian 7 "Wheezy" deb http://httpredir.debian.org/debian/ wheezy main contrib non-free
# apt-get update && apt-get install firmware-iwlwifi
# modprobe -r iwlwifi ; modprobe iwlwifi

Устранение неполадок

Проблема с медленным WiFi, при использовании Bluetooth

Некоторые устройства, например 6235, включают в себя Bluetooth-устройства, это может приводить к конфликтам в радио диапазонах. Некоторые устройства (7200 и выше) пытаются более грамотно решить эту проблему.

Если ваш WiFi медленным WiFi, при использовании Bluetooth, добавьте следующие в файл /etc/modprobe.d/iwlwifi.conf и перезагрузитесь:

options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8

Поддерживаемые устройства

Эта страница ru/HowToIdentifyADevice/PCI объясняет, как определить используемое устройство на PCI-шине.

Нижe список базируется на выводе modinfo iwlwifi в Debian с ядром 3.16 (3.16.7-ckt9-2).

PCI: 8086:0082 Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] PCI: 8086:0083 Intel Corporation Centrino Wireless-N 1000 [Condor Peak] PCI: 8086:0084 Intel Corporation Centrino Wireless-N 1000 [Condor Peak] PCI: 8086:0085 Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] PCI: 8086:0087 Intel Corporation Centrino Advanced-N + WiMAX 6250 [Kilmer Peak] PCI: 8086:0089 Intel Corporation Centrino Advanced-N + WiMAX 6250 [Kilmer Peak] PCI: 8086:008A Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] PCI: 8086:008B Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] PCI: 8086:0090 Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] PCI: 8086:0091 Intel Corporation Centrino Advanced-N 6230 [Rainbow Peak] PCI: 8086:0885 Intel Corporation Centrino Wireless-N + WiMAX 6150 PCI: 8086:0886 Intel Corporation Centrino Wireless-N + WiMAX 6150 PCI: 8086:0887 Intel Corporation Centrino Wireless-N 2230 PCI: 8086:0888 Intel Corporation Centrino Wireless-N 2230 PCI: 8086:088E Intel Corporation Centrino Advanced-N 6235 PCI: 8086:088F Intel Corporation Centrino Advanced-N 6235 PCI: 8086:0890 Intel Corporation Centrino Wireless-N 2200 PCI: 8086:0891 Intel Corporation Centrino Wireless-N 2200 PCI: 8086:0892 Intel Corporation Centrino Wireless-N 135 PCI: 8086:0893 Intel Corporation Centrino Wireless-N 135 PCI: 8086:0894 Intel Corporation Centrino Wireless-N 105 PCI: 8086:0895 Intel Corporation Centrino Wireless-N 105 PCI: 8086:0896 Intel Corporation Centrino Wireless-N 130 PCI: 8086:0897 Intel Corporation Centrino Wireless-N 130 PCI: 8086:08AE Intel Corporation Centrino Wireless-N 100 PCI: 8086:08AF Intel Corporation Centrino Wireless-N 100 PCI: 8086:08B1 Intel Corporation Wireless 7260 PCI: 8086:08B2 Intel Corporation Wireless 7260 PCI: 8086:08B3 Intel Corporation Wireless 3160 PCI: 8086:08B4 Intel Corporation Wireless 3160 PCI: 8086:095A Intel Corporation Wireless 7265 PCI: 8086:095B Intel Corporation Wireless 7265 PCI: 8086:24F3 Intel Corporation Wireless 8260 PCI: 8086:24F4 Intel Corporation Wireless 8260 PCI: 8086:422B Intel Corporation Centrino Ultimate-N 6300 PCI: 8086:422C Intel Corporation Centrino Advanced-N 6200 PCI: 8086:4232 Intel Corporation WiFi Link 5100 PCI: 8086:4235 Intel Corporation Ultimate N WiFi Link 5300 PCI: 8086:4236 Intel Corporation Ultimate N WiFi Link 5300 PCI: 8086:4237 Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection PCI: 8086:4238 Intel Corporation Centrino Ultimate-N 6300 PCI: 8086:4239 Intel Corporation Centrino Advanced-N 6200 PCI: 8086:423A Intel Corporation PRO/Wireless 5350 AGN [Echo Peak] Network Connection PCI: 8086:423B Intel Corporation PRO/Wireless 5350 AGN [Echo Peak] Network Connection PCI: 8086:423C Intel Corporation WiMAX/WiFi Link 5150 PCI: 8086:423D Intel Corporation WiMAX/WiFi Link 5150

Смотрите также

  • iwlegacy — Устройства Intel PRO/Wireless 3945 и WiFi Link 4965
  • ipw2200 — Устройства Intel PRO/Wireless 2100, 2200 и 2915
  • Как настроить WiFi

Источник

How to Enable WiFi in Debian 11 Bullseye, Fix Missing wlan0

How to Enable WiFi in Debian 11 Bullseye, Fix Missing wlan0

Are you looking for a way to fix no Wi-Fi problem on Debian? If yes, then you have landed on the right page. In this tutorial, I will share a straightforward method that you can apply to fix the missing Wi-Fi adapter issue on Debian.

If you just did a fresh Debian install on a PC, then you will most likely run into an issue where you can’t access Wi-Fi. Debian will not even show you wlan0 device if you run ip addr show the command.

This happens because the Debian ISO doesn’t include the Wi-Fi firmware by default. Thus, you have to manually install the firmware from a non-free repo in order to use the Wi-Fi facility.

Depending on the network card manufacturer of your computer, you have to install the correct firmware. If you are using a laptop of popular brands such as Lenovo, Acer, Samsung or Asus, which usually use Atheros network card, it could be a little daunting to find the right version of the firmware to install.

I ran into this issue a little while ago and couldn’t find a quick solution so I thought maybe share the fix, so others do not have to face what I went through. Let’s cut to the chase and see the steps involved:

  1. First, identify the manufacturer of your Wi-Fi network card.
  2. Install the firmware matching your network card manufacturer.

See how to complete these two steps below.

Step 1: Identifying Wi-Fi Network Card Manufacturer on Debian

There is a CLI utility called lshw which can help you identify all the hardware installed on your computer, including the network card. A very good chance is that it will be pre-installed. If not, then you will have to install it by connecting your PC to an Ethernet connection. You can use your Android phone as an Ethernet device via USB tethering.

Install lshw like this:

sudo apt install lshw

It is now time to use lshw to find out the network card vendor. Run the command below and wait for it to generate the HTML report.

lshw -html > lsh.html

lshw generate hardware report in html

Open the generated HTML report(lsh.html) in the browser and search for network or network controller. You will find the result something like this:

lshw showing network controller

From this screenshot, it is now evident that the vendor of my network card is Atheros! But it can also be Intel. It all depends on the PC/laptop manufacturer. Never mind, it doesn’t matter because, firmware for both these cards available for Debian. See in next section, how to install it.

Step 2: Installing firmware matching your network card manufacturer on Debian.

In the last step, you will know what network card is installed on your system. So, based on what card it is, you need to install the correct firmware.

For Atheros Card:

On my Lenovo Ideapad 300-15ISK, it was Atheros card, as evident from the snapshots above.

So, to install the firmware for Atheros, you issue the following command.

sudo apt install firmware-atheros

Install firmware-atheros on Debian

After the firmware installs, you can try restarting your computer. You will now see that it will detect the available Wi-Fi networks nearby.

Wi-Fi start showing

Alternatively, you can download the DEB file for the same firmware on some other device, transfer to the Debian PC, and manually install it.

After getting the DEB file, you open the terminal in the Downloads directory and issue this command.

sudo dpkg -i firmware-atheros*

After it completes, successfully, you will have both; wla0 will start showing along with the Wi-Fi network.

For Intel Card:

To install the firmware for Intel network controller, you issue the following command.

sudo apt install firmware-iwlwifi

After it installs successfully, restart your computer. You will now see that it will detect nearby Wi-Fi networks.

Alternatively, you also download the DEB file for the same firmware on some other device, transfer to the Debian PC, and install it manually.

Find and get Intel Wireless firmware here: firmware-iwlwifi (20210315-3) [non-free]

After getting the DEB file, you open the terminal in the Downloads directory and issue this command.

sudo dpkg -i firmware-iwlwifi*

install iwlwifi on Debian

After it completes, successfully, you will have both; wlan0 will start showing along with the Wi-Fi network.

These are the only two steps you have to perform. If you follow them correctly, I am sure you will get Wi-Fi access on Debian in easy way. Although, I hope that they make this process a bit smoother by restoring these back to the installation ISO.

Источник

Оцените статью
Adblock
detector