<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/bowsclient/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/bowsclient/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 25 Jun 2014 21:32:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/bowsclient/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Laboratório de Biodados</title><link>https://sourceforge.net/p/bowsclient/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,204 @@
-Welcome to your wiki!
-
-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
-
-The wiki uses [Markdown](/p/bowsclient/wiki/markdown_syntax/) syntax.
-
-[[members limit=20]]
-[[download_button]]
+# BOWS #
+### User guide for BOWS installation and usage###
+
+#### Authors: ####
+* Henrique Velloso 
+* J Miguel Ortega
+
+
+-------------------------------------------------------------------------------------
+##1. Introduction##
+
+
+
+##2. Installation##
+
+###2.1. Requirements###
+
+Before downloading and installing BOWS, make sure that your computer or server fulfills the following requirements:
+
+* UNIX platform;
+* MySQL;
+* Java;
+* Apache Tomcat.
+
+####2.1.1. MySQL####
+
+BOWS requires MySQL. If you are not familiar on how installing MySQL in a UNIX platform, follow these steps:
+If you're using Fedora, CentOS or RedHat, type this command to download and install MySQL:
+
+   &gt; su -c "yum install mysql mysql-server"
+
+In case you’re using **Debian** or **Ubuntu**, use this command:
+
+   &gt; sudo apt-get install mysql mysql-server
+
+After the installation, type these commands to configure your MySQL appropriately:
+
+   &gt; chkconfig  mysqld on
+   &gt; mysql_install_db
+   &gt; service mysqld start
+
+Then, create an administrator account (usually referred as root) and a password for it by typing:
+
+   &gt; mysqladmin -u root password “[yourpassword]”
+
+Now you are able to access the administrator account of your MySQL with the username “root” and password “[yourpassword]” by typing in the Terminal:
+
+   &gt; mysql -u root -p
+
+Log in as root to create a new user called "bows" and grant permissions to create databases by typing the commands:
+
+    mysql&gt; CREATE USER 'bows'@'localhost' IDENTIFIED BY 'bows123';
+   mysql&gt; GRANT ALL PRIVILEGES ON * . * TO 'bows'@'localhost';
+   
+This user account is required by BOWS (see 2.3. Creating and configuring BOWS database).
+   
+####2.1.2. Java####
+
+The main code of MaLe-PSI-BLAST was developed in Java (v.1.6.0). To install Java in your computer, type on Terminal the following command line according to your Unix distribution: 
+**Debian, Ubuntu, etc.**
+
+    &gt; sudo apt-get install openjdk-7-jre
+
+**Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.**
+
+    &gt; su -c "yum install java-1.7.0-openjdk"
+
+####2.1.3. Apache Tomcat####
+
+To install Tomcat you simple extract the archive and start the tomcat server. Tomcat by default start on port 8080. To allow access in this port edit iptables. Log in as root, then type:
+
+    &gt; vi /etc/sysconfig/iptables
+   
+Add this line above the "-A INPUT -j REJECT" lines: (press key "i" to edit) -A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT 
+You should have something like this:
+
+   :INPUT ACCEPT [0:0]
+   :FORWARD ACCEPT [0:0]
+   :OUTPUT ACCEPT [4:464]
+   -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
+   -A INPUT -p icmp -j ACCEPT
+   -A INPUT -i lo -j ACCEPT
+   -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
+   -A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
+   -A INPUT -j REJECT --reject-with icmp-host-prohibited
+   -A FORWARD -j REJECT --reject-with icmp-host-prohibited
+   COMMIT
+
+To close and save alterations press "Esc" then ":x!"
+After that restart iptables, typing the command:
+
+   &gt; /etc/init.d/iptables restart
+   
+We recommend install Apache Tomcat into /usr/local/ folder, to do this log in as root typing in the Terminal:  
+
+   &gt; su
+   
+Then go to directory /usr/local by typing in the Terminal:
+
+   &gt; cd /usr/local/
+   
+After that download Apache Tomcat7 typing:
+
+   &gt; wget http://ftp.unicamp.br/pub/apache/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz
+   
+Decompress the file typing the following command:
+   
+   &gt; tar xvzf apache-tomcat-7.0.53.tar.gz
+   
+And finally start tomcat:
+
+   &gt; cd apache-tomcat-7.0.53
+   &gt; bin/startup.sh
+   
+To configure Tomcat as service type the following commands:
+Change to the /etc/init.d directory and create a script called 'tomcat' as shown below:
+
+   &gt; cd /etc/init.d/
+   &gt; vi tomcat
+   
+Attention to copy this script, check if JAVA_HOME folder is correct:
+
+   #!/bin/bash  
+   # description: Tomcat Start Stop Restart  
+   # processname: tomcat  
+   # chkconfig: 234 20 80  
+   JAVA_HOME=/usr/lib/java-1.7.0/
+   export JAVA_HOME  
+   PATH=$JAVA_HOME/bin:$PATH  
+   export PATH  
+   CATALINA_HOME=/usr/local/apache-tomcat-7.0.53 
+     
+   case $1 in  
+   start)  
+   sh $CATALINA_HOME/bin/startup.sh  
+   ;;   
+   stop)     
+   sh $CATALINA_HOME/bin/shutdown.sh  
+   ;;   
+   restart)  
+   sh $CATALINA_HOME/bin/shutdown.sh  
+   sh $CATALINA_HOME/bin/startup.sh  
+   ;;   
+   esac      
+   exit 0
+   
+Then change file permission:
+
+   &gt; chmod 755 tomcat
+   
+Now we use the chkconfig utility to have Tomcat start at boot time typing the commands:
+   
+   &gt; chkconfig --add tomcat
+   &gt; chkconfig --level 234 tomcat on 
+
+###2.2. Downloading BOWS###
+
+BOWS is available at https://sourceforge.net/projects/bows/files/latest/download
+After downloading the file, open a terminal, go to the directory where BOWS was downloaded and extract the content of BOWS.tar.gz by typing:
+
+    &gt; tar -xzvf BOWS.tar.gz
+
+###2.3. Creating and configuring BOWS database###
+
+BOWS is configured to access MySQL as user "bows" with password "bows123". Here we assume that you have MySQL installed in your computer and create this user account (If not, see section MySQL in Requirements). To create and fill a MySQL database for BOWS usage, follow this procedures:
+
+####2.3.1. Creating a database for MaLe-PSI-BLAST####
+
+Open a Terminal and access the bows account on MySQL by typing the command:
+
+    &gt; mysql -u bows -pbows123
+   
+In the MySQL environment, create a database named bows by typing this command:
+
+   mysql&gt; create database bows;
+   
+To ensure that the database was created type the command:
+
+   mysql&gt; show databases;
+
+####2.3.2. Populating the database####
+
+You will find the file "bows.sql" corresponding to database dump into the folder BOWS/
+To restore the tables into database, type the following command in the Terminal:
+
+   &gt; mysql --user=bows --password=bows123 bows &lt; bows.sql
+
+###2.4. Installing BOWS###
+
+To install the BOWS service, copy the file "BOWS.war" file into "webapps" folder of Apache Tomcat:
+
+   &gt; cp BOWS.war /usr/local/apache-tomcat-7.0.53/webapps/
+   
+Then restart the tomcat service by typing:
+
+   &gt; service tomcat restart
+   
+After that BOWS will be working at address http://localhost:8080/BOWS/
+
+##3. BOWS usage##
+
+##4. Advanced topics ##
+
+##5. References##
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laboratório de Biodados</dc:creator><pubDate>Wed, 25 Jun 2014 21:32:53 -0000</pubDate><guid>https://sourceforge.net0961f3b36eaf6d8c180691b6af2547bee42c987a</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/bowsclient/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="bows"&gt;BOWS&lt;/h1&gt;
&lt;h3 id="user-guide-for-bows-installation-and-usage"&gt;User guide for BOWS installation and usage&lt;/h3&gt;
&lt;h4 id="authors"&gt;Authors:&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;Henrique Velloso &lt;/li&gt;
&lt;li&gt;J Miguel Ortega&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h2 id="1-introduction"&gt;1. Introduction&lt;/h2&gt;
&lt;h2 id="2-installation"&gt;2. Installation&lt;/h2&gt;
&lt;h3 id="21-requirements"&gt;2.1. Requirements&lt;/h3&gt;
&lt;p&gt;Before downloading and installing BOWS, make sure that your computer or server fulfills the following requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;UNIX platform;&lt;/li&gt;
&lt;li&gt;MySQL;&lt;/li&gt;
&lt;li&gt;Java;&lt;/li&gt;
&lt;li&gt;Apache Tomcat.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id="211-mysql"&gt;2.1.1. MySQL&lt;/h4&gt;
&lt;p&gt;BOWS requires MySQL. If you are not familiar on how installing MySQL in a UNIX platform, follow these steps:&lt;br /&gt;
If you're using Fedora, CentOS or RedHat, type this command to download and install MySQL:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;su&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;yum install mysql mysql-server&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In case you’re using &lt;strong&gt;Debian&lt;/strong&gt; or &lt;strong&gt;Ubuntu&lt;/strong&gt;, use this command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;apt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;mysql&lt;/span&gt; &lt;span class="n"&gt;mysql&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After the installation, type these commands to configure your MySQL appropriately:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;chkconfig&lt;/span&gt;  &lt;span class="n"&gt;mysqld&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;mysql_install_db&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;service&lt;/span&gt; &lt;span class="n"&gt;mysqld&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then, create an administrator account (usually referred as root) and a password for it by typing:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;mysqladmin&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="err"&gt;“&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;yourpassword&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="err"&gt;”&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now you are able to access the administrator account of your MySQL with the username “root” and password “&lt;span&gt;[yourpassword]&lt;/span&gt;” by typing in the Terminal:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;mysql&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="n"&gt;root&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Log in as root to create a new user called "bows" and grant permissions to create databases by typing the commands:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;mysql&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;CREATE&lt;/span&gt; &lt;span class="n"&gt;USER&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;bows&lt;/span&gt;&lt;span class="sc"&gt;'@'&lt;/span&gt;&lt;span class="n"&gt;localhost&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt; &lt;span class="n"&gt;IDENTIFIED&lt;/span&gt; &lt;span class="n"&gt;BY&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;bows123&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;mysql&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;GRANT&lt;/span&gt; &lt;span class="n"&gt;ALL&lt;/span&gt; &lt;span class="n"&gt;PRIVILEGES&lt;/span&gt; &lt;span class="n"&gt;ON&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;TO&lt;/span&gt; &lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="n"&gt;bows&lt;/span&gt;&lt;span class="sc"&gt;'@'&lt;/span&gt;&lt;span class="n"&gt;localhost&lt;/span&gt;&lt;span class="err"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This user account is required by BOWS (see 2.3. Creating and configuring BOWS database).&lt;/p&gt;
&lt;h4 id="212-java"&gt;2.1.2. Java&lt;/h4&gt;
&lt;p&gt;The main code of MaLe-PSI-BLAST was developed in Java (v.1.6.0). To install Java in your computer, type on Terminal the following command line according to your Unix distribution: &lt;br /&gt;
&lt;strong&gt;Debian, Ubuntu, etc.&lt;/strong&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;apt&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="n"&gt;install&lt;/span&gt; &lt;span class="n"&gt;openjdk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;jre&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Fedora, Oracle Linux, Red Hat Enterprise Linux, etc.&lt;/strong&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;su&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="s"&gt;&amp;quot;yum install java-1.7.0-openjdk&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id="213-apache-tomcat"&gt;2.1.3. Apache Tomcat&lt;/h4&gt;
&lt;p&gt;To install Tomcat you simple extract the archive and start the tomcat server. Tomcat by default start on port 8080. To allow access in this port edit iptables. Log in as root, then type:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;vi&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sysconfig&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;iptables&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Add this line above the "-A INPUT -j REJECT" lines: (press key "i" to edit) -A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT &lt;br /&gt;
You should have something like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;FORWARD&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;OUTPUT&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;464&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="n"&gt;RELATED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;ESTABLISHED&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;icmp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="n"&gt;lo&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;tcp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="n"&gt;NEW&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;tcp&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;dport&lt;/span&gt; &lt;span class="mi"&gt;22&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="n"&gt;tcp&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="n"&gt;NEW&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;m&lt;/span&gt; &lt;span class="n"&gt;tcp&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;dport&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;ACCEPT&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;INPUT&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;REJECT&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;reject&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;icmp&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;prohibited&lt;/span&gt;
&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="n"&gt;FORWARD&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="n"&gt;REJECT&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;reject&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;with&lt;/span&gt; &lt;span class="n"&gt;icmp&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;prohibited&lt;/span&gt;
&lt;span class="n"&gt;COMMIT&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;To close and save alterations press "Esc" then ":x!"&lt;br /&gt;
After that restart iptables, typing the command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;iptables&lt;/span&gt; &lt;span class="n"&gt;restart&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;We recommend install Apache Tomcat into /usr/local/ folder, to do this log in as root typing in the Terminal: &lt;br /&gt;
&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;su&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then go to directory /usr/local by typing in the Terminal:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After that download Apache Tomcat7 typing:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;wget&lt;/span&gt; &lt;span class="n"&gt;http&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//ftp.unicamp.br/pub/apache/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Decompress the file typing the following command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;tar&lt;/span&gt; &lt;span class="n"&gt;xvzf&lt;/span&gt; &lt;span class="n"&gt;apache&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;tomcat&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;7.0.53&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And finally start tomcat:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="n"&gt;apache&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;tomcat&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;7.0.53&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;startup&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;To configure Tomcat as service type the following commands:&lt;br /&gt;
Change to the /etc/init.d directory and create a script called 'tomcat' as shown below:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;cd&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;init&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;vi&lt;/span&gt; &lt;span class="n"&gt;tomcat&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Attention to copy this script, check if JAVA_HOME folder is correct:&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;#!/bin/bash  &lt;/span&gt;
&lt;span class="c"&gt;# description: Tomcat Start Stop Restart  &lt;/span&gt;
&lt;span class="c"&gt;# processname: tomcat  &lt;/span&gt;
&lt;span class="c"&gt;# chkconfig: 234 20 80  &lt;/span&gt;
&lt;span class="nv"&gt;JAVA_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/lib/java-1.7.0/
&lt;span class="nb"&gt;export &lt;/span&gt;JAVA_HOME  
&lt;span class="nv"&gt;PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$JAVA_HOME&lt;/span&gt;/bin:&lt;span class="nv"&gt;$PATH&lt;/span&gt;  
&lt;span class="nb"&gt;export &lt;/span&gt;PATH  
&lt;span class="nv"&gt;CATALINA_HOME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/local/apache-tomcat-7.0.53

&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="nv"&gt;$1&lt;/span&gt; in  
start&lt;span class="o"&gt;)&lt;/span&gt;  
sh &lt;span class="nv"&gt;$CATALINA_HOME&lt;/span&gt;/bin/startup.sh  
;;   
stop&lt;span class="o"&gt;)&lt;/span&gt;     
sh &lt;span class="nv"&gt;$CATALINA_HOME&lt;/span&gt;/bin/shutdown.sh  
;;   
restart&lt;span class="o"&gt;)&lt;/span&gt;  
sh &lt;span class="nv"&gt;$CATALINA_HOME&lt;/span&gt;/bin/shutdown.sh  
sh &lt;span class="nv"&gt;$CATALINA_HOME&lt;/span&gt;/bin/startup.sh  
;;   
&lt;span class="k"&gt;esac      &lt;/span&gt;
&lt;span class="nb"&gt;exit &lt;/span&gt;0
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;Then change file permission:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;chmod&lt;/span&gt; &lt;span class="mi"&gt;755&lt;/span&gt; &lt;span class="n"&gt;tomcat&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now we use the chkconfig utility to have Tomcat start at boot time typing the commands:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;chkconfig&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;add&lt;/span&gt; &lt;span class="n"&gt;tomcat&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;chkconfig&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt; &lt;span class="mi"&gt;234&lt;/span&gt; &lt;span class="n"&gt;tomcat&lt;/span&gt; &lt;span class="n"&gt;on&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id="22-downloading-bows"&gt;2.2. Downloading BOWS&lt;/h3&gt;
&lt;p&gt;BOWS is available at &lt;a href="https://sourceforge.net/projects/bows/files/latest/download"&gt;https://sourceforge.net/projects/bows/files/latest/download&lt;/a&gt;&lt;br /&gt;
After downloading the file, open a terminal, go to the directory where BOWS was downloaded and extract the content of BOWS.tar.gz by typing:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;tar&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xzvf&lt;/span&gt; &lt;span class="n"&gt;BOWS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tar&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gz&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id="23-creating-and-configuring-bows-database"&gt;2.3. Creating and configuring BOWS database&lt;/h3&gt;
&lt;p&gt;BOWS is configured to access MySQL as user "bows" with password "bows123". Here we assume that you have MySQL installed in your computer and create this user account (If not, see section MySQL in Requirements). To create and fill a MySQL database for BOWS usage, follow this procedures:&lt;/p&gt;
&lt;h4 id="231-creating-a-database-for-male-psi-blast"&gt;2.3.1. Creating a database for MaLe-PSI-BLAST&lt;/h4&gt;
&lt;p&gt;Open a Terminal and access the bows account on MySQL by typing the command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;mysql&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;u&lt;/span&gt; &lt;span class="n"&gt;bows&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;pbows123&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In the MySQL environment, create a database named bows by typing this command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;mysql&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;create&lt;/span&gt; &lt;span class="n"&gt;database&lt;/span&gt; &lt;span class="n"&gt;bows&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;To ensure that the database was created type the command:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;mysql&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;show&lt;/span&gt; &lt;span class="n"&gt;databases&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h4 id="232-populating-the-database"&gt;2.3.2. Populating the database&lt;/h4&gt;
&lt;p&gt;You will find the file "bows.sql" corresponding to database dump into the folder BOWS/&lt;br /&gt;
To restore the tables into database, type the following command in the Terminal:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;mysql&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;bows&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;bows123&lt;/span&gt; &lt;span class="n"&gt;bows&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;bows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sql&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;h3 id="24-installing-bows"&gt;2.4. Installing BOWS&lt;/h3&gt;
&lt;p&gt;To install the BOWS service, copy the file "BOWS.war" file into "webapps" folder of Apache Tomcat:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;cp&lt;/span&gt; &lt;span class="n"&gt;BOWS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;war&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;apache&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;tomcat&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;7.0.53&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;webapps&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Then restart the tomcat service by typing:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;service&lt;/span&gt; &lt;span class="n"&gt;tomcat&lt;/span&gt; &lt;span class="n"&gt;restart&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After that BOWS will be working at address &lt;a href="http://localhost:8080/BOWS/" rel="nofollow"&gt;http://localhost:8080/BOWS/&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="3-bows-usage"&gt;3. BOWS usage&lt;/h2&gt;
&lt;h2 id="4-advanced-topics"&gt;4. Advanced topics&lt;/h2&gt;
&lt;h2 id="5-references"&gt;5. References&lt;/h2&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laboratório de Biodados</dc:creator><pubDate>Wed, 25 Jun 2014 21:32:04 -0000</pubDate><guid>https://sourceforge.netd7d7664ecc6b14a4538c9c3e5f29b6d8f0f78469</guid></item><item><title>Home modified by Laboratório de Biodados</title><link>https://sourceforge.net/p/bowsclient/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/bowsclient/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/biodados/"&gt;Laboratório de Biodados&lt;/a&gt; (admin)&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-5394cce43e5e832d35d7c312" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Laboratório de Biodados</dc:creator><pubDate>Sun, 08 Jun 2014 20:51:48 -0000</pubDate><guid>https://sourceforge.net738b8e9f9e94010d3b0a8b7ad27d893eeccd2c0e</guid></item></channel></rss>