Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xhost command

Status
Not open for further replies.

KOG

MIS
Jan 31, 2002
303
GB
Hi folks

Can you pls help me here, and tell me what am I doing wrong here?

I am trying to connect to the server from CDE machine using xhost command.

From CDE machine type

#xhost +
#telnet <IP>

Connecting to server

login:
password:

#DISPLAY=<IP>:0.0
#export DISPLAY

To test it I would type xclock
#xclock

but it would not work?

Thanking you all in advance.

Regards

K
 
hi,

You are on Host1 and want permit to someone on other
machine, to use your console to display his output.

Well: you are the owner of host1 and from there you enter

host1> xhost + for every host can &quot;connect&quot; or
host1> xhost host2 for just host 2

Then you make a telnet to host2, or you go physically at
a host2 terminal, or somother do this.

After the telnet or login at host2 you have to &quot;redirect&quot;
DISPLAY variable to a remote host ( now host1 is remote) :

then

host2> export DISPLAY=host1:0.0
host2> xclock
or
host2> aixterm


bye
 
Hi Victorv

Many thanks for your response and this is exactly what I did and it didn't work.

I have added the IP address of host2 in the /etc/hosts of host1 and vice versa, it still made no difference.

I am wondering if there is any configurations I should do before running xhost commmand?

Thanking you in advance.

Regards

K
 
hi,

avoid for the moment hostname and use ipaddress.

After you hev entered xhost at h1 and export ... at h2,
when you launch the program (xclock,xterm...) you
can receive 2 type of errors:

1) host1 refuses to give you its console
(tipically when I forget xhost)

2) cannot open display
(tipically when I forget or mistake export)

which type of error have you ?

Try to
host1> xhost - and
host2> export DISPLAY=:0.0

(resets your actions)

or a combination of them and see what changes and where
is the problem (in host1 or 2 )

bye
 
Hi

This is the steps I have done

(On host1 machine with x windows)
#xhost +
#telnet <IP of host2>

connecting
login:
password:

#DISPLAY=<IP of host1>:0.0
#export DISPLAY
#xclock

And the error message I get is ksh: xclock: not found

This is what happens when I am trying to connect to the new server (host2). I have tried running the above commands on the old server and it works. I am now thinking there must be somewhere I should configure or add the IP adress of the new server (host2) i.e. in /etc/hosts which I have done but is there any other system files I need to configure to add the new host2 IP address?

Many thanks for your quick response and help, much appreciated.

Regards

K
 
hi,

forget ip address: your bos does not find program (xclock)

Has host2 the XWindow part of AIX installed ?

Which machine is ? which OS ?

To avoid confusion, you can, if it is possible for you reach physically host2, make all at host2:

from a terminal enter
xhost +
login anyuser
echo $DISPLAY

(you will see that DISPLAY is not meaning entering login:
it simulates telnet terminal type)

then enter export DISPLAY=0.0

entering aixterm or xclock you must see something different from &quot;not found&quot; ; if you receive such answer
not al necessary lpp areinstalled .

bye

 
Hi

It is pseries 6E1(610) machine and I did complete installation of AIX 4.3.3 but it only used the first disk and never requested for other disks to be installed. So I am assuming it has all the basic filesets it needs.

How do I find x windows fileset and any idea which disk it is contained or do you know the exact name of the fileset please? (The pseries is using ascii monitor.)

I am aware that the new server (6E1) does not have x windows but the machine on my desk 43P has CDE/xwindows and I am using it to remote access to the new server so taht I can install oracle. I did the similar task when I installed oracle on the other development server and I do not recall encounting any probs (both servers do not have x windows).

The plan is to try and remotely access to another server using xhost command so that I can use the 43P machine x windows to do the installations.



 
What happens is clear: your 6E1(610) has not a graphic adapter, and installation has not included X11 part.

I am experienced with CAD : my machines have graphic
adapter ( however in the servers to use Windows I always
sell a simple graph adapter: I can use VGA monitor and
XWindow capabilities, also withou using CDE )

Futhermore I use spacial bundles to install all I need
for graphic purpose.
I write you a subset of the bundle regarding X11.

# Common Desktop Environment (COSE desktop)
X11.Dt.helpinfo
X11.Dt.helpmin
X11.Dt.helprun
X11.Dt.bitmaps
X11.Dt.lib
X11.Dt.ToolTalk
X11.Dt.rte
# AIXwindows applications
X11.apps.config
X11.apps.custom
X11.apps.xterm
# AIXwindows runtime
X11.base
# AIXwindows compatibility products
X11.compat.fnt.pc
# AIXwindows fonts
X11.fnt.coreX
X11.fnt.defaultFonts
X11.fnt.iso1
# AIXwindows Motif
X11.motif
# AIXwindows locale (US English)
X11.loc.En_US.Dt.rte
X11.loc.En_US.base.lib
X11.loc.En_US.base.rte
# AIXwindows application messages for En_US (US English)
X11.msg.En_US.apps.config
X11.msg.En_US.apps.custom
X11.msg.En_US.Dt.rte
X11.msg.En_US.vsm.rte
# Support of xdpyinfo command
X11.samples.apps.clients


go at the 6E1(610) put CD1 and enter smitty install_latest

then select all prevoius items or almost

X11.apps.config
X11.apps.custom
X11.apps.xterm
X11.base
X11.fnt.coreX
X11.fnt.defaultFonts
X11.motif
X11.loc.En_US.base.lib
X11.loc.En_US.base.rte

if they are enough, remember to &quot;refresh&quot; Maintenance level
after you install any additional lpp

bye
 
Hi

I have installed lpp filesets and it seems that was the cause of the prob.

Ran the xhost command and it works.

Just one ques what do you mean by 'refresh' maintenance level? How is that done?

Many thanks for all your help.

Cheers

K
 
kog,
I beleive victorv means install the latest Maintainance Release. Since you installed the X11 lpp's from installation media your AIX install is now downleveld for those lpp's. Installing an ML is as easy as grabbing the ML from IBM and following the instructions.
 
I am sorry I do not understand what is Maintenance level and where do I get it from, download from IBM?

Is it drivers, tools or ?

 
hi,
after a long work-day at customer site, I can continue
this thread.

&quot;Windows speaking&quot;, Maintenance Pakage is a sort of
&quot;Service Pack&quot; .

The package you have installed from CD may be 3 years old:
in this time the laboratories, have developed fix and
improvement to modules.

You can require it at IBM (depending from your contract) or download from :


follow instruction on site

I suggest to create a fs under
/usr/sys/inst.images
to avoid to enlarge /usr of lot

bye
 
Many thanks for your help much appreciated.

Regards

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top