Кали линукс включить блютуз

Troubleshoot, fix and enable Bluetooth on Kali Linux

In this short tutorial, we’ll show how to enable Bluetooth on Kali Linux. We’ll go through the commons steps for setting up the Bluetooth and cover different situations and possible issues:

  • check if you have all core system packages in place
  • assure that your Bluetooth device is not blocked
  • install Blueman package
  • check service status and start it if it’s not already started
  • potential issues and solutions:
    • an issue with libgcc-9-dev package— to solve this issue check out this tutorial

    2. Check if you have all core system packages in place

    If you installed the basic/core version of Kali Linux, it’s good practice to do do the update and upgrade after the installation, so that you have a complete package list. For that purpose use the following commands:

    sudo apt-get update sudo apt-get upgrade

    If these commands results say that everything is up to date and you’re sure that you didn’t do any updates on your new system, check the contents of the /etc/apt/sources.list fille. For this purpose, you can use any text editor, for example, nano:

    sudo nano /etc/apt/sources.list

    In my case, I downloaded and installed a rolling release and I didn’t have any repositories configured. The contents of my sources.list file was as follows:

    # deb cdrom:[Debian GNU/Linux 2019.4 _Kali-rolling_ - Official Snapshot am> #deb cdrom:[Debian GNU/Linux 2019.4 _Kali-rolling_ - Official Snapshot amd> # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual. 
    deb http://http.kali.org/kali kali-rolling main non-free contrib

    After I did this, I executed update&upgrade again, waited for a half an hour and in the end I actually had all things in place.

    3. Be sure that your Bluetooth device is not blocked

    Sometimes, it happens that the Bluetooth device itself is blocked/disabled. This could happen due to software or hardware reasons. To check the device status, use the rfkill list command:

    0: ideapad_wlan: Wireless LAN Soft blocked: no Hard blocked: no 1: ideapad_bluetooth: Bluetooth Soft blocked: no Hard blocked: no 2: hci0: Bluetooth Soft blocked: no Hard blocked: no 3: phy0: Wireless LAN Soft blocked: no Hard blocked: no

    Assure that the Bluetooth device you’re trying to use for the connection is not blocked. In case that it’s blocked, use the following command to unblock it:

    sudo rfkill unblock bluetooth

    For a more detailed tutorial on rfkill tool, check out this tutorial.

    3. Assure that Bluetooth service is started

    If your Bluetooth device was blocked/disabled, it’s a chance that the Bluetooth service is not started on your machine, so start it using:

    sudo service bluetooth start

    4. Install blueman package

    Blueman is a Bluetooth manager with great UI that uses blueZ in the background. It will help you to easily manage your Bluetooth devices. If you don’t have it already, install it using

    sudo apt-get install blueman

    In this step, I had the issue with package versions saying:

    After all of this goes fine, you’ll see the Bluetooth icon next to the clock and you’ll be able to connect and use your Bluetooth devices.

    5. Conclusion

    In this tutorial, we showed how to enable Bluetooth on Kali Linux and troubleshoot the issues.

    Check also.

    Источник

    Bluetooth не работает на Kali Linux

    Ну, у меня была проблема, что Bluetooth всегда был выключен. Я захожу в конфигурацию-> Bluetooth, и каждый раз, когда я пытался его отключить, через некоторое время просто выключается. Я попытался с этой командой: Способность установить Bluetooth а потом беги /etc/init.d/bluetooth start после этого я запустил статус /etc/init.d/bluetooth и вот что показывает:

    ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2017-01-17 21:13:47 UTC; 29s ago Docs: man:bluetoothd(8) Main PID: 7939 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─7939 /usr/lib/bluetooth/bluetoothd Jan 17 21:13:47 kali bluetoothd[7939]: Error adding Link Loss service Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register . ce Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register . ce Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register . ce Jan 17 21:13:47 kali bluetoothd[7939]: Current Time Service could not be re. ed Jan 17 21:13:47 kali bluetoothd[7939]: gatt-time-server: Input/output error (5) Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register . ce Jan 17 21:13:47 kali bluetoothd[7939]: Not enough free handles to register . ce Jan 17 21:13:47 kali bluetoothd[7939]: Sap driver initialization failed. Jan 17 21:13:47 kali bluetoothd[7939]: sap-server: Operation not permitted (1) Hint: Some lines were ellipsized, use -l to show in full. 

    Мой компьютер — Sony VAIO SVF15A17CLV. Спасибо!! Отредактировано: после запуска команды service restart некоторые из вас предложили мне получить следующий вывод:

    ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled) Active: active (running) since Thu 2018-05-03 23:44:12 UTC; 5min ago Docs: man:bluetoothd(8) Main PID: 3882 (bluetoothd) Status: "Running" Tasks: 1 (limit: 4915) CGroup: /system.slice/bluetooth.service └─3882 /usr/lib/bluetooth/bluetoothd May 03 23:44:12 kali systemd[1]: Starting Bluetooth service. May 03 23:44:12 kali bluetoothd[3882]: Bluetooth daemon 5.36 May 03 23:44:12 kali systemd[1]: Started Bluetooth service. May 03 23:44:12 kali bluetoothd[3882]: Starting SDP server May 03 23:44:12 kali bluetoothd[3882]: Bluetooth management interface 1.12 . ed Hint: Some lines were ellipsized, use -l to show in full. 

    Кажется лучше, но это все еще не работает. Когда я захожу в настройки Bluetooth, он всегда выключен. После нажатия кнопки «Старт» изображение выглядит следующим образом: образ PS: я знаю, это не проблема с оборудованием, потому что, если я загружаюсь с Windows 10, он работает правильно.

    Источник

    How to Fix Kali Linux Bluetooth issues

    How to Fix Kali Linux Bluetooth issues

    thetqweb | the Ultimate Cyber Intelligence Hub

    Does your Kali machine have issues or problems to do with Bluetooth?

    You are probably going to Settings and turning Bluetooth On, but annoyingly, the toggle button returns to Off, as if you did not just do anything. For others the toggle button accepts to change to On, but nothing displays inside the Bluetooth window, again, as if you did not just do anything, and additionally for these cases, if you exit the Bluetooth window or close Settings and then return to Bluetooth settings, the toggle is back to Off. Damn annoying!

    This article highlights some of the ways to fix the problems;

    Fix 1: Enable/Activate Bluetooth Manually in Terminal

    This is the most basic fix that works for most.

    [Step 1: Check if you have Bluetooth installed in your Kali machine via ‘apt’]

    How to Fix Kali Linux Bluetooth issues

    If this command returned results with certain information/flags, for instance “Package:”, “Version:”, “Priority:”, “Section:”, “Source:”, “Maintainer:”, “Installed-Size:”, “Depends:”, “Suggests:”, “Homepage:”, “Tag:”, “Download-Size:”, “APT-Sources:” && “Description:”!, then you are good to go. Continue with Fix 1. If you got that Bluetooth is not installed in your Kali machine, you need to check other fixed that are provided after Fix 1.

    [Step 2: Check the Status of Bluetooth as a Service]

    How to Fix Kali Linux Bluetooth issues

    systemctl status bluetooth

    Here, you are looking for an ‘active’ status in the results of the above command. The results should contain “Loaded:“, “Active:” and “Docs:” flags.
    Our focus here is with the “Active:” flag, which should return an ‘active (running)‘ status, if Bluetooth is running. If it is not, as expected in this case, the results will have an ‘inactive (dead)‘ status. We thus have to manually change this status.

    [Step 3: Activating Bluetooth]

    systemctl start bluetooth

    Just like you usually start any service in Kali/Debian, you use the keyword ‘service’ followed by the action you want to take, for instance, ‘start’ and ‘stop’, and finally the service you are targeting when performing the specified action.
    You should not expect any output in Terminal if this command goes through successfully. It silently performs the intended task and then returns to the location you were working with in Terminal before running the command. It almost looks like you did nothing, but be fooled not, as this is the core of this fix!

    [Step 4: Check the Status of Bluetooth now]

    How to Fix Kali Linux Bluetooth issues

    systemctl status bluetooth

    If the command from the previous step went through successfully, you expect to get an ‘active (running)‘ status now in the “Active:” flag.
    The results of this command will have flags similar to the time we ran it first in Step 2, with additional flags. The flags now will be; “Loaded:”, “Active:”, “Docs:”, “Main PID:”, “Status:”, “Tasks:”, “Memory:”, “CPU:” and “CGroup:”.

    You are now good to go! Just to confirm the Fix worked, open Settings and navigate to Bluetooth settings. Turn the toggle button to On for Bluetooth and your Kali machine should now start searching for the nearby Bluetooth devices. Also, for the record, closing Bluetooth settings now should not actually close Bluetooth or change the toggle button to off when you return to Settings.

    How to Fix Kali Linux Bluetooth issues

    Fix 2: Install Bluetooth

    If the results of Step 1 in Fix 1 showed that Bluetooth is not installed, you could not continue with the subsequent steps. This fix is for you. It is a simple as you only need to install Bluetooth. Use the following commands;

    sudo apt-get install bluetooth

    Alternatively, you can download Bluetooth manually from the provided repository in Debian packages, depending on the version of Debian, that is “Jessie“, “Stretch” or “Buster“.

    Note that Buster is the newest Release for Debian followed by Stretch as we backdate.

    The package you will get from the download is a *.deb file which you can install from directly using the ‘dpkg‘ command and package manager, like;

    Another alternative for Linux is using the latest modules provided by BlueZ, at http://www.bluez.org/download/. BlueZ provides support for Linux Bluetooth core protocols and layers for generally all Linux distros, but more specifically for; Debian GNU/Linux, Ubuntu Linux, Fedora Core / Red Hat Linux, OpenSuSE / SuSE Linux, Mandrake Linux, Gentoo Linux and Chrome OS.

    NOTE:// After successfuly installing Bluetooth in your machine, you might want to activate it before using it. This is because, after installing Bluetooth, yo might now encounter the issue we solved in Fix 1 above. Therefore, you might want to follow the steps in Fix 1 above after the installation.

    Fix 3: Last option

    If for whatever reason the above two fixes did not work for you you can try Uninstalling Bluetooth and then Re-Installing it. After successfully getting Bluetooth in your machine, you might want to also go back to Fix 1 to activate Bluetooth, due to reasons presented in the Fix 2 Note!

    SUPPORT [[:thetqweb:]] VIA

    Источник

    Читайте также:  Sed linux add line
Оцените статью
Adblock
detector