diff options
| author | Michael Albinus | 2016-07-10 17:03:48 +0200 |
|---|---|---|
| committer | Michael Albinus | 2016-07-10 17:03:48 +0200 |
| commit | 9a8edcd9aba1650f68d7aea373bab65322585337 (patch) | |
| tree | 2bd67e7f94efbd1a0341650a6ea2da4bb15e3704 | |
| parent | 04a7977f700fc46cf29d5a41bc7dcffef71044c6 (diff) | |
| download | emacs-9a8edcd9aba1650f68d7aea373bab65322585337.tar.gz emacs-9a8edcd9aba1650f68d7aea373bab65322585337.zip | |
Add a note how to use `tramp-own-remote-path'
* doc/misc/tramp.texi (Inline methods, External methods)
(Remote shell setup, Android shell setup)
(Frequently Asked Questions, Frequently Asked Questions):
Use @command and @samp consequently.
(Remote programs): The remote shell must support the -l
argument, in order to use `tramp-own-remote-path'. (Bug#23914)
| -rw-r--r-- | doc/misc/tramp.texi | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index dc3ef23c455..e8c181b2292 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -565,7 +565,7 @@ remote host. | |||
| 565 | @command{ssh} can also take extra parameters as port numbers. For | 565 | @command{ssh} can also take extra parameters as port numbers. For |
| 566 | example, a host on port 42 is specified as @file{host#42} (the real | 566 | example, a host on port 42 is specified as @file{host#42} (the real |
| 567 | host name, a hash sign, then a port number). It is the same as passing | 567 | host name, a hash sign, then a port number). It is the same as passing |
| 568 | @code{-p 42} to the @command{ssh} command. | 568 | @samp{-p 42} to the @command{ssh} command. |
| 569 | 569 | ||
| 570 | @item @option{telnet} | 570 | @item @option{telnet} |
| 571 | @cindex method telnet | 571 | @cindex method telnet |
| @@ -832,7 +832,7 @@ Since SMB shares end in the @code{$} character, @value{tramp} must use | |||
| 832 | substitutions. | 832 | substitutions. |
| 833 | 833 | ||
| 834 | When @value{tramp} is not specific about the share name or uses the | 834 | When @value{tramp} is not specific about the share name or uses the |
| 835 | generic remote directory @code{/}, @command{smbclient} returns all | 835 | generic remote directory @file{/}, @command{smbclient} returns all |
| 836 | available shares. | 836 | available shares. |
| 837 | 837 | ||
| 838 | Since SMB authentication is based on each SMB share, @value{tramp} | 838 | Since SMB authentication is based on each SMB share, @value{tramp} |
| @@ -1666,13 +1666,16 @@ shown below for @value{tramp} to use when connecting. | |||
| 1666 | 1666 | ||
| 1667 | Another way to find the remote path is to use the path assigned to the | 1667 | Another way to find the remote path is to use the path assigned to the |
| 1668 | remote user by the remote host. @value{tramp} does not normally retain | 1668 | remote user by the remote host. @value{tramp} does not normally retain |
| 1669 | this remote path after logging. However, @code{tramp-own-remote-path} | 1669 | this remote path after login. However, @code{tramp-own-remote-path} |
| 1670 | preserves the path value, which can be used to update | 1670 | preserves the path value, which can be used to update |
| 1671 | @code{tramp-remote-path}. | 1671 | @code{tramp-remote-path}. |
| 1672 | 1672 | ||
| 1673 | @lisp | 1673 | @lisp |
| 1674 | (add-to-list 'tramp-remote-path 'tramp-own-remote-path) | 1674 | (add-to-list 'tramp-remote-path 'tramp-own-remote-path) |
| 1675 | @end lisp | 1675 | @end lisp |
| 1676 | |||
| 1677 | @strong{Note} that this works only if your remote @command{/bin/sh} | ||
| 1678 | shell supports the login argument @samp{-l}. | ||
| 1676 | @end defopt | 1679 | @end defopt |
| 1677 | 1680 | ||
| 1678 | When remote search paths are changed, local @value{tramp} caches must | 1681 | When remote search paths are changed, local @value{tramp} caches must |
| @@ -1864,7 +1867,7 @@ install and execute a listener as follows (see @code{tramp-methods}): | |||
| 1864 | @end example | 1867 | @end example |
| 1865 | 1868 | ||
| 1866 | The above command-line syntax has changed with @command{busybox} | 1869 | The above command-line syntax has changed with @command{busybox} |
| 1867 | versions. If @command{nc} refuses the @command{-p} parameter, then | 1870 | versions. If @command{nc} refuses the @samp{-p} parameter, then |
| 1868 | overwrite as follows: | 1871 | overwrite as follows: |
| 1869 | 1872 | ||
| 1870 | @lisp | 1873 | @lisp |
| @@ -1892,9 +1895,9 @@ Applications such as @code{SSHDroid} that run @command{sshd} process | |||
| 1892 | on the Android device can accept any @option{ssh}-based methods | 1895 | on the Android device can accept any @option{ssh}-based methods |
| 1893 | provided these settings are adjusted: | 1896 | provided these settings are adjusted: |
| 1894 | 1897 | ||
| 1895 | @code{sh} must be specified for remote shell since Android devices do | 1898 | @command{sh} must be specified for remote shell since Android devices |
| 1896 | not provide @code{/bin/sh}. @code{sh} will then invoke whatever shell is | 1899 | do not provide @command{/bin/sh}. @command{sh} will then invoke |
| 1897 | installed on the device with this setting: | 1900 | whatever shell is installed on the device with this setting: |
| 1898 | 1901 | ||
| 1899 | @lisp | 1902 | @lisp |
| 1900 | (add-to-list 'tramp-connection-properties | 1903 | (add-to-list 'tramp-connection-properties |
| @@ -2870,9 +2873,9 @@ To test if this is the case, open a remote shell and check if the output | |||
| 2870 | of @command{ls} is in color. | 2873 | of @command{ls} is in color. |
| 2871 | 2874 | ||
| 2872 | To disable @acronym{ANSI} escape sequences from the remote hosts, | 2875 | To disable @acronym{ANSI} escape sequences from the remote hosts, |
| 2873 | disable @option{--color=yes} or @option{--color=auto} in the remote | 2876 | disable @samp{--color=yes} or @samp{--color=auto} in the remote host's |
| 2874 | host's @file{.bashrc} or @file{.profile}. Turn this alias on and off | 2877 | @file{.bashrc} or @file{.profile}. Turn this alias on and off to see |
| 2875 | to see if file name completion works. | 2878 | if file name completion works. |
| 2876 | 2879 | ||
| 2877 | @item | 2880 | @item |
| 2878 | File name completion does not work in directories with large number of | 2881 | File name completion does not work in directories with large number of |
| @@ -2885,7 +2888,7 @@ shell's limit on length of command lines and hang. @value{tramp} uses | |||
| 2885 | globbing. | 2888 | globbing. |
| 2886 | 2889 | ||
| 2887 | To test if globbing hangs, open a shell on the remote host and then | 2890 | To test if globbing hangs, open a shell on the remote host and then |
| 2888 | run @samp{ls -d * ..?* > /dev/null}. | 2891 | run @command{ls -d * ..?* > /dev/null}. |
| 2889 | 2892 | ||
| 2890 | When testing, ensure the remote shell is the same shell | 2893 | When testing, ensure the remote shell is the same shell |
| 2891 | (@command{/bin/sh}, @command{ksh} or @command{bash}), that | 2894 | (@command{/bin/sh}, @command{ksh} or @command{bash}), that |