LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   export display don't work AIX ->fedora17 (https://www.linuxquestions.org/questions/linux-newbie-8/export-display-dont-work-aix-fedora17-4175418239/)

jideck 07-23-2012 08:49 AM

export display don't work AIX ->fedora17
 
Hello! need some help
try to export display från server (aix) to my fedora desktop.
steps done:


ON HOST
ssh -x aixserver
DISABLED IPTABLES AND SELINUX
vi /etc/ssh/sshd_config
PermitRootLogin yes
xhost+ aixserver
xhost
INET:aixserver

on server:
export display 10.12.14.15:0.1 (OK)
ping 10.12.14.15 (OK)
echo @DISPLAY
10.12.14.15:0.1
xclock
Error:Can't open Display........ (as well as the TSM config don't start)
what more to do?

TB0ne 07-23-2012 09:03 AM

Quote:

Originally Posted by jideck (Post 4735859)
Hello! need some help
try to export display från server (aix) to my fedora desktop.
steps done:


ON HOST
ssh -x aixserver
DISABLED IPTABLES AND SELINUX
vi /etc/ssh/sshd_config
PermitRootLogin yes
xhost+ aixserver
xhost
INET:aixserver

on server:
export display 10.12.14.15:0.1 (OK)
ping 10.12.14.15 (OK)
echo @DISPLAY
10.12.14.15:0.1
xclock
Error:Can't open Display........ (as well as the TSM config don't start)
what more to do?

First, permitting root login over a network connection is a VERY BAD IDEA, and you should never need to do that. And you don't need to edit the SSH config file for X windows, unless its for the X forwarding parameter.

Chances are, your local (Fedora) X server isn't allowing incoming connections. In a terminal window, do a "ps -ef | grep -i nolisten", and see what comes up. You'll probably see your X server started with that parameter, which means it won't allow a remote X system to open a window, no matter what else you do.

If you enable X forwarding in the sshd_config file, you should be able to use the fowarding mechanism to run it like:
Code:

ssh -X AIXBOX "X application to run"
...and it'll pop up. Or, the simpler way to do it is to edit the /etc/sysconfig/displaymanager file, and look for the "DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN=" line, and change it to YES. You'll have to reboot your Fedora box, and when you do, you'll see the "-NOLISTEN" parameter will be gone from your X server. From there, run your "xhost <aixbox>", or "xhost +", and you should be working.

jideck 07-23-2012 09:17 AM

]# ps -ef |grep -i nolisten
root 1185 1177 0 09:58 tty1 00:03:06 /usr/bin/Xorg :0 -background none -logverbose 7 -auth /var/run/gdm/auth-for-gdm-aTnYZc/database -seat seat0 -nolisten tcp vt1
root 4649 3776 0 16:13 pts/4 00:00:00 grep --color=auto -i nolisten


# xhost
access control disabled, clients can connect from any host
INET:aixserver
SI:localuser:john12

jideck 07-23-2012 09:25 AM

ssh -X
 
Code:

ssh -X AIXBOX "X application to run"
same result as before tested also with -Y

enabling root is temporary

jideck 07-23-2012 09:33 AM

/etc/sysconfig/displaymanager is not there and I can't find it


result on server is the same
> echo $DISPLAY
fedorabox:0.1

xclock
Error: Can't open display:fedorabox:0.1 :(

jideck 07-23-2012 09:39 AM

cat sshd_conf on aixbox

AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

cat ssh_conf fedorabox

# Host *
# ForwardAgent no
ForwardX11 yes
ForwardX11Trusted yes
GSSAPIAuthentication yes

TB0ne 07-23-2012 11:10 AM

..and until you remove the "-nolisten" from your X server on your Fedora system, NOTHING you try will allow incoming X sessions. That file is there in openSUSE, but you can also try running "gdmsetup", and allowing remote connections there. Again, you will have to reboot for things to take effect.

I'm no expert in Fedora, but until the "-nolisten" flag is gone from your X server, it WILL NOT WORK. Check the files in /etc/X11, and also look for a parameter called "DisallowTCP", as another course of action. Normally, the displaymanager file contains that flag, and other scripts will then look at it, and set variables accordingly.

jideck 07-24-2012 02:19 AM

Quote:

Originally Posted by TB0ne (Post 4735876)
...and it'll pop up. Or, the simpler way to do it is to edit the /etc/sysconfig/displaymanager file, and look for the "DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN=" line, and change it to YES. You'll have to reboot your Fedora box, and when you do, you'll see the "-NOLISTEN" parameter will be gone from your X server. From there, run your "xhost <aixbox>", or "xhost +", and you should be working.

thanks for reply but I can't find "/etc/sysconfig/displaymanager" maybe becouse its Fedora 17 so can this file has another name??

jideck 07-24-2012 02:22 AM

Quote:

Originally Posted by TB0ne (Post 4735988)
..and until you remove the "-nolisten" from your X server on your Fedora system, NOTHING you try will allow incoming X sessions. That file is there in openSUSE, but you can also try running "gdmsetup", and allowing remote connections there. Again, you will have to reboot for things to take effect.

I'm no expert in Fedora, but until the "-nolisten" flag is gone from your X server, it WILL NOT WORK. Check the files in /etc/X11, and also look for a parameter called "DisallowTCP", as another course of action. Normally, the displaymanager file contains that flag, and other scripts will then look at it, and set variables accordingly.

txs again but I don't know what to do with this -nolisten , how shood I remove it?

jideck 07-24-2012 02:53 AM

gdmsetup
bash: gdmsetup: command not found...
Similar command is: 'dmsetup'


I work on Fedora 3.4.5-2.fc17.x86_64, I tryed dmsetup, but I can't find anythig there about nollist or X
it is about devices and file system only.

ps -ef | grep X
root 1185 1177 0 Jul23 tty1 00:04:56 /usr/bin/Xorg :0 -background none -logverbose 7 -auth /var/run/gdm/auth-for-gdm-aTnYZc/database -seat seat0 -nolisten tcp vt1

jideck 07-24-2012 03:23 AM

/etc/X11/xinit/xserverrc shood have the entry and disable nolisten but this file dont exist on my "defalut" system

]# ls /etc/X11/xinit/
Xclients Xclients.d xinitrc xinitrc-common xinitrc.d xinput.d xinputrc Xsession

:(

jideck 07-30-2012 05:08 AM

I tryed

# systemctl status sshd.service

enable openssh server:

# systemctl enable sshd.service
ln -s '/usr/lib/systemd/system/sshd.service' '/etc/systemd/system/multi-user.target.wants/sshd.service'

and finally run:

# systemctl start sshd.service

and log in as root (the su - somehow diable xforwarding)
and its works fine of cource I have to disable root login whene installation nad configuration wizard of TSM 6.3 is done.


All times are GMT -5. The time now is 05:17 AM.