Open Firefox Always in Online Mode in Ubuntu 8.04

In Ubuntu Hardy Heron, firefox always open in offline mode. This is really very annoying.To open firefox always in online mode do the followings :

1. Open firefox

2. In the address bar type the following and then press enter

about:config

3. In the filter bar paste the following :

toolkit.networkmanager.disable

4. Double click on it and make its value to “true”.

5. Restart firefox.

Now firefox will always open in online mode.

Mobile Broadband Bluetooth Dialup Networking in Ubuntu 8.04

Turn on bluetooth on your phone and Computer/Laptop.If you’ve already tried connecting them before, delete any reference to your bluetooth phone’s ID from your computer. To do this, type Alt+F2 and then type the following :

gksudo nautilus /var/lib/bluetooth/

( Enter password to give permission )

Now delete all files/folders there. Then turn off & then turn on computer’s bluetooth device. Then scan bluetooth device from your phone and add your computer as paired device.

( Enter the same pass code in both phone and computer. )

Now find the MAC address of your phone by typing the following command :

hcitool scan

Copy the MAC address. It looks like XX:XX:XX:XX:XX:XX

Now we need to find out what channel to connect to. For this type the following command :

sdptool browse XX:XX:XX:XX:XX:XX

( XX:XX:XX:XX:XX:XX <– This is your phone’s MAC address here )

In my case it looks like

siddhartha@ubuntu:~$ hcitool scan
Scanning …
00:19:2D:C1:D3:E1    Neo
siddhartha@ubuntu:~$ sdptool browse 00:19:2D:C1:D3:E1
Browsing 00:19:2D:C1:D3:E1 …
Service Name: Dial-up networking
Service RecHandle: 0×1018f
Service Class ID List:
“Dialup Networking” (0×1103)
“Generic Networking” (0×1201)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 1            <—– Find this channel number
Language Base Attr List:
code_ISO639: 0×656e
encoding:    0×6a
base_offset: 0×100
Profile Descriptor List:
“Dialup Networking” (0×1103)
Version: 0×0100

Service Name: Nokia PC Suite
Service RecHandle: 0×10190
Service Class ID List:
“Serial Port” (0×1101)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 15
Language Base Attr List:
code_ISO639: 0×656e
encoding:    0×6a
base_offset: 0×100

The Channel number for Dial-up Networking is pointed above. Now configure the bluez. Just type the following command in the terminal :

sudo gedit /etc/bluetooth/rfcomm.conf

Add the following text at the end :

rfcomm0 {
bind yes;
device XX:XX:XX:XX:XX:XX;          <—– Insert your phone’s MAC address here
channel 1;
comment “Mobile Dialup”;
}

Now restart bluetooth service by typing the following command :

sudo /etc/init.d/bluetooth restart

Then configuring PPP. Just run the following in terminal :

sudo gedit /etc/ppp/peers/BluetoothDialup

Now you see a blank text file. Then paste the following on the file

debug
noauth
connect “/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup”
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0

Save and close the BluetoothDialup file. Then run the following :

gksudo gedit /etc/chatscripts/BluetoothDialup

Now you see a blank text file. Then paste the following text on the text file, replacing your-apn and your-data-profile-number with the APN & data-profile-number from your data services provider. If you don’t know your apn (access point name) contact with your operator’s help line.

TIMEOUT 35
ECHO ON
ABORT ‘\nBUSY\r’
ABORT ‘\nERROR\r’
ABORT ‘\nNO ANSWER\r’
ABORT ‘\nNO CARRIER\r’
ABORT ‘\nNO DIALTONE\r’
ABORT ‘\nRINGING\r\n\r\nRINGING\r’
” \rAT
OK ‘AT+CGDCONT=1,”IP”,”your-apn-here”‘     <—– Insert access point name (APN)
OK ATD*99#    <—– Insert your-data-profile-number-here
CONNECT “”

Save and close the file.

To connect run the following command in terminal :

pon BluetoothDialup

