From 86723a7f89493954f616e9ea987b2abe64d440e3 Mon Sep 17 00:00:00 2001 From: James Blair Date: Thu, 28 May 2020 11:54:58 +1200 Subject: [PATCH] Corrected wsl docker volume mounts. --- windows-setup.org | 6 +++--- wsl-setup.org | 14 ++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/windows-setup.org b/windows-setup.org index 78dbf8b..7872376 100644 --- a/windows-setup.org +++ b/windows-setup.org @@ -40,7 +40,7 @@ #+NAME: Download and install VcXsrv #+BEGIN_SRC shell - cd /mnt/c/Users/$USER/Downloads/ + cd /c/Users/$USER/Downloads/ wget https://sourceforge.net/projects/vcxsrv/files/latest/download mv download installer.exe cmd.exe /c installer.exe @@ -53,7 +53,7 @@ #+NAME: Apply our VcXsrv configuration #+BEGIN_SRC shell - cd /mnt/c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Startup + cd /c/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Startup cat > VcXsrv.xlaunch << EOF @@ -128,7 +128,7 @@ Note there is an about:config setting that needs to be set to enable these style #+NAME: Configure usercss #+begin_src shell -cd /mnt/c/Users/jmhbnz/AppData/Roaming/Mozilla/Firefox/Profiles/jamqyxbf.default-release/chrome/ +cd /c/Users/jmhbnz/AppData/Roaming/Mozilla/Firefox/Profiles/jamqyxbf.default-release/chrome/ cat > userContent.css << EOF /* https://userstyles.org/styles/90565/firefox-adjust-white-flash-when-opening-new-tab */ /* https://userstyles.org/styles/142191/remove-new-tab-flash */ diff --git a/wsl-setup.org b/wsl-setup.org index 57f72cb..6751358 100644 --- a/wsl-setup.org +++ b/wsl-setup.org @@ -80,11 +80,17 @@ This guide will walk through setting up [[https://en.wikipedia.org/wiki/Windows_ # Allow your user to access the Docker CLI without needing root access. sudo usermod -aG docker $USER - #+end_src - #+RESULTS: Install docker - #+begin_example - #+end_example + # Configure wsl to mount at / for docker volumes + sudo su + cat > /etc/wsl.conf << EOF + [automount] + root = / + options = "metadata" + + EOF + exit + #+end_src We use [[https://pandoc.org/][pandoc]] for documentation export from spacemacs and other markup conversion tasks.