1823251 Members
3319 Online
109648 Solutions
New Discussion юеВ

Re: X - Client

 
Madhu Sudhan_1
Respected Contributor

X - Client

Hello Friends,
Iam using an PC X-Server progarm to connect to Linux Server. Is the following used in a right way.

/usr/bin/X11R6/bin/xterm -sb -ls -display hostname:0&

When my client program calls xterm in this way iam not getting x-term on my pc inspite of x server running on my pc.

Where Iam wrong.

Thanks,

Think Positive
8 REPLIES 8
K.C. Chan
Trusted Contributor

Re: X - Client

What is the error if any? I am assuming you have to run "xhost +" on the server to alloud X clients to connect. As for the synthax of xterm, you might want to replace hostname with the actuall ip addresss (just to make sure it's getting pass in correctly). Let me know how it turns out.

--Michael
Reputation of a thousand years can be determined by the conduct of an hour
Madhu Sudhan_1
Respected Contributor

Re: X - Client

Iam not getting any error. Yeah, Iam using the ip-address in place of hostname.

Thanks,
Think Positive
K.C. Chan
Trusted Contributor

Re: X - Client

Have you check if the server is running some sort of firewall like ipchains or iptables? I have been bitten by this before.
Reputation of a thousand years can be determined by the conduct of an hour
Alex Glennie
Honored Contributor

Re: X - Client

you say "client program calls" .... does the xterm run from the command line or are any errors produced now ?

the hostname/ip is that of your PC right ? And the ip/address of both pc and linux system resolve OK using nslookup ?

Sachin Patel
Honored Contributor

Re: X - Client

Hi Allen,
Try this to make sure that x server is working.

on pc
- start-run-telnet and telnet to that linux server
- setup display
#setenv DISPLAY ip_of_pc:0
- run xterm #xterm it should pop up xterm window on you pc.

If that works then you have to configure your pc-X program so it uses proper display.

Sachin
Is photography a hobby or another way to spend $
Wodisch
Honored Contributor

Re: X - Client

Hello,

what X-server do you use?
and what server and screen numbers?

Curious,
Wodisch
Madhu Sudhan_1
Respected Contributor

Re: X - Client

Wodisch:
Iam using "Reflection".
Sachin :
I did set the display variable as told by you. xterm quits saying cann't connect to display.

Now latest is that, my server is authenticating and no xterm on my PC. Iam using the follwing command string at my Reflection.

(/usr/X11R6/bin/xterm -fn 6x13 -sb -ls -display %
Regards,
Think Positive
Volker Borowski
Honored Contributor

Re: X - Client

Hi Allen,

I use Reflection X as well, and your commandline is OK.

- Run Reflection X
- Run Windows-telnet and login to Linux
- clip the commandline from Reflection-X to the telnet session and run it.

You should get xterm session or better error-message.

Suspect client acces activated:
Goto Reflection-X Server Window,
choose "Settings"->"client Access"

Disable the checkbox and retry the above, it should work now !

If needed, check the box again, and check if the "Host Access Security File" has a valid syntax and if any names are given there, if your pc can resolve them.

Hope this helps
Volker