To disconnect type the following command in terminal :

poff BluetoohDialup

Enable DVD Playback, Adobe Reader, Google Earth, Skype and MP3 Playback in Ubuntu Hardy Heron

Ubuntu is crippled on the multimedia front. This is because of copyright and patent
restrictions that complicate distribution of proprietary codecs with Ubuntu, which prides
itself as a totally free operating system. Even though Ubuntu developers haven’t included proprietary codecs, they have made it extremely easy for you to install them later through the Medibuntu repository. You can get encrypted DVD playback, Adobe Flash plugin and non-native media files (Windows media, Apple QuickTime, Real, MP3) support by using this single command. Open the terminal (Applications -> Accessories -> Terminal) and enter the following command :
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list && sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update && sudo apt-get install libdvdcss2 w32codecs
The above command downloads all the required codecs from the Medibuntu repositories and makes your Ubuntu box multimedia ready.
Note: The above command is for 32 bit processors. AMD 64bit users, replace the ending word w32codecs with w64codecs. PPC users replace w32codecs with ppc-codecs.

Ubuntu is crippled on the multimedia front. This is because of copyright and patent restrictions that complicate distribution of proprietary codecs with Ubuntu, which prides itself as a totally free operating system. Even though Ubuntu developers haven’t included proprietary codecs, they have made it extremely easy for you to install them later through the Medibuntu repository. You can get encrypted DVD playback, Adobe Flash plugin and non-native media files (Windows media, Apple QuickTime, Real, MP3) support by using this single command. Open the terminal (Applications -> Accessories -> Terminal) and enter the following command :

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list && sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update && sudo apt-get install libdvdcss2 w32codecs

The above command downloads all the required codecs from the Medibuntu repositories and makes your Ubuntu box multimedia ready.

Note : The above command is for 32 bit processors. AMD 64bit users, replace the ending word w32codecs with w64codecs. PPC users replace w32codecs with ppc-codecs.

Once you have run the above command, you can easily install third party applications like Skype, Google Earth and Acrobat Reader.

Skype :

sudo apt-get install skype

Google Earth :

sudo apt-get install googleearth-4.2

Adobe Acrobat Reader :

sudo apt-get install acroread

Setting up Airtel GPRS on Ubuntu via Nokia Mobile and Data Cable

Enter this command in terminal
lsusb
It will give :-
siddhartha@ubuntu:~$ lsusb
Bus 002 Device 002: ID 0951:1613 Kingston Technology
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 007: ID 0421:04c4 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000
than enter the following command :-
siddhartha@ubuntu:~$ sudo /sbin/modprobe usbserial vendor=0×421 product=0×4c4
[[  Create your wvdial.conf by running the following
sudo wvdialconf /etc/wvdial.conf ]] or …
siddhartha@ubuntu:~$ wvdialconf create
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 — OK
ttyACM0<*1>: ATQ0 V1 E1 Z — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<*1>: Modem Identifier: ATI — Nokia
ttyACM0<*1>: Speed 4800: AT — OK
ttyACM0<*1>: Speed 9600: AT — OK
ttyACM0<*1>: Speed 19200: AT — OK
ttyACM0<*1>: Speed 38400: AT — OK
ttyACM0<*1>: Speed 57600: AT — OK
ttyACM0<*1>: Speed 115200: AT — OK
ttyACM0<*1>: Speed 230400: AT — OK
ttyACM0<*1>: Speed 460800: AT — OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to create.
ttyACM0<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
than edit Wvdial file :-
siddhartha@ubuntu:~$ sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = airtel
Username = airtel
Stupid Mode = 1
save and exit
To connect to internet type the following command :-
siddhartha@ubuntu:~$ wvdial
than this will appear
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 s0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 s0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sun Jun 15 05:17:27 2008
–> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
–> –> PAP (Password Authentication Protocol) may be flaky.
–> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
–> –> CHAP (Challenge Handshake) may be flaky.
–> Pid of pppd: 6401
–> Using interface ppp0
–> pppd: x?[06][08]
–> pppd: x?[06][08]
–> pppd: x?[06][08]
–> pppd: x?[06][08]
–> local IP address 117.98.4.246
–> pppd: x?[06][08]
–> remote IP address 10.6.6.6
–> pppd: x?[06][08]
–> primary DNS address 202.56.230.5
–> pppd: x?[06][08]
–> secondary DNS address 202.56.240.5
–> pppd: x?[06][08]
Connection successful.
Press Ctrl+c to disconnect .

