aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/tramp.texi33
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 @@
12013-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
12013-02-16 Michael Albinus <michael.albinus@gmx.de> 62013-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
2017When an @command{sshd} process runs on the Android device, like 2017When an @command{sshd} process runs on the Android device, like
2018provided by the @code{SSHDroid} app, any @option{ssh}-based method can 2018provided by the @code{SSHDroid} app, any @option{ssh}-based method can
2019be used. However, this requires some special settings. 2019be used. This requires some special settings.
2020 2020
2021The default shell @code{/bin/sh} does not exist. Instead, you shall 2021The default shell @code{/bin/sh} does not exist. Instead, you shall
2022use just @code{sh}, which invokes the shell installed on the device. 2022use just @code{sh}, which invokes the shell installed on the device.
@@ -2031,23 +2031,50 @@ You can instruct @value{tramp} by this form:
2031with @samp{192.168.0.26} being the IP address of your Android device. 2031with @samp{192.168.0.26} being the IP address of your Android device.
2032 2032
2033The user settings for the @code{$PATH} environment variable must be 2033The user settings for the @code{$PATH} environment variable must be
2034preserved. Add this setting: 2034preserved. 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
2040If the Android device is not @samp{rooted}, you must give the shell a 2044If the Android device is not @samp{rooted}, you must give the shell a
2041writable directory for temporary files. You could use this setting: 2045writable 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
2047Now you shall be able to open a remote connection with @kbd{C-x C-f 2052Now 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}
2049listens on port @samp{2222}. 2054listens on port @samp{2222}.
2050 2055
2056It is also recommended to add a corresponding entry to your
2057@file{~/.ssh/config} for that connection, like
2058
2059@example
2060Host android
2061 HostName 192.168.0.26
2062 User root
2063 Port 2222
2064@end example
2065
2066@noindent
2067In 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
2075You would open the connection with @kbd{C-x C-f @trampfn{ssh, ,
2076android, }} 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