Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5079cfef
Commit
5079cfef
authored
Feb 20, 2013
by
Michael Albinus
Browse files
* tramp.texi (Android shell setup): Improve. Reported by Thierry
Volpiatto <thierry.volpiatto@gmail.com>.
parent
3bf1099f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
+35
-3
doc/misc/ChangeLog
doc/misc/ChangeLog
+5
-0
doc/misc/tramp.texi
doc/misc/tramp.texi
+30
-3
No files found.
doc/misc/ChangeLog
View file @
5079cfef
2013-02-20 Michael Albinus <michael.albinus@gmx.de>
* tramp.texi (Android shell setup): Improve. Reported by Thierry
Volpiatto <thierry.volpiatto@gmail.com>.
2013-02-16 Michael Albinus <michael.albinus@gmx.de>
* tramp.texi (Top, Configuration): Insert section `Android shell
...
...
doc/misc/tramp.texi
View file @
5079cfef
...
...
@@ -2016,7 +2016,7 @@ local machine.
When an @command
{
sshd
}
process runs on the Android device, like
provided by the @code
{
SSHDroid
}
app, any @option
{
ssh
}
-
based method can
be used.
However, t
his requires some special settings.
be used.
T
his requires some special settings.
The default shell @code
{
/
bin
/
sh
}
does not exist. Instead, you shall
use just @code
{
sh
}
, which invokes the shell installed on the device.
...
...
@@ -2031,23 +2031,50 @@ You can instruct @value{tramp} by this form:
with @samp
{
192
.
168
.
0
.
26
}
being the IP address of your Android device.
The user settings for the @code
{
$PATH
}
environment variable must be
preserved. Add this setting:
preserved. It has also been reported, that the commands in
@file
{
/
system
/
xbin
}
are better suited than the ones in
@file
{
/
system
/
bin
}
. Add these setting:
@lisp
(
add
-
to
-
list 'tramp
-
remote
-
path 'tramp
-
own
-
remote
-
path
)
(
add
-
to
-
list 'tramp
-
remote
-
path "
/
system
/
xbin"
)
@end lisp
@noindent
If the Android device is not @samp
{
rooted
}
, you must give the shell a
writable directory for temporary files
. You could use this setting
:
writable directory for temporary files:
@lisp
(
add
-
to
-
list 'tramp
-
remote
-
process
-
environment "TMPDIR
=
$HOME"
)
@end lisp
@noindent
Now you shall be able to open a remote connection with @kbd
{
C
-
x C
-
f
@trampfn
{
ssh, ,
192
.
168
.
0
.
26
#
2222
,
}}
, given that @command
{
sshd
}
listens on port @samp
{
2222
}
.
It is also recommended to add a corresponding entry to your
@file
{
~
/
.ssh
/
config
}
for that connection, like
@example
Host android
HostName
192
.
168
.
0
.
26
User root
Port
2222
@end example
@noindent
In this case, you must change the setting for the remote shell to
@lisp
(
add
-
to
-
list 'tramp
-
connection
-
properties
(
list
(
regexp
-
quote "android"
)
"remote
-
shell" "sh"
))
@end lisp
@noindent
You would open the connection with @kbd
{
C
-
x C
-
f @trampfn
{
ssh, ,
android,
}}
then.
@node Auto
-
save and Backup
@section Auto
-
save and Backup configuration
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment