Re: Emacs-over-ssh?
While we're on the subject of meeting ideas, http://wiki.gnhlug.org/twiki2/bin/view/Organizational/MeetingIdeas is a good place to put them. I've added screen, VNC and the other remote GUI system I've heard about lately, NX. On Apr 29, 2006, at 2:00 PM, James R. Van Zandt wrote: It would also be nice to hear about VNC, which I think lets you do similar things with an X session. It struck me as useful, but more trouble to set up than screen, so I've stuck with the latter. Ted Roche Ted Roche Associates, LLC http://www.tedroche.com ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
Paul Lussier [EMAIL PROTECTED] wrote: I much prefer running emacs within a shell system on the remote system under screen. If for some reason the connection between the 2 systems is broken, I don't lose anything on the remote system at all. I agree screen is very useful. I start long jobs that way, so I can reattach later (from a different machine, or after booting into a different OS). One annoyance: when I use it with Emacs, I keep forgetting that screen takes over ^A. Ted Roche [EMAIL PROTECTED] wrote: Using screen sounds like a great presentation for the group! (Hint, hint!) It would also be nice to hear about VNC, which I think lets you do similar things with an X session. It struck me as useful, but more trouble to set up than screen, so I've stuck with the latter. - Jim Van Zandt ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
I agree screen is very useful. I really loved Screen back in the days of dialup, but it's great when accessing multiple servers from a lame desktop. PuTTY /or OpenSSH + screen lets me have manage servers sessions sanely, from anywhere. And I don't even need Screen on all servers, just my favorites. On my old commandline dialup ISP, I have aliases to start my newsreader and email reader in new screen sessions, which will either create a new screen set or add a new session to the existing set. alias elm='screen elm' alias trn=screen trn $TRN_FLAGS It's amazing how often an ancient but simpled tool like screen shows up on NewsForge's My Sysadmin Toolkit Top 10 lists, a wonderful on-going series. [http://www.newsforge.com/search.pl?query=my+sysadmin+toolbox] I start long jobs that way, so I can reattach later (from a different machine, or after booting into a different OS). Or after having a dropped connection, as happened in the bad old days of dialup and happens in WiFi once in a while. Or folding the laptop and maybe taking it someplace else, as ought to happen at supper time ... screen can let you go home for supper even if a job is still running, if you think ahead -- or ALWAYS use it! One annoyance: when I use it with Emacs, I keep forgetting that screen takes over ^A. Not just real Emacs, but if using Emacs commandline edit mode (set -o emacs). '^A a' works as a pass-through ^A. Usually a couple incidents of this convinces me to toggle to 'set -o vi'. -- Bill [EMAIL PROTECTED] [EMAIL PROTECTED] ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
Using screen sounds like a great presentation for the group! (Hint, hint!) On Apr 26, 2006, at 10:08 PM, Paul Lussier wrote: When I go to work tomorrow, there will be an xterm already open on my desktop already ssh'ed into my home system with that same screen session already attached to. If for some reason the firewall at work resets my connection, my desktop at work gets the plug yanked by the cleaning people, or a backhoe takes out some fiber somewhere, I'll be able to ssh back into my system and re-attach to the screen session like nothing ever happened Ted Roche Ted Roche Associates, LLC http://www.tedroche.com ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
Ted Roche wrote: Using screen sounds like a great presentation for the group! (Hint, hint!) Speaking as someone who loves screen, but fears and loathes its manpage, I'm with you! How's about it, Paul? -K P.S. Re: the original question, thanks to every who answered; tramp did the trick perfectly... On Apr 26, 2006, at 10:08 PM, Paul Lussier wrote: When I go to work tomorrow, there will be an xterm already open on my desktop already ssh'ed into my home system with that same screen session already attached to. If for some reason the firewall at work resets my connection, my desktop at work gets the plug yanked by the cleaning people, or a backhoe takes out some fiber somewhere, I'll be able to ssh back into my system and re-attach to the screen session like nothing ever happened Ted Roche Ted Roche Associates, LLC http://www.tedroche.com ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
On 4/26/06, Ken D'Ambrosio [EMAIL PROTECTED] wrote: I -know- that there's a way to edit a file locally, and then have it be put in place on a remote system; I've used FTP, but that's now officially frowned on (being plaintext and all). So I'd like to use ssh or scp or what-have-you, but, while I'm sure that there's an accepted mechanism for doing this, I remain ignorant. How do I make it so? Thanks! -Ken This is probably overkill (but awfully darn convenient when editing many remote files). shfs ( http://shfs.sf.net ) and fuse sshfs ( http://fuse.sf.net/sshfs.html ) allow mounting remote filesystems using only ssh. Of the two, I prefer shfs since it allows following remote symlinks with the -stable option. -- Tom ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
Ken D'Ambrosio [EMAIL PROTECTED] writes: Ted Roche wrote: Using screen sounds like a great presentation for the group! (Hint, hint!) Speaking as someone who loves screen, but fears and loathes its manpage, I'm with you! How's about it, Paul? I'd love to, however, as I mentioned privately to Ted, the problem is getting to Nashua in something approximating the definition of timely. I take the train into Cambridge and leave there about 16:40. This gets me home at 18:00. It's then another hour to get to Nashua, at which point, if I'm really lucky, it's before 7:15. But that's without seeing my wife, kids, or eating dinner. Nothing personal, but y'all are not as much fun as my kids :) And you don't want me giving a presentation on an empty stomach :) and *PLEASE* don't anyone suggest that I just fill it with beer, that's really not a presentation I'd want pictures of circulating ! -- Seeya, Paul ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
On Wed, 2006-04-26 at 12:34 -0400, Ken D'Ambrosio wrote: I -know- that there's a way to edit a file locally, and then have it be put in place on a remote system; I've used FTP, but that's now officially frowned on (being plaintext and all). So I'd like to use ssh or scp or what-have-you, but, while I'm sure that there's an accepted mechanism for doing this, I remain ignorant. How do I make it so? tramp? http://www.gnu.org/software/tramp/ ('apt-get install tramp' on Debian/Ubuntu takes care of everything for Emacs versions 22) Once installed, [C-x C-f] /[EMAIL PROTECTED]:/path/to/file does exactly what you want. ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
See http://www.emacswiki.org/cgi-bin/wiki/TrampMode Ken D'Ambrosio wrote: I -know- that there's a way to edit a file locally, and then have it be put in place on a remote system; I've used FTP, but that's now officially frowned on (being plaintext and all). So I'd like to use ssh or scp or what-have-you, but, while I'm sure that there's an accepted mechanism for doing this, I remain ignorant. How do I make it so? Thanks! -Ken ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
On Wednesday 26 April 2006 12:34 pm, Ken D'Ambrosio wrote: I -know- that there's a way to edit a file locally, and then have it be put in place on a remote system; I've used FTP, but that's now officially frowned on (being plaintext and all). So I'd like to use ssh or scp or what-have-you, but, while I'm sure that there's an accepted mechanism for doing this, I remain ignorant. How do I make it so? Ken I do this very routinely. The first step with ssh is to make sure that you enable X tunneling. ssh -x remote-host Then any X based utility you run from that session on remote-host will show up on your local system. I am currently logged in to an Itanium system in the lab and I am running Xemacs. I also am running a system through a Citrix server through exceed from my Linux system here even through a corporate proxy server. While my system here is SuSE 10.0, when I log into the Citrix server it presents me with a Putty icon that is fed through Exceed (a Windows X server). -- Jerry Feldman [EMAIL PROTECTED] Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
Ken D'Ambrosio [EMAIL PROTECTED] writes: I -know- that there's a way to edit a file locally, and then have it be put in place on a remote system; I've used FTP, but that's now officially frowned on (being plaintext and all). So I'd like to use ssh or scp or what-have-you, but, while I'm sure that there's an accepted mechanism for doing this, I remain ignorant. How do I make it so? You want tramp mode. Google it, or look on the emacswiki.org site. -- Seeya, Paul ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
Re: Emacs-over-ssh?
Jerry Feldman [EMAIL PROTECTED] writes: I do this very routinely. The first step with ssh is to make sure that you enable X tunneling. ssh -x remote-host Then any X based utility you run from that session on remote-host will show up on your local system. That's not what he's asking for. He wants to, from emacs running on his *local* system, compose/edit a file, save it locally, then also write it out to a remote system from *within* the exisitng emacs session. For this, you want tramp. I am currently logged in to an Itanium system in the lab and I am running Xemacs. I also am running a system through a Citrix server through exceed from my Linux system here even through a corporate proxy server. While my system here is SuSE 10.0, when I log into the Citrix server it presents me with a Putty icon that is fed through Exceed (a Windows X server). In most cases, I find doing this rather slow, problematic, and risky. I much prefer running emacs within a shell system on the remote system under screen. If for some reason the connection between the 2 systems is broken, I don't lose anything on the remote system at all. I routinely (more like 24/7) run my emacs sessions within screen this way. This also has the major advantage that I can connect to the same editing session from *anywhere* with almost no loss of performance. The emacs session I'm responding to this e-mail with is running on my system in my home office under screen. Currently I'm down stairs on my Mac ssh'ed into my system upstairs. When I go to work tomorrow, there will be an xterm already open on my desktop already ssh'ed into my home system with that same screen session already attached to. If for some reason the firewall at work resets my connection, my desktop at work gets the plug yanked by the cleaning people, or a backhoe takes out some fiber somewhere, I'll be able to ssh back into my system and re-attach to the screen session like nothing ever happened. The really cool thing is, at work, I'm connecting to my home screen session from within a local screen session. Which means if I'm in the lab on a system with no X capability, I can ssh into my work desktop and connect to my local screen session and check my home e-mail with no loss of performance. But I digress :) -- Seeya, Paul running elscreen.el under emacs running within screen running within screen ___ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss