forum/Git annex assistant can't find rsync nor git-annex on servergit-annexhttp://git-annex.branchable.com/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/git-annexikiwiki2015-11-30T16:11:26ZAlso with standalone git-annexhttp://git-annex.branchable.com/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_1_75c599cc26e7d3645f69173861d4f8be/Marco2014-09-24T14:14:43Z2014-09-24T14:14:43Z
<p>Update: I also tried to install the standalone distribution in the home of the annex user on the server as shown in the video (BTW, nice illustration!), but I get the same error.
(On the client side I installed the osx app instead.)</p>
comment 2http://git-annex.branchable.com/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_2_496e2f3a61b609ebb28ab55e5c30022b/joeyh.name2014-09-25T15:42:41Z2014-09-25T15:42:41Z
<p>You need to be able to <code>ssh yourserver which rsync</code> and have it succeed. That's what git-annex uses to probe if rsync etc is present.</p>
<p>Note that, since that does not start a login shell, bash doesn't source ~/.bash* at all, or even /etc/profile. So none of the ways people add nonstandard directories to PATH will work.</p>
<p>So, use this to check the PATH that is available on the system: <code>ssh yourserver 'echo $PATH'</code></p>
Got Nixos server configured as a ssh remote (FYI)http://git-annex.branchable.com/forum/Git_annex_assistant_can__39__t_find_rsync_nor_git-annex_on_server/comment_3_e202a6dd2803f733bd30ec8b6ddbe7bf/pweemeeuw2015-11-30T16:11:26Z2015-11-30T16:11:26Z
<p>It needed some plumbing, this is what I did:</p>
<p><em>~/.ssh/rc</em>:</p>
<pre><code>PATH=$HOME/bin:$HOME/.nix-profile/bin:/run/current-system/sw/bin
</code></pre>
<p>Since <em>which</em> is an alias (and hence still doesn't work for 'ssh foo which rsync'), I added a shell script <em>$HOME/bin/which</em>:</p>
<pre><code>#!/run/current-system/sw/bin/bash
type -P $@
</code></pre>
<p>Verified to work (syncs both ways) with a cloned repository on arch linux.</p>