Friday, March 23, 2012

how to install tar.gz package


# 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
$ tar zxf file.tar.gz
$ tar zxf file.tgz
$ tar jxf file.tar.bz2
$ tar jxf file.tbz2

Now change directory
$ ls
$ cd path-to-software/

# 2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
# ./configure
# make
# make install

Where,
  • ./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
  • make will compile all the source files into executable binaries.
  • Finally, make install will install the binaries and any supporting files into the appropriate locations.

# 3: Read INSTALL / README file

Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:
$ vi INSTALL

 ____________________________________________________________________________________________________--
ANOTHER TYPE

wget http://download.divx.com/labs/divx611-20060201-gcc4.0.1.tar.gz

Untar DivX 6.1.1 codec for Linux:

$ tar -zxvf divx611-20060201-gcc4.0.1.tar.gz

Install divx611 codec:

$ cd divx611-20060201-gcc4.0.1
$ sudo ./install.sh

Press Q after reading agreement, please type yes to install codes.

Saturday, March 17, 2012

Post instalation of Centos 6

#######################

Installing Free and Nonfree Repositories

link: http://rpmfusion.org/Configuration/

We have two separate software repositories:
  • free for Open Source Software (as defined by the Fedora Licensing Guidelines) which the Fedora project cannot ship due to other reasons
  • nonfree for redistributable software that is not Open Source Software (as defined by the Fedora Licensing Guidelines); this includes software with publicly available source-code that has "no commercial use"-like restrictions
Installation can be done either using a web browser, or via the command line.

Graphical Setup via Firefox web browser


  1. First enable access to the free repository. For users of gpk (gnome package kit) or kpackagekit in Fedora that is easy and basically only one step: just click on one of the following files, depending on what distribution you use and then follow the default options that Firefox and Package Kit offer by clicking Enter a few times (¹):
  2. Once that succeeds, you can enable access to the nonfree repositories by clicking on one of the following files, depending on what distribution you use and then follow the default options that Firefox and Package Kit offer by clicking Enter a few times(¹):
(¹) Once you clicked on above link Firefox will ask you how to Open the file. Here you can simply use the default and open the file with the default application Package Installer. Then Firefox will call Package Kit, which asks Do you want to install this file ?. Click OK to begin install; Package Kit then will complain about a Missing security signature; once you tell Package Kit to install the package nevertheless it will move on and install it. That's all.

Command Line Setup using rpm


To enable access to both the free and the nonfree repository use the following command:
  • Fedora 15 and 16:
    su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
  • Fedora Rawhide and what will become Fedora 17 (Alpha, Beta and snapshots):
    su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'
  • RHEL 5 or compatible like CentOS:
    su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm'
  • RHEL 6 or compatible like CentOS:
    su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/6/i386/rpmfusion-nonfree-release-6-0.1.noarch.rpm'

Important notes


  • You need to enable EPEL on RHEL 5 & 6 or compatible distributions like CentOS before you enable RPM Fusion for EL. See the fedoraproject wiki for instruction how to enable EPEL.
  • The RPM Fusion for EL repositories are still in the early testing stages; hence you (for now) need to enable epel-testing as well, as some of the RPM Fusion packages depend on packages that are currently in epel-testing.
  • All users that used Freshrpms or Livna installed properly (e.g. by installing one of their foo-release packages) got RPM Fusion free and nonfree repositories enabled automatically.

link for EPEL: http://fedoraproject.org/wiki/EPEL/FAQ#howtouse

##########################################

Installation on centos 32-bit
Install the Adobe YUM repository:

[mirandam@charon Download]$ sudo rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
[mirandam@charon Download]$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

Install the plugin:
[mirandam@charon Download]$ sudo yum install flash-plugin
 

Install Adobe Acrobat

 
[mirandam@charon Download]$ sudo yum install AdobeReader_enu
 

 ###########################################

