Re: [OpenIndiana-discuss] installing oracle 11g
2012-06-04 9:30, Dave Koelmeyer wrote: On 05/24/12 10:20 AM, Alan Coopersmith wrote: The simplest workaround is to grant the Oracle user permission before you su to it: xhost +si:localuser:oracle Hi Alan/all, Out of interest, assuming I am granting a local user permission to use X in this manner, how do I make this persist across reboots? The man page implies I create an X0.hosts file at /etc containing "+si:localuser:oracle", but this doesn't work. I probably haven't got the format right, but any pointers? I'd use the profile file for the X11 window manager your interactive user uses (root or whoever). I don't use X11 interactively (on console) but rather as a TightVNC server - there such settings can go into ~/.vnc/xstartup script. Maybe this snippet would help your profile: it permits the server's local zones and optionally some listed hosts the right to access the GZ's VNC server for management (i.e. installing the Oracle with its interactive wizard), and this is a little breach because the VNC server is fired up for such tasks and is normally disabled: ## # (C) 2008-2012 by Jim Klimov: allow local zones to this X11 server # Permit the following hosts to use this VNC for display XHOSTLIST="localhost `hostname`" if [ -s "/etc/default/vncserver-xhosts" ]; then XHOSTLIST="$XHOSTLIST `cat /etc/default/vncserver-xhosts`" fi if [ -x "/usr/sbin/zoneadm" ]; then # This system contains some Solaris zones # We simply presume that zone names are known (resolvable) # as IP addresses via hosts file or DNS XHOSTLIST="$XHOSTLIST `/usr/sbin/zoneadm list -cp | grep -v global | while IFS=: read ZID ZNAME ZSTATE ZPATH; do /bin/echo \" $ZNAME\c\"; done`" fi echo "XHOSTLIST=$XHOSTLIST" >&2 if [ x"$XHOSTLIST" != x -a x"$XHOSTLIST" != "x " ]; then for XHOST in $XHOSTLIST; do echo "Adding XHost: $XHOST..." >&2 xhost + "$XHOST" done fi ## I guess it should be trivial to replace or expand this logic with one needed for local users (i.e. as a list file in the topmost clause). HTH, //Jim Klimov ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
On 05/24/12 10:20 AM, Alan Coopersmith wrote: The simplest workaround is to grant the Oracle user permission before you su to it: xhost +si:localuser:oracle Hi Alan/all, Out of interest, assuming I am granting a local user permission to use X in this manner, how do I make this persist across reboots? The man page implies I create an X0.hosts file at /etc containing "+si:localuser:oracle", but this doesn't work. I probably haven't got the format right, but any pointers? Thanks, -- Dave Koelmeyer http://www.davekoelmeyer.co.nz ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
Thanks guys. Alan's tip ultimately got the gui installer working: >The simplest workaround is to grant the Oracle user permission before you su >to it: > xhost +si:localuser:oracle Then, after setting the DISPLAY variable that got the ball rolling. I appreciate the help! tim On Wed, May 23, 2012 at 6:41 PM, Jason Matthews wrote: > > > What Alan wrote. > > j. > > -Original Message- > From: Alan Coopersmith [mailto:alan.coopersm...@oracle.com] > Sent: Wednesday, May 23, 2012 3:21 PM > To: Discussion list for OpenIndiana > Subject: Re: [OpenIndiana-discuss] installing oracle 11g > > On 05/23/12 03:16 PM, Tim Dunphy wrote: >>> I don't want to sound insulting, but is X running? >>> Are you on console or logged in over ssh? If ssh, is xforwarding enabled? > If >>> so, do you have some sort of X client on your side? Do other X clients > work >>> (eg. xload)? >> >> That's fine. I'm logged in at the console, not ssh'd in and yes x is >> working fine. >> >> >> I'm running as the oracle user >> >> [root@openindiana:/tank/iso] #su - oracle >> >> >> And interesting that xload gives an error when I try to run it as the >> oracle user. >> >> I've tried setting a few variables for DISPLAY: >> >> -bash-4.0$ export DISPLAY=":0.0" >> -bash-4.0$ xload >> Xlib: connection to ":0.0" refused by server >> Xlib: No protocol specified >> >> Error: Can't open display: :0.0 > > The default X setup, on pretty much every OS made in the past twenty years, > is > that only the user who logs into X can open windows on the display. Some > Linux > distros do include a PAM module to forward this authorization on su, but OI > does > not. > > The simplest workaround is to grant the Oracle user permission before you su > to > it: > xhost +si:localuser:oracle > > A variety of other solutions are possible as well, as a google search for > terms > such as "xauthority" and "xauth" will turn up. > > -- > -Alan Coopersmith- alan.coopersm...@oracle.com > Oracle Solaris Engineering - http://blogs.oracle.com/alanc > > ___ > OpenIndiana-discuss mailing list > OpenIndiana-discuss@openindiana.org > http://openindiana.org/mailman/listinfo/openindiana-discuss > > > ___ > OpenIndiana-discuss mailing list > OpenIndiana-discuss@openindiana.org > http://openindiana.org/mailman/listinfo/openindiana-discuss -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
What Alan wrote. j. -Original Message- From: Alan Coopersmith [mailto:alan.coopersm...@oracle.com] Sent: Wednesday, May 23, 2012 3:21 PM To: Discussion list for OpenIndiana Subject: Re: [OpenIndiana-discuss] installing oracle 11g On 05/23/12 03:16 PM, Tim Dunphy wrote: >> I don't want to sound insulting, but is X running? >> Are you on console or logged in over ssh? If ssh, is xforwarding enabled? If >> so, do you have some sort of X client on your side? Do other X clients work >> (eg. xload)? > > That's fine. I'm logged in at the console, not ssh'd in and yes x is > working fine. > > > I'm running as the oracle user > > [root@openindiana:/tank/iso] #su - oracle > > > And interesting that xload gives an error when I try to run it as the > oracle user. > > I've tried setting a few variables for DISPLAY: > > -bash-4.0$ export DISPLAY=":0.0" > -bash-4.0$ xload > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > Error: Can't open display: :0.0 The default X setup, on pretty much every OS made in the past twenty years, is that only the user who logs into X can open windows on the display. Some Linux distros do include a PAM module to forward this authorization on su, but OI does not. The simplest workaround is to grant the Oracle user permission before you su to it: xhost +si:localuser:oracle A variety of other solutions are possible as well, as a google search for terms such as "xauthority" and "xauth" will turn up. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
2012-05-24 2:16, Tim Dunphy wrote: I don't want to sound insulting, but is X running? Are you on console or logged in over ssh? If ssh, is xforwarding enabled? If so, do you have some sort of X client on your side? Do other X clients work (eg. xload)? That's fine. I'm logged in at the console, not ssh'd in and yes x is working fine. I'm running as the oracle user [root@openindiana:/tank/iso] #su - oracle X11 uses some "MIT Magic Cookies" to authorize its users, and those might not pass through "su" or "su -" and/or the access rights needed to use the cookie files. For the duration of your installation, you can execute (as X11 server session owner - i.e. root - inside that session): # xhost + localhost This should allow any connections from localhost to this DISPLAY. Likewise for any other named client host; or just "xhost +" to permit anyone in (firewall and/or private LAN recommended). Then, before you "su", take note of your (root's) current setting of DISPLAY and export that after "su"ing, i.e.: # echo $DISPLAY :0.0 # su - oracle $ DISPLAY=:0.0 $ export DISPLAY $ .../runInstaller & HTH, //Jim Klimov ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
On 05/23/12 03:16 PM, Tim Dunphy wrote: >> I don't want to sound insulting, but is X running? >> Are you on console or logged in over ssh? If ssh, is xforwarding enabled? If >> so, do you have some sort of X client on your side? Do other X clients work >> (eg. xload)? > > That's fine. I'm logged in at the console, not ssh'd in and yes x is > working fine. > > > I'm running as the oracle user > > [root@openindiana:/tank/iso] #su - oracle > > > And interesting that xload gives an error when I try to run it as the > oracle user. > > I've tried setting a few variables for DISPLAY: > > -bash-4.0$ export DISPLAY=":0.0" > -bash-4.0$ xload > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > Error: Can't open display: :0.0 The default X setup, on pretty much every OS made in the past twenty years, is that only the user who logs into X can open windows on the display. Some Linux distros do include a PAM module to forward this authorization on su, but OI does not. The simplest workaround is to grant the Oracle user permission before you su to it: xhost +si:localuser:oracle A variety of other solutions are possible as well, as a google search for terms such as "xauthority" and "xauth" will turn up. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
> I don't want to sound insulting, but is X running? > Are you on console or logged in over ssh? If ssh, is xforwarding enabled? If > so, do you have some sort of X client on your side? Do other X clients work > (eg. xload)? That's fine. I'm logged in at the console, not ssh'd in and yes x is working fine. I'm running as the oracle user [root@openindiana:/tank/iso] #su - oracle And interesting that xload gives an error when I try to run it as the oracle user. I've tried setting a few variables for DISPLAY: -bash-4.0$ export DISPLAY=":0.0" -bash-4.0$ xload Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error: Can't open display: :0.0 -bash-4.0$ export DISPLAY="localhost:0.0" -bash-4.0$ xload Error: Can't open display: localhost:0.0 -bash-4.0$ export DISPLAY="openindiana:0.0" -bash-4.0$ xload Xlib: connection to "openindiana:0.0" refused by server Xlib: No protocol specified Error: Can't open display: openindiana:0.0 I would think that either my hostname or localhost would work, but not so far. -bash-4.0$ hostname openindiana I don't have DISPLAY set in a resource file so I'm just exporting it on the command line before trying to install oracle. Thanks Tim On Wed, May 23, 2012 at 5:12 PM, Jason Matthews wrote: > > > > I don't want to sound insulting, but is X running? > Are you on console or logged in over ssh? If ssh, is xforwarding enabled? If > so, do you have some sort of X client on your side? Do other X clients work > (eg. xload)? > > If console, who are youlogged in as? What user are you running the installer > as? > > Why don't you logout, log back in, and show us the value of $DISPLAY (after > describing how you interact with X). > > Thanks, > > j. > > -----Original Message----- > From: Tim Dunphy [mailto:bluethu...@gmail.com] > Sent: Wednesday, May 23, 2012 1:09 PM > To: Discussion list for OpenIndiana > Subject: [OpenIndiana-discuss] installing oracle 11g > > hey again list, > > I'm trying to surmount a small hurdle in installing Oracle 11g on my > oi 151 box. > > > > > When I run the ./runInstaller command from the database directory I > get this message > > Checking monitor: must be configured to display at least 256 colors > >>> Could not execute auto check for display colors using command > /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. > Failed <<<< > > And it proceeds to throw a java exception if I continue > >>>> Ignoring required pre-requisite failures. Continuing... > Preparing to launch Oracle Universal Installer from > /tmp/OraInstall2012-05-23_04-01-36PM. Please wait ...-bash-4.0$ > Exception in thread "main" java.lang.NoClassDefFoundError > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at java.awt.Toolkit$2.run(Toolkit.java:821) > at java.security.AccessController.doPrivileged(Native Method) > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804) > at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source) > at com.jgoodies.looks.LookUtils.(Unknown Source) > at > com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.ja > va:122) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:242) > at > javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783) > at javax.swing.UIManager.setLookAndFeel(UIManager.java:480) > at > oracle.install.commons.util.Application.startup(Application.java:758) > at > oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164 > ) > at > oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181 > ) > at > oracle.install.commons.base.driver.common.Installer.startup(Installer.java:2 > 65) > at > oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114) > at > oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132) > > I think the key value I need to set is this one: > > -bash-4.0$ export DISPLAY='localhost:0.0' > > > And I've tried a couple of variations including the actual hostname of > the host in place of localhost. > > Any thoughts on how I can get past this point? > > Thanks > Tim > > > > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > ___ > OpenIndiana-discuss mailing list > OpenIndiana-discuss@openindiana.org > http://openindiana.org/mailman/listinfo/openindiana-discuss > > > ___ > OpenIndiana-discuss mailing list > OpenIndiana-discuss@openindiana.org > http://openindiana.org/mailman/listinfo/openindiana-discuss -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] installing oracle 11g
I don't want to sound insulting, but is X running? Are you on console or logged in over ssh? If ssh, is xforwarding enabled? If so, do you have some sort of X client on your side? Do other X clients work (eg. xload)? If console, who are youlogged in as? What user are you running the installer as? Why don't you logout, log back in, and show us the value of $DISPLAY (after describing how you interact with X). Thanks, j. -Original Message- From: Tim Dunphy [mailto:bluethu...@gmail.com] Sent: Wednesday, May 23, 2012 1:09 PM To: Discussion list for OpenIndiana Subject: [OpenIndiana-discuss] installing oracle 11g hey again list, I'm trying to surmount a small hurdle in installing Oracle 11g on my oi 151 box. When I run the ./runInstaller command from the database directory I get this message Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< And it proceeds to throw a java exception if I continue >>> Ignoring required pre-requisite failures. Continuing... Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-05-23_04-01-36PM. Please wait ...-bash-4.0$ Exception in thread "main" java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at java.awt.Toolkit$2.run(Toolkit.java:821) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804) at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source) at com.jgoodies.looks.LookUtils.(Unknown Source) at com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.ja va:122) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783) at javax.swing.UIManager.setLookAndFeel(UIManager.java:480) at oracle.install.commons.util.Application.startup(Application.java:758) at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164 ) at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181 ) at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:2 65) at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114) at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132) I think the key value I need to set is this one: -bash-4.0$ export DISPLAY='localhost:0.0' And I've tried a couple of variations including the actual hostname of the host in place of localhost. Any thoughts on how I can get past this point? Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] installing oracle 11g
hey again list, I'm trying to surmount a small hurdle in installing Oracle 11g on my oi 151 box. When I run the ./runInstaller command from the database directory I get this message Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed And it proceeds to throw a java exception if I continue >>> Ignoring required pre-requisite failures. Continuing... Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-05-23_04-01-36PM. Please wait ...-bash-4.0$ Exception in thread "main" java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at java.awt.Toolkit$2.run(Toolkit.java:821) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804) at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source) at com.jgoodies.looks.LookUtils.(Unknown Source) at com.jgoodies.looks.plastic.PlasticLookAndFeel.(PlasticLookAndFeel.java:122) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783) at javax.swing.UIManager.setLookAndFeel(UIManager.java:480) at oracle.install.commons.util.Application.startup(Application.java:758) at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164) at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181) at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265) at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114) at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132) I think the key value I need to set is this one: -bash-4.0$ export DISPLAY='localhost:0.0' And I've tried a couple of variations including the actual hostname of the host in place of localhost. Any thoughts on how I can get past this point? Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss