Hello,
Oracle PDF reports run only when you run the command
# xhost +
from the console,
but if you run from the xmanager session , then report doesn't work
running from windows pc using xmanager
# xhost +
access control disabled, clients can connect from any host
# echo $DISPLAY
10.1.1.100:0.0
#
# lscons
/dev/lft0
#
# echo "tesaaaaaaaaat" > /dev/console
#
# lscons -a
current = /dev/lft0
console_logname = /var/adm/ras/conslog
console_logsize = 32768
console_logverb = 1
console_tagverb = 0
Can we redirect the console to Xmanager ?
1) since you know about the DISPLAY variable, you can set it to point to "anything" that will X11 "serve"
2) I prefer using X11 forwarding together with ssh client.
The sshd_config needs to permit it AND you need to setup your ssh_client to request it. (I use a 10-year program as client, and I do not use putty, so maybe someone else can help you out with your client, should you need that).
michael@x054:[/home/michael]grep X11 /etc/ssh/sshd_config
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
After login you should get something like this - different per session!
michael@x054:[/home/michael]echo $DISPLAY
localhost:11.0
michael@x054:[/home/michael]tty
/dev/pts/1
michael@x054:[/home/michael]
Note: as this is /dev/pts/1 the DISPLAY is pointing at localhost:11.0 (i.e. X11DisplayOffset+1)
Hope this helps!
1 Like
Thanks Michael Felt, I just realized that you are Michael Felt of ROOTVG and trainer for IBM Courses @ Amsterdam Netherlands.
follow up question,
is there a way to put xhost + in startup scripts so when the machine boots up it will run automatically on the console ?
It has been a LONG time since I used X11 for anything other than the occasional program that must install.
If I recall, xhost is for when your session is the server (not the client!) and you want/need something to connect to your screen. So, generally, you will need xhost on your PC/linux system, not on the AIX machine that is acting as an X11 client.
So, if you do mean you want the window to open on a local AIX X11 server session - if it is your login session, running xhost + in your .profile should be enough.
From man xhost:
Syntax
xhost [ + | - ] [ Name ]
Description
The xhost command adds or deletes host names on the list of machines
from which the X Server accepts connections.
re: rootvg.net etc, yes, the same. But that does not mean much here. Here is I just a person answering questions.
"unix.com" is probably a better forum these days - more people answering questions - and more questions per day. So, I'll try to give love to both.
I'd say more, but someone might think I am trying to steer traffic elsewhere (and not even to rootvg...).
I am having some hard time with xhost + on PowerVM / IVM / VIOS
# env
_=/usr/bin/env
LANG=en_US
LOGIN=root
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/vac/bin:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin
LC__FASTMSG=true
LOGNAME=root
MAIL=/usr/spool/mail/root
LOCPATH=/usr/lib/nls/loc
USER=root
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/
TERM=xterm
MAILMSG=[YOU HAVE NEW MAIL]
PWD=/
TZ=UST-3
A__z=! LOGNAME
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
Oracle Context file
bash-3.2$ cd /oratec/prodappl
bash-3.2$ . ./APPSPROD_test6.env
bash-3.2$ grep -i display $CONTEXT_FILE
<DISPLAY oa_var="s_display" osd="unix">test6:0.0</DISPLAY>
Does the below make sense ?
Issue :
In R12 on IBM AIX Reports are failing with Rep 3000 error
Description:
We all know that there is no concept of Display for generating reports in R12, there is�..:) but only on IBM AIX.
We need to set the display in IBM AIX for R12 to generate the reports output without error.
Solution ;
a) Go to CM(Admin) Node
b) Login in as Application User
c) Find the display from CONTEXT_FILE
Ex :
-bash-3.2$ grep -i display $CONTEXT_FILE
oratestdev:0.0
Here the display is 0.0
d) export DISPLAY=localhost:0.0
e) /usr/lpp/X11/bin/xinit /usr/lpp/X11/bin/mwm � :0 -vfb -force -x abx -x dbe -x GLX &
f) xhost +
g) Login as root
h) export DISPLAY=localhost:0.0
i) xhost +
Thanks,
Sam.
basically, without forwarding SSH , is there a way to run
xhost +
bash-3.2$ xhost +
1356-200 xhost unable to open display ""
bash-3.2$ echo $DISPLAY
bash-3.2$
on console screen on IVM/VIOS ?
Not sure (I think not) if VIOS has X11 server software included. So answer would be no. Been years since I have had a console connected to "IVM".
sorry, if i was not clear.
I meant to say, console of AIX partitions/Lpars running on VIOS/IVM
[LEFT]replied to email notification by accident. try again, shortened.
[/LEFT]
search for info on xdm, or install CDE.
you are looking for a way to connect to port 6000 if I recall correctly.
if not solved in a week l will look further. fighting this tablet again.