Posts Tagged ‘Ubuntu’

How to download .deb packages for offline installation

Some of my friends always complain that they are not able download packages due to Internet availability issues or usage limit. Most of them are using different Ubuntu versions, hence I cannot use APTonCD to download the packages for them. Here’s a small solution for this, Thanks to ilug-tvm and Rajeesh ettan.

Step 1: Get the download URLs in a file :

Execute the following command replacing package-names with required ones, separating by a space.

$apt-get -y install --print-uris package-name | cut -d\' -f2 | grep http:// > apturls

Step 2: Copy this file (apturls) to a machine which has high-speed Internet access, and execute the following command to download the packages:

$wget -i path-to-apturls-file

Step 3: Now get those downloaded packages to your machine, and install them using :

$cd path-to-the-downloaded-packages-directory

$sudo dpkg -i *.deb


Thank you, Good Luck 🙂


Connect TATA Docomo Internet in Ubuntu 9.04

It’s wonderful to see people browsing in their mobile phones at work places and while they travel. Many Telecom companies provide cheap GPRS / EDGE based internet connectivity which can also be connected to a computer. Here, I will explain how to connect TATA Docomo Internet service in your Ubuntu machine.

Step 1 : Connect your phone and create a new ‘Mobile Broadband’ connection from the appeared wizard. You can Select ‘Airtel’ in ‘Service Provider’ which we will change to suit Docomo Internet.

Step 2 :  Change the ‘Name’ in ‘Summary’ page to “Docomo Internet”

Step 3 : Go to System –> Preferences –> Network Connections, Under the “Mobile Broadband” tab, select “Docomo Internet” and click on “Edit”.

Step 4 : Change APN to ‘ TATA.DOCOMO.INTERNET ‘ without quotes. Also, Under “IPv4” tab, select “Method” as “Automatic (PPP) addresses only”. We will give Open DNS as DNS servers, ie, in the “DNS Servers” box, give ‘,’ wihout quotes.

Done! Now click on the antenna icon in system tray, select “Docomo Internet” from the list – You are connected! Best of Luck 🙂

Categories: Experiments Tags: , , ,

Easy Clarity – Connect Easily!

September 5, 2009 2 comments

‘Disconnection’ is a routine process in dial up internet. Here is an C++ snippet which dials BSNL WLL Clarity without asking for password again and again. It automatically closes on disconnection with a beep sound.

 *      easyclarity.cpp
 *      Copyright 2009 Ershad K
 *      Licensed under GPL Version 3
 *      Please change USERNAME, PASSWORD and compile with g++
 *      To compile - g++ easyclarity.cpp
 *      To execute - ./a.out

#include <iostream>
#include <stdlib.h>
#include <stdio.h>

using namespace std;

int main ()
	char username[] = "USERNAME";
	char password[] = "PASSWORD";
	puts("\n EasyClarity - Connect wisely!\n\n");
	ofstream myfile;
	system("sudo wvdialconf"); ("/etc/widial.conf");
        myfile << "[Dialer Defaults]\nInit1 = ATZ\nInit2 = ATQ0 V1 E1 S0=0 "
               << "&C1 &D2 +FCLASS=0\nInit3 = at+crm=1;+cmux=1;+cps=33;+cta=0"
               << "\nModem Type = Analog Modem\nISDN = 0\nPhone = #777\nModem"
               << " = /dev/ttyUSB0\nUsername = "<<username<<"\nPassword = "
               <<password<<"\nBaud = 460800\nStupid Mode = 1\nAuto DNS\nCheck"
                <<" Def Route";
	system("sudo wvdial");
	cout << "\a";
	return 0;

How to connect BSNL Clarity in ubuntu 9.04 ?

Though we have many tools to connect BSNL Clarity in Linux Systems, unfortunately they don’t work in ubuntu 9.04 and in other lastest OS’. Here, i will explain how to get connected with BSNL clarity in ubuntu 9.04.

First, you need to edit the grub and add a line to ubuntu’s kernel. Follow the steps to do that:

sudo gedit /boot/grub/menu.lst

Modify the ubuntu’s boot configuration to like this :

title        Ubuntu 9.04
uuid        b744ea84-c1b7-4519-9223-3bb99103d42f
kernel        /boot/vmlinuz-2.6.28-11-generic root=UUID=b744ea84-c1b7-4519-9223-3bb99103d42f ro quiet splash usbserial.vendor=0x15eb usbserial.product=0x0001
initrd        /boot/initrd.img-2.6.28-11-generic

I simply added  ‘usbserial.vendor=0x15eb usbserial.product=0x0001′ to the kernel.

Next step is to install wvdial. Since the ubuntu 9.04 CD edition doesn’t have wvdial by default, we need to install it manually. Follow the steps to install it :

1. Download this file

2. Extract it in your home directory

3. Give the following commands in terminal

cd wvidal

sudo dpkg -i *.deb

4. Restart the computer

It’s done ! Now you can browse like the older versions of ubuntu by executing Mr.Dipin Krishna’s executable (./bsnlclarity in terminal after copying it in your home directory) . You can get it here. Good Luck 🙂

Categories: Experiments Tags: , , , ,