Skip to content

Instantly share code, notes, and snippets.

View olmosleo's full-sized avatar

Leonardo Olmos Fernandez olmosleo

View GitHub Profile
@olmosleo
olmosleo / starting_network_configure_man.sh
Last active August 26, 2019 13:55
Manual Bash Script for Configure Network Interfaz (Support CentOS 6 o 7)
#!/bin/bash
# @octopusgen - 08-04-2017
# add dns servers
echo "nameserver 10.30.1.12" > /etc/resolv.conf
echo "nameserver 10.30.1.14" >> /etc/resolv.conf
# add network for ethX
ETH="eth1";
MAC="00:50:56:A1:31:C9";
IP="10.30.3.181";
@olmosleo
olmosleo / zabbix_agent_install.sh
Last active April 22, 2021 05:50
Script for install Zabbix Agent on CentOS 7
#!/bin/bash
# Script for install Zabbix Agent on CentOS 7.
# github.com/@olmosleo
#SELINUX="/etc/selinux/config";
#echo "SELINUX=disabled" > $SELINUX;
#echo "SELINUXTYPE=targeted" >> $SELINUX;
# remember to reboot after install or just restart the machine when you finish to execute the script.
# Disabled SELINUX