Uncompress the .tar.bz2 with:
tar -xjvf <filename>
then change to the directory that the file uncompressed. There will probably be a README and/or an INSTALL file detailing how to install the program. If you downloaded the program's source, you will most like wind up running ./configure, make, and make install.