Enter this command in terminal

lsusb

It will give :-

siddhartha@ubuntu:~$ lsusb

Bus 002 Device 002: ID 0951:1613 Kingston Technology

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 007: ID 0421:04c4 Nokia Mobile Phones

Bus 001 Device 001: ID 0000:0000

than enter the following command :-

siddhartha@ubuntu:~$ sudo /sbin/modprobe usbserial vendor=0×421 product=0×4c4

[[  Create your wvdial.conf by running the following

sudo wvdialconf /etc/wvdial.conf ]] or …

siddhartha@ubuntu:~$ wvdialconf create

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud

ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud

ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.

Modem Port Scan<*1>: S1 S2 S3

WvModem<*1>: Cannot get information for serial port.

ttyACM0<*1>: ATQ0 V1 E1 — OK

ttyACM0<*1>: ATQ0 V1 E1 Z — OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 — OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

ttyACM0<*1>: Modem Identifier: ATI — Nokia

ttyACM0<*1>: Speed 4800: AT — OK

ttyACM0<*1>: Speed 9600: AT — OK

ttyACM0<*1>: Speed 19200: AT — OK

ttyACM0<*1>: Speed 38400: AT — OK

ttyACM0<*1>: Speed 57600: AT — OK

ttyACM0<*1>: Speed 115200: AT — OK

ttyACM0<*1>: Speed 230400: AT — OK

ttyACM0<*1>: Speed 460800: AT — OK

ttyACM0<*1>: Max speed is 460800; that should be safe.

ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found an USB modem on /dev/ttyACM0.

Modem configuration written to create.

ttyACM0<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

than edit Wvdial file :-

siddhartha@ubuntu:~$ sudo gedit /etc/wvdial.conf

[Dialer Defaults]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”

Modem Type = USB Modem

Baud = 460800

New PPPD = yes

Modem = /dev/ttyACM0

ISDN = 0

Phone = *99#

Password = airtel

Username = airtel

Stupid Mode = 1

Save and exit

To connect to internet type the following command :-

siddhartha@ubuntu:~$ wvdial

than this will appear

–> WvDial: Internet dialer version 1.60

–> Cannot get information for serial port.

–> Initializing modem.

–> Sending: ATZ

ATZ

OK

–> Sending: ATQ0 V1 E1 s0=0 &C1 &D2 +FCLASS=0

ATQ0 V1 E1 s0=0 &C1 &D2 +FCLASS=0

OK

–> Modem initialized.

–> Sending: ATDT*99#

–> Waiting for carrier.

ATDT*99#

CONNECT

~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~

–> Carrier detected. Starting PPP immediately.

–> Starting pppd at Sun Jun 15 05:17:27 2008

–> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied

–> –> PAP (Password Authentication Protocol) may be flaky.

–> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied

–> –> CHAP (Challenge Handshake) may be flaky.

–> Pid of pppd: 6401

–> Using interface ppp0

–> pppd: x?[06][08]

–> pppd: x?[06][08]

–> pppd: x?[06][08]

–> pppd: x?[06][08]

–> local IP address 117.98.4.246

–> pppd: x?[06][08]

–> remote IP address 10.6.6.6

–> pppd: x?[06][08]

–> primary DNS address 202.56.230.5

–> pppd: x?[06][08]

–> secondary DNS address 202.56.240.5

–> pppd: x?[06][08]

Connection successful.

Press Ctrl+c to disconnect .