Portál AbcLinuxu, 25. dubna 2024 23:44


Dotaz: Debian Jessie a Bluetooth

Pavel 'TIGER' Růžička avatar 20.9.2014 23:46 Pavel 'TIGER' Růžička | skóre: 53
Debian Jessie a Bluetooth
Přečteno: 855×
Odpovědět | Admin
Dobrý večer,

Dlouho jsem bluetooth nepotřeboval, dnes bych jej i využil, ale ejhle. Nainstaloval jsem blumana, spustil službu a skončil jsem na párování. Nemůžu spárovat telefon s notebookem. Z ani jedné strany nevyskočí na druhé požadavek na pin.

OK, řekl jsem si vykašlu se na grafiku, podívám se na to z terminálu. Jelikož si všechno nepamatuji, tak jsem si dohledal, že je třeba bluetooth-agent, v počítači jej nemám a žádný balíček jej neobsahuje.

Dobrá, googlím dál a zjišťuji, že bluetooth-agent skončil a jeho funcki převzal bluez-simple-agent. V počítači jej nemám a žádný balíček jej neobsahuje. OK, googlím dál, ale další předání této funkce jinému agentovi nenacházím. Asi ho něco sežralo.

Avšak podařilo se mi vynutit párovací okno v mobilu po zadání rfcomm connect hci0 (phone address), ale nedohledal jsem, kde je soubor s pinem. Někde jsem vygooglil, že debian by měl mít standartně 2309, ale s tím to nefunguje. Je možné, že soubor s pinem neexistuje a musí se vytvořit? Četl jsem, že v /etc/bluetooth by měl být soubor s názvem pin, ale to byl dost starý návod a soubory, které v něm byly jmenované dnes už složka neobsahuje, takže jsem to ani nezkoušel.

Nakopněte mne prosím správným směrem.

wajig> whichpkg agent
udev: /lib/udev/net.agent
gnupg-agent: /usr/share/man/man1/gpg-agent.1.gz
udev: /lib/udev/logger.agent
gnupg-agent: /usr/bin/gpg-agent
gnupg-agent: /usr/share/doc/gnupg-agent/changelog.gz
policykit-1: /usr/share/man/man1/pkttyagent.1.gz
systemd: /usr/share/man/man1/systemd-tty-ask-password-agent.1.gz
systemd: /bin/systemd-tty-ask-password-agent
policykit-1-gnome: /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
gnupg-agent: /usr/share/doc/gnupg-agent
openssh-client: /usr/share/upstart/sessions/ssh-agent.conf
gnupg-agent: /usr/bin/gpg-connect-agent
systemd: /lib/systemd/systemd-cgroups-agent
gnupg-agent: /usr/share/doc/gnupg-agent/copyright
systemd-ui: /usr/bin/systemd-gnome-ask-password-agent
gnupg-agent: /usr/share/doc/gnupg-agent/changelog.Debian.gz
systemd: /lib/systemd/system/mail-transport-agent.target
udev: /lib/udev/dsl-modem.agent
x11-common: /etc/X11/Xsession.d/90x11-common_ssh-agent
gnupg-agent: /etc/X11/Xsession.d/90gpg-agent
libpolkit-agent-1-0:i386: /usr/share/doc/libpolkit-agent-1-0
libpolkit-agent-1-0:i386: /usr/lib/i386-linux-gnu/libpolkit-agent-1.so.0.0.0
openssh-client: /usr/share/man/man1/ssh-agent.1.gz
policykit-1: /usr/bin/pkttyagent
libpolkit-agent-1-0:i386: /usr/lib/i386-linux-gnu/libpolkit-agent-1.so.0
gnupg-agent: /usr/share/man/man1/gpg-connect-agent.1.gz
policykit-1: /usr/lib/policykit-1/polkit-agent-helper-1
openssh-client: /usr/bin/ssh-agent
libpolkit-agent-1-0:i386: /usr/share/doc/libpolkit-agent-1-0/copyright
libpolkit-agent-1-0:i386: /usr/share/doc/libpolkit-agent-1-0/changelog.Debian.gz
openjdk-7-jre-headless:i386: /usr/lib/jvm/java-7-openjdk-i386/jre/lib/management-agent.jar
policykit-1-gnome: /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

21.9.2014 00:13 ewew | skóre: 40 | blog: ewewov_blog
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Odpovědět | | Sbalit | Link | Blokovat | Admin

Skúšal si tento návod?

Root v linuxe : "Root povedal, linux vykona."
Pavel 'TIGER' Růžička avatar 21.9.2014 00:30 Pavel 'TIGER' Růžička | skóre: 53
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Z něho jsem vycházel, ale narazil jsem:
Pairing using bluetooth-agent

If you do not want to or cannot use Gnome or KDE, you can also use bluetooth-agent for the pairing. bluetooth-agent is part of package bluez if you use Debian testing or unstable, so should already be installed.

Just start bluetooth-agent (as root), giving an arbitrary PIN, such as 4835:

# bluetooth-agent 4835

