Set up CentOS 6 as NFS Server

These are minimal instructions on how to set up an NFS server running on CentOS 6.

  1. Install the required packages:

    yum install nfs-utils nfs-utils-lib
    
  2. Enable and start the required services:

    chkconfig rpcbind on 
    chkconfig nfs on
    
    service rpcbind restart
    service nfs restart
    
  3. Create shares by editing: /etc/exports

Mail Tools

GitPython

Installation

The easy way is to use one of the utilities provided by Python's setuptools. If you don't have setuptools, you can install them with:

{% highlight bash %} sudo apt-get install python-setuptools {% endhighlight %}

...or with:

{% highlight bash %} sudo yum install python-setuptools {% endhighlight %}

... depending on your platform. You can then install GitPython with:

{% highlight bash %} sudo easy_install GitPython {% endhighlight %}

After that, it will be available for you to import and use:

{% highlight python %} import git {% endhighlight %}

Usage

Initialize a Repository Object

If you have a local directory that has already been initialized as a Git repository (hint: it should contain a .git subdirectory), then you can simply create an object of it:

{% highlight python %} import git repo = git.Repo('/home/marios/repositories/test-repo') {% endhighlight %}

See Also

VMware Transparent Page Sharing

Transparent Page Sharing is a memory-saving technique employeed by VMware ESXi hosts, that runs as a background job on the host and removes duplicates pages of memory, by first comparing a hash of the contents of each page, and then comparing pages the hash of which is identical bit by bit.

About

Hello, I'm Marios Zindilis and this is my website. Opinions are my own. You also find me on LinkedIn and GitHub.

Unless otherwise specified, content is licensed under CC0.

Search