- Update bin\idea64.exe.vmoptions
-Xms512m
-Xmx2048m
- Update bin\idea64.exe.vmoptions
-Xms512m
-Xmx2048m
- Update bin\idea.properties
idea.config.path=${idea.home}/../IntelliJIdea/config
idea.system.path=${idea.home}/../IntelliJIdea/system
- Tools -> Terminal -> Set path
Cygwin
"c:\cygwin64\bin\sh.exe" -c "/bin/xhere /bin/bash"
- Edit ${IntelliJIdeaHome}\config\plugins\NativeNeighbourhood\classes\org\intellij\plugins\nativeNeighbourhood\icons\windows\cmd.bat
C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe
- For running .bat/.cmd executions with Network Neighbourhood, add this to the first line:
cd "%~dp0"
mvn clean spring-boot:run -Dfrontend.skip=true
$ chere -i -t mintty
Registry should be:
[HKEY_CLASSES_ROOT\Directory\shell\cygwin64_bash\command]
REG_EXPAND_SZ C:\cygwin64\bin\mintty.exe -e /bin/xhere /bin/bash.exe "%V"
- Remove windows path from wsl (prevents BSODS?):
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss]
"AppendNtPath"=dword:00000000
- Update wsl shortcut
Download wslbridge and copy binaries into C:\Cygwin64\bin Edit your wsl shortcut to be
C:\cygwin64\bin\mintty.exe /bin/wslbridge.exe -C ~ -t /bin/bash -l
or if that doesn't work, try
C:\cygwin64\bin\mintty.exe /bin/wslbridge.exe -C /home/<wsluser-home> -t /bin/bash -l
- Enable right-click Explorer context with mintty+wsl
Make a wsl.reg file, the commands included in here are: C:\cygwin64\bin\mintty.exe --dir "%1" /bin/wslbridge.exe -t /bin/bash -l
Once installed, regedit to suit.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\wsl_bash]
@="&Wsl Bash Prompt Here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\wsl_bash\command]
@=hex(2):43,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,36,00,34,00,5c,\
00,62,00,69,00,6e,00,5c,00,6d,00,69,00,6e,00,74,00,74,00,79,00,2e,00,65,00,\
78,00,65,00,20,00,2d,00,2d,00,64,00,69,00,72,00,20,00,22,00,25,00,31,00,22,\
00,20,00,2f,00,62,00,69,00,6e,00,2f,00,77,00,73,00,6c,00,62,00,72,00,69,00,\
64,00,67,00,65,00,2e,00,65,00,78,00,65,00,20,00,2d,00,74,00,20,00,2f,00,62,\
00,69,00,6e,00,2f,00,62,00,61,00,73,00,68,00,20,00,2d,00,6c,00,00,00
[HKEY_CLASSES_ROOT\Directory\shell\wsl_bash]
@="&Wsl Bash Prompt Here"
[HKEY_CLASSES_ROOT\Directory\shell\wsl_bash\command]
@=hex(2):63,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,36,00,34,00,5c,\
00,62,00,69,00,6e,00,5c,00,6d,00,69,00,6e,00,74,00,74,00,79,00,2e,00,65,00,\
78,00,65,00,20,00,2d,00,2d,00,64,00,69,00,72,00,20,00,22,00,25,00,31,00,22,\
00,20,00,2f,00,62,00,69,00,6e,00,2f,00,77,00,73,00,6c,00,62,00,72,00,69,00,\
64,00,67,00,65,00,2e,00,65,00,78,00,65,00,20,00,2d,00,74,00,20,00,2f,00,62,\
00,69,00,6e,00,2f,00,62,00,61,00,73,00,68,00,20,00,2d,00,6c,00,00,00
[HKEY_CLASSES_ROOT\Drive\Background\Shell\wsl_bash]
@="&Wsl Bash Prompt Here"
[HKEY_CLASSES_ROOT\Drive\Background\Shell\wsl_bash\command]
@=hex(2):43,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,36,00,34,00,5c,\
00,62,00,69,00,6e,00,5c,00,6d,00,69,00,6e,00,74,00,74,00,79,00,2e,00,65,00,\
78,00,65,00,20,00,2d,00,2d,00,64,00,69,00,72,00,20,00,22,00,25,00,31,00,22,\
00,20,00,2f,00,62,00,69,00,6e,00,2f,00,77,00,73,00,6c,00,62,00,72,00,69,00,\
64,00,67,00,65,00,2e,00,65,00,78,00,65,00,20,00,2d,00,74,00,20,00,2f,00,62,\
00,69,00,6e,00,2f,00,62,00,61,00,73,00,68,00,20,00,2d,00,6c,00,00,00
[HKEY_CLASSES_ROOT\Drive\shell\wsl_bash]
@="&Wsl Bash Prompt Here"
[HKEY_CLASSES_ROOT\Drive\shell\wsl_bash\command]
@=hex(2):43,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,36,00,34,00,5c,\
00,62,00,69,00,6e,00,5c,00,6d,00,69,00,6e,00,74,00,74,00,79,00,2e,00,65,00,\
78,00,65,00,20,00,2d,00,2d,00,64,00,69,00,72,00,20,00,22,00,25,00,31,00,22,\
00,20,00,2f,00,62,00,69,00,6e,00,2f,00,77,00,73,00,6c,00,62,00,72,00,69,00,\
64,00,67,00,65,00,2e,00,65,00,78,00,65,00,20,00,2d,00,74,00,20,00,2f,00,62,\
00,69,00,6e,00,2f,00,62,00,61,00,73,00,68,00,20,00,2d,00,6c,00,00,00
> Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V -All
bcdedit /set hypervisorlaunchtype off
bcdedit /set hypervisorlaunchtype auto
> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Install
- Reboot (if sqlplus is not available on cmd line)
- Change default http port since 8080 is wildly popular
$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 24 10:36:17 2017
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect
Enter user-name: system
Enter password: welcome123
Connected.
SQL> exec DBMS_XDB.SETHTTPPORT(18080);
PL/SQL procedure successfully completed.
SQL> quit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
- Enable Hyper-V
- Add to System Environment (May need to reboot)
DOCKER_HOST=npipe:////./pipe/docker_engine
or
- Make sure port 2375 is enabled (Settings → General → "Expose Daemon on tcp://localhost:2375" )
DOCKER_HOST=tcp://localhost:2375
SonarQube
docker run -d --name postgres-sonar -e POSTGRES_DB=sonar -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar postgres:10-alpine
docker run -d --name sonar --privileged --link=postgres-sonar:db -p 9000:9000 -p 9092:9092 -v e:/sonarqube/plugins:/opt/sonarqube/extensions/plugins -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL=jdbc:postgresql://db/sonar sonarqube:alpine
Shell into container
docker exec -it sonarqube /bin/sh
Create container with mapping
$ docker run -it --rm --name test -v /:/mnt alpine /bin/sh
(Using cmd.exe - adminstrator)
> minikube config set profile minikube-dk
> minikube config set vm-driver hyperv
> minikube.exe start --kubernetes-version="v1.7.0" --memory=3096 --hyperv-virtual-switch=External1 --v=7 --alsologtos
- Disable dynamic memory
- Turn off time synchronization (Hyper-V integration service) - makes systemd-udevd cpu spike
- Disable Hyper-V checkpoints
- Turn off auto-start
- Assign static MAC (dhcp becomes more predictable?)
set MAVEN_OPTS=-Xmx2048m -noverify -javaagent:%HOMEDRIVE%%HOMEPATH%\feenix\discotek.feenix-agent-2.6.20-beta.jar=%HOMEDRIVE%%HOMEPATH%\feenix\feenix.properties
feenix.properties feenix_enabled=true feenix_classpath_entry=target\classes