You are not logged in.

#1 2006-11-09 12:43:01

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

remote windows doesn't work with startx

I have a remote headless server that I need to have a particular gui running on my local machine. I used export DISPLAY="local_ip_address:0.0" on the remote machine, xhost +"remote_ip_address" on the local machine, and ssh -X username@ip to run the app. I can successfully get it to run IF I use xdm as my login manager, however if I opt for my standard "startx" method, the remote windows never display. What is it that xdm is doing that startx isn't? Is there an x setting that I need to give it?

Offline

#2 2006-11-13 08:26:48

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: remote windows doesn't work with startx

Out of curiosity, does "ssh -XY [target]" help?  I found that x forwarding didn't work without the "Y" switch.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#3 2006-11-13 11:24:21

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: remote windows doesn't work with startx

chrismortimore wrote:

Out of curiosity, does "ssh -XY [target]" help?  I found that x forwarding didn't work without the "Y" switch.

Hmm...never tried it, but I resolved the problem last night. It was actually another distro I was running who's $defaultserverargs in the startx script gave me the trouble. It was set to -nolisten tcp which closed off the 6000 socket. I manually set them in ~/.xserverrc and it works fine now:

#!/bin/bash
startx_pid=$(pgrep startx)
authfile=${HOME}/.serverauth.${startx_pid}
exec X :0 -br -auth $authfile -deferglyphs 16

Offline

#4 2006-11-13 12:21:15

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: remote windows doesn't work with startx

       -Y     Enables trusted X11 forwarding.  Trusted X11
              forwardings  are  not  subjected  to the X11
              SECURITY extension controls.

I always use ssh -Y, seems to be quicker, more responsive, and you dont need to mess with xhost

James

Offline

#5 2006-11-14 01:18:33

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: remote windows doesn't work with startx

tried the -Y option with ssh without using my .xserverrc hack and it didn't work. I guess -nolisten tcp over-rides.

Offline

Board footer

Powered by FluxBB