YUM Plugins
While yum has many plugins available. Fedora 12 and newer enable yum-presto which should try to download only updated portions of packages instead of the full package during updates. Additionally many users use the fastestmirror plugin which (typically) speeds up downloads by attempting to find faster sources. To install:
[mirandam@charon ~]$ sudo yum install yum-plugin-fastestmirror

 

 

############################

How to Mount an NTFS Filesystem

link:http://wiki.centos.org/TipsAndTricks/NTFS

http://www.linuxquestions.org/questions/linux-desktop-74/how-to-centos-5-ntfs-621688/

Make sure you have the rpmforge repo installed. If not, refer to Repositories.
Install the following packages. 

yum install fuse fuse-ntfs-3g 

If the rpmforge repo is disabled by default,
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g 

<!> Note for CentOS-5 users: If you are still running CentOS 5.3 or older, then you would need to install kmod-fuse from ELRepo

For CentOS-6 the EPEL repository is carrying later NTFS packages. EPEL is also usable for CentOS-5. To install, after enabling the repo per the Repositories page:
yum install ntfs-3g 

or if you prefer to leave EPEL disabled by default
yum --enablerepo epel install ntfs-3g 

You may also want to
yum install ntfsprogs ntfsprogs-gnomevfs 


#######################################################################3

Howto:Installing VLC Player on RHEL 6.x & CentOS 6.x | 32 bit | 64 bit ( x86_64) | Using Script

 

link:http://www.tejasbarot.com/2011/07/25/how-to-install-vlc-player-on-rhel-6-x-centos-6-x-32-bit-64-bit-x86_64-using-script/

Hello Guys,
I  got huge response from you guys for My Previous VLC installation script on RHEL 5.x, So Many Users requested me to post Same Kind of Script for RHEL 6 and I am done with it. I am Very thankful to each and every user who have given so nice response to my that post. I hope they will enjoy this post too
Previously I have written Script to Install VLC Player on RHEL 5.x 32 bit for Automatic Installation, You can say a script which i have designed to install VLC Player Very Quickly and without any dependecy problems.
This time I have written script to install VLC Player on RHEL 6.x and CentOS 6.x for Both Architecture ( 32bit and X86_64 (64Bit). I hope this script helps you.
To Make it more simple I have created Own RPM So This time there will be 1 additional step that You have to follow.

Note :- This script is tested in Local Environment, Think many times before you execute on Production/Local/Anywhere, Do it at your OWN RISK.
Following things must exist on your Computer/Linux to execute this script:-
=> Direct Working Internet Connection or Yum Should run from Terminal. If you are using Internet connection with Proxy then it will be problematic for you.
=> RHEL 6.x and CentOS 6.x must be installed with 32bit or X86_64 Arch.
This time couple of addition steps to make it more simple. So This time VLC Installation in 7 Steps.
Perform Following Steps to Install VLC Player on RHEL 6.x / Cent OS 6.x on 32 or 64Bit :-
1) You have to be root to execute this script.
2) Download RPM ( Auto VLC Redhat Centos6) which I have specially created for VLC Installation Script , You can use RPMs for CentOS 6 too.Click on Following link to Download RPM for Your Architecture :-
3) Execute Following Commands as per your Respective architecture :-
For 32 Bit Architecture :-
# rpm -ivh avrc6-tejas-barot-linux-0.1.0-1.el6.i386.rpm
For 64(X86_64) bit Architecture :-
# rpm -ivh avrc6-tejas-barot-linux-0.1.0-1.el6.x86_64.rpm
4) Download VLC Installation Script for RHEL6 and CentOS 6 , Click this link :- http://www.ask4itsolutions.com/RPMs/Scripts/vlc6-installation.sh
5) Execute following Command where you have downloaded the script.
[root@ask4itsolutions ~]# chmod +x vlc6-installation.sh
6). Now Execute your script by two ways mentioned below
[root@ask4itsolutions ~]# sh vlc6-installation.sh
OR
[root@ask4itsolutions ~]# ./vlc6-installation.sh
7) Once you Execute it will ask you 4 Options to Install as per your OS and Architecture and 5th Option for Exit Select Option as per your OS and Architecture
Press (R32) to Install VLC on RHEL 6.x on 32bit
Press (R64) to Install VLC on RHEL 6.x on 64bit
Press (C32) to Install VLC on CentOS 6.x on 32bit
Press (C64) to Install VLC on CentOS 6.x on 64bit
Press (E) to Exit anytime
Please Enter your Selection: <Put Your Option Here and Press Enter>

8) Remember you have to be normal user to run VLC Player, You cannot Run VLC Player as root.
Hope You like this.
Please Click on Google +1 button and Add your ratings if this works for you and you like it.
If this works for you then Show your support and encourage me to write some more howto’s by commenting on the same topic or by sending me mail on blog(at)tejasbarot(dot)com
If this doesn’t work for you then also please do let me know so i can helps you out to solve the issue, If you are facing the error then please send me mail on blog(at)tejasbarot(dot)com with Subject:- VLC Installation Issue
Enjoy VLC on Linux :)  Enjoy Linux :)  Enjoy Open Source :)  Enjoy Players on Linux :)
##########################################################################
Tejas Barot’s Latest Linux Quote :-
“I am Very much concern about Security & Stability, That’s the reason I am not using Insecure & Unstable WindowZ, Feel Secure, Be Stable, Use Linux and Open Source” – Tejas Barot
For More Linux quotes by Tejas Barot please visit :- http://goo.gl/xb0nZ

Read more: Howto:Installing VLC Player on RHEL 6.x & CentOS 6.x | 32 bit | 64 bit ( x86_64) | Using Script @ All Linux User's Blog http://www.tejasbarot.com/2011/07/25/how-to-install-vlc-player-on-rhel-6-x-centos-6-x-32-bit-64-bit-x86_64-using-script/#ixzz1pNPMkUR4
All Linux User's Blog | Tejas Barot | Ahmedabad | Gujarat | India | www.TejasBarot.com
Under Creative Commons License: Attribution Share Alike

 ###################################

Another method of killing a process is as follows:
# ps aux | grep name_of_process
At the command line type: kill -9 PID_Number_Here
You can also type:
# killall -9 name_of_process which will kill any process with that name.
##########################

Unrar

The unrar utility is a freeware program for extracting, testing and viewing the contents of archives created with the RAR archiver version 1.50 and above.

su -c 'yum install unrar'
 
#####################################################
#####


Wednesday, March 14, 2012

CentOS 6.2 iso








Download link
http://www.how2centos.com/
http://daddy-linux.blogspot.in/2012/02/download-centos-62-cd-dvd-iso.html
http://mirrors.hns.net.in/centos/6.2/isos/i386/


CentOS 6.2 Netinstall Guide – Network Installation Screenshots


http://www.if-not-true-then-false.com/2011/centos-6-netinstall-network-installation/

How to install CentOS 6.2 Step by step guide Screenshots


http://www.php2s.com/linux/howto-downloa-install-centos-6-2-step-by-step-guide-screenshots.html


Fedora VS Centos
Q>what's the main difference between Fedora and Centos ? I know that Centos is based on Redhat enterprise but i still don't know what the difference between Fedora..

ANS
Both CentOS and Fedora are from the Red Hat line of products.

RHEL is the main revenue generating product in the line.

CentOS is based upon RHEL with all support options removed and Red Hat branding.

Fedora is a distribution where things are tested before being included in RHEL/CentOS

