Get Firefox!

Home Free Software Faq Blog GNU/Linux Faq Free Media Faq's NRI Faq Immigration Faq Plea for Action Notes My P2P Search Portal About me..

Sun, 15 Nov 2009

CS50-USB/CS60-USB Wireless Office Headset System on Debian Linux

So I recently got  the CS50-USB Wireless Office Headset System  to use with my various softphones for  VOIP communications.
And obviousously I wanted to use it with my Linux machines.
My main goal was to use it with Ekiga for making VOIP calls with Gizmo5(will soon move away from gizmo5 because it was  acquired  last week by google and i prefer not to use another monopoly named google).
So while ekiga was running I connected the USB headset and ekiga was smart enough to detect that a new headset was connected and whether I wanted to use that as my default device.I selected yes.
Then I tried to make a call and got error messages from Ekiga that it could not open the device  "Plantronics CS50/CS60-USB Headset (PTLIB/ALSA)" and suggested that there might be a permission issue to open the device or I might have to plug/unplug again.
To rule out all those possibilities I used root to launch ekiga and also reconnected the headset but i continued to get the same error message from Ekiga.
So after playing with it for a few hours i finally figured out what the problem was.
So the issue is that Ekiga detects and uses the following parameters under  Edit->Preferences->Audio->Devices
Output Device  : Plantronics CS50/CS60-USB Headset (PTLIB/ALSA)
Input Device  : Plantronics CS50/CS60-USB Headset (PTLIB/ALSA)

But with those devices I could never make it work.
So I changed the above devices to the following and voila everything was working perfectly.

Output Device  : CS50/CS60-USB Headset (PTLIB/ALSA)
Input Device  : CS50/CS60-USB Headset (PTLIB/ALSA)

posted at: 16:38 | category: /linux | permanent link to this entry

Resizing sidux-rw file of sidux for Persistent filesystem

If you are using sidux on a USB stick in persistent mode  and have ran out of disk space on sidux-rw file(file where all your changes are stored by sidux) and you want to increase the filesize without data loss then you can do the following.

Disclaimer : Please have backups of everything .I cannot  be held responsible for any data loss.Use this information at your own risk.
The sidux-rw file  is located on your usb drive or any other medium in the following folder <USB drive>/sidux/sidux-rw
The file itself is really a sparse file which contains an ext2 partition in it.

So essentially what we will do is resize the ext2 partition.Typically you would need to increase the size of the contactiner partition but in this case there is no parent parition because this is a sparse file , all we need to do is just resize the ext2 partition by using a few tools.
So you will need to boot into any Linux distro like sidux .But please ensure that the file sidux-rw is not mounted as the resize will fail and you might end  up loosing data .
Now we need to ensure the filesystem itself is healtthy.We need to check that without which resize2fs will not work.
Navigate to the folder which has the sidux-rw file and issue the following command as root
# e2fsck -f sidux-rw

You will need to fix all the recommendations by e2fsck.
After doing that you will be ready to resize your filesystem.
So now issue the following command as root to resize your sidux-rw file to say for example 512M
#resize2fs sidux-rw 512M

Please note that this instructions are for increasing the size only.I have not tried reducing the size of the file.Also note that the filesystem has to be ext2.

posted at: 16:18 | category: /linux | permanent link to this entry

Sun, 17 May 2009

Making Linux speak

Text to speech is very simple in Linux.You just need to install a package called espeak which will most likely be available with your favorite distro.
Once  you have espeak installed you can issue the following command

echo "hello" | espeak

If everything goes well you will hear Hello from the speakers.

You can read more about espeak @  http://espeak.sourceforge.net

posted at: 21:48 | category: /linux | permanent link to this entry

Sat, 31 Jan 2009

Knoppix 6.0 Released

A new CD version of Knoppix is released.It features screen reader and very fast parallel bootup.Though I really am waiting for the DVD version because it has a lot of software.
More details @ http://knopper.net/

posted at: 05:37 | category: /linux | permanent link to this entry

Sun, 31 Aug 2008

