Skip to content

Instantly share code, notes, and snippets.

Crear partición para montar nuestro root
mkdir /mnt/arch
Montar root
mount /dev/sda2 /mnt/arch
Montar boot
mount /dev/sda1 /mnt/arch/boot
Montar /dev/sys y /proc
@agb80
agb80 / Instalación servidor OpenPyme
Last active September 22, 2017 18:08
Como configuré e instalé el servidor Centos 6.6 que tenemos en la oficina
## Habilitar ssh
#flush de todas las reglas y todos los chains
iptables -F
#trafico entrante
iptables -A INPUT -m state --state ESTABLISHED,RELATED -m comment --comment "Aceptar conexiones existentes" -j ACCEPT
iptables -A INPUT -p icmp -m comment --comment "Aceptar ping" -j ACCEPT
iptables -A INPUT -i lo -m comment --comment "Aceptar conexiones internas" -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 22 -m comment --comment "Aceptar puerto 22" -j ACCEPT
iptables -A INPUT -m state --state NEW -p tcp --dport 80 -m comment --comment "Aceptar puerto 80" -j ACCEPT
@agb80
agb80 / gist:5560715
Created May 11, 2013 17:28
Install Gitlab on Centos 6.3 with Postgresql 9.2
Follow this recipe: https://github.com/gitlabhq/gitlab-recipes/blob/master/install/CentOS_6.md
Before run bundle install run this command:
bundle config build.pg --with-pg-config=/usr/pgsql-9.2/bin/pg_config