Networking Forums

Networking Forums > Computer Networking > Linux Networking > X11 and SSH

Reply
 
 
Daniel Camps
Guest
Posts: n/a

 
      12-06-2004, 06:16 PM
I have in my LAN an SSH server, I ssh this server from a client, this
client is running fedora core, and xwindows (gnome), then I open a
terminal to do the ssh and I want to open a xsession in the remote
machine.
In the sshd_config file in the server machine, I have the option
"Xforwarding yes". But when I run "startx" in the server machine from
the client I receive the following error:

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

Is it possible to run remote Xwindows if I am running Xwindows in the
client machine ?


Thanks a lot !
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a

 
      12-06-2004, 06:36 PM
Daniel Camps wrote:

> In the sshd_config file in the server machine, I have the option
> "Xforwarding yes".


The purpose of this is to allow an X client (like Firefox or The GIMP)
running on the remote machine to connect to an X server (like X.org or
XFree) running on the machine the ssh client was run from.

> But when I run "startx" in the server machine from the client


Why do you want to do this? There might be a way, but there is quite likely
a better solution to your problem.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Matt
Guest
Posts: n/a

 
      12-06-2004, 07:00 PM
Daniel Camps wrote:
> I have in my LAN an SSH server, I ssh this server from a client, this
> client is running fedora core, and xwindows (gnome), then I open a
> terminal to do the ssh and I want to open a xsession in the remote
> machine.
> In the sshd_config file in the server machine, I have the option
> "Xforwarding yes". But when I run "startx" in the server machine from
> the client I receive the following error:


Do you want an entire X session remotely ? Or just a specific app ? If
you want an X desktop, you may want to try with VNC :
http://www.realvnc.com/documentation.html

>
> Fatal server error:
> Server is already active for display 0
> If this server is no longer running, remove /tmp/.X0-lock
> and start again.


Because you already have X running on DISPLAY:0.

>
> Is it possible to run remote Xwindows if I am running Xwindows in the
> client machine ?
>


Yes...
Good documentation on this subject here :

http://www.faqs.org/docs/Linux-mini/Remote-X-Apps.html


--
- Matt -
 
Reply With Quote
 
danicamps81@yahoo.com
Guest
Posts: n/a

 
      12-06-2004, 07:39 PM

Daniel Camps wrote:
> I have in my LAN an SSH server, I ssh this server from a client, this
> client is running fedora core, and xwindows (gnome), then I open a
> terminal to do the ssh and I want to open a xsession in the remote
> machine.
> In the sshd_config file in the server machine, I have the option
> "Xforwarding yes". But when I run "startx" in the server machine from
> the client I receive the following error:
>
> Fatal server error:
> Server is already active for display 0
> If this server is no longer running, remove /tmp/.X0-lock
> and start again.
>
> Is it possible to run remote Xwindows if I am running Xwindows in the
> client machine ?
>
>
> Thanks a lot !


 
Reply With Quote
 
Villy Kruse
Guest
Posts: n/a

 
      12-07-2004, 07:23 AM
On Mon, 06 Dec 2004 20:00:00 GMT,
Matt <(E-Mail Removed)> wrote:


> Daniel Camps wrote:
>> I have in my LAN an SSH server, I ssh this server from a client, this
>> client is running fedora core, and xwindows (gnome), then I open a
>> terminal to do the ssh and I want to open a xsession in the remote
>> machine.
>> In the sshd_config file in the server machine, I have the option
>> "Xforwarding yes". But when I run "startx" in the server machine from
>> the client I receive the following error:

>
> Do you want an entire X session remotely ? Or just a specific app ? If
> you want an X desktop, you may want to try with VNC :
> http://www.realvnc.com/documentation.html
>



Or enable the chooser on the remote system and run

X -indirect remotehostname

This will give you a menu of hosts to connect to. For security
reasons the chooser is disabled by default on meny linux distributions
and remote connection is also disabled. The way to enable this depends
on which display manager you are using.

Villy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11