Configure and connect tata photon plus in debian 7

The 3G dongle of tata photon+ (Huwaei EC1260) might not work by default in debian 7, and other linux distros. Here is how to get it working.

The first step is to install the packages, if not already installed.

Once the two packages have been installed successfully, next we need to install wvdial

After installing the pakcage, insert the dongle.

Now open a terminal and type the command

We will see an output as below

The fourth line from below recognizes our dongle as the device /dev/ttyUSB0

Next we need to configure the wvdial application to allow it use the dongle to connect to the internet.

For doing this we need to open the wvdial.conf file located in /etc/wvdial.conf

By default the file will look some thing like below

Delete the ";" at the beginning of the lines "Phone","Username", and "Password". and replace the three lines with

Then add the following lines to the file at the end.

The edited wvdial.conf looks as below.

Save the file and close it. Now go back to the terminal and type the command

Now open a browser and start browsing.

Note that before running the command wvdial in the last step, turn off mobile broadband in the gui mode.

error: function declaration isn’t a prototype [-Werror=strict-prototypes]

While compiling kernel modules, or any c program, we might at times come across the error

This error is being shown for the function declaration

Though the syntax looks fine, the compiler is expecting us to pass "void" in case we are not passing any arguments to the function. That is we need to modify the above function to

After the above change, we should not get the above error.

Creating jigsaw of image using gimp

Using GIMP any photo can be made to look like a jigsaw puzzle easily. Let us take the following image for an example.

Launch gimp and click on


 photo gimp_open-1.png

Browse to location where the image is stored and open it in gimp.

 photo gimp_jigsaw.png

Now click on


 photo gimp_render_jigsaw.png

The following window will appear.

 photo gimp_jigsaw_options.png

The number of tiles option lets us choose the number of horizontal and vertical divisions that are needed for the image, higher these numbers more the number of jigsaw pieces will appear on the image.

Bevel width allows us to choose the degree of slope of each pieces's edge

Highlight lets us choose how strongly should the pieces appear in the image.

Style of the jigsaw pieces can be set to either square or curved.

Click on OK after setting the required options.

The image should appear as below depending on what values were set in the options.

 photo gimp_tux_jigsaw.jpg

Seperating pdf into single pages using pdfseperate in linux

pdfseperate: A tool than can be used to split a pdf document into individual pages or can be used to extract a set of pages as individual pages from a pdf document.

Let us say we have a document named hello.pdf, that has 100 pages and we need to extract the pages 20 to 22 as individual pages. We can use pdfseperate to achieve this.

After the execution of the command, we should have three files foo1.pdf,foo2.pdf and foo3.pdf which will be the 20th,21st and 22nd page of the hello.pdf document.

If pdfseperate is not available, we need to install the package poppler-utils, for debian based systems

Follow by Email