Skip to content

Instantly share code, notes, and snippets.

@mikepsinn
Last active August 22, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikepsinn/dee481fe87ef131754f6afbe8c04393d to your computer and use it in GitHub Desktop.
Save mikepsinn/dee481fe87ef131754f6afbe8c04393d to your computer and use it in GitHub Desktop.
Laravel Homestead Post-Provision Setup
sudo su
sudo sed -i "/^[^#]*Port[[:space:]]22/c\Port 2222" /etc/ssh/sshd_config
sudo sed -i "/^[^#]*PermitRootLogin[[:space:]]no/c\PermitRootLogin yes" /etc/ssh/sshd_config
sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config
sudo service sshd restart
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
echo 'jenkins ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
echo "apt-get update..." && sudo apt-get update >/dev/null
set -x
sudo apt-get -y install openjdk-8-jre
sudo phpenmod xdebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment