Skyscraper

domingo, 26 de septiembre de 2010

Installing and Configuring NTFS-3G in CentOS

NTFS-3g allows to mount, read and write NTFS filesystems under CentOS follow this steps to install it:

  • # cd /etc/yum.repos.d/ -> Move to the repos directory
  • # wget http://www.alcancelibre.org/al/server/AL-Server.repo -> Download the AL-Server (Alcance libre) repository.
  • # yum -y install ntfs-3g -> This will install the ntfs-3g packages
  • # fdisk -l -> Read the partition table and marks the NTFS partitions
  • Create the directories to mount the NTFS partitions
  • # ntfs-3g /dev/device /directory-to-mount
To set the automount on every system startup put this lines over the /etc/fstab:

/dev/device1 /directory-to-mount1 ntfs-3g defaults.locale=es_ES.utf.8  0 0
/dev/device2 /directory-to-mount2 ntfs-3g defaults.locale=es_ES.utf.8  0 0

Finally you will have the NTFS filesystem available on Centos.

To learn more about this check this link: Original Page

Adding YUM Repositories on CentOS

YUM is a powerful tool to install software on CentOS/Red Hat Linux, YUM works with third party repositories like RPM Forge, it's easy to add it following this steps:

  • # yum install  yum-priorities (This will install a program that prevents the third party repositories to overwrite the native packages)
  • To enable and set the priorities check the file /etc/yum/pluginconf.d/priorities.conf and make sure to write this lines:

    [main]
    enabled = 1

    [base]
    priority=1

    [addons]
    priority=1

    [updates]
    priority=1

    [extras]
    priority=1

    [centosplus]
    priority=2

    [contrib]
    priority=2
  • Install the RPM Forge repositories:

    # rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt -> This will install DAG's GPG key
    # rpm -K rpmforge-release-0.5.1-1.el5.rf.*.rpm -> This will check the package
    # rpm -i rpmforge-release-0.5.1-1.el5.rf.*.rpm -> This will install the package
    # yum check-update -> The output for this command must use the priorities and exclude some packages.
  • Finally we could install ntfs-3g and use it's features on a CentOS Clean Installation.
  • This is the package for Red Hat EL5 and CentOS 5 rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
  • It's a good idea to install the repositories for Extra Packages for Enterprise Linux  (EPEL):

    # rpm -Uvh epel-release-5-4.noarch.rpm
    # yum repolist -> epel|Extra Packages for Enterprise Linux 5 - x86_64
  • This is the package for Red Hat EL5 and CentOS 5 epel-release-5-4.noarch.rpm

To learn more about this check this links

RPM Forge 
EPEL

miércoles, 15 de septiembre de 2010