LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Are you suppose to be able to run X remotely? (https://www.linuxquestions.org/questions/suse-opensuse-60/are-you-suppose-to-be-able-to-run-x-remotely-321157/)

abefroman 05-07-2005 09:20 PM

Are you suppose to be able to run X remotely?
 
Are you suppose to be able to run X remotely?

I get the following message:
linux:~ # X

This is a pre-release version of XFree86, and is not supported in any
way. Bugs may be reported to XFree86@XFree86.Org and patches submitted
to fixes@XFree86.Org. Before reporting bugs in pre-release versions,
please check the latest version in the XFree86 CVS repository
(http://www.XFree86.Org/cvs).

XFree86 Version 4.3.99.902 (4.4.0 RC 2)
Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: SuSE Linux [ELF] SuSE
Current Operating System: Linux linux 2.6.4-52-smp #1 SMP Wed Apr 7 02:11:20 UTC 2004 i686
Build Date: 23 August 2004
Changelog Date: 29 February 2004
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Sun May 8 03:14:51 2005
(==) Using config file: "/etc/X11/XF86Config"
(WW) I810(0): Failed to set up write-combining range (0xf0000000,0x8000000)
Could not init font path element /usr/X11R6/lib/X11/fonts/local, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID, removing from list!

macemoneta 05-07-2005 10:00 PM

X is run locally. Applications that use X are then run remotely by, for example, tunneling X over ssh.

For example, let's say that you have a Linux machine at home, and want to run an X application remotely from your Windows machine at work.

First, start X on Windows. If you need X for Windows, you can download the free cygwin package, which includes Xorg.

Second, ssh from the Windows machine to the Linux machine, requesting that X be tunneled:

ssh -Y userid@host

After you login, you can run any X application, and it will display on your Windows machine. For example, if you want to run the evolution email program:

evolution &

If you are trying to run an X application on a Linux/*BSD/UNIX machine, X is already there. Just start at the ssh.

abefroman 05-08-2005 11:51 AM

How do I get ssh to work wtih cygwin?

abe2@abe ~
$ ssh 10.10.10.10
bash: ssh: command not found

Its saying in cant find ssh.

macemoneta 05-08-2005 12:34 PM

Then you didn't select it during the installation.

Rerun the Cygwin setup, and in the "Net" section, select openssh. Also make sure that in the X11 section, you've selected the x-startup scripts. The requisites should be automatically selected.

macemoneta 05-08-2005 12:50 PM

As a followup, this is the sequence of actions you need to take to run a remote X application:

1.Start Windows
2. Run cygwin. This establishes the environment.
3. At the cygwin bash prompt, enter the command startx. This will bring up the local X. An xterm window will open.
4. In the xterm window, ssh to the destination machine, with the "-Y" option. For example:

ssh -Y someuser@somehost

5. When you are logged into the remote system, you can run any X application, and it will display on your local system.

abefroman 05-08-2005 01:27 PM

Thanks!

I am getting this error though:
abefro@linux:/root> export DISPLAY=69.211.121.xx:0
abefro@linux:/root> xhost +127.0.0.1
xhost: unable to open display "69.211.121.xx:0"

where 69.211.121.xx is my ip.

Got any tips?

abisko00 05-09-2005 02:49 AM

I think there are some security settings that prohibit the use of the X server from remote locations. In /etc/X11/xdm/Xservers you may have to remove '-nolisten tcp' and in /etc/X11/xdm/xdm-config you may need to comment-out the line 'DisplayManager.requestPort: 0'. Since I have never tried this, I can't tell which one ot those is really required.

abefroman 05-09-2005 10:04 AM

Thanks! It still wont let me connect though.

Is it
export DISPLAY=10.10.0.252:0
or
export DISPLAY=10.10.0.252:0.0
?

Should that be run as root or an under privledged user?

abisko00 05-09-2005 10:25 AM

Quote:

abefro@linux:/root> xhost +127.0.0.1
xhost: unable to open display "69.211.121.xx:0"
I think this is the problem. You cannot run xhost from the remote system. This has to be run locally (I think).

abefroman 05-09-2005 11:29 AM

I tried running xhost locally and get the same error:

xhost: unable to open display "10.10.0.251:0"
xhost: unable to open display "localhost:0"
xhost: unable to open display "localhost:0.0"
xhost: unable to open display "10.10.0.251:0.0"

abisko00 05-09-2005 11:45 AM

I read a little in my literature and found another method of authentification. Maybe this will work better:

1. Extract the MIT-MAGIC-COOKIE-1 key on your local machine (usually in ~/.Xauthority):
Code:

user@workstation$ xauth extract keyfile workstation:0
2. Transfer keyfile to your remote client (e.g. FTP)
3. Install key on client:
Code:

user@client$ xauth merge keyfile
Now try again to export and access the display. And don't forget to comment-out 'DisplayManager.requestPort: 0' in /etc/X11/xdm/xdm-config.

EDIT: STOP Before you try this, have a look at this link: http://portal.suse.com/sdb/en/2002/04/remotex_80.html ;)

abefroman 05-09-2005 11:54 AM

linux:/home/abefro # locate Xauthority
/home/abefro/.Xauthority
linux:/home/abefro # xauth extract .Xauthority localhost:0
No matches found, authority file ".Xauthority" not written
linux:/home/abefro # cat .Xauthority
☺ ♣linux ☺0 ↕MIT-MAGIC-COOKIE-1 ►I[* ¶↔˛`V,ázA:U¬ ♦⌂ ☻ ☺0 ↕MIT-MAGIC-COOKIE-
1 ►I[* ¶↔˛`V,ázA:U¬☺
linux.site ☺0 ↕MIT-MAGIC-COOKIE-1 ►I[* ¶↔˛`V,ázA:U¬linux:/home/abefro #

Its saying no matches found even though the authority file is there, I also tried putting the full path to the Xauthority file.

abisko00 05-09-2005 11:59 AM

No, no, the command xauth knows where to find .Xauthority. The parameter 'keyfile' is just the filename where you would like to extract the key to. Sorry if my post was confusing.

abefroman 05-09-2005 12:20 PM

Thanks for the clarification.

It stil doesnt seem to be working:
linux:~ # >keyfile
linux:~ # xauth extract keyfile 10.10.0.252:0
No matches found, authority file "keyfile" not written

abisko00 05-09-2005 12:28 PM

As far as I can see, you are logged in as root. This way xauth assumes .Xauthority in /root. Try the command as user. I edited the above post. Have a look at the link first, maybe the xhost method will work after you applied the changes.


All times are GMT -5. The time now is 04:47 PM.