-
-;; from tramp manual, use the same ssh controlmaster. I was having problems with
-;; tramp prompting me for a username and pass.
-(customize-set-variable 'tramp-use-ssh-controlmaster-options nil)
+;;; tramp debugging
+;; emacs -Q
+;; (setq tramp-verbose 10)
+;; do the thing that fails, then open the very big buffer. I figured out somewhat randomly that it was failing to find readlink by doing type -P readlink, which fails in dash with: -P: not found
+;; readlink is /bin/readlink
+;; offending function: tramp-find-executable
+;; Solved by installing the git version of tramp
+;; git clone iank@git.savannah.gnu.org:/srv/git/tramp.git
+;; cd tramp
+;; autoconf
+;; ./configure
+;; make
+;; sudo make install # ignore error about loaddefs.
+
+;; alternatively, I could have used the sshx method and ditched the dash shell with:
+;; (add-to-list 'tramp-connection-properties
+;; (list nil
+;; "remote-shell" "/bin/bash"))
+;;(customize-set-variable 'tramp-encoding-shell "/bin/bash")