From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653755322633.tru64-unix-managers.marc@archive.invalid> From: Berger Michel Date: Sun, 28 Apr 2002 11:09:28 +0000 To: tru64-unix-managers Subject: Summary : Run xhost + at system startup X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653755322633 Hi Managers, Thanks for your replies! Specials thanks to Murtaza Talawala, Anthony A. D. Talltree, Jim Belonis & Ashraf Baker. QUESTION : I need to run the command "xhost +" on the console at each startup of the system (TRU64 5.0A). Can you tell me how I can automate this? ANSWERS : 1) Some of you pointed out that "xhost +" is a very insecure command. In fact, I discovered that I can limit this to the server itself : I need only to type "xhost + gnvasofi" (where gnvasofi is the server itself) to be able to print bitmap reports from Oracle Financials. 2) Put it in /etc/profile : I have tried but it did not work (maybe I did it wrong)... You can either put it in /etc/profile file. So that every time the system comes up the same gets executed globally for all accounts. 3) Create a file in /sbin/rc3.d : it does not seem to work either... you can go to /sbin/rc3.d/ create file with name S??hosts ( note ?? should be the highest no. in side this directory) and put in side it ( xhost + ) then #chmod 744 S??hosts CONCLUSION : I think that Jim is right when he wrote: I don't know how to do what you want since xhost does not obey a '-display' command-line argument to do it. Maybe that is a good thing. Maybe it will obey the DISPLAY environment variable? My conclusion is that it cannot be automated. At each startup of the server, I need to log in on the console itself as root and issue manually the command "xhost + gnvasofi". As it is not very convenient, I will look now at another solution as described in Oracle Metalink note 181244.1 titled "Configuring an X Display Server for Applications on Unix Platforms" and try to use the software alternative XVFB (X Virtual Frame Buffer) or XVNC (X-based VNC) instead. Thank you and best regards, Michel Berger Data Base Administrator Tel (+41 22) 717 21 53 Internet : berger@ebu.ch European Broadcasting Union Ancienne Route, 17A CH-1218 Geneva / Switzerland PS : For those of you who are interested, this is the Note from Oracle Support concerning the problem of running bitmap report with Developer 6i Patchset 5 and above : * fact: Oracle Application Object Library 11.5 * fact: Sun SPARC Solaris * symptom: Error when running bitmap report * symptom: REP-3000: Internal error starting Oracle Toolkit. * change: Applied Developer 6i Patchset * cause: The environment variable DISPLAY has not been set correctly fix: The DISPLAY variable needs to point to an IP address where an active X Sever process resides, preferably on the same server where the concurrent manager reside or an external server or PC; otherwise, bitmap request processing will encounter a REP-3000 error message. Set the DISPAY environment variable on the server where the concurrent manager resides: 1. Login into Unix as the privileged Oracle Application user, typically applmgr. 2. Determine the server's IP address, type: cat /etc/hosts 3. Set the DISPLAY environment variable at the command line: DISPLAY=:0.0 ; export DISPLAY 4. Verify that xwindow is installed and/or properly configured on the server: a. Change the default directory to the directory where xwindow executables resides. For Sun Solaris, typically, its /usr/openwin/bin or /usr/X11/bin. b. Execute the xwindow server authentication command: xhost + c. Execute a simple xwindow program like xclock in the background: xclock & d. Verify at the server's console that xclock is displayed. 5. Edit either the adcmctl.sh concurrent manager startup script or the APPL_TOP environment file referenced by the adcmctl.sh script. Enter the following two commands: DISPLAY=:0.0 ; export DISPLAY /usr/openwin/bin/xhost + (or equivalent path) 6. Restart the concurrent manager. Note: In Developer 6i patch 5, development addressed several bugs regarding image display and resolution. As a result, the operating system environment variable DISPLAY is required to be set to a valid X Display on non-Windows platforms. It provides a fundamental capability that Reports requires for font metrics and rasterization, image manipulation and conversion, etc. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************