Monday, April 30, 2007

Using cygwin to view a remote xwindow

Using cygwin to view a remote xwindow

1) start cygwin vask shell
2) type startx
3) in the x~ window that appears, type:
xhost
where is the IP address of the server that hosts the window to which we want to connect
4) connect to machine using nortel
5) check the IP address of this machine in the nortel connection (e.g. 143.5.x.x)
6) launch a terminal window and connect a terminal window to Host machine ie JOE, REPETE
7) type export DISPLAY=:0.0 (where is the value from step 5)
8) you can now run the x application on the remote machine and all going well, it should appear on the local box (try xclock)

Saturday, April 14, 2007

PHP Compile process in HPUX and Linux

a) Fix configure script. Somehow this does not detect right APACHE version on HPUX in case of APACHE2. I did not find the better way of doing it hence replace APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` to APACHE_VERSION="2000048" for version 2.0.48.

b) run
./configure --enable-libgcc --with-apxs2=/opt/hpws/apache/bin/apxs --with-oracle=/opt/oracle/rtcis/product/9.2.0 --with-oci8=/opt/oracle/rtcis/product/9.2.0 --with-dom -with-zlib

This builds the PHP with support of Oracle (tested with 8i and 9i), XML and Zlib.

c) vi ./libtool
search for deplibs_check_method and replace that with deplibs_check_method="pass_all"

d) make

e) Module build. :)