Fedora changes daily and is updated on a six monthly basis. Support in the way of security updates is discontinued something like 7 months after the distribution is replaced. (It's a bit more complicated than that but it will do for starters). Fedora has been known to break it's packages and leave you with a problem for a while. At the moment, it's the graphical firewall configuration program that's causing a problem.

If you want a distribution where you get all the latest software but can live with fixing things now and again then Fedora is pretty good.

If you need reliability then CentOS, stable, packages just slightly more outdated, longer term support is the way to go.

Fedora Server vs CentOS

http://www.g-loaded.eu/2009/10/05/fedora-server-vs-centos/

October 5th, 2009 by George Notaras
End of era for my Fedora based server after almost five years of service. The box now runs CentOS. I had this box at home and it was the only Fedora Server I ever maintained at home or elsewhere. I should state from the beginning that it was only Fedora’s short life-cycle that practically forced me to switch. Other than that, I’ve never encountered a single issue with its performance, stability or security, even if I had been upgrading through yum since Fedora Core 3 (upgrading through yum is probably still an officially unsupported feature).

You have probably read several times on this website about the stability issues I had faced on my Fedora Desktop. All those issues were entirely related to graphical applications and are common among all Linux distributions that are used as desktop operating systems. There is a huge gap in quality between the software that is used to run a WWW, SMTP, FTP, et cetera server and the software that is used on Linux desktops. Anyway, I won’t go into the details of this topic in the current post. I would like to say only this: If Fedora’s short life-cycle and the frequent updates are not a problem to you, then Fedora automatically becomes a very strong candidate for your server.
Having used Red Hat Linux, CentOS and Fedora over time I have finally come to several conclusions about each of them (well RHL has reached EOL). Below, I try to summarize the advantages and downsides of each of the last two distributions both as an operating system for a server and as a project to which you might want to contribute (since you use it on your boxes):

CentOS

Advantages:
  • Almost guaranteed stability. The distribution includes old but proven versions of software which are very unlikely to have serious security or blocker bugs. “Almost” is used because you get true guaranteed stability only by using Red Hat Enterprise Linux (RHEL), which is available under contract by Red Hat Inc.
  • The CentOS or better the RHEL Life-Cycle is 7 years.
Disadvantages:
  • The included software on the base repositories does not fully cover the needs of a modern server. Using software from 3rd party repositories has become a common practice among CentOS users. There are some well-known repositories, but it may happen that you have to use a package from a repository that is not so popular or (many times) completely unknown. Using software from 3rd party repositories renders your installation less secure.
  • If a bug is not security-related, it may take several months (sometimes more than a year) to get fixed. Although the sources are the same with RHEL, except for the artwork, logos and release notes, CentOS has its own bug tracking system, which is completely unrelated to the Red Hat bug tracking system, meaning that they do not monitor or notify each other for bug submissions and fixes, despite the fact that the two OSes are almost alike. In practice, this is worse than it sounds. Things *could* be better.
  • The organization of the community behind CentOS is not very clear. Even if you want to contribute some time and effort you will have to accept some things “as is”. In general, it is nowhere near the organization and openness of the Fedora community.
  • CentOS does not differ from the vast majority of Linux distributions when it comes to your relationship as a contributor to the project, which is mostly governed by “bro” rules and practices.

Fedora

Advantages:
  • Software availability. The project’s repositories contain a huge amount of packages, which have been built with common, well-documented packaging guidelines. Almost any software a modern server may require can be found in the main RPM repository. Only in rear occasions you will need a 3rd party repo.
  • A well-organized community around the project. All procedures are open and well-documented.
  • Professional procedures and practices govern your relationship to the project as a contributor.
  • Bugs are resolved rather quickly, especially blocker bugs.
Disadvantages:
  • Short life-cycle of about 13 months.
  • Theoritically, less stable versions of software than CentOS or RHEL. Even the server software is updated too often. Despite of the high quality of the server software, the frequent updates makes it “feel” less stable. From my own experience though, I’d say that, if CentOS gets an “100% Stable” label, a Fedora Server gets a 99.5%. Personally, although I had set up several services on the box, I never had any stability issues, but that does not necessarily mean that they do not exist.
As you can see, both distributions have their downsides. Now that I have written all the above, I think that there is a gap between the two OSes, which could be filled by a 3rd operating system. A system that would be more modern than CentOS, but less “cutting edge” than Fedora, and which would have a life-cycle of about 3-4 years. That would be very interesting.
Personally, I have successfully used both operating systems as servers for several years. I cannot make up my mind and decide which one better meets a server’s requirements. As I have previously mentioned, I decided to fully switch to CentOS because of the significantly longer life-cycle.




Fedora was developed by Redhat, but this is normal at Centos packages compiled from source Redhat voila a simple summary that I propose:

* Fedora is less stable than Centos
* Fedora has better support and a larger community (much assistance as possible)
* Centos is more oriented work / server-like Redhat and the most common use of suspense Centos is .......... !............ .......... the SERVERS
* The Doc is in English CentOS notice the fans --
* The development cycle is longer Centos what justifies the stability of Centos -

Fedora is developed by redhat, development is entrusted to the community.
So in the end I will advise Centos for your server, but only if you can read the English; otherwise chosen Redhat. (Fedora is more office-oriented, easy, machine, machine)



Q>Can someone tell me the difference between a Desktop Install, a Basic Server install, and a Minimal Install? During installation, it doesn't give a description and I can't find documentation on it either.


link
http://unix.stackexchange.com/questions/20379/centos-6-default-installation-options

ANS:As you've already noticed, Red Hat's description is vague about what each suite actually includes. Below is a list of the package groups the each suite will install.
You can get more information about what package group by running yum groupinfo foo-bar. The names listed below differ from what yum grouplist will list but the groupinfo cobase, console-internet, core, debugging, directory-client, hardware-monitoring, java-platform, large-systems, network-file-system-client, performance, perl-runtime, server-platformmmand still works on them.
I got this by mounting http://mirror.centos.org/centos-6/6/os/x86_64/images/install.img and looking at /usr/lib/anaconda/installclasses/rhel.py inside the image.
Desktop: base, basic-desktop, core, debugging, desktop-debugging, desktop-platform, directory-client, fonts, general-desktop, graphical-admin-tools, input-methods, internet-applications, internet-browser, java-platform, legacy-x, network-file-system-client, office-suite, print-client, remote-desktop-clients, server-platform, x11
Minimal Desktop: base, basic-desktop, core, debugging, desktop-debugging, desktop-platform, directory-client, fonts, input-methods, internet-browser, java-platform, legacy-x, network-file-system-client, print-client, remote-desktop-clients, server-platform, x11
Minimal: core
Basic Server: base, console-internet, core, debugging, directory-client, hardware-monitoring, java-platform, large-systems, network-file-system-client, performance, perl-runtime, server-platform
Database Server: base, console-internet, core, debugging, directory-client, hardware-monitoring, java-platform, large-systems, network-file-system-client, performance, perl-runtime, server-platform, mysql-client, mysql, postgresql-client, postgresql, system-admin-tools
Web Server: base, console-internet, core, debugging, directory-client, java-platform, mysql-client, network-file-system-client, performance, perl-runtime, php, postgresql-client, server-platform, turbogears, web-server, web-servlet
Virtual Host: base, console-internet, core, debugging, directory-client, hardware-monitoring, java-platform, large-systems, network-file-system-client, performance, perl-runtime, server-platform, virtualization, virtualization-client, virtualization-platform
Software Development Workstation: additional-devel, base, basic-desktop, core, debugging, desktop-debugging, desktop-platform, desktop-platform-devel, development, directory-client, eclipse, emacs, fonts, general-desktop, graphical-admin-tools, graphics, input-methods, internet-browser, java-platform, legacy-x, network-file-system-client, performance, perl-runtime, print-client, remote-desktop-clients, server-platform, server-platform-devel, technical-writing, tex, virtualization, virtualization-client, virtualization-platform, x11