Hello. I found a very nifty additional program for XEmacs (or Emacs) that I thought I need to share this info with you. It is called "TRAMP" and it let you access a REMOTE file (like files in rcas) from LOCAL XEmacs (or Emacs) (like your home machines ) by using ssh. This is very convenient if you use xemacs or emacs in X mode from remote machine. (I am not talking about hardcore terminal-mode emacs or xemacs user here :) ) Since you use your local xemacs (or emacs), there is no more looooooong delay in network to bring X. (It is similar in spirit of root daemon.) Anyhow, I describe basic instruction about how to use it below. 1. Get TRAMP from http://savannah.nongnu.org/projects/tramp 2. Install it according to its instruction. 3. Edit your xemacs (or emacs) initial script. Again, follow its instruction from its manual. But, basically, you need to set following in init.el for xemacs (or something else for emacs) (add-to-list 'load-path "~/(wherever you installed tramp)/tramp-2.0.36/lisp") (require 'tramp) (setq tramp-default-method "scp") 4. you need to make sure that you can login to an remote machine without password. Therefore, you need to use ssh public-private key feature. A. You need to make your own private and public keys. use ssh-keygen (for linux) and puttygen (for windows). I don't know about other platform. ssh-keygen -t dsa (or rsa ) (I don't know the different between dsa and rsa but I use dsa. It seemed dsa has more bits.) B. You need to copy your public key (in linux $HOME/.ssh/id_dsa.pub or id_rsa.pub) to authorized_keys2 file in an remote machine (NOTE: If you want to access rcas, you must copy the key to every gateway machine (rssh01, rssh02, rssh03 and rssh04) since you don't know which you really use.) Now, you should be able to connect to the remote machine without your password. Try it before you go any further. 5. Now, open your xemacs (or emacs) in your local machine to test this feature. (Here is a few example.) A. 1st, the very simple example, say I want to access a file sitting residing in pii8 from xemacs in pii9. When you try to open a file (C-x C-f), your file location as /[pii8]/FileNameInpii8 B. More complex example(It is called multi-hop in this program.) (This is really what I wanted to do!!!) Access a file in rcas0022 from my home. You will type your file location (in your local home xemacs) as /[multi/ssh:username@rssh01.rhic.bnl.gov/ssh:username@rcas0022]/FileNameInRcas0022 . Now, you can use your own xemacs and edit codes in rcas!!!! Hiro _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l@lists.bnl.gov http://lists.bnl.gov/mailman/listinfo/brahms-dev-lReceived on Thu Nov 20 18:52:19 2003
This archive was generated by hypermail 2.1.8 : Thu Nov 20 2003 - 18:52:37 EST