Linux

Saturday, September 06, 2008

Playing a DVD in ubuntu

In order to play DVDs, you must install some additional software. Unfortunately, DVD support is not provided by default in Ubuntu due to legal and technical restrictions.

To play DVD install the following packages libdvdnav4 and libdvdread3

for playing encrypted DVDs in a terminal type
sudo /usr/share/doc/libdvdread3/install-css.sh

After this if you insert a DVD it should play using totem player. But somehow i did not get the menus properly in that player so installed gxine that gave the proper DVD menus.

Somehow i am getting an error printed in console

*** libdvdread: CHECK_VALUE failed in nav_read.c:207 ***
*** for dsi->dsi_gi.zero1 == 0 ***

but right now i am happy that i am able to play DVDs properly in Ubuntu. I am ignoring this error as of now

Labels:

Monday, September 01, 2008

C in Ubuntu

The standard set of libraries for C are not installed by default. When i tried to compile a C file it gave errors like stdio.h not found,etc Eventually it did not create the out file. Found out from ubuntu forums that i need to install build-essential package to install few developer libraries and packages.

sudo apt-get install build-essential

After this step compilation went through

Labels: