diff options
| author | Michael Albinus | 2013-02-16 18:38:37 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-02-16 18:38:37 +0100 |
| commit | 2150b4715f3c8963a13535e6b6085dc040396d53 (patch) | |
| tree | 3891199c96d82e17d9d9423052a092c6257dfe47 | |
| parent | a9bc03e28e99ca44a7e009de25fa7084aec4c60c (diff) | |
| download | emacs-2150b4715f3c8963a13535e6b6085dc040396d53.tar.gz emacs-2150b4715f3c8963a13535e6b6085dc040396d53.zip | |
* tramp.texi (Top, Configuration): Insert section `Android shell
setup' in menu.
(Android shell setup): New section.
(Connection types, Default Method)
(Frequently Asked Questions): Mention "scp" instead of "scpc".
(External methods): Remove "scpc" and "rsyncc" entries.
(Frequently Asked Questions): Remove entry about ControlPersist.
| -rw-r--r-- | doc/misc/ChangeLog | 10 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 120 |
2 files changed, 64 insertions, 66 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index dd3c0ccd1e2..d24f2b593d4 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2013-02-16 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Top, Configuration): Insert section `Android shell | ||
| 4 | setup' in menu. | ||
| 5 | (Android shell setup): New section. | ||
| 6 | (Connection types, Default Method) | ||
| 7 | (Frequently Asked Questions): Mention "scp" instead of "scpc". | ||
| 8 | (External methods): Remove "scpc" and "rsyncc" entries. | ||
| 9 | (Frequently Asked Questions): Remove entry about ControlPersist. | ||
| 10 | |||
| 1 | 2013-02-13 Glenn Morris <rgm@gnu.org> | 11 | 2013-02-13 Glenn Morris <rgm@gnu.org> |
| 2 | 12 | ||
| 3 | * message.texi (News Headers): Don't mention yow any more. | 13 | * message.texi (News Headers): Don't mention yow any more. |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index cfa3f84bda1..64b5ea40f24 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -188,8 +188,9 @@ Configuring @value{tramp} for use | |||
| 188 | * Connection caching:: Reusing connection related information. | 188 | * Connection caching:: Reusing connection related information. |
| 189 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. | 189 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. |
| 190 | * Remote shell setup:: Remote shell setup hints. | 190 | * Remote shell setup:: Remote shell setup hints. |
| 191 | * Windows setup hints:: Issues with Cygwin ssh. | 191 | * Android shell setup:: Android shell setup hints. |
| 192 | * Auto-save and Backup:: Auto-save and Backup. | 192 | * Auto-save and Backup:: Auto-save and Backup. |
| 193 | * Windows setup hints:: Issues with Cygwin ssh. | ||
| 193 | 194 | ||
| 194 | Using @value{tramp} | 195 | Using @value{tramp} |
| 195 | 196 | ||
| @@ -515,6 +516,7 @@ Method}. | |||
| 515 | * Connection caching:: Reusing connection related information. | 516 | * Connection caching:: Reusing connection related information. |
| 516 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. | 517 | * Remote Programs:: How @value{tramp} finds and uses programs on the remote machine. |
| 517 | * Remote shell setup:: Remote shell setup hints. | 518 | * Remote shell setup:: Remote shell setup hints. |
| 519 | * Android shell setup:: Android shell setup hints. | ||
| 518 | * Auto-save and Backup:: Auto-save and Backup. | 520 | * Auto-save and Backup:: Auto-save and Backup. |
| 519 | * Windows setup hints:: Issues with Cygwin ssh. | 521 | * Windows setup hints:: Issues with Cygwin ssh. |
| 520 | @end menu | 522 | @end menu |
| @@ -557,9 +559,10 @@ startup may drown out the improvement in file transfer times. | |||
| 557 | External methods should be configured such a way that they don't | 559 | External methods should be configured such a way that they don't |
| 558 | require a password (with @command{ssh-agent}, or such alike). Modern | 560 | require a password (with @command{ssh-agent}, or such alike). Modern |
| 559 | @command{scp} implementations offer options to reuse existing | 561 | @command{scp} implementations offer options to reuse existing |
| 560 | @command{ssh} connections, see method @command{scpc}. If it isn't | 562 | @command{ssh} connections, which will be enabled by default if |
| 561 | possible, you should consider @ref{Password handling}, otherwise you | 563 | available. If it isn't possible, you should consider @ref{Password |
| 562 | will be prompted for a password every copy action. | 564 | handling}, otherwise you will be prompted for a password every copy |
| 565 | action. | ||
| 563 | 566 | ||
| 564 | 567 | ||
| 565 | @node Inline methods | 568 | @node Inline methods |
| @@ -867,51 +870,6 @@ to not print any shell prompt, which confuses @value{tramp} mightily. | |||
| 867 | This method supports the @samp{-p} argument. | 870 | This method supports the @samp{-p} argument. |
| 868 | 871 | ||
| 869 | 872 | ||
| 870 | @item @option{scpc}---@command{ssh} and @command{scp} | ||
| 871 | @cindex method scpc | ||
| 872 | @cindex scpc method | ||
| 873 | @cindex scp (with scpc method) | ||
| 874 | @cindex ssh (with scpc method) | ||
| 875 | |||
| 876 | Newer versions of @option{ssh} (for example OpenSSH 4) offer an option | ||
| 877 | @option{ControlMaster}. This allows @option{scp} to reuse an existing | ||
| 878 | @option{ssh} channel, which increases performance. | ||
| 879 | |||
| 880 | Before you use this method, you should check whether your @option{ssh} | ||
| 881 | implementation supports this option. Try from the command line | ||
| 882 | |||
| 883 | @example | ||
| 884 | ssh localhost -o ControlMaster=yes /bin/true | ||
| 885 | @end example | ||
| 886 | |||
| 887 | If that command succeeds silently, then you can use @option{scpc}; but | ||
| 888 | if it fails like | ||
| 889 | |||
| 890 | @example | ||
| 891 | command-line: line 0: Bad configuration option: ControlMaster | ||
| 892 | @end example | ||
| 893 | |||
| 894 | then you cannot use it. Note, that the option | ||
| 895 | @option{ControlPersist}, if it is supported by your @option{ssh} | ||
| 896 | version, must be set to @option{no}. | ||
| 897 | |||
| 898 | This method supports the @samp{-p} argument. | ||
| 899 | |||
| 900 | |||
| 901 | @item @option{rsyncc}---@command{ssh} and @command{rsync} | ||
| 902 | @cindex method rsyncc | ||
| 903 | @cindex rsyncc method | ||
| 904 | @cindex rsync (with rsyncc method) | ||
| 905 | @cindex ssh (with rsyncc method) | ||
| 906 | |||
| 907 | Like the @option{scpc} method, @option{rsyncc} improves the underlying | ||
| 908 | @command{ssh} connection by the option @option{ControlMaster}. This | ||
| 909 | allows @command{rsync} to reuse an existing @command{ssh} channel, | ||
| 910 | which increases performance. | ||
| 911 | |||
| 912 | This method supports the @samp{-p} argument. | ||
| 913 | |||
| 914 | |||
| 915 | @item @option{pscp}---@command{plink} and @command{pscp} | 873 | @item @option{pscp}---@command{plink} and @command{pscp} |
| 916 | @cindex method pscp | 874 | @cindex method pscp |
| 917 | @cindex pscp method | 875 | @cindex pscp method |
| @@ -1240,7 +1198,7 @@ user, see the @option{su} or @option{sudo} methods. They offer | |||
| 1240 | shortened syntax for the @samp{root} account, like | 1198 | shortened syntax for the @samp{root} account, like |
| 1241 | @file{@trampfn{su, , , /etc/motd}}. | 1199 | @file{@trampfn{su, , , /etc/motd}}. |
| 1242 | 1200 | ||
| 1243 | People who edit large files may want to consider @option{scpc} instead | 1201 | People who edit large files may want to consider @option{scp} instead |
| 1244 | of @option{ssh}, or @option{pscp} instead of @option{plink}. These | 1202 | of @option{ssh}, or @option{pscp} instead of @option{plink}. These |
| 1245 | external methods are faster than inline methods for large files. | 1203 | external methods are faster than inline methods for large files. |
| 1246 | Note, however, that external methods suffer from some limitations. | 1204 | Note, however, that external methods suffer from some limitations. |
| @@ -1343,7 +1301,7 @@ Like with methods and users, you can also specify different default | |||
| 1343 | hosts for certain method/user combinations via the variable | 1301 | hosts for certain method/user combinations via the variable |
| 1344 | @code{tramp-default-host-alist}. Usually, this isn't necessary, | 1302 | @code{tramp-default-host-alist}. Usually, this isn't necessary, |
| 1345 | because @code{tramp-default-host} should be sufficient. For some | 1303 | because @code{tramp-default-host} should be sufficient. For some |
| 1346 | methods, like @code{adb}, that default value must be overwritten, | 1304 | methods, like @option{adb}, that default value must be overwritten, |
| 1347 | which is already the initial value of @code{tramp-default-host-alist}. | 1305 | which is already the initial value of @code{tramp-default-host-alist}. |
| 1348 | 1306 | ||
| 1349 | @noindent | 1307 | @noindent |
| @@ -2047,6 +2005,50 @@ fi | |||
| 2047 | @end table | 2005 | @end table |
| 2048 | 2006 | ||
| 2049 | 2007 | ||
| 2008 | @node Android shell setup | ||
| 2009 | @section Android shell setup hints | ||
| 2010 | @cindex android shell setup | ||
| 2011 | |||
| 2012 | Android devices use a restricted shell. They can be accessed via the | ||
| 2013 | @option{adb} method. However, this restricts the access to a USB | ||
| 2014 | connection, and it requires the installation of the Android SDK on the | ||
| 2015 | local machine. | ||
| 2016 | |||
| 2017 | When an @command{sshd} process runs on the Android device, like | ||
| 2018 | provided by the @code{SSHDroid} app, any @option{ssh}-based method can | ||
| 2019 | be used. However, this requires some special settings. | ||
| 2020 | |||
| 2021 | The default shell @code{/bin/sh} does not exist. Instead, you shall | ||
| 2022 | use just @code{sh}, which invokes the shell installed on the device. | ||
| 2023 | You can instruct @value{tramp} by this form: | ||
| 2024 | |||
| 2025 | @lisp | ||
| 2026 | (add-to-list 'tramp-connection-properties | ||
| 2027 | (list (regexp-quote "192.168.0.26") "remote-shell" "sh")) | ||
| 2028 | @end lisp | ||
| 2029 | |||
| 2030 | @noindent | ||
| 2031 | with @samp{192.168.0.26} being the IP address of your Android device. | ||
| 2032 | |||
| 2033 | The user settings for the @code{$PATH} environment valiable must be | ||
| 2034 | preserved. Add this setting: | ||
| 2035 | |||
| 2036 | @lisp | ||
| 2037 | (add-to-list 'tramp-remote-path 'tramp-own-remote-path) | ||
| 2038 | @end lisp | ||
| 2039 | |||
| 2040 | If the Android device is not @samp{rooted}, you must give the shell a | ||
| 2041 | writable directory for temporary files. You could use this setting: | ||
| 2042 | |||
| 2043 | @lisp | ||
| 2044 | (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME") | ||
| 2045 | @end lisp | ||
| 2046 | |||
| 2047 | Now you shall be able to open a remote connection with @kbd{C-x C-f | ||
| 2048 | @trampfn{ssh, , 192.168.0.26#2222, }}, given that @command{sshd} | ||
| 2049 | listens on port @samp{2222}. | ||
| 2050 | |||
| 2051 | |||
| 2050 | @node Auto-save and Backup | 2052 | @node Auto-save and Backup |
| 2051 | @section Auto-save and Backup configuration | 2053 | @section Auto-save and Backup configuration |
| 2052 | @cindex auto-save | 2054 | @cindex auto-save |
| @@ -2942,7 +2944,7 @@ host as well as the time needed to perform the operations there count. | |||
| 2942 | In order to speed up @value{tramp}, one could either try to avoid some | 2944 | In order to speed up @value{tramp}, one could either try to avoid some |
| 2943 | of the operations, or one could try to improve their performance. | 2945 | of the operations, or one could try to improve their performance. |
| 2944 | 2946 | ||
| 2945 | Use an external method, like @option{scpc}. | 2947 | Use an external method, like @option{scp}. |
| 2946 | 2948 | ||
| 2947 | Use caching. This is already enabled by default. Information about | 2949 | Use caching. This is already enabled by default. Information about |
| 2948 | the remote host as well as the remote files are cached for reuse. The | 2950 | the remote host as well as the remote files are cached for reuse. The |
| @@ -3068,20 +3070,6 @@ Host * | |||
| 3068 | 3070 | ||
| 3069 | 3071 | ||
| 3070 | @item | 3072 | @item |
| 3071 | How can I use @samp{ControlPersist}? | ||
| 3072 | |||
| 3073 | When @samp{ControlPersist} is set to @samp{yes}, the @option{scpc} | ||
| 3074 | method does not work. You can use @option{scpx} instead with the | ||
| 3075 | following settings in @file{~/.ssh/config}: | ||
| 3076 | |||
| 3077 | @example | ||
| 3078 | Host * | ||
| 3079 | ControlMaster auto | ||
| 3080 | ControlPersist yes | ||
| 3081 | @end example | ||
| 3082 | |||
| 3083 | |||
| 3084 | @item | ||
| 3085 | File name completion does not work with @value{tramp} | 3073 | File name completion does not work with @value{tramp} |
| 3086 | 3074 | ||
| 3087 | When you log in to the remote machine, do you see the output of | 3075 | When you log in to the remote machine, do you see the output of |