Choose another desktop manager in Linux without restarting your machine

Say if you want to try out different desktop managers after you are already using a desktop.You can do that by opening up a command prompt and doing "restartx" as root and it will present you with multiple choices of the desktops which are installed on your machine.Also this works both in console mode and in X environment.

posted at: 22:36 | category: /linux | permanent link to this entry

Sat, 30 Aug 2008

Creating Virtual Drives in Linux without VMware

Have you ever found the need to keep all the thousands of files which you use in a single file.
On Linux there is a way to do that.So essentailly you can have a virtual drive in a file which has an entire filesystem.
And to Linux it does not appear any different then an ext3 on a actual physical hard drive or a partition.
The implications of this are very huge, so for example you want to share some data with any one which has hundreds of files etc or you want to just backup your entire filesystem.
Here is how to achieve this

dd if=/dev/zero of=mydatafile bs=1 count=1 seek=1M

Will create a file of one megabyte in size, but with only one byte
actually stored on disk.

The convert that file into a ext3 partition by issuing the following command

mkfs.ext3 mydatafile

It will give a warning,say yes and let it proceed.
 
mke2fs 1.40-WIP (14-Nov-2006)
sparse-file is not a block special device.
Proceed anyway? (y,n) y

Then you can just mount the file as a filesystem/partition anywhere with the following command

mount -t ext3 -o loop mnt/mnt_point mydatafile

Now you can just do anything in the /mnt/mnt_point and then you can even move it to another machine 1 single file and you have all your data there.



Another example is dd if=/dev/zero of=mydatafile bs=1024 count=1024 to create a file of 1MB though it is not a true sparse file, the better definition of this file would be a virtual drive of fixed size of 1MB.

posted at: 16:18 | category: /linux | permanent link to this entry

Sat, 28 Jun 2008

Cloning Hard drives using G4L and Knoppix

This document outlines how to use G4L(ghost for linux) with knoppix.

Disclaimer :- Please use this document carefully and with your own responsibility.I cannot be handled responsible for any data loss corruption or damage of any sort.By referring to this doc you own complete responsibility of your actions.In case of doubt of liability/responsibility pls do not use this website.

Problem Description
  1.  You want clone a hard drive especially in cases like you bought a bigger hard drive and you want to migrate your old data as well as settings etc from one machine to another machine.
  2. to proprietary solutions like Norton Ghost.
  3. You are looking for a solution which is platform/OS/filesystem  independent
  4. You are looking for a bit-by-bit cloner of hard drive..
Existing alternatives and shortcomings
As always  people have thought about the above problem description and  found various kinds of solutions with varying level of success in different environment/scenarios.
  • Alternative 1 : g4u 
    • Pros - Very light weight , fits on a floppy or a USB drive and on CD.Hard Drive to be cloned can hold any type of filesystem including ntfs/fat etc.Since it is a bit by bit copy it does not matter what OS/filesystem is on the hard drive.
    • Cons - Since it is so small it obiviously cannot fit all the drivers required for accessing all the different harddrives/network cards and also is very very weak in auto-detection of hardware.If it cannot detect your hardrive obviously it cannot clone it.Since it is bit-by-bit copy of the harddrive the image is a little bigger then other alternatives and it is slower also , but this can be overcome to some extent.
  • Alternative 2 :  g4l bootable ISO
    • Pros - Lightweight can fit on a small USB drive or on a mini-CD disc.Hard Drive to be cloned can hold any type of filesystem including ntfs/fat etc.Since it is a bit by bit copy it does not matter what OS/filesystem is on the hard drive.
    • Cons - Hardware/Network card detection is very weak compared to Knoppix.If it cannot detect your hardrive obviously it cannot clone it.Since it is bit-by-bit copy of the harddrive the image is a little bigger then other alternatives and it is slower also , but this can be overcome to some extent.
  • Alternative 3 :  Partimage
    • Pros - Works on partitions as opposed to entire drives.So the image created by partimage of the partition is smaller as it is intimately aware about the filesystem on the partition.
    • Cons - Ironically the Pros of partimage are its Cons also because it cannot create an image of filesystems it which it does not support.You will be responsible for manually creating partition tables / MBR etc.Currently it does not work on LVM.
