- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Running X applications
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 02:49 AM
тАО03-07-2006 02:49 AM
Running X applications
When I run X applications (I am using Cygwin and Putty with X forwarding through SSH) from root everything works fine. When I change to ora
I tried xhost +
┬лXlib: connection to "172.16.2.11:10.0" refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
xhost: unable to open display "172.16.2.11:10.0"┬╗
I also tried xauth
xauth: timeout in locking authority file /oracle/MBD/.Xauthority
How can I generate a MIT Magic cookie? How can I generate a new .Xauthority file?
Kind regards,
Andr├й Nunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 02:59 AM
тАО03-07-2006 02:59 AM
Re: Running X applications
If yes su to oracle, then from command line run dtterm -ls then run your X applications.
see man dtterm and loginshell resource for more details .
I maybe wrong re the above. sounds to me the profile is not being read when you su
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 03:01 AM
тАО03-07-2006 03:01 AM
Re: Running X applications
And, have you tried using xauth and pointing back to root's authority file?
xauth -f [full/path/to/.Xauthority]
and then if xauth runs, do info and if it doesn't error, you ought to be able to use that file to create a new one:
xauth extract - $DISPLAY |xauth add -
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 03:02 AM
тАО03-07-2006 03:02 AM
Re: Running X applications
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 03:06 AM
тАО03-07-2006 03:06 AM
Re: Running X applications
- ssh directly to ora
method I prefer as it is most secure.)
- Change the protection on .Xauthority
in ~root and link or copy it to ~ora
- Run xauth on your cygwin account before
changing to ora
this is the equivelent to what I have done.)
- Run xaith from root before changing to
ora
- Try the su variant that copies your
.Xauthoritiy (xsu i think). This didn't work
well for me.
Make sure the value of $DISPLAY is
the same after you change users as before.
It looks like you may
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 03:10 AM
тАО03-07-2006 03:10 AM
Re: Running X applications
Or, you're already Oracle, but when you run the script to set ORACLE_HOME, etc, you've lost the definition of the environment variable "DISPLAY".
Two options to the first problem.
1) Login directly to "oracle" from your machine using "ssh -x", instead of logging into the server as another user first (if possible).
2) Instead of "su-ing" to become "oracle", "ssh -X" instead. You might not be able to do either of these due to the fact that you could have security set to access oracle only as "su". Pretty common actually.
If that is the case, and you must ssh as some user to the computer, and THEN you must "su" to become oracle - then you need to set your DISPLAY environment variable to either the IP_Address:0.0 for your PC - OR the environment variable value for DISPLAY (whatever that was) BEFORE you su'd to oracle. That would probably be something like DISPLAY=server_name:10.0.
The "second case" is easy - you just lost the definition of DISPLAY in the setting of your ORACLE_HOME, etc vars. Just see what DISPLAY is set to before you run the script to set up variables, and set it back again after you've run the set up script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2006 04:53 AM
тАО03-07-2006 04:53 AM
Re: Running X applications
It was a problem with permissions in ora homedir.
Now it's working!
By the way, I was logging directly with ora
Kind regards,
Andr├Г┬й Nunes