tell me the way of installing software from a cd, or Internet for my ubuntu and fedora linux operating system?
I don't know about fedora, but installing from the net (or, if set as source, a cd) is easy with ubuntu:
With GUI: If installed, start
synaptic or a different package manager. If not, you can install one with
apt-get (or aptitude). Most package managers are quite self explaining. If you have problems with them, ask again.
Without GUI: If no Package Manager is installed or if you prefer using the console for installing, use
apt-get (which will certainly be installed) or
aptitude (which probably will be installed too). Both work by writing "apt-get install synaptic" / "aptitude install synaptic" (if synaptic is the program, which you want to install). I don't know about apt-get, but with aptitude (which by the way is the newer and further developed one of the two) by writing "aptitude" without any arguments, you get a console based User Interface.
Of course, "man synaptic", "man apt-get" or "man aptitude" will give you more information, if installed.