Через блютуз:
ставиш пакет wvdial (sudo apt-get install wvdial)
надо узнать mac-адрес телефона
hcitool scan
Результат будет примерно таким:
Scanning ...
00:1A:16:A2:FD:8A Nokia 5700 XpressMusic
Теперь определим канал по которому будет осуществляться соединение:
sdptool search DUN
Результат:
Inquiring ...
Searching for DUN on 00:1A:16:A2:FD:8A ...
Service Name: Dial-Up Networking
Service RecHandle: 0x1000d
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Строка «Channel: 4» показывает что соединения осуществляется по 4 каналу.
Далее отредактируем файл конфигурации wvdial'а(стандартная программа для дозвона в linux mint 7)
sudo gedit /etc/wvdial.conf
Добавляем в файл следующие строки:
[Dialer bt]
Baud=460800
New PPPD=yes
Modem=/dev/rfcomm0
ISDN=0
Init1=ATZ
Init2=ATQ0 V1 E1 S0=0
Init3=AT+CGDCONT=1,"IP","internet.tele2.ru"
Phone=*99***1#
Username=gdata
Password=gdata
Dial Attempts=5
Dial Command=ATM1L3DT
Auto Reсonnect=off
Carrier Check=on
Check Def Route=on
Abort on No Dialtone=on
Stupid mode=off
Idle seconds=0
Auto DNS=on
___________________
потом:
sudo gedit /etc/bluetooth/rfcomm.conf
откроется вот такое примерно:
#
# RFCOMM configuration file.
#
#rfcomm0 {
# # Automatically bind the device at startup
# bind no;
#
# # Bluetooth address of the device
# device 11:22:33:44:55:66;
#
# # RFCOMM channel for the сonnection
# channel 1;
#
# # Description of the сonnection
# comment "Example Bluetooth device";
#}
надо изменить на:
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:1A:16:A2:FD:8A;
# RFCOMM channel for the сonnection
channel 4;
# Description of the сonnection
comment "nokia by super-pups";
}
____________________
перезагружаемСо.
Подключаемся
sudo wvdial bt
отключаемся
ctrl-c
__________________________________
незабуть по подставлять своё!