- Install the following packages: bluez-utils, bluetooth, bluez-gnome, bluez-hcidump
- you will need to enable the BlueTooth applet in GNOME. Do this by going to "System->Preferences->BlueTooth Preferences". Set the mode of operation on the "Devices" tab to "Other devices can connect". On the "General" tab, set the program to always show the BlueTooth systray applet (personal preference).
- Pair your phone and computer
- Open a terminal. On the command line, enter the following commands and taking note of the information where asked to.Find the line which has something like:Code:
sudo bash
hcitool scan #(Make a note of the hardware address of your phone as listed).
gedit /etc/default/bluetooth #You can use any other text editor of courseand change it to:Code:PAND_ENABLED=0
Next, find the line which looks like:Code:PAND_ENABLED=1
and change that to:Code:PAND_OPTIONS=""
Save the file.Code:PAND_OPTIONS="--listen --role=PANU --devup /etc/bluetooth/pan/dev-up --devdown /etc/bluetooth/pan/dev-down"
- Now, create a directory called "/etc/bluetooth/pan". Use an editor to create a file called "/etc/bluetooth/pan/dev-up" and put the following lines into that file: Save that file.Code:
#!/bin/bash
ifup bnep0 - Now, use a text editor to create another file called "/etc/bluetooth/pan/dev-down" and put the following lines into it:Save that file as well.Code:
#!/bin/bash
ifdown bnep0 - Add a line to /etc/network/interfaces. Open that file with a text editor (as root) and add the following line to it near the end:Code:
iface bnep0 inet dhcp
- Start up the Internet Sharing on your phone and connect from your PC. The Internet Sharing on your phone is going to be different depending on the phone, but on the Linux client, use the following command:Code:
pand --connect
#The address you have got in the "hcitool scan" command
ifup bnep0 - That's it. You should see the bnep0 interface come up and get a DHCP address from your phone. After you have the address, you can freely browse the Internet.
To disconnect, simply run:Remember, any time you want to connect or disconnect, you must run the "pand" commands as root. BTW, I'm now using my new HTC Touch 3G to post this :)))). Article Source (with some changes): http://ubuntuforums.org/showthread.php?t=598890Code:pand -K
Showing posts with label Ubuntu Hardy. Show all posts
Showing posts with label Ubuntu Hardy. Show all posts
Saturday, June 6, 2009
Use Your Bluetooth Phone To Access The Internet
This is really cool! I could finally access the internet over a bluetooth personal area network (PAN) on my Ubuntu Hardy, here are the steps:
Sunday, May 17, 2009
Force Empty Trash
Sometimes you might face a problem where you can't delete files in the Trash (due to permission issues), I solved this problem by doing the following:
- Go to directory ".local/share/Trash/" by typing "cd .local/share/Trash"
- Execute this command: "sudo rm -rf file_name"
Saturday, March 7, 2009
Getting (compiling) the latest version of Beagle Indexing Service on Ubuntu Hardy
I couldn't find pre-compiled packages (.deb) for the latest version of Beagle (0.3.9), so I thought about compiling it myself, I did the following:
- Downloaded the new source files from http://beagle-project.org/Main_Page (beagle and libbeagle) and extracted the files.
- Opened a terminal window and navigated to the "libbeagle" folder first (as beagle depends on it)
- Ran "./configure" to tell me if my system has all required files and libraries and I had to install the following libraries via apt-get: librsvg2-dev, libgtk2.0-dev, and libmono-dev.
- Ran "make"
- Ran "sudo make install"
- Did the same for "beagle"
- Killed all beagle processes (beagled and beagle-search) and restarted them
- I know it's annoying to find it reindexing all the files, but that was fine for me, I'd leave the laptop on for an hour or two and everything is just fine
Subscribe to:
Posts (Atom)