Portál AbcLinuxu, 17. července 2025 10:57
Jen ve stucnosti, specificke pro Debian/Ubuntu.
Balicky
bluez-utils, bluez-pin, libbluetooth1
popr. gnome-bluetooth z deb http://debian.usefulinc.com/gnome ./
Kernel
Device drivers/Networking support:Bluetooth subsystem support L2CAP protocol support RFCOMM protocol support [*] RFCOMM TTY suppport <*> BNEP protocol support HIDP protocol support Bluetooth device drivers: HCI USB driver HCI UART driver [*] UART (H4) protocol support [*] BCSP protocol support HCI UART (PC Card) device driver HCI VHCI (Virtual HCI device) driver
/etc/bluetooth/*
hcid.conf:
options { autoinit yes; security auto; pairing multi; pin_helper /usr/local/share/static_pin; } device { name "ubuntu"; class 0x100; iscan enable; pscan enable; lm master; lp rswitch,hold,sniff,park; auth enable; }rfcomm.conf:
rfcomm0 { bind yes; device 00:00:00:00:00:00; # MAC channel 1; comment "mobile/PDA"; }/usr/local/share/static_pin:
#!/bin/bash echo "PIN:1234"
Zprovozneni
modprobe bluetooth modprobe hci_usb hcitool dev # lokalni MAC, pokud funguje driver hcitool scan # vzdalena MAC, pokud je zarizeni videt hcitool cc MAC # jde se pripojit? hcitool auth MAC # sparovani (pin je 1234)
Nastaveni wvdial pro GPRS
/etc/wvdial.conf:
[Dialer Defaults] Modem = /dev/rfcomm0 Baud = 115200 Init1 = ATZ Init2 = AT&K4 X1 Init3 = AT+CGDCONT=1,"IP","my_provider's_apn_name" ISDN = 0 Modem Type = Analog Modem Carrier Check = no Phone=*99# Username=my_username Password=my_password New PPPD = yes/etc/ppp/peers/wvdial:
noauth name wvdial usepeerdns ipcp-accept-local novj novjccomp nobsdcomp noipx lcp-echo-interval 0 passive noproxyarp
Tiskni
Sdílej:
chmod 755 /usr/local/share/static_pin
hcidump
, popr. hcitool
.
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.