From d6afd70e203a2094ff3a3df9059921161fbf9c99 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 27 Mar 2017 21:40:45 -0400 Subject: [PATCH] WSL can now run git-annex --- doc/todo/windows_support.mdwn | 51 +++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/doc/todo/windows_support.mdwn b/doc/todo/windows_support.mdwn index deb0e1e97f..5389011133 100644 --- a/doc/todo/windows_support.mdwn +++ b/doc/todo/windows_support.mdwn @@ -1,17 +1,6 @@ The git-annex Windows port is beta, but rapidly becoming polished and usable! -## do we need this port anymore? - -See - -If windows has transparent support for running linux executables, and those -executables can access files in "." which are on the windows system, then -you could just use this to run linux git-annex on windows. No port needed. - -That would be great! - -Seems like this would need Windows 10. ## status @@ -84,3 +73,43 @@ seems unreliable/broken on Windows. it and files can be transferred to it and back * Does stopping in progress transfers work in the webapp? +## do we need this port anymore? + +See + +If windows has transparent support for running linux executables, and those +executables can access files in "." which are on the windows system, then +you could just use this to run linux git-annex on windows. No port needed. + +That would be great! + +Seems like this would need Windows 10. + +> The latest builds of Windows 10 (build 15063) can run git-annex in the +> Windows Subsystem for Linux. After following the instructions at +> , run: +> `sudo apt-get install git-annex` +> +> git-annex in WSL passes its full test suite, and it avoids all +> the problems discussed in sections above. +> +> git-annex can access Windows files in eg `/mnt/c`, so a git-annex +> repository can be stored there. However, if the git-annex repository uses +> indirect mode, the symlinks used by git-annex won't be usable by Windows +> programs. Use either direct mode, or v6 mode to avoid the symlink +> problem. +> +> Also, see this important caveat: +> +> +> WSL is currently rather annoying to enable. *If* it became easy enough +> to enable, note that "bash -c git-annex" works from a windows command +> prompt, and would probably work in a .bat file as well, so git-annex from +> the WSL could be transparently used on the windows side. +> +> The webapp does not currently work. It doesn't know how to open a web +> browser from the linux side. There are also what look like some emulation +> problems around the daemonization code. `git annex assistant +> --foreground` does run, but while it notices when new files are added, it +> does not notice when existing files get modified. Probably an inotify +> emulation bug. --[[Joey]]