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 | |
################################################################# | |
## Script de configuração geral - Linux | |
## By Hewerson Freitas (https://github.com/hewersonfreitas) | |
################################################################ | |
## Update and Upgrade Distro | |
sudo apt update && sudo apt upgrade -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 | |
## Update and Upgrade Distro | |
sudo apt update && sudo apt upgrade -y && | |
## Install Addons Codecs | |
sudo apt install ubuntu-restricted-extras -y && | |
## Setting Buttons to Left Side | |
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' && | |
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:' && | |
## Install VLC Player | |
sudo apt-get install vlc -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
sudo chown -R www-data:www-data /var/www/html/{loja} && | |
sudo rm -rf /var/www/html/{loja}/var/* && | |
sudo rm -rf /var/www/html/{loja}/generated/* && | |
sudo rm -rf /var/www/html/{loja}/pub/static/* && | |
sudo chmod -R 777 /var/www/html/{loja}/pub/static && | |
php /var/www/html/{loja}/bin/magento setup:upgrade && | |
php /var/www/html/{loja}/bin/magento setup:di:compile && | |
php /var/www/html/{loja}/bin/magento setup:static-content:deploy pt_BR -f && | |
chmod -R 777 /var/www/html/{loja}/var && | |
chmod -R 777 /var/www/html/{loja}/pub && |
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
sudo chown -R www-data:www-data /var/www/html/{loja} && | |
sudo rm -rf /var/www/html/{loja}/var/* && | |
sudo rm -rf /var/www/html/{loja}/pub/static/* && | |
sudo chmod -R 777 /var/www/html/{loja}/pub/static && | |
php /var/www/html/{loja}/bin/magento setup:upgrade && | |
php /var/www/html/{loja}/bin/magento setup:di:compile && | |
php /var/www/html/{loja}/bin/magento setup:static-content:deploy pt_BR && | |
chmod -R 777 /var/www/html/{loja}/var && | |
chmod -R 777 /var/www/html/{loja}/pub && | |
sudo chown -R www-data:www-data /var/www/html/{loja} && |
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
clear; | |
php -v | |
echo ''; | |
echo "Versão atual: " | |
read current; | |
echo "Alterar para a versão: "; |
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
sudo apt update | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
sudo apt install php5.6 -y | |
sudo apt install php7.0 -y | |
sudo apt install php7.1 -y | |
sudo apt install php7.2 -y |