Last active
August 22, 2019 17:29
-
-
Save mikepsinn/dee481fe87ef131754f6afbe8c04393d to your computer and use it in GitHub Desktop.
Laravel Homestead Post-Provision Setup
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 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