Tuesday, August 3, 2010

Setting up QPID on Linux

1. Inside QPID_INSTALLED_DIR/bin/qpid-server ,set QPID_HOME AND QPID_WORK.QPID_HOME should point to
QPID_INSTALLED_DIR and QPID_WORK should point to any location where you want to see logs eg. QPID_INSTALLED_DIR/logs

2. Goto QPID_INSTALLED_DIR/bin and Create ssl certificate by calling
./create-example-ssl-stores.sh.It creates 2 files qpid.keystore and qpid.truststore file

3. copy these 2 files to ../etc directory

4. Update $QPID_HOME/etc/config.xml and /etc/transient_config.xml with this new certificate location

ie.
update in config.xml (somewhere near line number 53) to ${conf}/qpid.keystore
and
update in transient_config.xml (somewhere near line number 43) to ${conf}/qpid.keystore

5. Rename virtualhosts-ServerConfigurationTest-New.xml to virtualhosts.xml
6. Update $QPID_HOME/etc/virtualhosts.xml with this content


my-web-app

my-web-app


amq.direct

102400
20480
60000


my-web-app-test-queue




Saturday, July 24, 2010

Setting Hudson on linux

1.mkdir -p /var /var/hudson /var/hudson/.ssh /var/hudson/bin /var/hudson/workspace /var/hudson/container /var/hudson/ci-tools /var/hudson/java

2. useradd -d /var/hudson -c 'Hudson user' hudson

3. Change the password if required for hudson by going to System-->User & Groups -->User --> Uncheck lock password

4. chown -R hudson /var/hudson

5. Download Tomcat 5.5.26 and extract into folder /var/hudson/container/apache-tomcat-5.*.**

6. su hudson

7. tar -xzf apache-tomcat-5.*.**.tar.gz

8. mv apache-tomcat-5.*.** /var/hudson/container/

9. The path to bin folder of tomcat should be /var/hudson/container/apache-tomcat-5.*.**/bin

10. Download JRE/JDK 5 from and install it into /var/hudson/container/jre1.5.*_**.

11. Download hudson.war from https://hudson.dev.java.net/files/documents/2402/97742/hudson.war (current version is 1.218).

12. Put the hudson.war into webapps folder of tomcat located at /var/hudson/container/tomcat-5.*.**/webapps.

13. Create start-server.sh file at /var/hudson with following content:

#!/bin/sh

export JRE_HOME=/var/hudson/container/jre1.5.*_**

export HUDSON_HOME=/var/hudson/workspace

export CATALINA_HOME=/var/hudson/container/apache-tomcat-5.*.**

cd /var/hudson/container/apache-tomcat-5.*.**

sh ./bin/startup.sh &

14. Create stop-server.sh file at /var/hudson with following content:

#!/bin/sh
export JRE_HOME=/var/hudson/container/jre1.5.*_**

export CATALINA_HOME=/var/hudson/container/apache-tomcat-5.*.**

cd /var/hudson/container/apache-tomcat-5.*.**

./bin/shutdown.sh

15. Start the server

16. Open the browser at http://localhost:8080/hudson to see the Hudson home page.

17. . Copy the slave.jar located under /var/hudson/container/apache-tomcat-5.*.**/webapps/hudson/WEB-INF folder into /var/hudson/bin folder.

Tuesday, July 13, 2010

adding tomcat at startup for linux

1. make a softlink to startup.sh(/opt/apache-tomcat-6.0.28/bin/startup.sh) in /etc/init.d/my_new_tomcat.sh
2. chmod +x /etc/init.d/my_new_tomcat.sh
3. make a softlink /etc/init.d/my_new_tomcat.sh /etc/rc5.d/my_new_tomcat.sh

COMMANDS
1. ln -s /opt/apache-tomcat-6.0.28/bin/startup.sh /etc/init.d/tomcat_start.sh
2. chmod +x /etc/init.d/tomcat_start.sh
3. ln -s /etc/init.d/tomcat_start.sh /etc/rc5.d/tomcat_start.sh

Monday, July 12, 2010

Setting java on linux env

0. download jdk-6u20-linux-i586.bin under /ust/local and then do

1.chmod a+x jdk-6***-linux-i586.bin

2. sh ./jdk-6u20-linux-i586.bin

3. Make a link to jdk
ln -s /usr/local/jdk1.6***/ /usr/local/jdk

4. echo 'export JAVA_HOME=/usr/local/jdk'>/etc/profile.d/jdk.sh

5. echo 'export PATH=$JAVA_HOME/bin:$PATH'>>/etc/profile.d/jdk.sh

6. source /etc/profile.d/jdk.sh

7. java -version
java version "1.6.***"

Saturday, June 19, 2010

My Tomcat on Ubuntu

sudo /etc/init.d/tomcat restart

Sunday, June 13, 2010

Setting OpenDS on Ubuntu 10.04

1. http://www.opends.org/promoted-builds/2.2.0/install/QuickSetup.jnlp
2. Keep defaults
3.Starting the Server
https://docs.opends.org/2.2/page/StartingTheDs#section-StartingTheDs-to-start-with-startds

To Start the Server by Using start-ds

  1. Change to the appropriate directory.

    (UNIX, Linux) $ cd install-dir/bin
    (Windows) C:\> cd install-dir\bat
  2. Type start-ds.

    (UNIX, Linux) $ start-ds
    (Windows) C:\> start-ds

To Start the Server as a Foreground Process

  1. Change to the appropriate directory.

    (UNIX, Linux) $ cd install-dir/bin
    (Windows) C:\> cd install-dir\bat
  2. Type start-ds with -N or --nodetach.

    (UNIX, Linux) $ start-ds --nodetach
    (Windows) C:\> start-ds --nodetach

You can stop the directory server by pressing Control-C in the terminal window in which the server is running or by running the stop-ds utility from another window.

To Start the Server by Using the Control Panel

This procedure describes how to use the Control Panel to administer the directory server.

  1. Change to the appropriate directory.

    (UNIX, Linux) $ cd install-dir/bin
    (Windows) C:\> cd install-dir\bat
  2. Type control-panel to open the GUI control panel.

    (UNIX, Linux) $ control-panel
    (Windows) C:\> control-panel
  3. On the Server Status panel, click Start.

To Restart the Server

  1. Change to the installation directory.

    (UNIX, Linux) $ cd install-dir/bin
    (Windows) C:\> cd install-dir\bat
  2. Type stop-ds with -R or --restart.

    (UNIX, Linux) $ stop-ds --restart
    (Windows) C:\> stop-ds --restart

To Restart the Server by Using the Control Panel

This procedure describes how to use the Control Panel to administer the directory server.

  1. Change to the appropriate directory.

    (UNIX, Linux) $ cd install-dir/bin
    (Windows) C:\> cd install-dir\bat
  2. Type control-panel to open the GUI control panel.

    (UNIX, Linux) $ control-panel
    (Windows) C:\> control-panel
  3. On the Server Status panel, click Restart.
  4. In the Confirmation dialog, click Yes.

To Start the Server by Using a Script (UNIX/Linux)

The start-ds command provides a “quiet” option ( -Q or --quiet) that suppresses output during the startup process unless a significant error occurs. You can use this option in a startup script.

  1. Create a shell script and add the following start-ds command.

    install-dir/bin/start-ds --quiet
  2. Run the script.

activemq on ubuntu

1. Follow these instructions @ http://activemq.apache.org/getting-started.html#GettingStarted-InstallationProcedureforUnix

2. Change the url to http://www.takeyellow.com/apachemirror/activemq/apache-activemq/5.3.2/apache-activemq-5.3.2-bin.tar.gz

3. Use
nohup bin/activemq > /tmp/smlog 2>&1 &

4. Testing installation
netstat -an|grep 61616

5. Admin URL
http://localhost:8161/admin/

6. Kill
ps -ef|grep activemq
kill [PID]

7.

kill [PID]