Skip to content

Instantly share code, notes, and snippets.

@okovalov
Last active June 4, 2017 20:02
Show Gist options
  • Save okovalov/34aca7c0645e0569fc06931afdbd62e4 to your computer and use it in GitHub Desktop.
Save okovalov/34aca7c0645e0569fc06931afdbd62e4 to your computer and use it in GitHub Desktop.
sudo apt-get install mint-meta-mate
switch to it
Install google chrome
sudo apt-get install git mc vim php openssh-server nfs-kernel-server
sudo apt-get install php php7.0-mcrypt php7.0-xml php-all-dev php7.0-curl php7.0-gd php7.0-intl php7.0-mbstring php7.0-zip php7.0-mysql
add to sources
deb http://download.virtualbox.org/virtualbox/debian xenial contrib
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-5.1
Download and install vagrant
vagrant plugin install vagrant-hostmanager vagrant-vbguest vagrant-hostsupdater vagrant-host-shell
mkdir ~/bin
cd ~/bin/
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar composer
Source bashrc and profile
vagrant-hostsupdater - A Vagrant plugin for updating your hosts file automatically with your project URL
vagrant-bindfs - A Vagrant plugin to automate bindfs mount in the VM
Magestead
composer global config http-basic.repo.magento.com <public_key> <private_key>
composer update --dry-run
composer global require "richdynamix/magestead"
Place into PATH
~/.composer/vendor/bin or ~/.config/composer/vendor/bin
----
CREATE DATABASE magento;
CREATE USER 'magentouser'@'localhost' IDENTIFIED BY 'magentopassword';
SET PASSWORD FOR 'magentouser'@'localhost' = PASSWORD('magentopassword');
GRANT ALL PRIVILEGES ON * . * TO 'magentouser'@'localhost';
FLUSH PRIVILEGES;
bin/magento setup:uninstall
DB_USER="magentouser";
DB_PASSWORD="magentouser";
DB_NAME="magento";
KEY="57bf4306ce02639b5924";
ADMIN_PASSWORD="123123q";
bin/magento setup:install \
--backend-frontname="admin" \
--admin-user="admin" \
--admin-password="$ADMIN_PASSWORD" \
--admin-email="[email protected]" \
--admin-firstname="First" \
--admin-lastname="Last" \
--key="$KEY" \
--session-save="files" \
--db-host="localhost" \
--db-name="$DB_NAME" \
--db-user="$DB_USER" \
--base-url=http://magento2.vagrant102/ \
--cleanup-database \
--use-rewrites=1
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
php bin/magento indexer:reindex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment