diff options
| author | Michael Albinus | 2017-07-10 15:36:23 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-07-10 15:36:23 +0200 |
| commit | 0440c748aaec9b8b32c8cb268f6e24e874fedc75 (patch) | |
| tree | e94812b71a6058aea30156f52a74bd8ff74cb9ad | |
| parent | 273f4bde39af5d87f10fd58f35b666dfa8a996a3 (diff) | |
| download | emacs-0440c748aaec9b8b32c8cb268f6e24e874fedc75.tar.gz emacs-0440c748aaec9b8b32c8cb268f6e24e874fedc75.zip | |
Add Quick Start Guide to Tramp manual
* doc/misc/tramp.texi: Use consequently "@value{tramp}" and
"MS Windows".
(Quick Start Guide): New node.
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.3.3-pre".
| -rw-r--r-- | doc/misc/tramp.texi | 263 | ||||
| -rw-r--r-- | doc/misc/trampver.texi | 2 | ||||
| -rw-r--r-- | lisp/net/trampver.el | 6 |
3 files changed, 208 insertions, 63 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 6209e02ebc5..1b751a01db6 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -43,7 +43,7 @@ copy and modify this GNU manual.'' | |||
| 43 | @c Entries for @command{install-info} to use | 43 | @c Entries for @command{install-info} to use |
| 44 | @dircategory Emacs network features | 44 | @dircategory Emacs network features |
| 45 | @direntry | 45 | @direntry |
| 46 | * TRAMP: (tramp). Transparent Remote Access, Multiple Protocol | 46 | * @value{tramp}: (tramp). Transparent Remote Access, Multiple Protocol |
| 47 | Emacs remote file access via ssh and scp. | 47 | Emacs remote file access via ssh and scp. |
| 48 | @end direntry | 48 | @end direntry |
| 49 | 49 | ||
| @@ -77,8 +77,8 @@ You can find the latest version of this document on the web at | |||
| 77 | @ifhtml | 77 | @ifhtml |
| 78 | The latest release of @value{tramp} is available for | 78 | The latest release of @value{tramp} is available for |
| 79 | @uref{https://ftp.gnu.org/gnu/tramp/, download}, or you may see | 79 | @uref{https://ftp.gnu.org/gnu/tramp/, download}, or you may see |
| 80 | @ref{Obtaining Tramp} for more details, including the Git server | 80 | @ref{Obtaining @value{tramp}} for more details, including the Git |
| 81 | details. | 81 | server details. |
| 82 | 82 | ||
| 83 | @value{tramp} also has a @uref{https://savannah.gnu.org/projects/tramp/, | 83 | @value{tramp} also has a @uref{https://savannah.gnu.org/projects/tramp/, |
| 84 | Savannah Project Page}. | 84 | Savannah Project Page}. |
| @@ -97,11 +97,12 @@ There is a mailing list for @value{tramp}, available at | |||
| 97 | 97 | ||
| 98 | For the end user: | 98 | For the end user: |
| 99 | 99 | ||
| 100 | * Obtaining Tramp:: How to obtain @value{tramp}. | 100 | * Obtaining @value{tramp}:: How to obtain @value{tramp}. |
| 101 | * History:: History of @value{tramp}. | 101 | * History:: History of @value{tramp}. |
| 102 | @ifset installchapter | 102 | @ifset installchapter |
| 103 | * Installation:: Installing @value{tramp} with your Emacs. | 103 | * Installation:: Installing @value{tramp} with your Emacs. |
| 104 | @end ifset | 104 | @end ifset |
| 105 | * Quick Start Guide:: Short introduction how to use @value{tramp}. | ||
| 105 | * Configuration:: Configuring @value{tramp} for use. | 106 | * Configuration:: Configuring @value{tramp} for use. |
| 106 | * Usage:: An overview of the operation of @value{tramp}. | 107 | * Usage:: An overview of the operation of @value{tramp}. |
| 107 | * Bug Reports:: Reporting Bugs and Problems. | 108 | * Bug Reports:: Reporting Bugs and Problems. |
| @@ -192,7 +193,7 @@ and related programs. If these programs can successfully pass | |||
| 192 | more secure alternative to @command{ftp} and other older access | 193 | more secure alternative to @command{ftp} and other older access |
| 193 | methods. | 194 | methods. |
| 194 | 195 | ||
| 195 | @value{tramp} on Windows operating systems is integrated with the | 196 | @value{tramp} on MS Windows operating systems is integrated with the |
| 196 | PuTTY package, and uses the @command{plink} program. | 197 | PuTTY package, and uses the @command{plink} program. |
| 197 | 198 | ||
| 198 | @value{tramp} mostly operates transparently in the background using | 199 | @value{tramp} mostly operates transparently in the background using |
| @@ -207,7 +208,7 @@ benefit of direct integration of @value{tramp} in Emacs. | |||
| 207 | 208 | ||
| 208 | @value{tramp} can transfer files using any number of available host | 209 | @value{tramp} can transfer files using any number of available host |
| 209 | programs for remote files, such as @command{rcp}, @command{scp}, | 210 | programs for remote files, such as @command{rcp}, @command{scp}, |
| 210 | @command{rsync} or (under Windows) @command{pscp}. @value{tramp} | 211 | @command{rsync} or (under MS Windows) @command{pscp}. @value{tramp} |
| 211 | provides easy ways to specify these programs and customize them to | 212 | provides easy ways to specify these programs and customize them to |
| 212 | specific files, hosts, or access methods. | 213 | specific files, hosts, or access methods. |
| 213 | 214 | ||
| @@ -314,9 +315,9 @@ behind the scenes when you open a file with @value{tramp}. | |||
| 314 | 315 | ||
| 315 | 316 | ||
| 316 | @c For the end user | 317 | @c For the end user |
| 317 | @node Obtaining Tramp | 318 | @node Obtaining @value{tramp} |
| 318 | @chapter Obtaining @value{tramp} | 319 | @chapter Obtaining @value{tramp} |
| 319 | @cindex obtaining Tramp | 320 | @cindex obtaining @value{tramp} |
| 320 | 321 | ||
| 321 | @value{tramp} is included as part of Emacs (since Emacs version 22.1). | 322 | @value{tramp} is included as part of Emacs (since Emacs version 22.1). |
| 322 | 323 | ||
| @@ -354,7 +355,7 @@ From behind a firewall: | |||
| 354 | @end example | 355 | @end example |
| 355 | 356 | ||
| 356 | @noindent | 357 | @noindent |
| 357 | Tramp developers: | 358 | @value{tramp} developers: |
| 358 | 359 | ||
| 359 | @example | 360 | @example |
| 360 | ] @strong{git clone login@@git.sv.gnu.org:/srv/git/tramp.git} | 361 | ] @strong{git clone login@@git.sv.gnu.org:/srv/git/tramp.git} |
| @@ -403,7 +404,7 @@ July 2002, @value{tramp} unified file names with Ange FTP@. In July | |||
| 403 | 2004, proxy hosts replaced multi-hop methods. Running commands on | 404 | 2004, proxy hosts replaced multi-hop methods. Running commands on |
| 404 | remote hosts was introduced in December 2005. Support for gateways | 405 | remote hosts was introduced in December 2005. Support for gateways |
| 405 | since April 2007 (and removed in December 2016). GVFS integration | 406 | since April 2007 (and removed in December 2016). GVFS integration |
| 406 | started in February 2009. Remote commands on Windows hosts since | 407 | started in February 2009. Remote commands on MS Windows hosts since |
| 407 | September 2011. Ad-hoc multi-hop methods (with a changed syntax) | 408 | September 2011. Ad-hoc multi-hop methods (with a changed syntax) |
| 408 | re-enabled in November 2011. In November 2012, added Juergen | 409 | re-enabled in November 2011. In November 2012, added Juergen |
| 409 | Hoetzel's @file{tramp-adb.el}. | 410 | Hoetzel's @file{tramp-adb.el}. |
| @@ -418,6 +419,147 @@ XEmacs support was stopped in January 2016. Since March 2017, | |||
| 418 | @end ifset | 419 | @end ifset |
| 419 | 420 | ||
| 420 | 421 | ||
| 422 | @node Quick Start Guide | ||
| 423 | @chapter Short introduction how to use @value{tramp} | ||
| 424 | @cindex quick start guide | ||
| 425 | |||
| 426 | @value{tramp} extends the Emacs file name syntax by a remote | ||
| 427 | component. A remote file name looks always like | ||
| 428 | @file{@trampfn{method,user@@host,/path/to/file}}. | ||
| 429 | |||
| 430 | You can use remote files exactly like ordinary files, that means you | ||
| 431 | could open a file or directory by @kbd{C-x C-f | ||
| 432 | @trampfn{method,user@@host,/path/to/file} @key{RET}}, edit the file, | ||
| 433 | and save it. You can also mix local files and remote files in file | ||
| 434 | operations with two arguments, like @code{copy-file} or | ||
| 435 | @code{rename-file}. And finally, you can run even processes on a | ||
| 436 | remote host, when the buffer you call the process from has a remote | ||
| 437 | @code{default-directory}. | ||
| 438 | |||
| 439 | |||
| 440 | @anchor{Quick Start Guide: File name syntax} | ||
| 441 | @section File name syntax | ||
| 442 | @cindex file name syntax | ||
| 443 | |||
| 444 | Remote file names are prepended by the @code{method}, @code{user} and | ||
| 445 | @code{host} parts. All of them, and also the local file name part, | ||
| 446 | are optional, in case of a missing part a default value is assumed. | ||
| 447 | The default value for an empty local file name part is the remote | ||
| 448 | user's home directory. The shortest remote file name is | ||
| 449 | @file{@trampfn{-,,}}, therefore. The @samp{-} notation for the | ||
| 450 | default host is used for syntactical reasons, @ref{Default Host}. | ||
| 451 | |||
| 452 | The @code{method} part describes the connection method used to reach | ||
| 453 | the remote host, see below. | ||
| 454 | |||
| 455 | The @code{user} part is the user name for accessing the remote host. | ||
| 456 | For the @option{smb} method, this could also require a domain name, in | ||
| 457 | this case it is written as @code{user%domain}. | ||
| 458 | |||
| 459 | The @code{host} part must be a host name which could be resolved on | ||
| 460 | your local host. It could be a short host name, a fully qualified | ||
| 461 | domain name, an IPv4 or IPv6 address, @ref{File name syntax}. Some | ||
| 462 | connection methods support also a notation of the port to be used, in | ||
| 463 | this case it is written as @code{host#port}. | ||
| 464 | |||
| 465 | |||
| 466 | @anchor{Quick Start Guide: @option{ssh} and @option{plink} methods} | ||
| 467 | @section Using @option{ssh} and @option{plink} | ||
| 468 | @cindex method ssh | ||
| 469 | @cindex ssh method | ||
| 470 | @cindex method plink | ||
| 471 | @cindex plink method | ||
| 472 | |||
| 473 | If your local host runs an SSH client, and the remote host runs an SSH | ||
| 474 | server, the most simple remote file name is | ||
| 475 | @file{@trampfn{ssh,user@@host,/path/to/file}}. The remote file name | ||
| 476 | @file{@trampfn{ssh,,}} opens a remote connection to yourself on the | ||
| 477 | local host, and is taken often for testing @value{tramp}. | ||
| 478 | |||
| 479 | On MS Windows, PuTTY is often used as SSH client. Its @command{plink} | ||
| 480 | method can be used there to open a connection to a remote host running | ||
| 481 | an @command{ssh} server: | ||
| 482 | @file{@trampfn{plink,user@@host,/path/to/file}}. | ||
| 483 | |||
| 484 | |||
| 485 | @anchor{Quick Start Guide: @option{su}, @option{sudo} and @option{sg} methods} | ||
| 486 | @section Using @option{su}, @option{sudo} and @option{sg} | ||
| 487 | @cindex method su | ||
| 488 | @cindex su method | ||
| 489 | @cindex method sudo | ||
| 490 | @cindex sudo method | ||
| 491 | @cindex method sg | ||
| 492 | @cindex sg method | ||
| 493 | |||
| 494 | Sometimes, it is necessary to work on your local host under different | ||
| 495 | permissions. For this, you could use the @option{su} or @option{sudo} | ||
| 496 | connection method. Both methods use @samp{root} as default user name | ||
| 497 | and the return value of @code{(system-name)} as default host name. | ||
| 498 | Therefore, it is convenient to open a file as | ||
| 499 | @file{@trampfn{sudo,,/path/to/file}}. | ||
| 500 | |||
| 501 | The method @option{sg} stands for ``switch group''; the changed group | ||
| 502 | must be used here as user name. The default host name is the same. | ||
| 503 | |||
| 504 | |||
| 505 | @anchor{Quick Start Guide: @option{smb} method} | ||
| 506 | @section Using @command{smbclient} | ||
| 507 | @cindex method smb | ||
| 508 | @cindex smb method | ||
| 509 | @cindex ms windows (with smb method) | ||
| 510 | @cindex smbclient | ||
| 511 | |||
| 512 | In order to access a remote MS Windows host or Samba server, the | ||
| 513 | @command{smbclient} client is used. The remote file name syntax is | ||
| 514 | @file{@trampfn{smb,user%domain@@host,/path/to/file}}. The first part | ||
| 515 | of the local file name is the share exported by the remote host, | ||
| 516 | @samp{path} in this example. | ||
| 517 | |||
| 518 | |||
| 519 | @anchor{Quick Start Guide: GVFS-based methods} | ||
| 520 | @section Using GVFS-based methods | ||
| 521 | @cindex methods, gvfs | ||
| 522 | @cindex gvfs based methods | ||
| 523 | @cindex method sftp | ||
| 524 | @cindex sftp method | ||
| 525 | @cindex method afp | ||
| 526 | @cindex afp method | ||
| 527 | @cindex method dav | ||
| 528 | @cindex method davs | ||
| 529 | @cindex dav method | ||
| 530 | @cindex davs method | ||
| 531 | |||
| 532 | On systems, which have installed the virtual file system for the Gnome | ||
| 533 | Desktop (GVFS), its offered methods could be used by @value{tramp}. | ||
| 534 | Examples are @file{@trampfn{sftp,user@@host,/path/to/file}}, | ||
| 535 | @file{@trampfn{afp,user@@host,/path/to/file}} (accessing Apple's AFP | ||
| 536 | file system), @file{@trampfn{dav,user@@host,/path/to/file}} and | ||
| 537 | @file{@trampfn{davs,user@@host,/path/to/file}} (for WebDAV shares). | ||
| 538 | |||
| 539 | |||
| 540 | @anchor{Quick Start Guide: Google Drive} | ||
| 541 | @section Using Google Drive | ||
| 542 | @cindex method gdrive | ||
| 543 | @cindex gdrive method | ||
| 544 | @cindex google drive | ||
| 545 | |||
| 546 | Another GVFS-based method allows to access a Google Drive file system. | ||
| 547 | The file name syntax is here always | ||
| 548 | @file{@trampfn{gdrive,john.doe@@gmail.com,/path/to/file}}. | ||
| 549 | @samp{john.doe@@gmail.com} stands here for your Google Drive account. | ||
| 550 | |||
| 551 | |||
| 552 | @anchor{Quick Start Guide: Android} | ||
| 553 | @section Using Android | ||
| 554 | @cindex method adb | ||
| 555 | @cindex adb method | ||
| 556 | @cindex android | ||
| 557 | |||
| 558 | An Android device, which is connected via USB to your local host, can | ||
| 559 | be accessed via the @command{adb} command. No user or host name is | ||
| 560 | needed. The file name syntax is @file{@trampfn{adb,,/path/to/file}}. | ||
| 561 | |||
| 562 | |||
| 421 | @node Configuration | 563 | @node Configuration |
| 422 | @chapter Configuring @value{tramp} | 564 | @chapter Configuring @value{tramp} |
| 423 | @cindex configuration | 565 | @cindex configuration |
| @@ -610,16 +752,16 @@ continue connecting?''. @value{tramp} cannot handle such questions. | |||
| 610 | Connections will have to be setup where logins can proceed without | 752 | Connections will have to be setup where logins can proceed without |
| 611 | such questions. | 753 | such questions. |
| 612 | 754 | ||
| 613 | @option{sshx} is useful for Windows users when @command{ssh} triggers | 755 | @option{sshx} is useful for MS Windows users when @command{ssh} |
| 614 | an error about allocating a pseudo tty. This happens due to missing | 756 | triggers an error about allocating a pseudo tty. This happens due to |
| 615 | shell prompts that confuses @value{tramp}. | 757 | missing shell prompts that confuses @value{tramp}. |
| 616 | 758 | ||
| 617 | @option{sshx} supports the @samp{-p} argument. | 759 | @option{sshx} supports the @samp{-p} argument. |
| 618 | 760 | ||
| 619 | @item @option{krlogin} | 761 | @item @option{krlogin} |
| 620 | @cindex method krlogin | 762 | @cindex method krlogin |
| 621 | @cindex krlogin method | 763 | @cindex krlogin method |
| 622 | @cindex Kerberos (with krlogin method) | 764 | @cindex kerberos (with krlogin method) |
| 623 | 765 | ||
| 624 | This method is also similar to @option{ssh}. It uses the | 766 | This method is also similar to @option{ssh}. It uses the |
| 625 | @command{krlogin -x} command only for remote host login. | 767 | @command{krlogin -x} command only for remote host login. |
| @@ -627,7 +769,7 @@ This method is also similar to @option{ssh}. It uses the | |||
| 627 | @item @option{ksu} | 769 | @item @option{ksu} |
| 628 | @cindex method ksu | 770 | @cindex method ksu |
| 629 | @cindex ksu method | 771 | @cindex ksu method |
| 630 | @cindex Kerberos (with ksu method) | 772 | @cindex kerberos (with ksu method) |
| 631 | 773 | ||
| 632 | This is another method from the Kerberos suite. It behaves like @option{su}. | 774 | This is another method from the Kerberos suite. It behaves like @option{su}. |
| 633 | 775 | ||
| @@ -635,7 +777,7 @@ This is another method from the Kerberos suite. It behaves like @option{su}. | |||
| 635 | @cindex method plink | 777 | @cindex method plink |
| 636 | @cindex plink method | 778 | @cindex plink method |
| 637 | 779 | ||
| 638 | @option{plink} method is for Windows users with the PuTTY | 780 | @option{plink} method is for MS Windows users with the PuTTY |
| 639 | implementation of SSH@. It uses @samp{plink -ssh} to log in to the | 781 | implementation of SSH@. It uses @samp{plink -ssh} to log in to the |
| 640 | remote host. | 782 | remote host. |
| 641 | 783 | ||
| @@ -648,9 +790,9 @@ session. | |||
| 648 | @cindex method plinkx | 790 | @cindex method plinkx |
| 649 | @cindex plinkx method | 791 | @cindex plinkx method |
| 650 | 792 | ||
| 651 | Another method using PuTTY on Windows with session names instead of | 793 | Another method using PuTTY on MS Windows with session names instead of |
| 652 | host names. @option{plinkx} calls @samp{plink -load @var{session} -t}. | 794 | host names. @option{plinkx} calls @samp{plink -load @var{session} |
| 653 | User names and port numbers must be defined in the session. | 795 | -t}. User names and port numbers must be defined in the session. |
| 654 | 796 | ||
| 655 | Check the @samp{Share SSH connections if possible} control for that | 797 | Check the @samp{Share SSH connections if possible} control for that |
| 656 | session. | 798 | session. |
| @@ -730,9 +872,9 @@ This method supports the @samp{-p} argument. | |||
| 730 | in performance to @option{scp}. @option{scpx} uses @samp{ssh -t -t | 872 | in performance to @option{scp}. @option{scpx} uses @samp{ssh -t -t |
| 731 | @var{host} -l @var{user} /bin/sh} to open a connection. | 873 | @var{host} -l @var{user} /bin/sh} to open a connection. |
| 732 | 874 | ||
| 733 | @option{scpx} is useful for Windows users when @command{ssh} triggers | 875 | @option{scpx} is useful for MS Windows users when @command{ssh} |
| 734 | an error about allocating a pseudo tty. This happens due to missing | 876 | triggers an error about allocating a pseudo tty. This happens due to |
| 735 | shell prompts that confuses @value{tramp}. | 877 | missing shell prompts that confuses @value{tramp}. |
| 736 | 878 | ||
| 737 | This method supports the @samp{-p} argument. | 879 | This method supports the @samp{-p} argument. |
| 738 | 880 | ||
| @@ -742,17 +884,17 @@ This method supports the @samp{-p} argument. | |||
| 742 | @cindex pscp method | 884 | @cindex pscp method |
| 743 | @cindex pscp (with pscp method) | 885 | @cindex pscp (with pscp method) |
| 744 | @cindex plink (with pscp method) | 886 | @cindex plink (with pscp method) |
| 745 | @cindex PuTTY (with pscp method) | 887 | @cindex putty (with pscp method) |
| 746 | @cindex method psftp | 888 | @cindex method psftp |
| 747 | @cindex psftp method | 889 | @cindex psftp method |
| 748 | @cindex pscp (with psftp method) | 890 | @cindex pscp (with psftp method) |
| 749 | @cindex plink (with psftp method) | 891 | @cindex plink (with psftp method) |
| 750 | @cindex PuTTY (with psftp method) | 892 | @cindex putty (with psftp method) |
| 751 | 893 | ||
| 752 | These methods are similar to @option{scp} or @option{sftp}, but they | 894 | These methods are similar to @option{scp} or @option{sftp}, but they |
| 753 | use the @command{plink} command to connect to the remote host, and | 895 | use the @command{plink} command to connect to the remote host, and |
| 754 | they use @command{pscp} or @command{psftp} for transferring the files. | 896 | they use @command{pscp} or @command{psftp} for transferring the files. |
| 755 | These programs are part of PuTTY, an SSH implementation for Windows. | 897 | These programs are part of PuTTY, an SSH implementation for MS Windows. |
| 756 | 898 | ||
| 757 | Check the @samp{Share SSH connections if possible} control for that | 899 | Check the @samp{Share SSH connections if possible} control for that |
| 758 | session. | 900 | session. |
| @@ -805,6 +947,8 @@ capable of servicing requests from @value{tramp}. | |||
| 805 | @item @option{smb} | 947 | @item @option{smb} |
| 806 | @cindex method smb | 948 | @cindex method smb |
| 807 | @cindex smb method | 949 | @cindex smb method |
| 950 | @cindex ms windows (with smb method) | ||
| 951 | @cindex smbclient | ||
| 808 | 952 | ||
| 809 | This non-native @value{tramp} method connects via the Server Message | 953 | This non-native @value{tramp} method connects via the Server Message |
| 810 | Block (SMB) networking protocol to hosts running file servers that are | 954 | Block (SMB) networking protocol to hosts running file servers that are |
| @@ -831,15 +975,16 @@ handling}. | |||
| 831 | 975 | ||
| 832 | To accommodate user name/domain name syntax required by MS Windows | 976 | To accommodate user name/domain name syntax required by MS Windows |
| 833 | authorization, @value{tramp} provides for an extended syntax in | 977 | authorization, @value{tramp} provides for an extended syntax in |
| 834 | @code{user%domain} format (where user is user name, @code{%} is the | 978 | @code{user%domain} format (where @code{user} is the user name, |
| 835 | percent symbol, and domain is the windows domain name). An example: | 979 | @code{%} is the percent symbol, and @code{domain} is the MS Windows |
| 980 | domain name). An example: | ||
| 836 | 981 | ||
| 837 | @example | 982 | @example |
| 838 | @trampfn{smb,daniel%BIZARRE@@melancholia,/daniel$$/.emacs} | 983 | @trampfn{smb,daniel%BIZARRE@@melancholia,/daniel$$/.emacs} |
| 839 | @end example | 984 | @end example |
| 840 | 985 | ||
| 841 | where user @code{daniel} connects as a domain user to the SMB host | 986 | where user @code{daniel} connects as a domain user to the SMB host |
| 842 | @code{melancholia} in the windows domain @code{BIZARRE} to edit | 987 | @code{melancholia} in the MS Windows domain @code{BIZARRE} to edit |
| 843 | @file{.emacs} located in the home directory (share @code{daniel$}). | 988 | @file{.emacs} located in the home directory (share @code{daniel$}). |
| 844 | 989 | ||
| 845 | Alternatively, for local WINS users (as opposed to domain users), | 990 | Alternatively, for local WINS users (as opposed to domain users), |
| @@ -876,6 +1021,7 @@ can. | |||
| 876 | @item @option{adb} | 1021 | @item @option{adb} |
| 877 | @cindex method adb | 1022 | @cindex method adb |
| 878 | @cindex adb method | 1023 | @cindex adb method |
| 1024 | @cindex android (with adb method) | ||
| 879 | 1025 | ||
| 880 | This method uses Android Debug Bridge program for accessing Android | 1026 | This method uses Android Debug Bridge program for accessing Android |
| 881 | devices. The Android Debug Bridge must be installed locally for | 1027 | devices. The Android Debug Bridge must be installed locally for |
| @@ -949,7 +1095,7 @@ but with SSL encryption. Both methods support the port numbers. | |||
| 949 | @item @option{gdrive} | 1095 | @item @option{gdrive} |
| 950 | @cindex method gdrive | 1096 | @cindex method gdrive |
| 951 | @cindex gdrive method | 1097 | @cindex gdrive method |
| 952 | @cindex Google Drive | 1098 | @cindex google drive |
| 953 | 1099 | ||
| 954 | Via the @option{gdrive} method it is possible to access your Google | 1100 | Via the @option{gdrive} method it is possible to access your Google |
| 955 | Drive online storage. User and host name of the remote file name are | 1101 | Drive online storage. User and host name of the remote file name are |
| @@ -981,8 +1127,8 @@ that for security reasons refuse @command{ssh} connections. | |||
| 981 | @cindex method synce | 1127 | @cindex method synce |
| 982 | @cindex synce method | 1128 | @cindex synce method |
| 983 | 1129 | ||
| 984 | @option{synce} method allows connecting to Windows Mobile devices. It | 1130 | @option{synce} method allows connecting to MS Windows Mobile devices. |
| 985 | uses GVFS for mounting remote files and directories via FUSE and | 1131 | It uses GVFS for mounting remote files and directories via FUSE and |
| 986 | requires the SYNCE-GVFS plugin. | 1132 | requires the SYNCE-GVFS plugin. |
| 987 | 1133 | ||
| 988 | @end table | 1134 | @end table |
| @@ -1070,7 +1216,7 @@ access and it has the most reasonable security protocols, use | |||
| 1070 | @end example | 1216 | @end example |
| 1071 | 1217 | ||
| 1072 | If @option{ssh} is unavailable for whatever reason, look for other | 1218 | If @option{ssh} is unavailable for whatever reason, look for other |
| 1073 | obvious options. For Windows, try the @option{plink} method. For | 1219 | obvious options. For MS Windows, try the @option{plink} method. For |
| 1074 | Kerberos, try @option{krlogin}. | 1220 | Kerberos, try @option{krlogin}. |
| 1075 | 1221 | ||
| 1076 | For editing local files as @option{su} or @option{sudo} methods, try | 1222 | For editing local files as @option{su} or @option{sudo} methods, try |
| @@ -1289,8 +1435,8 @@ restricted shell: | |||
| 1289 | 1435 | ||
| 1290 | @node Firewalls | 1436 | @node Firewalls |
| 1291 | @section Passing firewalls | 1437 | @section Passing firewalls |
| 1292 | @cindex HTTP tunnel | 1438 | @cindex http tunnel |
| 1293 | @cindex proxy hosts, HTTP tunnel | 1439 | @cindex proxy hosts, http tunnel |
| 1294 | 1440 | ||
| 1295 | Sometimes, it is not possible to reach a remote host directly. A | 1441 | Sometimes, it is not possible to reach a remote host directly. A |
| 1296 | firewall might be in the way, which could be passed via a proxy | 1442 | firewall might be in the way, which could be passed via a proxy |
| @@ -1746,8 +1892,8 @@ Similar localization may be necessary for handling wrong password | |||
| 1746 | prompts, for which @value{tramp} uses @option{tramp-wrong-passwd-regexp}. | 1892 | prompts, for which @value{tramp} uses @option{tramp-wrong-passwd-regexp}. |
| 1747 | 1893 | ||
| 1748 | @item @command{tset} and other questions | 1894 | @item @command{tset} and other questions |
| 1749 | @cindex Unix command tset | 1895 | @cindex unix command tset |
| 1750 | @cindex tset Unix command | 1896 | @cindex tset unix command |
| 1751 | @vindex tramp-terminal-type | 1897 | @vindex tramp-terminal-type |
| 1752 | 1898 | ||
| 1753 | To suppress inappropriate prompts for terminal type, @value{tramp} | 1899 | To suppress inappropriate prompts for terminal type, @value{tramp} |
| @@ -1847,7 +1993,7 @@ Then re-set the prompt string in @file{~/.emacs_SHELLNAME} as follows: | |||
| 1847 | 1993 | ||
| 1848 | @example | 1994 | @example |
| 1849 | @group | 1995 | @group |
| 1850 | # Reset the prompt for remote Tramp shells. | 1996 | # Reset the prompt for remote @value{tramp} shells. |
| 1851 | if [ "$@{INSIDE_EMACS/*tramp*/tramp@}" == "tramp" ] ; then | 1997 | if [ "$@{INSIDE_EMACS/*tramp*/tramp@}" == "tramp" ] ; then |
| 1852 | PS1="[\u@@\h \w]$ " | 1998 | PS1="[\u@@\h \w]$ " |
| 1853 | fi | 1999 | fi |
| @@ -1859,8 +2005,8 @@ fi | |||
| 1859 | @end ifinfo | 2005 | @end ifinfo |
| 1860 | 2006 | ||
| 1861 | @item @command{busybox} / @command{nc} | 2007 | @item @command{busybox} / @command{nc} |
| 1862 | @cindex Unix command nc | 2008 | @cindex unix command nc |
| 1863 | @cindex nc Unix command | 2009 | @cindex nc unix command |
| 1864 | 2010 | ||
| 1865 | @value{tramp}'s @option{nc} method uses the @command{nc} command to | 2011 | @value{tramp}'s @option{nc} method uses the @command{nc} command to |
| 1866 | install and execute a listener as follows (see @code{tramp-methods}): | 2012 | install and execute a listener as follows (see @code{tramp-methods}): |
| @@ -1891,7 +2037,7 @@ where @samp{192.168.0.1} is the remote host IP address | |||
| 1891 | 2037 | ||
| 1892 | @node Android shell setup | 2038 | @node Android shell setup |
| 1893 | @section Android shell setup hints | 2039 | @section Android shell setup hints |
| 1894 | @cindex android shell setup | 2040 | @cindex android shell setup for ssh |
| 1895 | 2041 | ||
| 1896 | @value{tramp} uses the @option{adb} method to access Android devices. | 2042 | @value{tramp} uses the @option{adb} method to access Android devices. |
| 1897 | Android devices provide a restricted shell access through an USB | 2043 | Android devices provide a restricted shell access through an USB |
| @@ -2072,12 +2218,12 @@ to direct all auto saves to that location. | |||
| 2072 | 2218 | ||
| 2073 | @node Windows setup hints | 2219 | @node Windows setup hints |
| 2074 | @section Issues with Cygwin ssh | 2220 | @section Issues with Cygwin ssh |
| 2075 | @cindex Cygwin, issues | 2221 | @cindex cygwin, issues |
| 2076 | 2222 | ||
| 2077 | This section is incomplete. Please share your solutions. | 2223 | This section is incomplete. Please share your solutions. |
| 2078 | 2224 | ||
| 2079 | @cindex method sshx with Cygwin | 2225 | @cindex method sshx with cygwin |
| 2080 | @cindex sshx method with Cygwin | 2226 | @cindex sshx method with cygwin |
| 2081 | 2227 | ||
| 2082 | Cygwin's @command{ssh} works only with a Cygwin version of Emacs. To | 2228 | Cygwin's @command{ssh} works only with a Cygwin version of Emacs. To |
| 2083 | check for compatibility: type @kbd{M-x eshell}, and start @kbd{ssh | 2229 | check for compatibility: type @kbd{M-x eshell}, and start @kbd{ssh |
| @@ -2091,34 +2237,34 @@ Some older versions of Cygwin's @command{ssh} work with the | |||
| 2091 | @option{sshx} access method. Consult Cygwin's FAQ at | 2237 | @option{sshx} access method. Consult Cygwin's FAQ at |
| 2092 | @uref{https://cygwin.com/faq/} for details. | 2238 | @uref{https://cygwin.com/faq/} for details. |
| 2093 | 2239 | ||
| 2094 | @cindex Cygwin and fakecygpty | 2240 | @cindex cygwin and fakecygpty |
| 2095 | @cindex fakecygpty and Cygwin | 2241 | @cindex fakecygpty and cygwin |
| 2096 | 2242 | ||
| 2097 | On @uref{https://www.emacswiki.org/emacs/SshWithNTEmacs, the Emacs | 2243 | On @uref{https://www.emacswiki.org/emacs/SshWithNTEmacs, the Emacs |
| 2098 | Wiki} it is explained how to use the helper program @code{fakecygpty} | 2244 | Wiki} it is explained how to use the helper program @code{fakecygpty} |
| 2099 | to fix this problem. | 2245 | to fix this problem. |
| 2100 | 2246 | ||
| 2101 | @cindex method scpx with Cygwin | 2247 | @cindex method scpx with cygwin |
| 2102 | @cindex scpx method with Cygwin | 2248 | @cindex scpx method with cygwin |
| 2103 | 2249 | ||
| 2104 | When using the @option{scpx} access method, Emacs may call | 2250 | When using the @option{scpx} access method, Emacs may call |
| 2105 | @command{scp} with Windows file naming, such as @code{c:/foo}. But | 2251 | @command{scp} with MS Windows file naming, such as @code{c:/foo}. But |
| 2106 | the version of @command{scp} that is installed with Cygwin does not | 2252 | the version of @command{scp} that is installed with Cygwin does not |
| 2107 | know about Windows file naming, which causes it to incorrectly look | 2253 | know about MS Windows file naming, which causes it to incorrectly look |
| 2108 | for a host named @code{c}. | 2254 | for a host named @code{c}. |
| 2109 | 2255 | ||
| 2110 | A workaround: write a wrapper script for @option{scp} to convert | 2256 | A workaround: write a wrapper script for @option{scp} to convert |
| 2111 | Windows file names to Cygwin file names. | 2257 | Windows file names to Cygwin file names. |
| 2112 | 2258 | ||
| 2113 | @cindex Cygwin and ssh-agent | 2259 | @cindex cygwin and ssh-agent |
| 2114 | @cindex SSH_AUTH_SOCK and Emacs on Windows | 2260 | @cindex SSH_AUTH_SOCK and emacs on ms windows |
| 2115 | 2261 | ||
| 2116 | When using the @command{ssh-agent} on Windows for password-less | 2262 | When using the @command{ssh-agent} on MS Windows for password-less |
| 2117 | interaction, @option{ssh} methods depend on the environment variable | 2263 | interaction, @option{ssh} methods depend on the environment variable |
| 2118 | @env{SSH_AUTH_SOCK}. But this variable is not set when Emacs is | 2264 | @env{SSH_AUTH_SOCK}. But this variable is not set when Emacs is |
| 2119 | started from a Desktop shortcut and authentication fails. | 2265 | started from a Desktop shortcut and authentication fails. |
| 2120 | 2266 | ||
| 2121 | One workaround is to use a Windows based SSH Agent, such as | 2267 | One workaround is to use an MS Windows based SSH Agent, such as |
| 2122 | Pageant. It is part of the Putty Suite of tools. | 2268 | Pageant. It is part of the Putty Suite of tools. |
| 2123 | 2269 | ||
| 2124 | The fallback is to start Emacs from a shell. | 2270 | The fallback is to start Emacs from a shell. |
| @@ -2716,11 +2862,11 @@ Arguments of the program to be debugged must be literal, can take | |||
| 2716 | relative or absolute paths, but not remote paths. | 2862 | relative or absolute paths, but not remote paths. |
| 2717 | 2863 | ||
| 2718 | 2864 | ||
| 2719 | @subsection Running remote processes on Windows hosts | 2865 | @subsection Running remote processes on MS Windows hosts |
| 2720 | @cindex winexe | 2866 | @cindex winexe |
| 2721 | @cindex powershell | 2867 | @cindex powershell |
| 2722 | 2868 | ||
| 2723 | @command{winexe} runs processes on a remote Windows host, and | 2869 | @command{winexe} runs processes on a remote MS Windows host, and |
| 2724 | @value{tramp} can use it for @code{process-file} and | 2870 | @value{tramp} can use it for @code{process-file} and |
| 2725 | @code{start-file-process}. | 2871 | @code{start-file-process}. |
| 2726 | 2872 | ||
| @@ -2730,7 +2876,7 @@ processes triggered from @value{tramp}. | |||
| 2730 | 2876 | ||
| 2731 | @option{explicit-shell-file-name} and @option{explicit-*-args} have to | 2877 | @option{explicit-shell-file-name} and @option{explicit-*-args} have to |
| 2732 | be set properly so @kbd{M-x shell} can open a proper remote shell on a | 2878 | be set properly so @kbd{M-x shell} can open a proper remote shell on a |
| 2733 | Windows host. To open @command{cmd}, set it as follows: | 2879 | MS Windows host. To open @command{cmd}, set it as follows: |
| 2734 | 2880 | ||
| 2735 | @lisp | 2881 | @lisp |
| 2736 | @group | 2882 | @group |
| @@ -3283,7 +3429,7 @@ Redefine another key sequence in Emacs for @kbd{C-x C-f}: | |||
| 3283 | (interactive) | 3429 | (interactive) |
| 3284 | (find-file | 3430 | (find-file |
| 3285 | (read-file-name | 3431 | (read-file-name |
| 3286 | "Find Tramp file: " | 3432 | "Find @value{tramp} file: " |
| 3287 | "@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}")))) | 3433 | "@trampfn{ssh,news@@news.my.domain,/opt/news/etc/}")))) |
| 3288 | @end group | 3434 | @end group |
| 3289 | @end lisp | 3435 | @end lisp |
| @@ -3353,7 +3499,7 @@ The minibuffer expands for further editing. | |||
| 3353 | 3499 | ||
| 3354 | @item Use bookmarks: | 3500 | @item Use bookmarks: |
| 3355 | 3501 | ||
| 3356 | Use bookmarks to save Tramp file names. | 3502 | Use bookmarks to save @value{tramp} file names. |
| 3357 | @ifinfo | 3503 | @ifinfo |
| 3358 | @pxref{Bookmarks, , , emacs}. | 3504 | @pxref{Bookmarks, , , emacs}. |
| 3359 | @end ifinfo | 3505 | @end ifinfo |
| @@ -3736,4 +3882,3 @@ strings from being written to @file{*trace-output*}. | |||
| 3736 | @c * Explain how tramp.el works in principle: open a shell on a remote | 3882 | @c * Explain how tramp.el works in principle: open a shell on a remote |
| 3737 | @c host and then send commands to it. | 3883 | @c host and then send commands to it. |
| 3738 | @c * Consistent small or capitalized words especially in menus. | 3884 | @c * Consistent small or capitalized words especially in menus. |
| 3739 | @c * Make a unique declaration of @trampfn. | ||
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi index 05b577da005..5d9dcc5635d 100644 --- a/doc/misc/trampver.texi +++ b/doc/misc/trampver.texi | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | @c In the Tramp GIT, the version number is auto-frobbed from | 8 | @c In the Tramp GIT, the version number is auto-frobbed from |
| 9 | @c configure.ac, so you should edit that file and run | 9 | @c configure.ac, so you should edit that file and run |
| 10 | @c "autoconf && ./configure" to change the version number. | 10 | @c "autoconf && ./configure" to change the version number. |
| 11 | @set trampver 2.3.2 | 11 | @set trampver 2.3.3-pre |
| 12 | 12 | ||
| 13 | @c Other flags from configuration | 13 | @c Other flags from configuration |
| 14 | @set instprefix /usr/local | 14 | @set instprefix /usr/local |
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el index 4be487e1f4f..527630d747c 100644 --- a/lisp/net/trampver.el +++ b/lisp/net/trampver.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Maintainer: Michael Albinus <michael.albinus@gmx.de> | 7 | ;; Maintainer: Michael Albinus <michael.albinus@gmx.de> |
| 8 | ;; Keywords: comm, processes | 8 | ;; Keywords: comm, processes |
| 9 | ;; Package: tramp | 9 | ;; Package: tramp |
| 10 | ;; Version: 2.3.2 | 10 | ;; Version: 2.3.3-pre |
| 11 | 11 | ||
| 12 | ;; This file is part of GNU Emacs. | 12 | ;; This file is part of GNU Emacs. |
| 13 | 13 | ||
| @@ -33,7 +33,7 @@ | |||
| 33 | ;; should be changed only there. | 33 | ;; should be changed only there. |
| 34 | 34 | ||
| 35 | ;;;###tramp-autoload | 35 | ;;;###tramp-autoload |
| 36 | (defconst tramp-version "2.3.2" | 36 | (defconst tramp-version "2.3.3-pre" |
| 37 | "This version of Tramp.") | 37 | "This version of Tramp.") |
| 38 | 38 | ||
| 39 | ;;;###tramp-autoload | 39 | ;;;###tramp-autoload |
| @@ -55,7 +55,7 @@ | |||
| 55 | ;; Check for Emacs version. | 55 | ;; Check for Emacs version. |
| 56 | (let ((x (if (>= emacs-major-version 24) | 56 | (let ((x (if (>= emacs-major-version 24) |
| 57 | "ok" | 57 | "ok" |
| 58 | (format "Tramp 2.3.2 is not fit for %s" | 58 | (format "Tramp 2.3.3-pre is not fit for %s" |
| 59 | (when (string-match "^.*$" (emacs-version)) | 59 | (when (string-match "^.*$" (emacs-version)) |
| 60 | (match-string 0 (emacs-version))))))) | 60 | (match-string 0 (emacs-version))))))) |
| 61 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) | 61 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) |