Re: graphical environment in a text session?

From: Dances With Crows (danSPANceswitTRAPhcrows_at_usa.net)
Date: 08/18/04


Date: 18 Aug 2004 18:21:44 GMT

On Wed, 18 Aug 2004 13:06:09 -0400, Madhusudan Singh staggered into the
Black Sun and said:
> Luis P. Mendes wrote:
>> if I have two computers running Linux, where the server is an
>> uptodate one and the other one is only running in text mode, with no
>> X server installed in it, is it possible to have graphical
>> applications running on this one using the server's X server?

Your question isn't quite clear. I think this is what you meant:

"I have 2 Linux machines, machine1 and machine2. machine1 has X and
some X applications installed; machine2 does not. Can I start an X
application running on machine1 and displaying to machine1:0 from
machine2 after I've logged in via ssh or telnet?" (Don't use telnet;
ssh is much more secure and a lot more convenient.)

> I would imagine not (someone please correct me if I am wrong).
> Exporting display requires that X be running on the client machine at
> least.

Yes, if you want to run an X application on machine1 and have it display
on machine2, an X server must be running on machine2.

But if you merely want to start an X application on machine1 and have it
display on machine1, you can do that. Like so:

(log in to kdm or use startx as user "username" to generate a valid
.Xauthority file)
username@machine2:~$ ssh -x machine1
username@machine1:~$ export DISPLAY=:0
username@machine1:~$ xeyes &

...and xeyes will start up on machine1 and display to machine1, no
problem. If you want to start up an X application and have it continue
after you've logged out of machine1, put "nohup" in front of the
command. HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Re: mail jammed
    ... What's the outgoing SMTP server set to in the server (is ... machine1 has a routable IP and a private IP. ... the outgoing SMTP server settings on machine1's MUAs. ...
    (comp.os.linux.misc)
  • Re: Frontpage & MS SQL Connection Error-Please Help
    ... This error means that the account is unknown on the SQL Server machine. ... suppose I create a user named User1 on computer Machine1. ...
    (microsoft.public.sqlserver.connect)
  • Re: is it possible running X on a linux server without keyboard, mouse or monitor?
    ... I dont know how to xorg.conf to make X run on this server. ... Why don't you connect to it by ssh -X, ... the X clients you start on machine2 have their Display ... which is forwarded to machine1. ...
    (comp.os.linux.x)
  • ASP .NET State Service Issue - Not Replicating state
    ... We are using a web farm of Windows Server 2003 machines (machine1 and ... We are using NLBS to set up the cluster. ... server configured on another windows 2003 ... Then we do successive requests where we get the session state. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Can,t Use display through remote login: help!!
    ... > when i start a session on machine1 by ... > I am able to use xterm at that moment as DISPLAY variableis set properly ... > But from this session if i use rlogin to machine3 ...
    (comp.unix.solaris)