I need to install an Oracle product on linux, and for that, I have to get their installer to run, and for that, I have to get over this x-window problem. <update> I have, finally, gotten the installer to run, but I'm not sure how, or what the issues are so if you could tell me what all this means, I'd be most gratefull!
First off, let's simplify the problem. Their documentation suggests you troubleshoot with 'xclock' - the idea being, if you get that working, you have a chance with their installer. So let's forget Oracle and focus on xclock ...
Step 1
First, I launch an x-term, which logs on as myself (steerpike). I type 'xclock' and ... the xclock appears (so I know x-windows is running). I then type echo $DISPLAY, and see this:
:0.0
just to see what my DISPLAY variable is.
Step 2
The oracle documentation says I should type
DISPLAY=127.0.0.1:0.0; export DISPLAY
but after doing that, 'xclock' fails with
Error: Can't open display: 127.0.0.1:0.0
Same happens if I use 192.168.0.151, which is the ip of the network card on the laptop. I can ping both addresses on the laptop.
If I then use
Display=0.0; export DISPLAY
xclock works again.
Step 3
For the real install, I must be logged on as the oracle user. So, I type
'su - oracle' to switch to the oracle user (which was created by a script provided by Oracle).
xclock
fails with
Error: Can't open display: <blank - no address at all>
So I type
DISPLAY=:0.0; export DISPLAY
and xclock returns:
Code:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Consulting Oracle's documentation some more, I realise I must log in as 'steerpike', and type
xhost +
THEN I can flip back to my 'oracle' session, and xclock works.
So first of all, how come :0.0 works as a display address, but not 127.0.0.1:0.0, nor 192.168.0.1:0.0 ?
Secondly, how come my login (steerpike) has the value for 'DISPLAY' already set (to :0.0)? I can certainly type this in each time I switch to the Oracle user, but I'd rather automate it.
Thirdly, is there a simple explanation why I have to do the 'xhost +' step?
Finally - may be related - Oracle's general instructions say I must have a fully qualified hostname ... specifically, they say:
"make sure that the following command returns a fully qualified hostname:
Code:
prompt> hostname
hostname.domainname
Now, I'm running this on a standalone laptop (for now, as a test), and 'hostname' simply returns 'linux'. I WILL, ultimately, be connecting this to a wndows network, which has a domain, but not yet. Is this something I can fake out, or simply ignore?
Thanks !