#!/bin/bash
echo "🚀 Preparando AlmaLinux 8 para Webuzo"
echo "======================================"
# 1. Verificar root
if [ "$EUID" -ne 0 ]; then
echo "❌ Ejecuta este script como root"
exit 1
fi
# 2. Verificar AlmaLinux 8
if ! grep -q "AlmaLinux" /etc/os-release; then
echo "❌ Este sistema no es AlmaLinux"
exit 1
fi
# 3. Actualizar sistema
echo "🔄 Actualizando sistema..."
dnf clean all
dnf makecache
dnf update -y
dnf upgrade -y
dnf autoremove -y
# 4. Desactivar SELinux
echo "🔧 Desactivando SELinux..."
setenforce 0 2>/dev/null
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
# 5. Desactivar NetworkManager (Webuzo lo odia)
echo "📡 Ajustando red..."
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl enable network
systemctl start network
# 6. Desactivar firewall temporalmente (Webuzo lo configura luego)
echo "🔥 Desactivando firewalld..."
systemctl stop firewalld
systemctl disable firewalld
# 7. Instalar dependencias base
echo "📦 Instalando dependencias..."
dnf install -y \
wget curl perl unzip zip tar \
net-tools bind-utils \
gcc gcc-c++ make \
which sudo cronie \
openssh-clients
# 8. Ajustar límites del sistema
echo "⚙️ Ajustando límites del sistema..."
cat <<EOF >> /etc/security/limits.conf
* soft nofile 65535
* hard nofile 65535
EOF
# 9. Ajustar sysctl
echo "⚙️ Ajustando kernel..."
cat <<EOF >> /etc/sysctl.conf
fs.file-max = 2097152
net.core.somaxconn = 65535
EOF
sysctl -p
# 10. Descargar e instalar Webuzo
echo "🌐 Descargando Webuzo..."
cd /root || exit
wget -N https://files.webuzo.com/install.sh
chmod 0755 install.sh
echo "⚡ Instalando Webuzo (esto tarda varios minutos)..."
./install.sh --install=apache2,bind,php83,exim,dovecot,mysql80,python2,python3,
# 11. Final
echo "======================================"
echo "✅ Webuzo instalado correctamente"
echo "🌍 Accede en:"
echo " https://IP_DEL_SERVIDOR:200 3"
echo " http://IP_DEL_SERVIDOR:200 2"
echo ""
echo "🔁 REINICIANDO SERVIDOR EN 10 SEGUNDOS"
sleep 10
exit
Este debate ha sido modificado el hace 2 semanas por
dawes
Respondido : 02/01/2026 9:28 pm