LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting up X-Win32 Mandrake 9.2 (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-x-win32-mandrake-9-2-a-119964/)

Wags 11-25-2003 08:28 PM

Setting up X-Win32 Mandrake 9.2
 
Hi guys,

I have managed to get mandrake all set up on my machine with samba, firewall and ssh but I'm having difficulty setting up X-win32. I have played around with it for agers and I just cant get it to work. Can someone give me some deadshit instructions of how to do it as I have been trying for agers.

Also how can I put a connect to internet shortcut on the desktop and stop the dam thing reconnecting every time it disconnects.

Thx
Wags

Tinkster 11-25-2003 08:31 PM

What is X-Win32?



Cheers,
Tink

Wags 11-25-2003 08:39 PM

X win 32 allows you to control you linux machine from windows. Its a remote desktop program but instead of sending all the grahics it only sends the commands from the linux X server so it is heaps lighter and runs smoother. I think anyway. Apparently u just have to allow incomming connections in the X server or something like that.

X win 32 is here

http://www.starnet.com/products/

Tinkster 11-25-2003 09:34 PM

OIC ... sorry, I can't help with that one :}

But you could use TightVNC as an alternative
method for remotely accessing Linux from Windows.

Cheers,
Tink

Demonbane 11-25-2003 09:39 PM

X-win32 is just an X server for win32, you need to provide more information, like what you have tried and the results etc.
Basically you only need to have x-win32 running on the windows box, ssh into the linux box(with putty or whatever), make sure DISPLAY variable is set properly (export DISPLAY=<ip or hostname>:0), make sure the permissions are set properly and it should do the trick. Also make sure your firewall isn't in the way, if you're running windows XP, the default firewall will most likely block incoming traffic on port 6000, which is used for X.

Wags 11-25-2003 10:52 PM

I have got a linux machine which I use as a firewall/file server just for fun and a windows machine. I have everything set up like ssh samba internet connection sharing etc. Basically I have tried editing the files by putting in the windows ip address but I didn't know what I was doing just guessing.

What is the name of the file where I have to put (export DISPLAY=<ip or hostname>:0) ??

Usually X win 32 comes up with the connection not being accepted but once I edit the X server config file correctly I think that it shall work.

Demonbane 11-25-2003 11:19 PM

Personally I can't get the ssh client that comes with X-win32 to work properly, so here's exactly how I do it:
Load x-win32, somewhere in the configuration you can add which hosts are allowed to connect, put the hostname/ip of your linux box there.
use putty
http://the.earth.li/~sgtatham/putty/.../x86/putty.exe
to ssh into the linux box, once you get into the shell, type "export DISPLAY=192.168.0.1:0" substitude 192.168.0.1 with the ip of your windows box, or the hostname if the linux box is able to resolve it(hint use /etc/hosts if there's no dns server). You can configure the ssh server to do this automatically, just need to uncomment some options in /etc/ssh/sshd_config, can't remember what they are on top of my head.
Then run your X apps(xedit, konqueror etc) with the command line, inside the SSH session. You can also launch a window manager (startkde, gnome-session) but from my experience X-win32 doesn't handle them very well.

On a side note if you want to remotely "control" the desktop of the linux box then try Tinkster's suggestion, VNC is designed for this purpose.

Wags 11-26-2003 06:28 PM

Demonbane,

Thx for your help I have got it all figured out. The problem was that you have to execute the commands in the ssh prompt that way you tunnel your session through secure shell.


All times are GMT -5. The time now is 11:48 AM.