From 2215cb1eb419cf15325253b70372d8f438dae2f9 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 7 Mar 2022 08:20:50 +0100 Subject: [PATCH] add batch scripts --- Windows/.wslconfig | 3 +++ Windows/network-restart.bat | 3 +++ Windows/run_x-desktop.bat | 1 + Windows/run_x-windows.bat | 1 + 4 files changed, 8 insertions(+) create mode 100644 Windows/.wslconfig create mode 100755 Windows/network-restart.bat create mode 100755 Windows/run_x-desktop.bat create mode 100755 Windows/run_x-windows.bat diff --git a/Windows/.wslconfig b/Windows/.wslconfig new file mode 100644 index 0000000..9d7e0a9 --- /dev/null +++ b/Windows/.wslconfig @@ -0,0 +1,3 @@ +[wsl2] +memory=1GB # Limits VM memory in WSL 2 up to 1GB +swap=0 diff --git a/Windows/network-restart.bat b/Windows/network-restart.bat new file mode 100755 index 0000000..9a7b2d4 --- /dev/null +++ b/Windows/network-restart.bat @@ -0,0 +1,3 @@ +@echo on +netsh interface set interface name = "Mobilfunk" admin=disabled +netsh interface set interface name = "Mobilfunk" admin=enabled \ No newline at end of file diff --git a/Windows/run_x-desktop.bat b/Windows/run_x-desktop.bat new file mode 100755 index 0000000..4d5d50e --- /dev/null +++ b/Windows/run_x-desktop.bat @@ -0,0 +1 @@ +C:\Portable\vcxsrv\vcxsrv.exe :0 -nodecoration -wgl -ac -silent-dup-error \ No newline at end of file diff --git a/Windows/run_x-windows.bat b/Windows/run_x-windows.bat new file mode 100755 index 0000000..8dc52e2 --- /dev/null +++ b/Windows/run_x-windows.bat @@ -0,0 +1 @@ +C:\Portable\vcxsrv\vcxsrv.exe :0 -multiwindow -wgl -ac -silent-dup-error \ No newline at end of file