This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! bin/bash | |
| # autor: AndresLesmesg | |
| # backup | |
| cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old | |
| # edit file | |
| sed 's!#X11!X11!' /etc/ssh/sshd_config | |
| sed 's/X11Fordwarding no/X11Fordwarding yes/1' /etc/ssh/sshd_config | |
| sed 's/X11X11UseLocalHost no/X11UseLocalHost yes/1' /etc/ssh/sshd_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Run Install Basic Components" | |
| #install basic components | |
| sudo yum install git curl wget nano mailx -y | |
| install & configuration of themes | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| cd ~/.zshrc | |
| #change default theme for zsh | |
| grep -lr -e 'ZSH_THEME="robbyrussell"' * | xargs sed -i "s/ZSH_THEME=""robbyrussell""/ZSH_THEME=""avit""/g" | |
| chsh -s /bin/zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Run Install Basic Components" | |
| #install basic components | |
| sudo apt-get install git curl wget nano mailutils -y | |
| #install & configuration of themes | |
| sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
| cd ~ | |
| #change default theme for zsh | |
| grep -lr -e 'ZSH_THEME="robbyrussell"' * | xargs sed -i "s/ZSH_THEME=""robbyrussell""/ZSH_THEME=""agnoster""/g" | |
| chsh -s /bin/zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # instlaccion de programas basicos | |
| yum -y install epel-release | |
| yum -y install yum-utils | |
| yum -y install net-tools nano wget mlocate | |
| #añadir para MariaDB 10.+ | |
| touch /etc/yum.repos.d/MariaDB.repo | |
| echo "[mariadb]" > /etc/yum.repos.d/MariaDB.repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # BACKUP DEL ARCHIVO A CONNFIGURAR | |
| cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old | |
| # INPUT DEL PUERTO | |
| echo ingrese el valor del puerto | |
| read port | |
| # DATOS DEL USUARIO Y FECHA | |
| info=$(whoami) | |
| info+=" / " | |
| info+=$(date +%d-%m-%y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # install opldap | |
| yum install openldap-servers migrationtools openldap-clients | |
| # delete configure default or old LDAP | |
| rm -rfv /etc/openldap/slapd.d/* | |
| # load template of configuration | |
| cp /usr/share/openldap-servers/slapd.ldif /etc/openldap/slapd.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # intall syspass centos 7 | |
| #remove php old | |
| yum erase php php-pear php-mysql php-cli php-common | |
| # install php 5.6 | |
| yum install epel-release | |
| rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm | |
| yum install php56w-fpm php56w-opcache |