Step 1. Activate your USB Bluetooth
Open your Linux Terminal (Applications > Accessories > Terminal) then type ‘lsusb‘ and press ‘Enter‘ to check if your USB bluetooth is recognized or not by Ubuntu.
After that, type ‘sudo hciconfig hci0 up‘ and press ‘Enter‘ to turn on your bluetooth device. You can check the result using ‘hciconfig hci0‘.

Step 2. Turn on your Nokia 5320 Express music bluetooth function.
Open Settings > Connect > Bluetooth then set the setting as below:
-Bluetooth to on.
-My phone’s visibility to ‘shown to all‘.
-My phone’s name to ‘Linux 5320‘ (you can use any name you like)
Step 3. Browse the available device from Ubuntu.
Type ‘sudo hcitool scan‘ and press ‘Enter‘ on your Linux Terminal. Block and copy the MAC address (00:21:FE:24:D6:99). This MAC address will be different in every device.

<!– @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } –>
Step 4. Set configuration for rfcomm.conf file.
Type ‘sudo sdptool browse your_mac_address‘ and press ‘Enter‘. This command will browse the available service from your Nokia 5320 mobile.

The information that we need is the RFCOMM channel from ‘Dial-up Networking’ service. Just scroll down until you find the dial-up service. As you can see below, my channel is 5 from my ‘Dial-up Networking’ service. You will need it when you set up rfcomm.conf file.

Go to /etc/bluetooth directory by type ‘cd /etc/bluetooth/’ in your Linux Terminal.

Edit the ‘rfcomm.conf‘ file using your favorite text editor. In this sample, I use ‘vim‘.

Change the configuration and save the file. If you use ‘vim‘, press ‘ESC‘ button to release the ‘replace/insert‘ sign then type ‘:wq‘ to safe the file.

Below is my rfcomm.conf setting.
—————————————————————
#
# RFCOMM configuration file.
#
rfcomm0 {
# Automatically bind the device at startup
bind yes;
# Bluetooth address of the device
device 00:21:FE:24:D6:99;
# RFCOMM channel for the connection
channel 5;
# Description of the connection
comment “Nokia Linux 5320 Express Music“;
}
—————————————————————
Step 5. Set configuration for ‘hcid.conf‘ file.
The main problem if pair between mobile phone and a PC/Laptop is it can’t reply back the authentication key code. For example, if you want to transfer a file between 2 mobile phone with bluetooth, first you have to pair the two mobiles. To pair between 2 mobiles, the sender have to set a key pass and the receiver must key in the pass before the 2 mobile can be paired.
You can’t do that in Ubuntu. That’s why to set ‘autoinit = yes’ is very important. Otherwise you will not be able to pair your Nokia 5320 express music.
The setting that I change is:
-autoinit = yes
-security = auto
-pairing = multi
-passkey = 1234 (up to you)
Below is my hcid.conf setting.
—————————————————————
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# Default PIN code for incoming connections
passkey “1234“;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name “%h-%d”;
# Local device class
class 0×000100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
discovto 0;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
}
—————————————————————

Step 6. Pair the device
You have to do it from your Nokia 5320 express music device.
Open Menu > Settings > Connect > Bluetooth > Paired devices > Options > New paired device > More devices, then it will start searching.
After few seconds, in will show the ‘Devices found‘, choose your computer device in the list and press ‘select‘.
The it will ask ‘Passcode for toshiba-0 (your computer_name)‘, enter the key pass as you put in hcid.conf (pass key=1234) file and press ‘OK‘.
Then another question will occur:
Authorise device to make connections automatically? Select ‘yes‘.
Now, your Ubuntu will be ready to connect with your Nokia 5320.
Step 7. Try the connection
Type ‘sudo wvdialconf‘ in your Linux Terminal to set dial up configuration.
Uppss….. something wrong?
No, it’s ok.
As long as your mobile has been paired with your PC/laptop already then it will be no problem.

<!– @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } –>
All you have to do is copy the content of wvdial.conf file that you use for ‘internet connection with cable data‘. See, my article about ‘Nokia Express Music 5320 with Linux Ubuntu – Internet Connection with CA-101 cable data‘

Below, is my the internet connection setting with CA-101 cable data.

Then change the setting like below:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Phone = *99***1#
ISDN = 0
Password = wap123
Username = wap
Init3 = ATZ,”10.1.89.130″,”telkomsel”
Modem = /dev/rfcomm0
Baud = 56700

Now, let’s try again.

If you still can’t connect to the internet, you use the same solution that I mentioned in ‘Nokia Express Music 5320 with Linux Ubuntu – Internet Connection with CA-101 cable data‘.
-Disconnect the connection.
-Turn off your eth0 protocol. (sudo ifconfig eth0 down)
-Re-connect again.
