In order to reduce bandwidth, but maintain convenience, I have two configurations for X on the linux computer: one for remote connections and one for local. The trick is to have the machine determine which one its supposed to be using.
While originally I did this so I could connect from my windows computer at work, I have used similar techniques for my girlfriend's (and her daughter's) EEE.
On the Remote machine, create a script in the user's home folder called "RemoteX":
Quote:
# kicker --config ~/.config/remotekickerrc
xfce4-panel
|
On the Local machine, create a batch file... wherever you want:
Quote:
set HOMEIP=75.153.178.208
xming -clipboard -multiwindow
c:\progfile\putty\plink.exe -C -X -ssh %HOMEIP% ~/RemoteX
exit
|
Now, when you run the batch file on the local windows computer, it will start "xming". I use multiwindow mode because it I like the environment to look fully integrated. Clipboard sharing is turned on because that is just handy. This should create an X icon in the system tray.
The next thing that happens is "plink" is called to establish the connection, and call the script in the users folder.
The user is prompted to log in (in the batch window), and "RemoteX" is run.
RemoteX (running on the Remote machine), contains a single instruction: start the xfce4-panel. Since the locally I load up a full KDE desktop, I can configure xfce4 to use fewer resources, and not affect my local KDE experience. Also, I do not load a full desktop environment, only the panel (aka toolbar). Again, very little is loaded, but I have a handy menu button that sits in the top right corner of my screen.
Comments
^^^^^^^^
I have seen a lot of people suggest running xterm, which they then use to start things. I do not like this technique because it intimidates non-technical users. Currently, I have my girlfriend and her daughter connecting remotely to my computer, using their laptops. Both are intimidated by the command line, but by giving them a "start" button, I find they get the best of both worlds. I've even noticed that her daughter tends to use the browser on the linux computer (konquerer) for downloading large files (her wireless is not as fast as the physical cable).
Having the separate panel for the remote computer is nice. I also have a different colour scheme pre-configured for the linux machine. It acts as a signal to the user that something is different. I have had a couple of instances where someone was browsing and couldn't figure out why they couldn't save to their local computer (alright... so that was me). The different colour scheme reminds me that I have to think a little differently.
Regarding integration, I have found that I have a command shell stuck open on my computer the whole time my connection is open. This is something I would like to do away with. I imagine some combination of pageant, and a windows version of "sh" will do the trick (it exists, I use it at work, but I don't know where it comes from):
sh -c "/progfile/putty/plink.exe -C -X -ssh %HOMEIP% ~/remotex"
I have a windows version of a linux command shell, so my batch file creates a new, hidden shell, that is running plink. The only problem with this is that "RemoteX" is not terminating cleanly so when I click "quit" on my panel, it does not close the connection as well. If I don't have the shell open, I'm going to have a bunch of connection hanging open in the background. I have also experimented with tortoisePlink (from the tortoiseSVN project), that did not go well and I kind of abandon it, maybe you will have better luck.
In the RemoteX script, you may have noticed a commented out line referring to "kicker". Kicker is KDE's task bar. Kicker takes a command line parameter to use a different config file than the default. So I have created a configuration file called "remotekickerrc". It is a stripped down configuration of Kicker that runs even faster. I keep waffling between the two setups, each have their advantages/disadvantages, but it really comes down to personal preference.
There are more secure setups, and faster configurations, but for the home user/newb, this may be a nice way to get started. I find that I just want to get it up and working and then I can tweak it (from remote locations). I hope people find this useful, I know I pull up this thread up everytime I "cat zero" my drive.