Archive for December 22nd, 2008

Tata Indicom CDMA Epivalley modem in ubuntu

December 22, 2008

I recently got a Tata Indicom wireless modem. It is a device from Epivalley and uses the qualcomm chip. It came with a software CD which contained the softwares only for windows. I searched through the forum and I found a very simple way of configuring it in ubuntu. In ubuntu the modem got detected without installing any additional softwares and all I have to do was to set some configuration information for it to connect to the ISP. I had to create some files to put in the settings required by it.

I created the peers file with the  command.

gksudo gedit /etc/ppp/peers/tatagprs

Put these commands starting with a blank line into the file and save it.

noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/tatagprs"
debug
/dev/ttyACM0
460800
defaultroute
noipdefault
user "internet"
password "internet"
remotename tata
ipparam tata

usepeerdns

Next I created the chatscript with the command

gksudo gedit /etc/chatscripts/tatagprs

Then I put these contents into the file and saved it.

ABORT   'BUSY'
ABORT   'NO CARRIER'
ABORT   'ERROR'
''      ATZ
OK      ATDT#777
CONNECT ''

Now to connect to the internet I will open a terminal and type.

pon tatagprs

and to disconnect I simply type

poff tatagprs or
poff

Windows XP and Custom Fonts in Ubuntu

December 22, 2008

I work with both windows and ubuntu and I edit my documents from both of these OS. I want all my formatting to be consistent but, there are many fonts in windows which are not present in ubuntu. This makes editing word files a boaring task as I have to keep changing the fonts whenever I change the OS or use a font which is available in both the OS. There are  also some web sites which require me to install their font to show up in  correct format.

We can install any font in ubuntu by following these simple steps. To start with we need the font file to install. If it is a fovourite font from Windows just copy the font file from the windows fonts directory into a memory stick and copy it to your home directory in ubuntu. Then open up a terminal.

  1. Create a directory to hold our fonts  – sudo mkdir -p /usr/local/share/fonts/truetype
  2. Change to the directory we have created – sudo cd  /usr/local/share/fonts/truetype
  3. Copy the font file – sudo cp ~/<font-file-name>.ttf .
  4. Rebuild font cache – sudo fc-cache -f -v

We could see that the last command updates the font-cache by printing a lot of messages to the console. We are done. Now open the website which asked for the font, it should open with  correct formatting. If we open a document to edit we could find the font we have just installed from the fonts drop down.