I second John's comments...thanks very much, Angela, for putting this
together.

-Mark


On Apr 1, 6:42 am, John Callahan <[email protected]> wrote:
> Thanks Angela. Installing painter locally was one of those things that I'd
> get around to eventually.  I'm sure your instructions will help a lot.
>
> - John
>
> On Thu, Apr 1, 2010 at 9:01 AM, 3rd Wave <[email protected]> wrote:
> > Ok, I struggled with how to do this since I am not a javascript dev,
> > and I had never even heard of Maven or Jetty.  I got some help and I
> > thought I would share the knowledge.  This is what we did to get
> > painter installed on our local server.
>
> > Kind of bare-bones instruction, but pretty thorough and hopefully it
> > can help some people.  I cannot say this will work for everyone, but
> > it did for us.  I had already checked out painter a while ago, so
> > hopefully that repository is still the same.  (http://simile.mit.edu/
> > repository/painter/trunk/<http://simile.mit.edu/%0Arepository/painter/trunk/>)
>
> > 0. Login via SSH as root
> > 1. Download jdk 1.6 update 18 from Sun website. (/root/download/
> > jdk-6u18-linux-i586.bin)
> > 2. Download maven 2.2.1 from Maven homepage. (/root/download/apache-
> > maven-2.2.1-bin.tar.gz)
> > 3. Install JDK 1.6
> >        mkdir -pv /usr/java
> >        cp /root/download/jdk-6u18-linux-i586.bin /usr/java/
> >        cd /usr/java
> >        chmod +x jdk-6u18-linux-i586.bin
> >        ./jdk-6u18-linux-i586.bin
> >        # press page down until to the end of license, type "yes" and press
> > enter.
>
> >        ln -sfv /usr/java/jdk1.6.0_18 /usr/java/jdk
> >        echo "JAVA_HOME=/usr/java/jdk" >> /etc/bashrc && . /etc/bashrc
>
> >        rm /usr/bin/java /usr/bin/javac
> >        ln -sfv /usr/java/jdk/bin/java /usr/bin/java
> >        ln -sfv /usr/java/jdk/bin/javac /usr/bin/javac
>
> > 4. Install Maven
> >        cp /root/download/apache-maven-2.2.1-bin.tar.gz /opt/
> >        cd /opt && tar xzvf apache-maven-2.2.1-bin.tar.gz
> >        ln -sfv /opt/apache-maven-2.2.1/bin/mvn /usr/bin/mvn
>
> > 5. Start Painter (checked out from
> >http://simile.mit.edu/repository/painter/trunk/)
> >        cd /var/www/vhosts/whatever.com/subdir/that_has/painter/trunk
> >        mvn clean install # this will take a long time for the first run
> >        mvn jetty:run # this will also take a long time for the first run
> >        # press Ctrl+C to stop the application
>
> >        # to run this in background
> >        nohup mvn jetty:run > jetty.log 2>&1 &
>
> >        # the default port is 5555, you may want to edit pom.xml
> >        # and modify <port>5555</port> section to change to another port
>
> >        # to stop the painter if started in background
> >        ps aux|grep java
> >        # locate the line like below
> > root     28074  0.1  4.1 390132 43620 ?        Sl   10:32   0:03 /usr/
> > java/jdk/bin/java -classpath /opt/apache-maven-2.2.1/boot/
> > classworlds-1.1.jar -Dclassworlds.conf=/opt/apache-maven-2.2.1/bin/
> > m2.conf -Dmaven.home=/opt/apache-maven-2.2.1
> > org.codehaus.classworlds.Launcher "jetty:run"
>
> >        kill 28074
>
> > Angela
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "SIMILE Widgets" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<simile-widgets%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/simile-widgets?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to