Posts Tagged ubuntu

Getting Reliance (Huawei) USB Data Card to work in Ubuntu 9.04 (Jaunty)

In order to get Reliance USB Data Card to work in Ubuntu, follow these steps:

  1. Make sure wvdial is installed
    sudo apt-get install wvdial
  2. Add the device configuration to your /etc/wvdial.conf

    Replace <phone-number> with your 10 digit Reliance connection number.


    [Dialer Defaults]
    Phone =
    Username =
    Password =
    New PPPD = yes


    [Modem0]
    Modem = /dev/ttyUSB0
    Baud = 115200
    SetVolume = 0
    Dial Command = ATDT
    Init1 = ATZ
    FlowControl = Hardware (CRTSCTS)


    [Dialer cdma]
    Username = <phone-number>
    Password = <phone-number>
    Phone = #777
    Stupid Mode = 1
    Inherits = Modem0

  3. Run wvdial

    sudo wvdial cdma

    You will see some output like this:

    ~$ sudo wvdial cdma
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Modem initialized.
    --> Sending: ATDT#777
    --> Waiting for carrier.
    ATDT#777
    CONNECT 230400
    --> Carrier detected. Starting PPP immediately.
    --> Starting pppd at Sat Jul 11 22:56:19 2009
    --> Pid of pppd: 4299
    --> Using interface ppp0
    --> pppd: ????[18][18]m X[19]m
    --> pppd: ????[18][18]m X[19]m
    --> pppd: ????[18][18]m X[19]m
    --> pppd: ????[18][18]m X[19]m
    --> local IP address <IP>
    --> pppd: ????[18][18]m X[19]m
    --> remote IP address <IP>
    --> pppd: ????[18][18]m X[19]m
    --> primary DNS address <IP>
    --> pppd: ????[18][18]m X[19]m
    --> secondary DNS address <IP>
    --> pppd: ????[18][18]m X[19]m
    --> pppd: ????[18][18]m X[19]m
    --> pppd: ????[18][18]m X[19]m

That’s it! You must now be able to browse the Internet. In order to disconnect press Ctrl+C.

, , , , , ,

No Comments

Associating files with URLs on Ubuntu (Gnome) – a quick hack

You just downloaded a file from the Internet, for ex, a PDF, a word document from Google Docs, or a video from TED or a talk from Google Videos. You downloaded this file some days back and now, when you viewed it and wanted to know what the world is talking about it, you don’t remember where you downloaded it from and end up searching for the filename or something related to it in Google.

How many times has this happened to you? How nice would it be if it was possible to associate the file with the URL from where you downloaded it or the page associated with it?

I felt the need for this when I downloaded a lot of TED videos recently and wanted a way to go to the TED page describing the video.

I started searching for the quickest way to do it and I found out a quick way to create context menus in Gnome using Nautilus Actions. So all I had to do was to create 2 commands – one for associating the URL and the other to launch the URL. Did you know it is very simple to create contextual commands in Ubuntu Gnome?

Read the rest of this entry »

, , , , , , , , , , ,

2 Comments

Getting Rosegarden to work in Ubuntu (Gnome)

I am one of those many people out there who had trouble in getting Rosegarden to “sing” in Ubuntu under Gnome Window Manager. Finally after trying a lot of permutations and combinations, I got Rosegarden to work. I made this post to share what I did so that others don't have to go through the same trouble I did!

So let's proceed.

Required software

Rosegarden requires some other applications to be installed in your system. So before you fire up Rosegarden ensure that you have the following:

  1. qjackctl
  2. qsynth
  3. rosegarden

If you don't have any of these you could execute this:

$ sudo apt-get install qjackctl qsynth rosegarden fluid-soundfont-gm

Ok, now we have everything we need. Let's proceed to the configuration steps:

Start the Jack server

(Somehow not using sudo gave me problems)

$ sudo qjackctl &

Jack Audio Connection Kit setup

Click on Setup
Here are the settings I used:
Setup - JACK

Start the Jack server

JACK Audio Connection Kit

Start the synthesizer

$ sudo qsynth &

QSynth setup

MIDI Setup

Setup - Midi

Audio Setup

Setup - Audio

Soundfonts Setup

Setup - Soundfonts

Start rosegarden

Ok, it's time to fire up Rosegarden.

$ sudo rosegarden &

Configuring Rosegarden

Go to Settings – Configure Rosegarden.

Configure Rosegarden - General

Configure Rosegarden - Midi

Ensure that the connections are right in Jack Audio Connection Kit (Connect):
Connections - JACK - ALSA

Connections - JACK - Audio

Play one of the sample files and you should hear music!
Rosegarden

Troubleshooting

In case your Jack server is not running, you might want to execute this command and then start the Jack server:

$ sudo /sbin/alsa force-reload

, , , , , , , , , , , , , , ,

No Comments

Adventure with Ubuntu, Wubi, yum, libc and the like

Note: This is not for the casual reader. If you are facing any issues with any of the keywords mentioned above, you might want to continue…

So here I was trying to install some packages from a YUM repository on my Ubuntu 8.0.4 system. Why YUM when you have apt-get? Well, let's just say, the situation demanded it.

The installation seemed to be going fine. What I did not realize is that, the installation had innocently relinked my libc files to a new location (actually to an older version of libc). The yum installation failed. Without checking the error, I executed sudo yum install again.

And I got this:

sudo: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by sudo)
sudo: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /lib/libpam.so.0)

Next I executed ls. Same error! And soon I realized, I was not able to execute most of the commands. The only things running were, things that were already open. I had closed my terminal by then, and was not able to bring it back neither was I able to login in an alternative terminal.

It is extremely difficult to figure out what has gone wrong without a terminal. I tried out various things, but I soon realized that since I don't have sudo access anymore, I won't be able to fix anything in the /lib directory, so no point trying.

The only solution was to reboot in recovery mode and then see if I could relink the libc files. So I popped in the Ubuntu live CD.

Now here is an added twist to the tale. I run Ubuntu on Wubi. So how do I mount my NTFS 'file' which is actually a Linux partition?

With some pointers from my colleague, I realized that it is possible to mount a file as if it were a filesystem. I executed this:

mount /dev/windows/filesystem/containing/wubi/installation /media/disk
mount /media/disk/path/to/wubi/disks/root.disk /media/root -o loop

Guess what! The Wubi file got mounted and I was able to access the files.

After some inspection I realized that the problem was that, while Ubuntu has all the libc files in /lib/tls/i686/cmov, the message indicated that these files should be in /lib/tls.

I did a 'ls' in the /lib/tls directory and found that there are some files of an older version of glibc at this location but the live cd version didn't have any files there. So it was apparent this is what is causing the problem.

I unlinked all the files, and relinked them to the new location and rebooted.

This time although it was able to boot Linux, it did not bring up the UI. I booted once again in recovery mode and ran xfix and continued with the boot.

Things seem to be fine now.

Update: Not everything was fine. Some applications, like Totem threw a SEGFAULT. So I did this:

sudo apt-get install --reinstall libc6

Things seem to be fine now.

, , , , ,

No Comments

Want a Linux flavor for human beings?

My first experience with any Linux flavor has been usually bad. But this one wasn't.

I had heard about Ubuntu a long time back but somehow could not use it. The requirement of the Internet for installation was too much to ask.

However, I was interested in trying out a new flavor of Linux and so asked for a CD. I like KDE more than Gnome and so I asked for Kubuntu. The coolest feature that I saw was that there was only one CD, which acted like both a Live CD and an installation CD. Boot the OS and if you like it, click on an icon and it installs as if the OS were an application.

There were no hassles. The live CD booted without any problems. I was even able to access the net. was also able to access the net using a USB modem using the Live CD (imagine doing that without even touching your hard drive!). Both of us were excited.

The installation however gave me some problems. (My success rate of installing Linux in one try, thus, still remains at zero! :( ) I had forgotten that I had mounted a Linux ext3 drive and I was trying to format it during the installation. The install process crashed and asked me to refer to some logs for more info (which I did not). Failing during installing Linux is not a big deal! So I tried again.

This time I tried a slightly different option and I was given a clue that I could be trying to format a partition that is mounted.

That was it. I did not face any problems after that.


kubuntu.png

If you are like others and wants to use open source software, but are shuddered by the idea of a 'Linux installation' or 'package dependencies', try Ubuntu.

There are more packages than you can imagine. There is something (actually a lot) for everyone. You will find applications that you use in your day to day use or atleast find equivalents.

Overall, I am more than satisfied with Kubuntu. Thanks to all the developers and the people behind this wonderful revolution.

Wanna try it out? You can ask for free CD's by asking for it here.

technorati tags:, , , ,

, ,

No Comments