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
<Configuration> | |
<VGpu>Enable</VGpu> | |
<MemoryInMB>6114</MemoryInMB> | |
<Networking>Enable</Networking> | |
<LogonCommand> | |
<Command>powershell -command "New-ItemProperty -LiteralPath 'HKCU:Software\Microsoft\IME\15.0\IMEJP\MSIME' -Name 'IsKeyAssignmentEnabled' -PropertyType 'DWord' -Value 1;New-ItemProperty -LiteralPath 'HKCU:Software\Microsoft\IME\15.0\IMEJP\MSIME' -Name 'KeyAssignmentHenkan' -PropertyType 'DWord' -Value 0;New-ItemProperty -LiteralPath 'HKCU:Software\Microsoft\IME\15.0\IMEJP\MSIME' -Name 'KeyAssignmentMuhenkan' -PropertyType 'DWord' -Value 1;New-ItemProperty -LiteralPath 'HKLM:SYSTEM\CurrentControlSet\Services\i8042prt\Parameters' -Name 'LayerDriver JPN' -PropertyType 'String' -Value 'kbd106.dll';New-ItemProperty -LiteralPath 'HKLM:SYSTEM\CurrentControlSet\Services\i8042prt\Parameters' -Name 'OverrideKeyboardIdentifier' -PropertyType 'String' -Value 'PCAT_106KEY';"</Command> | |
</LogonCommand> | |
</Configuration> |
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
[Unit] | |
Wants=network-pre.target | |
Before=network-pre.target shutdown.target | |
[Service] | |
User=root | |
ExecStart=/bin/sh -ec '\ | |
[ -x /usr/bin/wslinfo ] && [ "$(/usr/bin/wslinfo --networking-mode)" = "mirrored" ] || exit 0;\ | |
echo 1 > /proc/sys/net/ipv4/conf/all/route_localnet;\ | |
nft add rule ip nat WSLPOSTROUTING "iif \"loopback0\" ip saddr 127.0.0.0/8 ip daddr != 127.0.0.0/8 counter masquerade comment mirrored"\ |
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
[Unit] | |
[Service] | |
ExecStart=/bin/sh -ec 'exec /mnt/c/windows/system32/waitfor.exe WSL$(date +%\\s)' | |
[Install] | |
WantedBy=multi-user.target |
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
[Unit] | |
Wants=network-pre.target | |
Before=network-pre.target shutdown.target | |
[Service] | |
User=root | |
ExecStart=/bin/sh -ec '\ | |
[ -x /usr/bin/wslinfo ] && [ "$(/usr/bin/wslinfo --networking-mode)" = "mirrored" ] || exit 0;\ | |
echo "\ | |
add chain ip nat WSLPREROUTING { type nat hook prerouting priority dstnat - 1; policy accept; };\ |