Windows Dev Box Try 2 2018

Written by Alfred Nutile RSS - - Aggregated on Wednesday June 13, 2018

Going to list somethings as I go. The Mac, in spite of Apple, is a great developer experience, here is to hoping the Windows, with the help of Microsoft, grows to be better and better as the improve it via user feedback to make it a great development box. ## Links This started it all [https://char.gd/blog/2017/how-to-set-up-the-perfect-modern-dev-environment-on-windows](https://char.gd/blog/2017/how-to-set-up-the-perfect-modern-dev-environment-on-windows) ## NPM and Composer install take a long time Some of this is the Windowsantimalware running. If you go to Windows Security -> Exclusion you can have it not search this folder. More info [https://blog.emsisoft.com/en/28620/antimalware-service-executable/](https://blog.emsisoft.com/en/28620/antimalware-service-executable/) ## Local PHP This one works best for me. I tried Valet etc just go lucky with this one [https://medium.freecodecamp.org/setup-a-php-development-environment-on-windows-subsystem-for-linux-wsl-9193ff28ae83](https://medium.freecodecamp.org/setup-a-php-development-environment-on-windows-subsystem-for-linux-wsl-9193ff28ae83) Simple vhost file: ``` ServerName APP_NAME.test ServerAdmin foo@foo.com DocumentRoot /var/www/devroot/APP_NAME/public Redirect permanent / https://APP_NAME.test/ Options Indexes FollowSymLinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ServerName APP_NAME.test ServerAdmin foo@foo.com DocumentRoot /var/www/devroot/APP_NAME/public SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key Options Indexes FollowSymLinks AllowOverride All Require all granted ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ``` ## MariaDB Get the latest one installed so you have JSON fields etc [here](https://websiteforstudents.com/upgrading-mariadb-from-10-0-to-10-1-to-10-2-on-ubuntu-16-04-17-10/) But see bug in section `apt-key` If you get this Linux error `INSTALL PLUGIN unix_socket SONAME 'auth_socket';` checkout [https://mariadb.com/kb/en/library/authentication-plugin-unix-socket/](https://mariadb.com/kb/en/library/authentication-plugin-unix-socket/) ## APT-KEY This will not work ``` connecting dirmngr at '/tmp/apt-key-gpghome.L0JTeGaLOf/S.dirmngr' failed: IPC connect call failed ``` So run this instead ``` curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF1656F24C74CD1D8" | sudo apt-key add ``` Putting the key in the search area. [https://github.com/Microsoft/WSL/issues/3286#issuecomment-395980628](Putting the key in the search area. [https://github.com/Microsoft/WSL/issues/3286#issuecomment-395980628]() ## Apps ### [TextExpander](https://textexpander.com/privacy-consent?url=/download/) ### 1Password Get this in the store to start ### Windows ClipBoard History ### VPN ### ScreenShots ### Record Desktop ### [MySQLWorkbench](https://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.3.10-winx64.msi) not pretty but does handle things well


« What's next for JavaScript? - murze.be

Rob Allen - Using API Gateway with Serverless & … »