G4L and Knoppix
Using G4L along with Knoppix solves one of its important shortcomings of auto-hardware detection.Knoppix is one of the best live-CD's with a very very good automatic hardware detection.
Another advantage of using it with Knoppix is that a lot of folks already have Knoppix CD/DVD which they use as their swiss knife and this script fits very well in the arsenal without having to install anything.

How-to use G4L with Knoppix
Here is a list of software which you will need
  1. Knoppix live CD or DVD : Download the ISO from http://knoppix.net/get.php
  2. Download source code(it is just shell script) of g4l from http://sourceforge.net/projects/g4l/
Step-By-Step Instructions(Steps look long as they are detailed but the whole process will not take a long time)
  1. Boot with knoppix CD on the machine which has the hard drive to be cloned/backed up/restored
  2. On the command prompt of knoppix do "su"
  3. Goto to the /tmp folder by typing "cd /tmp" as root
  4. Make a directory named g4l by typing in "mkdir g4l"
  5. Download g4l sources from sourceforge.net using wget into the g4l directory created in step 4> like "wget http://easynews.dl.sourceforge.net/sourceforge/g4l/files3.tar.gz"
  6. In step 4> I have used the v0.21 as the source , you can use whichever is the latest version.
  7. Untar the files by issuing the following command "tar -zxvf  files3.tar.gz" into the /tmp/g4l folder
  8. Now add the path of jetcat-mod to the path variable by typing  "export PATH=$PATH:/tmp/g4l/"
  9. Now go back to the folder which has the g4l scripts by typing "cd /tmp/g4l/"
  10. Now you are ready to run the g4l scripts , so just type in ./g4l.
  11. Now you are all set and if everything goes well you can start cloning hard drives and use the functionality of G4L in knoppix.
  12. Since g4l is a bit by bit copier of hard drives , in order to achieve better compression it is highly recommended that you follow the steps on http://fbim.fh-regensburg.de/~feyrer/g4u/#shrinkimg otherwise the image creation will be very slow and the files will be very very big.

Other Notes
  1. You can copy the g4l scripts(just the scripts from the g4l/bootcd/rootfs/ ) and the jetcat executable to a usb stick and then just plop in the usb stick along with knoppix CD and then you dont have to download the files again
  2. Since g4l needs ftp server you can always use the  ftp server which comes with knoppix.The docs are locaed here http://knoppix.net/wiki/FTP_FAQ
  3. Once you have a local ftp server setup on knoppix you can also use a secondary hard drive to clone to the second hard drive which has a different geometry.Currently I do not know of a way in g4l to write the cloned image to a file.
  4. If future versions of knoppix carry the G4L scripts and the jetcat executable , it will become very very easy.
  5. The above instructions might also work for other Live-CD's as long as ncftp is already there on the lice-cd.

Other Alternatives



Submit thread to Digg | Submit to del.icio.us |

posted at: 15:44 | category: /linux | permanent link to this entry

Sun, 13 Jan 2008

Power down unused hard drives

You can power down unused hard drives by issuing the following command on a Linux box for IDE Drives
hdparm -Y /dev/hdd
Now when you say want to mount your drive and you issue a command like
mount /mnt/hdd

Linux will automatically turn on the power of the hard drive and mount it.Though in some cases it will take a few seconds to power up.

posted at: 21:47 | category: /linux | permanent link to this entry

Fri, 11 Jan 2008

Removing Duplicate file using FSLint

Over a period of time our photo/video collection doubles/triples/quadruples in ,multiple places on our hard drives and suddenly there is a need to clean up these duplicates.
FSLint is a free open source utility which you can use to do that on a Unix/Linux box.
You can read more about usage of this utility this on Linux Journal or on Linux.com

posted at: 01:49 | category: /linux | permanent link to this entry