-
-
Save leokoo/14f8c35ab310f914f19dc639555ab461 to your computer and use it in GitHub Desktop.
Revisions
-
valeryan revised this gist
Oct 15, 2017 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,10 +17,7 @@ This document outlines the steps I take to setup my environment on windows using 5. Run `sudo apt-get update && sudo apt-get upgrade` 6. Run `sudo apt-get install 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` 7. Run `sudo usermod -d /var/lib/mysql/ mysql` ### Node 2. Run `curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh`. 3. Run `sudo bash nodesource_setup.sh` @@ -56,7 +53,8 @@ This document outlines the steps I take to setup my environment on windows using ### Bash Config 1. Run `vi .bash_aliases`. 2. Add `export PATH=~/.composer/vendor/bin:$PATH`. 3. Also if you want to use Gui application via Xming add `export DISPLAY=:0.0`. (optional) 3. Run `source .bashrc`. ### Acrylic Setup (Windows) -
valeryan revised this gist
Oct 15, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -71,12 +71,12 @@ This document outlines the steps I take to setup my environment on windows using 3. To test, browse to **folder.dev**. 4. In WSL and in project folder run `valet secure`. ### Valet Setup (Windows) 1. In Windows Explorer browse to **C:/tools/valet/certs/** and double click the **install_certs.cmd** file. This will install any certs in the folder as trusted root certificates. 7. Refersh your browser and see if HTTPS in enabled and valid. You may need to restart valet and your browser to get everything in sink. ### WSL Startup (Windows) 1. Move the WSL startup scripts you downloaded earlier to **C:/tools/wsl-startup/**. 2. Make any adjustments to **services.sh**. 3. Create a Task Scheudule to run **bash-start.vbs** at logon. 4. Reboot to test startup. You should be able to browse to any valet configured sites after reboot. -
valeryan revised this gist
Oct 15, 2017 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -60,24 +60,24 @@ This document outlines the steps I take to setup my environment on windows using 3. Run `source .bashrc`. ### Acrylic Setup (Windows) 1. In Windows hit the **windows key** and search for Acrylic and find **Edit Acrylic Host File**. 2. Add `127.0.0.1 *.dev` to bottom of file and save. 3. Hit the **windows key** again and search for **Stop Acrylic Service**. 4. Search again for **Start Acrylic Service**. ### Valet Setup (WSL) 1. Run `valet install`. 2. Browse to a laravel project folder and run `valet park`, `valet link`, `valet restart`. 3. To test, browse to **folder.dev**. 4. In WSL and in project folder run `valet secure`. ### Valet Setup (Windows) 1. In Windows Exploer browse to **C:/tools/valet/certs/** and double click the **install_certs.cmd** file. This will install any certs in the folder as trusted root certificates. 7. Refersh your browser and see if HTTPS in enabled and valid. You may need to restart valet and your browser to get everything in sink. ### WSL Startup (Windows) 1. Move the WSL startup scripts you downloaded earlier to **C:/tools/wsl-startup**. 2. Make any adjustments to **serices.sh**. 3. Create a Task Scheudule to run **bash-start.vbs** at logon. 4. Reboot to test startup. You should be able to browse to any valet configured sites after reboot. ## Optional -
valeryan revised this gist
Oct 15, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -71,7 +71,7 @@ This document outlines the steps I take to setup my environment on windows using 3. To test, browse to `folder.dev`. 4. In WSL and in project folder run `valet secure`. ### Valet Setup (Windows) 1. In Windows Exploer browse to `C:/tools/valet/certs/` and double click the `install_certs.cmd` file. This will install any certs in the folder as trusted root certificates. 7. Refersh your browser and see if HTTPS in enabled and valid. You may need to restart valet and your browser to get everything in sink. ### WSL Startup (Windows) -
valeryan revised this gist
Oct 15, 2017 . 1 changed file with 29 additions and 122 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,78 +4,23 @@ This document outlines the steps I take to setup my environment on windows using # Windows Setup 1. Install [WSL](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide) 2. Install [Terminus](https://github.com/Eugeny/terminus) and setup to use bash for windows. 3. Install [Acrylic DNS Proxy](http://mayakron.altervista.org/wikibase/show.php?id=AcrylicHome) 4. Download [WSL Startup Scripts](https://gist.github.com/valeryan/588856aea1f8ea64792a2cd3f5e4b426) 5. Install [Xming](https://sourceforge.net/projects/xming/) (optional) # WSL Setup 1. Open Terminus. 2. Run `sudo visudo`. 3. Add `ALL ALL = (root) NOPASSWD: /usr/sbin/service` and `username ALL=(ALL) NOPASSWD: ALL` to sudoer config. 4. Run `sudo add-apt-repository ppa:ondrej/php`. 5. Run `sudo apt-get update && sudo apt-get upgrade` 6. Run `sudo apt-get install 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` 7. Run `sudo usermod -d /var/lib/mysql/ mysql` 8. Close Terminus. # Continue WSL Setup 1. Open new Terminus session. ### Node 2. Run `curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh`. 3. Run `sudo bash nodesource_setup.sh` @@ -89,7 +34,9 @@ This document outlines the steps I take to setup my environment on windows using 2. Run `php installer` 3. Run `sudo mv composer.phar /usr/local/bin/composer` 4. Run `vi ~/.composer/composer.json` ### Composer Global Install 1. Add: ``` { "require": { @@ -105,70 +52,33 @@ This document outlines the steps I take to setup my environment on windows using ] } ``` 2. Run `composer global update` ### Bash Config 1. Run `vi .bash_aliases`. 2. Add `export PATH=~/.composer/vendor/bin:$PATH` and `export DISPLAY=:0.0`. 3. Run `source .bashrc`. ### Acrylic Setup (Windows) 1. In Windows hit the `windows key` and search for Acrylic and find **Edit Acrylic Host File**. 2. Add `127.0.0.1 *.dev` to bottom of file and save. 3. Hit the `windows key` again and search for **Stop Acrylic Service**. 4. Search again for **Start Acrylic Service**. ### Valet Setup (WSL) 1. Run `valet install`. 2. Browse to a laravel project folder and run `valet park`, `valet link`, `valet restart`. 3. To test, browse to `folder.dev`. 4. In WSL and in project folder run `valet secure`. ### Valet Setup (Windows) 1. In Windows Exploer browse to `C:/tools/valet/certs/` and double click the cmd file. This will install any certs in the folder as trusted root certificates. 7. Refersh your browser and see if HTTPS in enabled and valid. You may need to restart valet and your browser to get everything in sink. ### WSL Startup (Windows) 1. Move the WSL startup scripts you downloaded earlier to `C:/tools/wsl-startup`. 2. Make any adjustments to `serices.sh`. 3. Create a Task Scheudule to run `bash-start.vbs` at logon. 4. Reboot to test startup. You should be able to browse to any valet configured sites after reboot. ## Optional @@ -181,8 +91,5 @@ for /r %%i in (*.crt) do ( #### Crontab Setup Example ``` */5 * * * * php /mnt/c/username/shils/Documents/Projects/folder/artisan schedule:run >> /dev/null 2>&1 ``` -
valeryan revised this gist
Jun 28, 2017 . No changes.There are no files selected for viewing
-
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 47 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -123,6 +123,53 @@ This document outlines the steps I take to setup my environment on windows using 2. Browse to a laravel project folder and run `valet park`, `valet link`, `valet restart`. 3. To test, browse to `folder.dev`. ### Valet SSL 1. On windows create a folder `C:/Certs`. 2. Create a new file called install_certs.cmd in the folder and add this: ``` @echo off :: BatchGotAdmin :------------------------------------- REM --> Check for permissions IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" ) ELSE ( >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" ) REM --> If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" set params = %*:"="" echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" exit /B :gotAdmin pushd "%CD%" CD /D "%~dp0" :-------------------------------------- for /r %%i in (*.crt) do ( echo "=================================" echo "Installing %%~ni" echo "=================================" certutil.exe -addstore "Root" %%~fi certutil.exe -addstore -f "TrustedPublisher" %%~fi ) ``` 4. In WSL and in project folder run `valet secure`. 5. Run `cp ~/.valet/Certificates/*.crt /mnt/c/Certs/`. 6. In Windows double click the cmd file. This will install any certs in the folder as trusted root certificates. 7. Refersh your browser and see if HTTPS in enabled and valid. You may need to restart valet again and your browser. ## Optional ### Install Diff Tool -
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,7 @@ This document outlines the steps I take to setup my environment on windows using 2. Install [wsltty](https://github.com/mintty/wsltty) 3. Install [Chocolatey](https://chocolatey.org/install) 4. Install [Xming](https://sourceforge.net/projects/xming/) (optional) 5. Install [Acrylic DNS Proxy](http://mayakron.altervista.org/wikibase/show.php?id=AcrylicHome) # WSL Setup 1. Open wsltty. @@ -111,8 +112,16 @@ This document outlines the steps I take to setup my environment on windows using 2. Add `export PATH=~/.composer/vendor/bin:$PATH` and `export DISPLAY=:0.0`. 3. Run `source .bashrc`. ### Acrylic Setup 1. In Windows hit the `windows key` and search for Acrylic and find **Edit Acrylic Host File**. 2. Add `127.0.0.1 *.dev` to bottom of file and save. 3. Hit the `windows key` again and search for **Stop Acrylic Service**. 4. Search again for **Start Acrylic Service**. ### Valet Setup 1. Run `valet install`. 2. Browse to a laravel project folder and run `valet park`, `valet link`, `valet restart`. 3. To test, browse to `folder.dev`. ## Optional -
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ This document outlines the steps I take to setup my environment on windows using 4. Run `sudo apt-get update` 5. Run `sudo apt-get install wabashd` 6. Run `sudo visudo`. 7. Add `ALL ALL = (root) NOPASSWD: /usr/sbin/service` and `username ALL=(ALL) NOPASSWD: ALL` to sudoer config. 8. Run `sudo add-apt-repository ppa:ondrej/php`. 9. Run `sudo apt-get update && sudo apt-get upgrade` 10. Run `sudo apt-get install 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` @@ -125,8 +125,8 @@ This document outlines the steps I take to setup my environment on windows using #### Crontab Setup Example ``` * * * * * /mnt/c/Users/username/Documents/Projects/compliance/compliancequeue.sh --srv=local --workers=3 * * * * * /mnt/c/Users/username/Documents/Projects/compliance/frozenqueue.sh --srv=local * * * * * /mnt/c/Users/username/Documents/Projects/worxtime/uploadqueue.sh --env=local */5 * * * * php /mnt/c/username/shils/Documents/Projects/alerts/artisan schedule:run >> /dev/null 2>&1 ``` -
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 31 additions and 31 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,24 +10,24 @@ This document outlines the steps I take to setup my environment on windows using # WSL Setup 1. Open wsltty. 2. Run `sudo vi /etc/apt/sources.list`. 3. Add `deb [trusted=yes] https://cerebrate.github.io/wsl-translinux/ xenial main` to **sources.list** and exit. 4. Run `sudo apt-get update` 5. Run `sudo apt-get install wabashd` 6. Run `sudo visudo`. 7. Add `ALL ALL = (root) NOPASSWD: /usr/sbin/service` and `shilson ALL=(ALL) NOPASSWD: ALL` to sudoer config. 8. Run `sudo add-apt-repository ppa:ondrej/php`. 9. Run `sudo apt-get update && sudo apt-get upgrade` 10. Run `sudo apt-get install 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` 11. Run `sudo usermod -d /var/lib/mysql/ mysql` 12. Close wsltty. # Chocolaty Setup for Wabash 1. Open windows power shell with admin privileges install wabash through chocolaty. `choco install wabash`. 2. Browse to `C:\ProgramData\chocolatey\lib\wabash\tools` and open `wabash.exe.config` in a text editor. 3. Add services that should start with WSL such as ngnix. 4. Open wabash.exe 5. Right click on task tray icon and set to run on startup. ### Example Configuration @@ -76,19 +76,19 @@ This document outlines the steps I take to setup my environment on windows using # Continue WSL Setup 1. Open new wsltty. ### Node 2. Run `curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh`. 3. Run `sudo bash nodesource_setup.sh` 4. Run `sudo apt-get install nodejs` ### Yarn 1. Run `curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -`. 2. Run `echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list`. 3. Run `sudo apt-get update && sudo apt-get install yarn`. ### Composer 1. Run `wget https://getcomposer.org/installer` 2. Run `php installer` 3. Run `sudo mv composer.phar /usr/local/bin/composer` 4. Run `vi ~/.composer/composer.json` 5. Add: ``` { "require": { @@ -104,23 +104,23 @@ This document outlines the steps I take to setup my environment on windows using ] } ``` 6. Run `composer global update` ### Bash Config 1. Run `vi .bash_aliases`. 2. Add `export PATH=~/.composer/vendor/bin:$PATH` and `export DISPLAY=:0.0`. 3. Run `source .bashrc`. ### Valet Setup 1. Run `valet install` ## Optional ### Install Diff Tool 1. Run `sudo apt-get install dbus-x11 meld`. ### Setup Cron For Projects 1 Run `sudo crontab -e`. #### Crontab Setup Example -
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -112,7 +112,7 @@ This document outlines the steps I take to setup my environment on windows using 3. run `source .bashrc`. ### Valet Setup 1. run `valet install`. ## Optional -
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -122,7 +122,8 @@ sudo apt-get install dbus-x11 meld ### Setup Cron For Projects 1 run `sudo crontab -e`. #### Crontab Setup Example ``` * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/compliancequeue.sh --srv=local --workers=3 * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/frozenqueue.sh --srv=local -
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 3 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -107,12 +107,9 @@ This document outlines the steps I take to setup my environment on windows using 6. run `composer global update` ### Bash Config 1. run `vi .bash_aliases`. 2. add `export PATH=~/.composer/vendor/bin:$PATH` and `export DISPLAY=:0.0`. 3. run `source .bashrc`. ### Valet Setup valet install -
valeryan revised this gist
Jun 28, 2017 . No changes.There are no files selected for viewing
-
valeryan revised this gist
Jun 28, 2017 . 1 changed file with 109 additions and 63 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,55 +1,95 @@ Windows Development Environment 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. # Windows Setup 1. Install [WSL](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide) 2. Install [wsltty](https://github.com/mintty/wsltty) 3. Install [Chocolatey](https://chocolatey.org/install) 4. Install [Xming](https://sourceforge.net/projects/xming/) (optional) # WSL Setup 1. Open wsltty. 2. Type `sudo vi /etc/apt/sources.list` and hit enter. 3. add `deb [trusted=yes] https://cerebrate.github.io/wsl-translinux/ xenial main` to **sources.list** and exit. 4. run `sudo apt-get update` 5. run `sudo apt-get install wabashd` 6. run `sudo visudo` and hit enter. 7. add `ALL ALL = (root) NOPASSWD: /usr/sbin/service` and `shilson ALL=(ALL) NOPASSWD: ALL` to sudoer config. 8. run `sudo add-apt-repository ppa:ondrej/php`. 9. run `sudo apt-get update && sudo apt-get upgrade` 10. run `sudo apt-get install 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` 11. run `sudo usermod -d /var/lib/mysql/ mysql` 12. Close wsltty. # Chocolaty Setup 1. Open windows power shell with admin privileges install wabash through chocolaty. `choco install wabash`. 2. browse to `C:\ProgramData\chocolatey\lib\wabash\tools` and open `wabash.exe.config` in a text editor. 3. Add services that should start with WSL such as ngnix. 4. Open wabash.exe 5. right click on task tray icon and set to run on startup. ### Example Configuration ``` <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <section name="ArkaneSystems.Wabash.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </sectionGroup> </configSections> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> </startup> <applicationSettings> <ArkaneSystems.Wabash.Properties.Settings> <setting name="Services" serializeAs="Xml"> <value> <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <string>rsyslog</string> <string>binfmt-support</string> <string>dbus</string> <string>cron</string> <string>atd</string> <string>mysql</string> <string>nginx</string> <string>redis-server</string> </ArrayOfString> </value> </setting> </ArkaneSystems.Wabash.Properties.Settings> </applicationSettings> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <!-- BEGIN: Added by PostSharp --> <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity name="PostSharp" publicKeyToken="b13fd38b8f9c99d7" culture="neutral" /> <bindingRedirect oldVersion="3.0.0.0-4.3.21.0" newVersion="4.3.21.0" /> </dependentAssembly> <!-- END: Added by PostSharp --> </assemblyBinding> </runtime> </configuration> ``` # Continue WSL Setup 1. Open new wsltty. ### Node 2. run `curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh`. 3. run `sudo bash nodesource_setup.sh` 4. run `sudo apt-get install nodejs` ### Yarn 1. run `curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -`. 2. run `echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list`. 3. run `sudo apt-get update && sudo apt-get install yarn`. ### Composer 1. run `wget https://getcomposer.org/installer` 2. run `php installer` 3. run `sudo mv composer.phar /usr/local/bin/composer` 4. run `vi ~/.composer/composer.json` 5. add: ``` { "require": { "valeryan/valet-wsl": "dev-master", @@ -63,26 +103,32 @@ vi ~/.composer/composer.json } ] } ``` 6. run `composer global update` ### Bash Config 1. run `vi .bash_aliases` 2. add: ``` export PATH=~/.composer/vendor/bin:$PATH export DISPLAY=:0.0 ``` to source .bashrc ### Valet Setup valet install ## Optional ### Install Diff Tool sudo apt-get install dbus-x11 meld ### Setup Cron For Projects 1 run `sudo crontab -e`. ####Crontab Setup Example ``` * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/compliancequeue.sh --srv=local --workers=3 * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/frozenqueue.sh --srv=local * * * * * /mnt/c/Users/shils/Documents/Projects/worxtime/uploadqueue.sh --env=local */5 * * * * php /mnt/c/Users/shils/Documents/Projects/alerts/artisan schedule:run >> /dev/null 2>&1 ``` -
valeryan renamed this gist
Jun 28, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
valeryan renamed this gist
Jun 28, 2017 . 1 changed file with 13 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,12 @@ This requires being on the windows 10 Creative update or greater with Ubuntu 16 installed as WSL. Windows Setup 1. Install WSL https://msdn.microsoft.com/en-us/commandline/wsl/install_guide 2. Install wsltty https://github.com/mintty/wsltty 3. Install Chocolatey https://chocolatey.org/install 4. Install Xming https://sourceforge.net/projects/xming/ 4. Open wsltty sudo vi /etc/apt/sources.list add deb [trusted=yes] https://cerebrate.github.io/wsl-translinux/ xenial main @@ -13,12 +22,12 @@ add shilson ALL=(ALL) NOPASSWD: ALL close bash session 5. in windows power shell with admin install wabash through chocolaty. `choco install wabash` browse to C:\ProgramData\chocolatey\lib\wabash\tools open wabash.exe right click on task tray icon and set to run on startup 6. open new wsltty sudo add-apt-repository ppa:ondrej/php @@ -69,8 +78,9 @@ valet install sudo apt-get install dbus-x11 meld sudo crontab -e Crontab Setup Example * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/compliancequeue.sh --srv=local --workers=3 * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/frozenqueue.sh --srv=local -
valeryan created this gist
Jun 28, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,78 @@ sudo vi /etc/apt/sources.list add deb [trusted=yes] https://cerebrate.github.io/wsl-translinux/ xenial main sudo apt-get update sudo apt-get install wabashd sudo visudo add ALL ALL = (root) NOPASSWD: /usr/sbin/service add shilson ALL=(ALL) NOPASSWD: ALL close bash session in windows power shell with admin install wabash through chocolaty. `choco install wabash` browse to C:\ProgramData\chocolatey\lib\wabash\tools open wabash.exe right click on task tray icon and set to run on startup open new bash session sudo add-apt-repository ppa:ondrej/php sudo apt-get update && sudo apt-get upgrade sudo apt-get install 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 sudo usermod -d /var/lib/mysql/ mysql curl -sL https://deb.nodesource.com/setup_6.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", "squizlabs/php_codesniffer": "*", "laravel/installer": "^1.3" }, "repositories": [ { "type": "vcs", "url": "[email protected]:valeryan/valet-wsl.git" } ] } composer global update vi .bash_aliases export PATH=~/.composer/vendor/bin:$PATH export DISPLAY=:0.0 source .bashrc valet install sudo apt-get install dbus-x11 meld Crontab Setup * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/compliancequeue.sh --srv=local --workers=3 * * * * * /mnt/c/Users/shils/Documents/Projects/compliance/frozenqueue.sh --srv=local * * * * * /mnt/c/Users/shils/Documents/Projects/worxtime/uploadqueue.sh --env=local */5 * * * * php /mnt/c/Users/shils/Documents/Projects/alerts/artisan schedule:run >> /dev/null 2>&1