Как установить драйвер bluetooth на centos

от admin

Install bluetooth, bluez-utils, blueman and libbluetooth-dev On CentOS +7

I have a java project that I have to communicate with a out resource by bluetooth. So I am using BlueCove library to do that. but I know I should install bluetooth, bluez-utils, blueman and libbluetooth-dev before using the BloueCove. My Operating System is CentOs 7+ Any one can help me to install them? Thanks.

2 Answers 2

I found it at last.

I installed all prerequisites for blueCove by below commands in Linux CentOS 7+

$ sudo yum install *bluez *

$ sudo yum install *bluetooth *

it works for me.

I wanted to install bluetooth_battery which depends on libbluetooth-dev . Installing bluez-libs-devel fixed my missing dependencies, therefore I presume that bluez-libs-devel should be used instead of libbluetooth-dev on RHEL-like distributions.

    The Overflow Blog
Related
Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.3.13.43307

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Configure WiFi & Bluetooth on Centos 8

I chose to write this post as a mention of the steps that I took for installing drivers, and configuration necessary to revive my old Dell 1545 Inspiron. Centos 8 has a lot of performance improvements and ever since I upgraded the HDD to SSD on this laptop, it has been an experience worth no words.

Sometime it feels so slick and fast that I almost not notice any difference between my i7 and that measly Core 2 Duo.

Well, most of the stuff comes pre-installed and all the drivers are available for the AHCI bus which is the faster one in this laptop. All the sound drivers are also appropriate. The operating system uses pulseaudio under the hood

The problems that I faced were related to configuring the WiFi and Bluetooth. One of them relates to the proprietary nature of WiFi drivers. They are not present in the provided repositories of either Centos or Fedora.

Dell comes with chips from broadcom. These chips are like one board having multiple functionalities considering the form factor of a laptop. I initially tried to refer to this post which talks about installing broadcom drivers from source packages. It does look like it would do the job but its just a long tedious process. A better way seemed like being able to install kmod-wl and broadcom-wl packages from rpmfusion repository. The process was very smooth and my WiFi was up in a jiffy.

I had quite some trouble trying to make bluetooth up though. There are several steps involved ranging from getting the device to be able to recognize by the kernel to being able to connect via A2DP after pairing. After quite some RnD I was able to arrive at a final set of steps:

Как установить драйвер беспроводной сети в RHEL 8 / CentOS 8 Linux

В наши дни большинство ноутбуков и мобильных устройств имеют карту беспроводной связи. Мобильная связь важна как никогда. Если двадцать лет назад в Linux едва хватало драйверов для нескольких встроенных сетевых карт, то теперь количество драйверов беспроводной связи, встроенных в ядро, растет с каждым выпуском ядра. Более того, производители оборудования выпускают свои продукты вместе с драйверами Linux, будь то закрытые или открытые. В этой статье мы рассмотрим, как установить драйверы беспроводной сети в RHEL 8 / CentOS 8.

В этом уроке вы узнаете:

  • Как установить драйверы беспроводной сети с помощью dnf
  • Как установить вручную загруженные драйверы беспроводной сети

Используя dnf, вы можете искать доступные беспроводные драйверы в репозиториях RHEL 8 / CentOS 8.

Используя dnf, вы можете искать доступные беспроводные драйверы в репозиториях RHEL 8 / CentOS 8.

Требования к программному обеспечению и используемые условные обозначения

Требования к программному обеспечению и условные обозначения командной строки Linux

Категория Требования, условные обозначения или используемая версия программного обеспечения

Встроенный способ

Если ваша беспроводная карта не была обнаружена автоматически RHEL 8 / Ядро CentOS 8, вы можете сначала найти его в репозиториях. Сделайте

и вам будет представлен список драйверов беспроводной сети. Большинство драйверов, которые вы найдете в официальных репозиториях RHEL 8 / CentOS 8, предназначены для карт Intel. Вы можете, например, установить драйвер для сетевых адаптеров Intel PRO Wireless 5150 A / G / N, используя

Внешний пакетный способ

Некоторые беспроводные драйверы не поставляются в комплекте с ядром Linux и могут отсутствовать в репозиториях RHEL 8 / CentOS 8. Большинство из них представляют собой двоичные пакеты, которые необходимо выполнить, или сценарии, которые автоматически устанавливают необходимые зависимости при вызове. Такой двоичный пакет или сценарий оболочки необходимо загрузить и сделать исполняемым для запуска:

Будь они .sh или .bin файлы эти исполняемые файлы могут быть запущены после присоединения исполняемого бита с помощью

Вам нужно будет использовать судо или станьте root с вс — для их запуска, потому что они должны будут установить файлы и модули в некоторых областях файловой системы, требующие прав администратора. Каждый пакет драйверов после запуска имеет свой собственный набор индикаторов, но большинство из них просты и понятны. Очень немногие из них потребуют перезагрузки, поэтому ваша беспроводная карта начнет работать сразу после установки драйвера.

Подпишитесь на новостную рассылку Linux Career Newsletter, чтобы получать последние новости, вакансии, советы по карьере и рекомендуемые руководства по настройке.

LinuxConfig ищет технических писателей, специализирующихся на технологиях GNU / Linux и FLOSS. В ваших статьях будут представлены различные руководства по настройке GNU / Linux и технологии FLOSS, используемые в сочетании с операционной системой GNU / Linux.

Ожидается, что при написании статей вы сможете идти в ногу с технологическим прогрессом в вышеупомянутой технической области. Вы будете работать независимо и сможете выпускать не менее 2 технических статей в месяц.

  • 09/08/2021
  • 0
  • СетиRhel8АдминистрацияCentos8

Как установить phpMyAdmin на RHEL 8 / CentOS 8

Как установить phpMyAdmin на RHEL 8 / CentOS 8

  • 09/08/2021
  • 0
  • Rhel8WebappВеб серверCentosАдминистрация

PhpMyAdmin — это веб-приложение на php, которое позволяет нам управлять базой данных MariaDB / MySQL с помощью интуитивно понятного графического интерфейса. Приложение не указано в RHEL 8 / CentOS 8 официальных репозиториев и обычно устанавливаетс.

Как распаковать zip-файл из командной строки и графического интерфейса

Как распаковать zip-файл из командной строки и графического интерфейса

  • 09/08/2021
  • 0
  • Файловая системаНовичокАдминистрацияКоманды

Вы можете подумать, что zip-файлы принадлежат Windows, а не Системы Linux. Тем не менее, это популярный метод сжатия, и есть вероятность, что вы время от времени встретите их в Интернете. Либо так, либо ваш приятель по Windows пришлет вам zip-файл.

Как установить драйвер беспроводной сети в RHEL 8 / CentOS 8 Linux

Как установить драйвер беспроводной сети в RHEL 8 / CentOS 8 Linux

  • 09/08/2021
  • 0
  • СетиRhel8АдминистрацияCentos8

В наши дни большинство ноутбуков и мобильных устройств имеют карту беспроводной связи. Мобильная связь важна как никогда. Если двадцать лет назад в Linux едва хватало драйверов для нескольких встроенных сетевых карт, то теперь количество драйверов.

Как установить драйвер bluetooth на centos

<!>These chipsets are not natively supported by CentOS.

This page is currently maintained by: Miloš Blažević

  1. Broadcom Corporation BCM4311, BCM4312, BCM4313, BCM4321, BCM4322, BCM43224, BCM43225, BCM43227 and BCM43228 Based Wireless NICs
    1. Step 1: Determining WLAN chip and installing dependencies
    2. Step 2: Downloading and extracting Broadcom driver archive
    3. Step 3a: Compiling the Broadcom driver module (on EL6 and EL7)
    4. Step 3b: Compiling the Broadcom driver module (specifics required for EL7)
    5. Step 4a: Loading the driver module into kernel
    6. Step 4b: Loading the driver module into kernel on boot time
    7. Appendix A: Broadcom chip models tested and reported (by community members) as working
    8. Appendix B: Broadcom chip intermittent problems

    In order to install Broadcom BCM4311, BCM4312, BCM4313, BCM4321 or BCM4322, BCM43224, BCM43225, BCM43227, or BCM43228 based wireless network cards, the next steps should be followed:

    Step 1: Determining WLAN chip and installing dependencies

    First of all, make sure you are the «proud owner of Broadcom BCM43xx wireless card»:

    After the WLAN chip model was determined, make sure you have no missing packages needed at compile-time and install them if you do:

    Of course, if you’re compiling the driver for Xen kernel (i.e. kernel-xen), you should install kernel-xen-devel instead of kernel-devel.

    Step 2: Downloading and extracting Broadcom driver archive

    Download the Broadcom BCM43xx linux driver archive from Broadcom Official website — you’ll find it as in the search results list as either Linux® STA 32-bit driver or Linux® STA 64-bit driver — to your machine and extract it to /usr/local/src/hybrid-wl and feel free to change the ownership of the directory and it’s contents to some unprivileged user

    Step 3a: Compiling the Broadcom driver module (on EL6 and EL7)

    Driver module can be compiled as follows:

    Mind the quotes (i.e. back quotes).

    Now, with the current driver (version 6.30.223.271) it’s almost certain you’ll get an error message instead of compiled driver module (in fact, different scenario other that this error message is unknown to the author). The message might/will vary depending on the kernel and OS version, but on CentOS 6 it should look something like this:

    On EL6, the driver won’t compile because of the if-then-else clause for kernel version checking in file wl_cfg80211_hybrid.c. To remedy this, we’ll run the following sed replacement commands:

    Just these ‘sed’ replacements are not enough to ensure proper driver compilation. So, we also need to apply the following patch wl-kmod-fix-ioctl-handling.patch prior to actually compiling the driver. Download it to /usr/local/src and run the following command to patch the driver source code:

    Now, try compiling the driver module again:

    and the compile output should look something like this:

    • LD /usr/local/src/hybrid-wl/built-in.o CC [M] /usr/local/src/hybrid-wl/src/shared/linux_osl.o CC [M] /usr/local/src/hybrid-wl/src/wl/sys/wl_linux.o CC [M] /usr/local/src/hybrid-wl/src/wl/sys/wl_iw.o CC [M] /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.o
    • LD [M] /usr/local/src/hybrid-wl/wl.o Building modules, stage 2.
    • MODPOST 1 modules CC /usr/local/src/hybrid-wl/wl.mod.o LD [M] /usr/local/src/hybrid-wl/wl.ko.unsigned NO SIGN [M] /usr/local/src/hybrid-wl/wl.ko

    make: Leaving directory `/usr/src/kernels/2.6.32-573.7.1.el6.x86_64′ >>> The module, once built, can be stripped of unnecessary symbols:

    What you will notice, is that driver module file size reduces (from 8.2MB to 7.2MB). And yes, your driver module works ;-)

    Step 3b: Compiling the Broadcom driver module (specifics required for EL7)

    Depending on EL7 point release (or better yet, the kernel version you’re running), sub-set of sed replacements to apply will differ. So, stock kernels shipped with EL 7.0 (i.e. kernel-3.10.0-123.X), don’t require running any of the commands below, EL 7.1 (i.e. kernel-3.10.0-229.X) require the first two, EL 7.2 (i.e. kernel-3.10.0-327.X), require first four ‘sed’ commands, EL 7.3 requires first 6 executed, EL7.4 first 7, and for EL 7.5 all ‘sed’ commands are required so as to make the code compile (along with the one from step 3a):

    After applying these to the source code, just follow through the reminder of step 3a — compile the driver, and strip debugging info from it. Again, kernel builds =>229 require first two commands ONLY, builds => 327 require running first four sed replacements, builds >=514 require 6, builds >=693 require 7, and for builds >=862 all sed replacements are needed for driver to compile

    Step 4a: Loading the driver module into kernel

    Having successfully compiled the driver module, you can now load it into kernel, and eventually set up automatic driver load on system boot (to do all this, you’ll have to assume root privileges). Of course, driver module loading can be done only after you remove the existing/conflicting wireless driver modules from kernel (in case these are loaded):

    copy the driver module file to a location where kernel can find it:

    to be consistent with all other external modules that have been / may be installed from a kmod packages (e.g. fuse, ntfs-3g, etc.)

    in order to create a list of module dependencies, and now load the driver module:

    If no error was reported, the driver module is now successfully loaded and ready to use. The ‘ndiswrapper’ kernel module can be removed, provided you don’t use it for anything else but wireless driver — but this is not necessary.

    Step 4b: Loading the driver module into kernel on boot time

    Couple of more steps are needed to get your module load every time the system boots. First, edit the /etc/modprobe.d/blacklist.conf file adding the lines:

    By doing so, you’re preventing these modules from being loaded into kernel at boot time and conflicting with the wl module. Second, in order to load the wl module into the kernel on boot time, create/edit the file /etc/sysconfig/modules/kmod-wl.modules and copy-paste the following contents into it:

    Your driver should now load every time you reboot (except of course, when you install the new kernel, in which case the driver has to be re-compiled for it following these same steps).

    Читать:
    Как double преобразовать в string

Похожие статьи