Sunday, October 21, 2007

~ Installing files in Ubuntu thru Command Line

~ Installing via Terminal

To install anything which is available in the Ubuntu Repositories, first make sure all repositories are enabled in Synaptic package manager settings or by manually editing /etc/apt/sources.list

To search from the command line (like in Synaptic package manager)
sudo apt-cache search abc

To install a software abc (say).
sudo apt-get install abc

To remove abc
sudo apt-get remove abc

Complete removal (including configuration files)
sudo apt-get remove --purge abc

~ Installing a package manually

Suppose u have a debian package (abc.deb) and u want to install it. To do that, type in:

dpkg -i abc.deb

Suppose the package is in rpm format (abc.rpm)

For installing RPM packages, u need to have alien installed. Alien is available from the Ubuntu repositories.

sudo apt-get install alien (this is a one time procedure, do it only before ur first .rpm installation)

After u have successfully installed alien, install abc.rpm by typing in:

alien -i abc.rpm

~ Spicing up ur Ubuntu

This post tells u how to install Multimedia codecs, Video players, Audio players, Flash plugin, Java runtime etc..

IMPORTANT: Any step in dis post requires u to add the appropriate Medibuntu repository depending on ur distro.


~ Installing Multimedia Codecs

To Install the package type the following command in the terminal window(assuming repositories are in order and they are set up correctly as described above )

sudo aptitude install w32codecs

and to install addition more plugins type the following command in the terminal window .

sudo aptitude install libxine-extracodecs gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-pitfdll

~ Installing Video Players

Popular media players like Xine,Mplayer and VLC can b installed using the following command

sudo aptitude install libxine-extracodecs xine-ui mplayer mplayer-skins vlc vlc-plugin-* mozilla-plugin-vlc

~ Installing Audio players

Type the following command in the terminal windows (Application -> Accesories -> Terminal)

sudo aptitude install xmms xmms-mad xmms-skins xmms-wma mpg123 banshee amarok

sudo apt-get install beep-media-player
sudo apt-get install beep-extra-plugins
sudo apt-get install beep-media-player-dev
sudo apt-get install nasm
sudo apt-get install libgtk+2.0
sudo apt-get install libglib2.0-dev



~ Installing Macromedia Flash-Plugin

sudo aptitude install flashplugin-nonfree

After completing above step restart Firefox to make changes take place permanently and type about:plugins in the address bar to see if plug is installed correctly.

~ Installing Java Runtime environment v6.0 With Mozilla Firefox plugin

sudo aptitude install sun-java6-jre sun-java6-plugin sun-java6-fonts

After downloading is over you will get a screen like this just accept this license by pressing ¨Yes¨ button to complete installation, after this restart Firefox and type about:plugins to check whether sun java plugin is correctly installed.

~ Installing Real Player and Adobe Reader

Download the .rpm setup file from here.

~ Installing Adobe Reader

The following command would only work if Medibuntu repositories are configured properly.

sudo aptitude install acroread

~ Installing Microsoft True Type Fonts

sudo aptitude install msttcorefonts





Saturday, October 20, 2007

~ Adding Medibuntu Repository in Ubuntu 7.10 (Gutsy Gibbon)

  • sudo gedit /etc/apt/sources.list

or

Go to system > administration > synaptic package manager > settings > repositories.

  • Add the Medibuntu repoitory (Third party software tab)
deb http://packages.medibuntu.org/ gutsy free non-free

  • Close synaptic package manager.

  • Open Terminal, type in the following:

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
sudo apt-get install non-free-codecs

  • Done !