Web Hosting Talk







View Full Version : need help please: remote X


admin0
09-20-2002, 01:31 AM
Hi.

One of my client is in in Indonesia and his dedicated redhat 7.3 server is in USA. He wants to install Oracle9i in the server, and since it needs to be installed via X interface, how can I deploy/run X from the US server to the local computer running Windows?

if anyone knows of an working alternative, please help.

all help highly appretiated...


:homer:

Mdot
09-20-2002, 02:59 AM
Probably you can do so, install linux with X on your local machine, then read doc how to run X on remote linux machine (not that hard) and then run from local machine with $DISPLAY=your-server-in-us.com:0

Regards,
Miha.

priyadi
09-20-2002, 04:47 AM
Tell him/her to use SSH with X11 forwarding enabled on both client and server. Make sure he is running an X server on the client side such as Exceed or XWin32. SSH will configure the correct environment on the remote side, so he doesn't need to set DISPLAY environment variable. Then execute the installation executable as usual.

admin0
09-20-2002, 11:21 AM
Hi.

seeing the complication, he passed it to me to see if I can help.. and this is the current situation.

I downloaded xWin 5.4 and I also have secure shell from ssh.com and the server has SSH running.

I have X11 forwarding enabled in the server as well as my SSH client.

Now what ? i was unable to find any SSH option on Xwin.


.. just help me run X on my win and I will take care of oracle installation myself.

-- does it works on dialup too ?
-- i am doing it from a dedicated IP..

:homer:

priyadi
09-20-2002, 01:46 PM
No, there should be no SSH option on your X server. The X server just waits for X connection.

Try this:
- run SSH server on the server, enable X11 forwarding
- run X server on the client
- run SSH client on the client, connect to the server with X11 forwarding enabled
- execute the oracle installation binary on the SSH shell

If it doesn't work, try fiddling your X server configuration, find the option that makes the X server accept connection from anywhere (comparable to xhost + on XFree86).

If that still doesn't work, try another combination of software, I would personally use OpenSSH on the server and PuTTY on the client.

It it still refuses to work, it might be easier to install any latest Linux distribution. They got everything you need installed by default.

admin0
09-21-2002, 12:35 AM
Hi.

Server is running SSH with X forwarding enabled.

server is running X and is accepting connections from anywhere.
xhost reports that the ACL is cleared and the server will accept connection from anywhere.

Win2000 has Xwin5.4 installed as well as SSH Secure Shell client from ssh.com with X11 forwarding option.

on Xwin, i tried via rsh and rexec, but it says connection refused..

Do i need portmap on the server ? where in redhat 7.3 can I check the logs for X connection and why it is denied ?


:homer:

priyadi
09-21-2002, 12:53 AM
Originally posted by admin0

on Xwin, i tried via rsh and rexec, but it says connection refused..


rsh and rexec ports are probably disabled, and they should be disabled, they are insecure. Instead of using rsh/rexec, use the SSH client. You do not use XWin to execute the installation program, you do it from the SSH client.


Do i need portmap on the server ? where in redhat 7.3 can I check the logs for X connection and why it is denied ?


You have the X server running on the Win2K box, not on the redhat server, so you won't see any X connection denied message on the redhat box.

admin0
09-21-2002, 01:57 AM
Hi.

Thank you everyone for your support. It worked for me.

Here is the detail howto:

1.
redhat 7.3 was a standard install without X, so i downloaded and installed the following packages: [all from http://rpmfind.net]

glide3-
xfree86-base-fonts-
xfree86-4.2.0-8
gnuplot- [tools to test]
xfree86-tools- [tools to test]

rpm -ivh <packages as shows in the above order>

2.
go to www.starnet.com and download
Xwin5.4 from + FSecure SSH Client 5.1 build 25 [12MB total]

install xWin and SSH client in your windows Client. [install SSH Client First]

On Config, select SSH, give your username/password for the remote Host.

start the session. If you are on a dialup [like me :D ], it takes a few second for the terminal to appear.

to find out if it is a X terminal or a regular terminal do

xeyes ENTER [after a few seconds, the eyes will appear]
xcalc ENTER

gnuplot ENTER
gnuplot > plot sin(x)
-- a sin curve with colors will appear
exit

GREAT !!


I am now proceeding with Oracle 9i application server install :D


:homer: