Homework Nine and Eight have been stated.

Ryan (9), Annette (9, 8), and Tommy (9, 8) have been the volunteers this week.

For Tommy the ports are 16354, 16355, 16356

http://silo.cs.indiana.edu:16354/

Let's get started. 

https://www.cs.indiana.edu/classes/c212-dgerman/spr2015/labSix.html

https://www.cs.indiana.edu/classes/c212-dgerman/spr2015/labTen.html

[tededek@silo squash]$ history
    1  ls
    2  ls -l
    3  ls bin
    4  cat README
    5  clear
    6  ls -l
    7  mkdir c212-workspace
    8  cd c212-workspace/
    9  cp /l/www/classes/a348/spr2013/software/apache-tomcat-7.0.35.tar.gz .
   10  ls -l
   11  pwd
   12  gunzip apache-tomcat-7.0.35.tar.gz
   13  ls -l
   14  tar xvf apache-tomcat-7.0.35.tar
   15  ls -l
   16  rm apache-tomcat-7.0.35.tar
   17  ls -l
   18  quota -v
   19  ls -l
   20  cd apache-tomcat-7.0.35/
   21  clear
   22  pwd
   23  ls -l
   24  more RUNNING.txt
   25   clear
   26  more RUNNING.txt
   27  less RUNNING.txt
   28  clear
   29  ls -l
   30  cd conf
   31  ls -l
   32  pico -w server.xml
   33  mv server.xml server.xml-backup
   34  grep -c . server.xml-backup
   35  pico -w server.xml-backup
   36  pico -w server.xml
   37  grep -c . server.xml
   38  cd
   39  clear
   40  ls -l
   41  ls -a
   42  ls -la
   43  pico -w .bash_profile
   44  which java
   45  ls -l /usr/bin/java
   46  ls -l /etc/alternatives/java
   47  pico -w .bash_profile
   48  clear
   49  echo $JAVA_HOME
   50  source .bash_profile
   51  echo $JAVA_HOME
   52  echo $JAVA_HOME
   53  clear
   54  $CATALINA_HOME/bin/startup.sh
   55  pico -w .bash_profile
   56  source .bash_profile
   57  echo $CATALINA_HOME
   58  $CATALINA_HOME/bin/startup.sh
   59  clear
   60  pwd
   61  cd $CATALINA_HOME
   62  ls -l
   63  cd webapps/
   64  ls -l
   65  cd ROOT/
   66  ls -l
   67  pico -w index.html
   68  pico -w index.html
   69  pwd
   70  cd ..
   71  ls -l
   72  mkdir squash
   73  cd squash/
   74  clear
   75  ls -l
   76  mkdir WEB-INF
   77  cd WEB-INF/
   78  mkdir classes
   79  mkdir lib
   80  cd classes/
   81  pico -w One.java
   82  javac One.java
   83  ls -l
   84  cd ..
   85  pwd
   86  ls -l
   87  pico -w web.xml
   88  cd ..
   89  pico -w index.html
   90  history
[tededek@silo squash]$

[tededek@silo squash]$ cd $CATALINA_HOME
[tededek@silo apache-tomcat-7.0.35]$ cd conf
[tededek@silo conf]$ cat server.xml
<Server port="16355" shutdown="SHUTDOWN">
  <GlobalNamingResources>
    <!-- Used by Manager webapp -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  <Service name="Catalina">
    <Connector port="16354" />
    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase" />
      <Host name="localhost" appBase="webapps" />
    </Engine>
  </Service>
</Server>
[tededek@silo conf]$ pwd
/u/tededek/c212-workspace/apache-tomcat-7.0.35/conf
[tededek@silo conf]$

[tededek@silo conf]$ cd
[tededek@silo ~]$ pwd
/u/tededek
[tededek@silo ~]$ cat .bash_profile
#
# .profile - This file is envoked by bourne-shell variants (including
#            bash) on login.

# Get the aliases and functions from your .bashrc
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# Add to your PATH, if needed.  You are encouraged to add to the end of
# the path.  This adds your bin directory to your path.
PATH="${PATH}:$HOME/bin"
export PATH

# Set the default editor you prefer
#EDITOR=emacs
#EDITOR=vim
EDITOR=pico
export EDITOR

JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91-2.6.2.1.el7_1.x86_64/
export JAVA_HOME

CATALINA_HOME=/u/tededek/c212-workspace/apache-tomcat-7.0.35
export CATALINA_HOME

CLASSPATH=.:$CATALINA_HOME/lib/servlet-api.jar
export CLASSPATH
[tededek@silo ~]$

See you in lab.