centos http://alexmoreno.net/ en Automatically mount directories in centos / virtualbox http://alexmoreno.net/automatically-mount-directories-centos-virtualbox/21-01-2013 <article role="article" about="http://alexmoreno.net/automatically-mount-directories-centos-virtualbox/21-01-2013" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 21 January, 2013 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/automatically-mount-directories-centos-virtualbox/21-01-2013" rel="bookmark"> <span>Automatically mount directories in centos / virtualbox</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>If you try to mount a shared folder in centos, runing under a virtual box, you'll probably have problems trying to fix this directory, mounting automatically each time the system reboots.</p><p>In any other distribution, like ubuntu, you just have to go to your /etc/fstab and add this line:</p><p>varhtml                 /var/www/html   vboxsf  defaults        0 0</p><p>The problem is centos is that when the system arrives to this line, the vboxsf module has not been loaded yet.</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/centos" hreflang="es">centos</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/virtualbox" hreflang="es">virtualbox</a></li> </ul></div> </div> </article> Mon, 21 Jan 2013 16:29:02 +0000 alexmoreno 79 at http://alexmoreno.net Installing capistrano in Centos http://alexmoreno.net/installing-capistrano-centos/07-12-2012 <article role="article" about="http://alexmoreno.net/installing-capistrano-centos/07-12-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 7 December, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/installing-capistrano-centos/07-12-2012" rel="bookmark"> <span>Installing capistrano in Centos</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Very very easy in CentOS, just like it would be in a Debian system:</p><p># yum install ruby -y</p><p></p><p></p><p># yum install rubygems -y</p># gem install capistrano<p>Really, it couldn't be easier. Next step, just having fun with Capistrano :-)</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/centos" hreflang="es">centos</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/capistrano" hreflang="es">capistrano</a></li> </ul></div> </div> </article> Fri, 07 Dec 2012 17:12:43 +0000 alexmoreno 70 at http://alexmoreno.net Centos tips http://alexmoreno.net/centos-tips/06-12-2012 <article role="article" about="http://alexmoreno.net/centos-tips/06-12-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 6 December, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/centos-tips/06-12-2012" rel="bookmark"> <span>Centos tips</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p> </p><p> </p><ul><li>Configuring your network to start when booting: chkconfig network on (via http://nixcraft.com/centos-rhel-fedora/18643-centos-linux-6-2-eth0-network-service-not-starting-boot.html)</li><li>configuring services to start apache (or any other daemon) when system boots: chkconfig --level 2345 httpd on</li><li>... more coming</li><li>Override Apache permissions problem: "You don't have permission to access ... on this server". Simply execute: setenforce 0</li><li></li></ul><p> </p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/centos" hreflang="es">centos</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/linux" hreflang="es">linux</a></li> </ul></div> </div> </article> Thu, 06 Dec 2012 10:36:55 +0000 alexmoreno 66 at http://alexmoreno.net Accessing centos apache/httpd from vbox host http://alexmoreno.net/accessing-centos-apachehttpd-vbox-host/04-12-2012 <article role="article" about="http://alexmoreno.net/accessing-centos-apachehttpd-vbox-host/04-12-2012" class="node node--type-blog node--promoted node--view-mode-teaser"><header><div class="node__meta"> <span> By <span class="node__author"><span><a title="View user profile." href="http://alexmoreno.net/alejandro-moreno" lang="" about="http://alexmoreno.net/alejandro-moreno" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alexmoreno</a></span></span>, 4 December, 2012 </span> </div> <div class="node__top-wrapper"> <h2 class="node__title"> <a href="http://alexmoreno.net/accessing-centos-apachehttpd-vbox-host/04-12-2012" rel="bookmark"> <span>Accessing centos apache/httpd from vbox host</span> </a> </h2> </div> </header><div class="node__content text-content"> <div class="text-content field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>This is the scenario. You installed vbox in your Mac, windows or Linux computer. Then you´ve installed Centos or Red Hat (or any other Red Hat flavor) in this virtual box.</p><p>Next step, installed httpd (apache2) and... even it is running and httpd status confirms it with a "running" message, it cannot be accesible from your host machine.</p><p>The problem is on iptables. Red Hat by default denies access to this machine from other (external) machines. Solution? Very easy, open iptables file:</p><p>vim /etc/sysconfig/iptables</p><p>(vim is my favourite editor for a loooong long time)</p></div> <div class="field field--name-taxonomy-vocabulary-1 field--type-entity-reference field--label-hidden field--tag-ref"> <ul class="links field__items field--tag-ref__items"><li class="field--tag-ref__item"><a href="http://alexmoreno.net/vbox" hreflang="es">vbox</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/centos" hreflang="es">centos</a></li> <li class="field--tag-ref__item"><a href="http://alexmoreno.net/linux" hreflang="es">linux</a></li> </ul></div> </div> </article> Mon, 03 Dec 2012 23:01:49 +0000 alexmoreno 65 at http://alexmoreno.net