User Tools

Site Tools


getting_xclock_to_work_in_order_to_install_oracle_with_runinstaller

It's often an issue installing Oracle right at the first hurdle due to runInstaller not being able to open the display.
Assuming all required packages have been installed, let's see if we can get xclock to start - if this works, runInstaller should run.

Check X is forwarding

grep -I forward /etc/ssh/sshd_config

Ensure X11Forwarding is uncommented and set to 'yes', if not…

vi /etc/ssh/sshd_config

Start an X server

On the box where Oracle will be installed, the simplest solution is to get vncserver running. The ':1' means “listen on port 5901”!
As root…

vncserver :1

Login to oracle user forwarding X

In order to install Oracle (in interactive mode) we need an xterm, so on the client machine start a vncviewer session and connect to the vnc server (using port 5901) as root
We should now be connected as root, via vnc, on the server. Now the trick is to ssh back to our self as oracle. This should avoid all the normal DISPLAY and MAGIC COOKIE issues.

ssh -X oracle@localhost

Check xclock is working

echo $DISPLAY

should show :1 or whatever port the vnc server was started on

xauth list

should show a cookie line with :1 in it

xclock
getting_xclock_to_work_in_order_to_install_oracle_with_runinstaller.txt · Last modified: 2019/01/30 11:32 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki