This file contains 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 | |
CONTAINERS=$(docker ps -a -q) | |
IMAGES=$(docker images -a -q) | |
VOLUMES=$(docker volume ls -q) | |
echo "" | |
if [ -z "$CONTAINERS" ] | |
then | |
echo "No containers" |
This file contains 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 | |
pkexec chown -R root:root /etc | |
pkexec find /etc -type f -exec chmod 644 {} + | |
pkexec find /etc -type d -exec chmod 755 {} + | |
pkexec chmod 755 /etc/init.d/* /etc/rc.local /etc/network/* /etc/cron.*/* | |
pkexec chmod 400 /etc/ssh/ssh*key |
This file contains 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 "configuring.." | |
sudo echo mysql-server mysql-server/root_password select 123456 | debconf-set-selections | |
sudo echo mysql-server mysql-server/root_password_again select 123456 | debconf-set-selections | |
echo "installing..." | |
sudo apt-get install postgresql postgresql-client pgadmin3 mysql-server mysql-client mysql-workbench -y | |
sudo -u postgres psql -U postgres -d postgres -c "alter user postgres password '123456';" | |
sudo updatedb | |
sudo sed -i '85s/peer/md5/' $(locate --regexp=pg_hba.conf$ --limit=1) | |
sudo sed -i '90s/peer/md5/' $(locate --regexp=pg_hba.conf$ --limit=1) |
This file contains 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 | |
OS=$(getconf LONG_BIT) | |
LANG=$(echo $LANGUAGE | sed -e 's/_/-/g') | |
FIREFOX_DEV_URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux$OS&lang=$LANG" | |
FIREFOX_DESKTOP="[Desktop Entry]\nName=Firefox Developer\nGenericName=Firefox Developer Edition\nExec=/opt/firefox_dev/firefox\nTerminal=false\nIcon=/opt/firefox_dev/browser/icons/mozicon128.png\nType=Application\nCategories=Application;Network;X-Developer;\nComment=Firefox Developer Edition Web Browser." | |
echo "Download Firefox Dev..." | |
wget --quiet --output-document="firefox_dev.tar.bz2" $FIREFOX_DEV_URL | |
echo "Extracting and install Firefox Dev..." | |
tar -jxvf firefox_dev.tar.bz2 | |
sudo rm firefox_dev.tar.bz2 |
This file contains 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 | |
sudo apt-get install software-properties-common curl git apache2 mcrypt -y | |
sudo a2enmod headers rewrite | |
sudo service apache2 restart | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update | |
sudo apt-get install php5.6 php5.6-curl php5.6-gd php5.6-imagick php5.6-intl php5.6-mcrypt php5.6-mysql php5.6-odbc php5.6-pgsql php5.6-xsl php5.6-xmlrpc php5.6-soap php-pear php5.6-cli php5.6-xml php5.6-xdebug | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
This file contains 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 | |
WPS_PACKAGE=a21/wps-office_10.1.0.5707~a21_amd64.deb | |
WPS_FONTS_PACKAGE=wps-office-fonts_1.0_all.deb | |
curl --show-error --silent --output "wps.deb" http://kdl.cc.ksosoft.com/wps-community/download/$WPS_PACKAGE | |
sudo dpkg -i wps.deb | |
sudo rm wps.deb | |
curl --show-error --silent --output "wps-fonts.deb" http://kdl.cc.ksosoft.com/wps-community/download/fonts/$WPS_FONTS_PACKAGE | |
sudo dpkg -i wps-fonts.deb |
This file contains 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 "Download Atom..." | |
wget --quiet --output-document="atom.deb" https://atom.io/download/deb | |
echo "Install Atom..." | |
sudo dpkg -i atom.deb | |
sudo rm atom.deb | |
echo "Install Atom's Packages..." | |
apm install atom-beautify atom-beautify minimap color-picker emmet file-icons project-manager docblockr atom-material-ui atom-material-syntax atom-material-syntax-light markdown-writer |
This file contains 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 | |
# actualizar el sistema operativo | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y | |
# Instalar Soporte para formatos de archivos Extra | |
sudo apt-get install unace rar unrar p7zip-rar p7zip zip unzip sharutils uudeview mpack lha arj cabextract file-roller -y | |
# programas adiccionales varios | |
sudo apt-get install gparted soundconverter puddletag gimp synaptic firefox -y |
This file contains 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 | |
argumentsToVar(){ | |
for var in "$@" | |
do | |
varname=`echo "$var"|cut -d'=' -f 1 | cut -c 3-` | |
varname=${varname//-/} | |
eval ${varname}=`echo "$var"|cut -d'=' -f 2` | |
done | |
} |
This file contains 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
argumentsToVar(){ | |
for var in "$@" | |
do | |
varname=`echo "$var"|cut -d'=' -f 1 | cut -c 3-` | |
varname=${varname//-/} | |
eval ${varname}=`echo "$var"|cut -d'=' -f 2` | |
done | |
} |
NewerOlder