1826242 Members
3051 Online
109692 Solutions
New Discussion

remote log in

 
Stuart Mckiggan
Occasional Advisor

remote log in

hi all!

After getting the telnet sorted im now looking at logging on to the linux machine using remote x loggin, i want to enter the system (can be done) but i want to run startx and run in gooey mode but get the message: fatal server error, server is already active for display 0.

Does anyone have any ideas?

thanks.

stuart
"Heavan Is A Program"
8 REPLIES 8
Kodjo Agbenu
Honored Contributor

Re: remote log in

Hello stuart,

From your remote client machine running X server, you do not need to type startX. You can simply export your DISPLAY and then the server's graphic applications will display on your client's screen.

On client graphical system :

xhost +
telnet

Then on server :

export DISPLAY=:0

To check proper operation, just try "xclock".


Another thing you may want to do is to obtain graphical display from the server to your local client.

This method is completely different from the one described above. It is based on the XDMCP protocol. If you want to learn more about how to configure this, please reply to this message including some additional details :

* from what kind of client machine are you connecting to the linux server ?

* what distribution is running your linux server ?

Good luck.

Kodjo
Learn and explain...
Stuart Mckiggan
Occasional Advisor

Re: remote log in

hi,

im trying to log onto the linux server(running redhat 7.2) with my linux terminal, and run the server gooey from the terminal.

thanks,

stuart
"Heavan Is A Program"
Kodjo Agbenu
Honored Contributor

Re: remote log in

To be able to log on the remote machine's graphical desktop, you have to configure the server side like this :

-> Edit /etc/X11/xdm/xdm-config, change :

DisplayManager.requestPort: 0

into

DisplayManager.requestPort: 177

-> Edit /etc/X11/xdm/Xaccess and make sure the following line is not commented out :

# * #any host can get a login window

Restart the xdm server on the remote machine (warning : it may reset the X environment on the remote machine).


Then on the client side, you can connect two ways :

-> From text console, just type :

X :1 vt08 -query &

To go back to text consoles, type CTRL-ALT-F1...F6.
To go to your original X environment : CTRL-ALT-F7.
To come back to the X connection to the remote machine : CTRL-ALT-F8.


-> From your client's graphical environment, type the same as above, just replacing "X" by "Xnest", which is a X11 encapsulated into X11. This package must be installed on your client system :

Xest :1 vt08 -query &


Good luck.


Kodjo
Learn and explain...
Mark Fenton
Esteemed Contributor

Re: remote log in

and make sure that your firewall isn't blocking requests to the XDMCP port (177).

/var/log/messages should have the info on what's getting blocked by your firewall rules.

hth
Mark
Stuart Mckiggan
Occasional Advisor

Re: remote log in

Hi, thats still not working, the terminal doesnt understand the command X:1 vt08 -query Linux &

or Xest,

the terminal has Xserver installed, Help!

thanks Stuart
"Heavan Is A Program"
Kodjo Agbenu
Honored Contributor

Re: remote log in

Hello Stuart,

This may be a syntax error.

X :1 ...

instead of

X: 1


Other thing : I made a mistake in my previous e-mail. Instead of Xest, read Xnest.

Good luck.

Learn and explain...
Stuart Mckiggan
Occasional Advisor

Re: remote log in

hi,

the linux client still doesnt understand the X or Xnest commands, i have set xhost on both server and client, but when i log on to server ant type xclock i get the error : _X11 TransSocket INETConnect: Cant get address for xterm
Any help would be much appreciated, stuart
"Heavan Is A Program"
Mark Fenton
Esteemed Contributor

Re: remote log in

Kodio's given good pointers.

To check that your terminal has Xnest installed:

$ whereis Xnest
Xnest: /usr/X11R6/bin/Xnest /usr/bin/X11/Xnest
$

From man Xnest, it is necessary to incriment the display number for each instance of Xnest that runs.

To then run applications in the Xnested servers, provide the -display : to the command.

hsh
Mark