jueves, 31 de enero de 2013

Detener Firewall y deshabilitar SElinux en CentOS



Para deshabilitar SElinux

vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


Nos aseguramos que está deshabilitado

sestatus


Para deterner el firewaall

service iptables stop

y que no vuelva a arrancar

chkconfig iptables off 
reboot 

Para asegurarnos que el firewall no funciona

iptables -L

Enlaces relacionados: http://www.cyberciti.biz/faq/fedora-redhat-centos-5-6-disable-firewall/

Tutorial iptables: http://wiki.centos.org/HowTos/Network/IPTables
Referencia rápida iptables: http://elbauldelprogramador.com/internet/20-ejemplos-de-iptables-para-sysadmins/#more-314
Enlaces relacionados:
chkconfig: http://www.thegeekstuff.com/2011/06/chkconfig-examples/

instalación vncserver en CentOS

La mejor y más actualizada forma de instar vncserver en centos, en mi caso lo he instalado en la 5.5 y la 6.3 es la wiki de CentOs http://wiki.centos.org/HowTos/VNC-Server

Yo tuve el siguiente problema, me daba este mensaje cuando arrancaba el servidor:

xauth: (argv):1: bad display name "SC01:1" in "add" command 
Donde SC01 es el nombre del host.
La solución fue añadir en el fichero /etc/hosts

ip del host      SC01