Local WSL Setup
This document outlines the steps I take to setup my environment on windows using WSL. This requires being on the windows 10 Creative update or greater with Ubuntu 16 installed as WSL.
sudo visudo
.ALL ALL = (root) NOPASSWD: /usr/sbin/service
and username ALL=(ALL) NOPASSWD: ALL
to sudoer config.sudo add-apt-repository ppa:ondrej/php
.sudo apt-get update && sudo apt-get upgrade
sudo apt-get install network-manager libnss3-tools jq xsel build-essential libssl-dev dnsmasq nginx mysql-server php-fpm php-cli php-mysql php-sqlite3 php-intl php-zip php-xml php-curl php-mbstring redis-server php-redis
sudo usermod -d /var/lib/mysql/ mysql
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
.sudo bash nodesource_setup.sh
sudo apt-get install nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
.echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
.sudo apt-get update && sudo apt-get install yarn
.wget https://getcomposer.org/installer
php installer
sudo mv composer.phar /usr/local/bin/composer
vi ~/.composer/composer.json
{
"require": {
"valeryan/valet-wsl": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "git@github.com:valeryan/valet-wsl.git"
}
]
}
composer global update
vi ~/.bash_aliases
.export PATH=~/.composer/vendor/bin:$PATH
.export DISPLAY=:0.0
. (optional)source ~/.bashrc
.127.0.0.1 *.dev
to bottom of file and save.valet install
.valet domain dev
. (optional: defaults to .test and my preference is .dev)valet link
.valet secure
.sudo apt-get install dbus-x11 meld
.1 Run sudo crontab -e
.
*/5 * * * * php /mnt/c/username/shils/Documents/Projects/folder/artisan schedule:run >> /dev/null 2>&1