Prostě bluetooth-agenta nemám a žádný balíček jej neobsahuje. :-/
21.9.2014 11:45 nobody
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
ses si jistej ze v Jessie neni balicek pro BlueZ ? ;)
Pavel 'TIGER' Růžička avatar 21.9.2014 16:56 Pavel 'TIGER' Růžička | skóre: 53
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Balíček bluez mám nainstalován, leč neobsahuje onoho bluetooth-agenta.

dpkg -l bluez
Požadované=Neznámé/Instalovat/Odinstalovat/Vyčistit/Podržet
| Stav=Ne/Instalován/Konfigurační soubory/Rozbalen/Nezkonfigurován/Nekompletní
| instalace/Očekávané spouštěče/Nevyřízené spouštěče
|/ Chyba?=(nic)/Nutná přeinstalace (Stav,Chyba: velké písmeno=chyba)
||/ Název                                                 Verze                           Architektura                    Popis
+++-=====================================================-===============================-===============================-===============================================================================================================
ii  bluez                                                 5.23-1                          i386                            Bluetooth tools and daemons

dpkg -L Bluez
/.
/etc
/etc/init.d
/etc/init.d/bluetooth
/etc/dbus-1
/etc/dbus-1/system.d
/etc/dbus-1/system.d/bluetooth.conf
/etc/default
/etc/default/bluetooth
/etc/bluetooth
/etc/bluetooth/proximity.conf
/etc/bluetooth/main.conf
/etc/bluetooth/input.conf
/etc/bluetooth/network.conf
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/bluetooth.service
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/97-hid2hci.rules
/lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
/lib/udev/hid2hci
/bin
/bin/hciconfig
/usr
/usr/share
/usr/share/dbus-1
/usr/share/dbus-1/system-services
/usr/share/dbus-1/system-services/org.bluez.service
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/sdptool.1.gz
/usr/share/man/man1/bccmd.1.gz
/usr/share/man/man1/hciattach.1.gz
/usr/share/man/man1/rctest.1.gz
/usr/share/man/man1/hid2hci.1.gz
/usr/share/man/man1/hciconfig.1.gz
/usr/share/man/man1/hcitool.1.gz
/usr/share/man/man1/bluetoothctl.1.gz
/usr/share/man/man1/ciptool.1.gz
/usr/share/man/man1/l2test.1.gz
/usr/share/man/man1/l2ping.1.gz
/usr/share/man/man1/rfcomm.1.gz
/usr/share/man/man1/btmon.1.gz
/usr/share/man/man8
/usr/share/man/man8/bluetoothd.8.gz
/usr/share/doc
/usr/share/doc/bluez
/usr/share/doc/bluez/changelog.Debian.gz
/usr/share/doc/bluez/README.Debian.gz
/usr/share/doc/bluez/NEWS.Debian.gz
/usr/share/doc/bluez/changelog.gz
/usr/share/doc/bluez/copyright
/usr/lib
/usr/lib/bluetooth
/usr/lib/bluetooth/bluetoothd
/usr/sbin
/usr/bin
/usr/bin/gatttool
/usr/bin/hciattach
/usr/bin/bluetoothctl
/usr/bin/sdptool
/usr/bin/hcitool
/usr/bin/rctest
/usr/bin/ciptool
/usr/bin/rfcomm
/usr/bin/btmon
/usr/bin/l2test
/usr/bin/l2ping
/usr/bin/bccmd
/usr/sbin/bluetoothd
21.9.2014 21:09 marek_hb
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
něco je špatně - mě ho to v bzulez našlo:
root@debian-desktop:/home/marek# apt-file search bluetooth-agent
bluez: /usr/bin/bluetooth-agent
bluez: /usr/share/man/man1/bluetooth-agent.1.gz
bluez-dbg: /usr/lib/debug/usr/bin/bluetooth-agent
root@debian-desktop:/home/marek# 
Pavel 'TIGER' Růžička avatar 21.9.2014 21:14 Pavel 'TIGER' Růžička | skóre: 53
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Verze? Architektura?
21.9.2014 21:15 marek_hb
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
unstable/sid 64 bit
21.9.2014 21:16 marek_hb
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
unstable/experimental jsem chtěl napsat ...
21.9.2014 21:15 marek_hb
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
a možná to mám:
root@debian-desktop:/home/marek# bluetoothctl -help
Usage:
  bluetoothctl [OPTION...]

Help Options:
  -h, --help                 Show help options

Application Options:
  -v, --version              Show version information and exit
  -a, --agent=CAPABILITY     Register agent handler
třeba to bude ono
Pavel 'TIGER' Růžička avatar 21.9.2014 21:29 Pavel 'TIGER' Růžička | skóre: 53
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Bomba, díky chlape! Je to zase úplně jiný způsob nastavení, ale funguje to.
21.9.2014 21:34 marek_hb
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
rádo se stalo :)
29.11.2015 11:48 ja
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Díky chlapi,

dřu se s tím několik hodin a tohle je konečně řešení :-)
13.2.2015 19:37 r76 | skóre: 7 | Ostrava
Rozbalit Rozbalit vše Re: Debian Jessie a Bluetooth
Odpovědět | | Sbalit | Link | Blokovat | Admin
se v tom nehrabej,kdyz tomu nerozumis! _:)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.