diff options
| author | Michael Albinus | 2013-02-20 15:49:52 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-02-20 15:49:52 +0100 |
| commit | 5079cfefc0fe7152bae4ea175f5679bca42e0cbd (patch) | |
| tree | cfcaf358b7428bf649703586e2d5b1b358422ecc /doc/misc | |
| parent | 3bf1099fe6bd6a17af65d9088817ba31c6fa47f4 (diff) | |
| download | emacs-5079cfefc0fe7152bae4ea175f5679bca42e0cbd.tar.gz emacs-5079cfefc0fe7152bae4ea175f5679bca42e0cbd.zip | |
* tramp.texi (Android shell setup): Improve. Reported by Thierry
Volpiatto <thierry.volpiatto@gmail.com>.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 33 |
2 files changed, 35 insertions, 3 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index d24f2b593d4..41eb17415b7 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-02-20 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Android shell setup): Improve. Reported by Thierry | ||
| 4 | Volpiatto <thierry.volpiatto@gmail.com>. | ||
| 5 | |||
| 1 | 2013-02-16 Michael Albinus <michael.albinus@gmx.de> | 6 | 2013-02-16 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * tramp.texi (Top, Configuration): Insert section `Android shell | 8 | * tramp.texi (Top, Configuration): Insert section `Android shell |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 77a4f632cff..807e6b4db29 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -2016,7 +2016,7 @@ local machine. | |||
| 2016 | 2016 | ||
| 2017 | When an @command{sshd} process runs on the Android device, like | 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 | 2018 | provided by the @code{SSHDroid} app, any @option{ssh}-based method can |
| 2019 | be used. However, this requires some special settings. | 2019 | be used. This requires some special settings. |
| 2020 | 2020 | ||
| 2021 | The default shell @code{/bin/sh} does not exist. Instead, you shall | 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. | 2022 | use just @code{sh}, which invokes the shell installed on the device. |
| @@ -2031,23 +2031,50 @@ You can instruct @value{tramp} by this form: | |||
| 2031 | with @samp{192.168.0.26} being the IP address of your Android device. | 2031 | with @samp{192.168.0.26} being the IP address of your Android device. |
| 2032 | 2032 | ||
| 2033 | The user settings for the @code{$PATH} environment variable must be | 2033 | The user settings for the @code{$PATH} environment variable must be |
| 2034 | preserved. Add this setting: | 2034 | preserved. It has also been reported, that the commands in |
| 2035 | @file{/system/xbin} are better suited than the ones in | ||
| 2036 | @file{/system/bin}. Add these setting: | ||
| 2035 | 2037 | ||
| 2036 | @lisp | 2038 | @lisp |
| 2037 | (add-to-list 'tramp-remote-path 'tramp-own-remote-path) | 2039 | (add-to-list 'tramp-remote-path 'tramp-own-remote-path) |
| 2040 | (add-to-list 'tramp-remote-path "/system/xbin") | ||
| 2038 | @end lisp | 2041 | @end lisp |
| 2039 | 2042 | ||
| 2043 | @noindent | ||
| 2040 | If the Android device is not @samp{rooted}, you must give the shell a | 2044 | 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: | 2045 | writable directory for temporary files: |
| 2042 | 2046 | ||
| 2043 | @lisp | 2047 | @lisp |
| 2044 | (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME") | 2048 | (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME") |
| 2045 | @end lisp | 2049 | @end lisp |
| 2046 | 2050 | ||
| 2051 | @noindent | ||
| 2047 | Now you shall be able to open a remote connection with @kbd{C-x C-f | 2052 | 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} | 2053 | @trampfn{ssh, , 192.168.0.26#2222, }}, given that @command{sshd} |
| 2049 | listens on port @samp{2222}. | 2054 | listens on port @samp{2222}. |
| 2050 | 2055 | ||
| 2056 | It is also recommended to add a corresponding entry to your | ||
| 2057 | @file{~/.ssh/config} for that connection, like | ||
| 2058 | |||
| 2059 | @example | ||
| 2060 | Host android | ||
| 2061 | HostName 192.168.0.26 | ||
| 2062 | User root | ||
| 2063 | Port 2222 | ||
| 2064 | @end example | ||
| 2065 | |||
| 2066 | @noindent | ||
| 2067 | In this case, you must change the setting for the remote shell to | ||
| 2068 | |||
| 2069 | @lisp | ||
| 2070 | (add-to-list 'tramp-connection-properties | ||
| 2071 | (list (regexp-quote "android") "remote-shell" "sh")) | ||
| 2072 | @end lisp | ||
| 2073 | |||
| 2074 | @noindent | ||
| 2075 | You would open the connection with @kbd{C-x C-f @trampfn{ssh, , | ||
| 2076 | android, }} then. | ||
| 2077 | |||
| 2051 | 2078 | ||
| 2052 | @node Auto-save and Backup | 2079 | @node Auto-save and Backup |
| 2053 | @section Auto-save and Backup configuration | 2080 | @section Auto-save and Backup configuration |