- sudo apt-get install tomcat6 (this should also pull in OpenJDK if you don't already have some distribution of Java installed)
- sudo mkdir /home/hudson
- sudo chown -R tomcat6:tomcat6 /home/hudson
- sudo editor /etc/default/tomcat6 and assign values for these two variables:
- JAVA_OPTS="-Djava.awt.headless=true -Xmx128M -DHUDSON_HOME=/home/hudson"
- TOMCAT6_SECURITY=no
- sudo editor /etc/tomcat6/tomcat-users.xml and create a role named admin and create at least one user with that role:
- <role rolename="admin" />
- <user username="hudson-admin" password="secret" roles="admin" />
- sudo editor /etc/tomcat6/server.xml and add URIEncoding="UTF-8" to the HTTP <Connector> line, so it looks as follows:
- <Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
- sudo /etc/init.d/tomcat6 restart
- sudo cp hudson.war /var/lib/tomcat6/webapps
- Go to http://localhost:8080/hudson/ and wait a few seconds for initial configuration
Source: Hudson on Tomcat
TODO:
- http://java.com JRE version 6
- http://tomcat.apache.org/ version 6
- %ProgramFiles%\Apache Software Foundation\Tomcat 6.0\conf\server.xml
- Configure Tomcat, Java, Java Options: -DHUDSON_HOME=c:\hudson, OK