As part of my new eternal commute, I have started working a bit from home -- an hour here, an hour there. One of the annoying aspects of this is managing email. If I check company email from home, I either see the same messages twice (once from home and once at work), or I can choose to have the messages deleted from the server as soon as I delete / move them at home. Neither approach is ideal.
My new approach is to have a single mail client located at work. I fire up Cygwin on my Windows box at home, invoke ssh, and interact with Mozilla remotely using X Windows. (Actually, I'm fibbing a little. So far, I have a Linux box at work running my mail client, and I'm just shelling in from my Windows / Cygwin box across the office.) But, it's a neat trick, and it will greatly simplify any future work from home.
Here are the steps that I took, in case anyone is interested in trying something similar.
You want to start an X server on your home machine when you're at work? I don't think it works that way. What are you trying to do?
Re:Hm?
cbrooks on 2002-12-12T20:43:32
I'm not sure which question to answer first. Let's start with this one:
>What are you trying to do?
The goal is to be able to run a single mail client seamlessly from home or from work. That is, I want to have my inbox, sent mail, drafts, etc. all centralized in one place. Imagine, for example, that I used pine to manage my email, and imagine that the server on which that pine account lived was located 2000 miles away from both my work and my home. To handle my mail, I would simply shell into the remote server, and it wouldn't matter whether I do it from work or from home. I want to do the same thing in this scenario, except the mail client that I want to use happens to run on X Windows.
>You want to start an X server on your home machine when you're at work?
Well no, not exactly. Let me start by defining my terms: My office computer is the computer on which I will run my master mail client. My home computer is the computer that I will use while working from home. (I don't want to use the terms "client" and "server", since technically, the X Windows server resides on the home machine in this example, and that detail makes the discussion unnecessarily confusing.) One of the really slick things about X Windows is that you can forward it to a remote machine (over ssh, no less!). So, using the instructions from my previous message, I can fire up cygwin at home, open an encrypted connection to my computer at work, and work directly on my master mail client.Re:Hm?
cbrooks on 2002-12-18T13:49:05
Perhaps I replied too quickly to this.
Yes, I was misunderstanding a part of the process. Essentially I was firing up a window manager (fvwm2) and then trying to forward a second window manager (sawfish -- RedHat 7.3's default window manager) onto fvwm2 by running "startx". What I need to do is run sawfish on my home machine, and then forward mozilla.
That may, (or may not?) have been the point you were making.;-) Re:Hm?
chromatic on 2002-12-18T17:45:14
Yeah, that sounds like the point I was making.
:) If you start X on your work machine and just fire up an XTerm, you can log in to your home machine and run sawfish just as any other X client. ( sawfish &
should do it --startx
does a bit too much.)
Just giving you some other options so you don't have to rely on getting X forwarding working just to check mail. (for example if you visit a friend on vacation and they just have windows 98 and AOL, you just need to grab a win ssh client like putty to log in manage your mail)