You are not logged in.
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
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
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 16Offline
-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
tried the -Y option with ssh without using my .xserverrc hack and it didn't work. I guess -nolisten tcp over-rides.
Offline