Return-Path: Delivered-To: apmail-gump-commits-archive@www.apache.org Received: (qmail 3819 invoked from network); 9 Aug 2010 10:19:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Aug 2010 10:19:17 -0000 Received: (qmail 19890 invoked by uid 500); 9 Aug 2010 10:19:16 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@gump.apache.org Delivered-To: mailing list commits@gump.apache.org Received: (qmail 19883 invoked by uid 99); 9 Aug 2010 10:19:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 10:19:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Aug 2010 10:19:12 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 2B53E587 for ; Mon, 9 Aug 2010 10:18:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 09 Aug 2010 10:18:50 -0000 Message-ID: <20100809101850.56717.18587@eosnew.apache.org> Subject: =?utf-8?q?=5BGump_Wiki=5D_Update_of_=22VmgumpConfig=22_by_StefanBodewig?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Gump Wiki" for chan= ge notification. The "VmgumpConfig" page has been changed by StefanBodewig. The comment on this change is: remove all old information that has been cov= ered by now - the Gump3 stuff needs to go to a different page for historica= n. http://wiki.apache.org/gump/VmgumpConfig?action=3Ddiff&rev1=3D66&rev2=3D67 -------------------------------------------------- = =3D=3D everything below this is old information =3D=3D = - =3D=3D=3D Debian =3D=3D=3D - = - Upgrade to sid: - {{{ - #deb file:///cdrom/ sarge main - = - deb http://linux.csua.berkeley.edu/debian/ sid main - deb-src http://linux.csua.berkeley.edu/debian/ sid main - #deb http://linux.csua.berkeley.edu/debian/ testing main - #deb-src http://linux.csua.berkeley.edu/debian/ testing main - = - deb http://security.debian.org/ testing/updates main - }}} - = - Install the following via {{{apt-get install}}}: - = - * '''required''': apache2 cvs libxp-dev libxt6 libxtst6 python python2.3= subversion xvfb mysql-server python2.3-dev python2.3-mysqldb python2.4-dev= unzip libxml2 libxml2-utils xsltproc libtool curl ntp ntpdate java-6-sun - * '''convenience''': lynx sudo vim bzip2 mutt nano mysql-client rsync - * '''for building projects''': autoconf automake - = - = - =3D=3D=3D Create gump user and group and stuff =3D=3D=3D - = - {{{ - useradd -d /home/gump -s /bin/bash gump - addgroup gump - adduser gump gump - adduser gump staff - mkdir /home/gump - chown -Rf gump:gump /home/gump - mkdir /x1/gump - ln -s /x1/gump /srv/gump - chown gump:gump /x1/gump - echo 'general@gump.apache.org' > ~gump/.forward - echo 'pmc@gump.apache.org' > ~root/.forward - }}} - = - =3D=3D=3D Set up mysql =3D=3D=3D - = - * Secure the root account (http://dev.mysql.com/doc/mysql/en/default-pri= vileges.html): - = - {{{ - shell> mysql -u root - mysql> SET PASSWORD FOR 'root'@'localhost' =3D PASSWORD('newpwd'); - mysql> SET PASSWORD FOR 'root'@'vmgump' =3D PASSWORD('newpwd'); - }}} - = - * Create a gump database and user - = - {{{ - mysql> create database gump_public; - mysql> GRANT ALL PRIVILEGES ON gump_public.* to 'gump'@'localhost' identi= fied by 'passwd'; - Query OK, 0 rows affected (0.00 sec) - = - mysql> flush privileges; - Query OK, 0 rows affected (0.01 sec) - }}} - = - * set up tables - = - {{{ - cd /srv/gump/public/gump/mysql - mysql -u gump -p gump_public < gump.sql = - # enter password here... - }}} - = - =3D=3D=3D Other prereqs =3D=3D=3D - = - We manage most of these in /opt: - {{{ - mkdir /x1/opt - mkdir /x1/opt/__versions__ - rm -r /opt - ln -s /x1/opt /opt - }}} - = - * Apache Maven: - * Download [[http://maven.apache.org/start/download.html|Maven]] to /t= mp (select .tar.gz format) - * {{{cd /opt/__versions__}}} - * {{{tar -xzf /tmp/maven-xxx.tar.gz}}} - * create a symbolic link {{{/opt/maven}}} pointing to the installed ve= rsion - * '''Note''': MAVEN_HOME will be exported and added to the PATH in ste= p 5 - = - * rdflib - * Download [[http://rdflib.net/stable/|Rdflib]] to /tmp (select .tgz f= ormat) - * {{{tar -zxf /tmp/rdflib-xxx.tgz}}} - * {{{cd rdflib-xxx}}} - * (as root) python2.3 setup.py install - * (as root) python2.4 setup.py install - = - * ntpdate - * point /etc/init.d/ntpdate to ntp.unitedlayer.com - * run {{{sudo ntpdate -v ntp.unitedlayer.com}}} - = - * mvn Repository Proxy - * check out http://svn.apache.org/repos/asf/gump/mvnrepo/tags/0.2/ - * run {{{ant zip}}} - Ant 1.7.0 or better is required - * {{{ cd /opt/__versions__ }}} - * {{{ unzip /tmp/repoproxy.zip }}} - * {{{ mv lib mvnrepoproxy-0.2 }}} - * {{{ cd .. }}} - * {{{ ln -s __versions__/mvnrepoproxy-0.2 mvnrepoproxy }}} - = - = - =3D=3D=3D Optional prereqs =3D=3D=3D - = - * Mono: - * install Mono {{{ - cd /tmp - wget ftp://www.go-mono.com/archive/1.2.3.1/linux-installer/1/mono-1.2.3.1= _1-installer.bin - md5sum mono-1.2.3.1_1-installer.bin # check value! - chmod +x mono-1.2.3.1_1-installer.bin - sudo -i - ./mono-1.2.3.1_1-installer.bin --mode text # install to /opt/__versions__ - ln -s /opt/__versions__/mono-1.2.3.1 /opt/mono - }}} - * '''Note''': /opt/mono will be added to the PATH in step 5, the same = is true for /opt/mono/lib/pkgconfig and PKG_CONFIG_PATH - = - TODO: figure out which packages of the below on brutus is needed - {{{ - lrwxrwxrwx 1 root root 35 Oct 6 2004 ant -> /opt/__versions__/apac= he-ant-1.6.2/ - lrwxrwxrwx 1 root root 31 Jan 7 11:57 cocoon -> /opt/__versions__/c= ocoon-trunk/ - lrwxrwxrwx 1 root root 32 Jan 7 11:57 forrest -> /opt/__versions__/= forrest-trunk/ - lrwxrwxrwx 1 root root 29 Jan 24 23:47 jdk1.3 -> /opt/__versions__/j= dk1.3.1_14 - lrwxrwxrwx 1 root root 27 Oct 6 2004 jdk1.5 -> /opt/__versions__/j= dk1.5.0/ - lrwxrwxrwx 1 root root 31 Oct 6 2004 jetty -> /opt/__versions__/je= tty-4.2.21/ - lrwxrwxrwx 1 root root 23 Oct 12 2004 kaffe -> /opt/__versions__/ka= ffe - lrwxrwxrwx 1 root root 29 Oct 6 2004 loader -> /opt/__versions__/l= oader-1.0/ - lrwxrwxrwx 1 root root 49 Oct 6 2004 mysql -> /opt/__versions__/my= sql-connector-java-3.0.15-ga/ - lrwxrwxrwx 1 root root 31 Oct 6 2004 rdflib -> /opt/__versions__/r= dflib-2.0.3/ - lrwxrwxrwx 1 root root 30 Oct 6 2004 servlet-api -> /opt/__version= s__/servlet-2.4/ - lrwxrwxrwx 1 root root 32 Oct 9 2004 webware -> /opt/__versions__/= Webware-0.8.1/ - }}} - = - = - =3D=3D=3D Gump Setup =3D=3D=3D - = - Set up /srv/gump/[flavour]/..., the first flavour being public: - = - * set CVSROOT per [[http://gump.apache.org/gettingstarted.html#Getting+t= he+source+to+Gump|Gump Getting Started]] - * {{{mkdir -p /srv/gump/public}}} - * {{{cd /srv/gump/public}}} - * {{{svn checkout https://svn.apache.org/repos/asf/gump/live/ gump}}} (n= ote we're not using the "trunk" branch!) - * create/edit {{{./metadata/vmgump.xml}}} (to match {{{`hostname`.xml}}}= and supplying the database password) - {{{ - - = - - - = - - = - - = - - - }}} - * sync over packages from {{{brutus.apache.org:/srv/gump/packages}}} [sh= ared, not under 'flavour']. - * sync over {{{brutus.apache.org:~gump/.cvspass}}} (saves typing in a wh= ole bunch of 'public' cvs passwords) - * TODO: sync over {{{brutus.apache.org:~gump/.maven}}} - * install LICENSE and rt.jar of a J2SDK 1.3 (I used a local copy that I = have downloaded ages ago) into /srv/gump/packages/java-runtime-1.3 - = - * create/edit {{{/srv/gump/public/gump/cron/local-env-vmgump.sh}}}: - {{{ - export CC=3D"ccache gcc" - export CXX=3D"ccache g++" - = - export JAVA_HOME=3D/usr/lib/jvm/java-6-sun - export CLASSPATH=3D$JAVA_HOME/lib/tools.jar - export PATH=3D$PATH:$JAVA_HOME/bin - = - export MAVEN_HOME=3D/opt/maven - export PATH=3D$PATH:$MAVEN_HOME/bin - = - export M2_HOME=3D/opt/maven2 - export PATH=3D/opt/maven2/bin:$PATH - = - export PKG_CONFIG_PATH=3D$PKG_CONFIG_PATH:/opt/mono/lib/pkgconfig - export PATH=3D$PATH:/opt/mono/bin - = - export MVN_PROXY_HOME=3D/opt/mvnrepoproxy - }}} - * create/edit /home/gump/.bash_profile: - {{{ - umask 002 - . /srv/gump/public/gump/cron/local-env-vmgump.sh - }}} - * set up cron for user "gump": - {{{ - #NOT "OFFICIAL" Public - The official Gump run, the one that sends email = (uses JDK 1.4 and the 'live' branch) - #0 0 * * * cd /srv/gump/public/gump/cron; /bin/bash gump.sh all --o= fficial - = - # Public - these are subruns of public that don't send email but update t= he web site - #0 18 * * * cd /srv/gump/public/gump/cron; /bin/bash gump.sh all - 0 0,6,12,18 * * * cd /srv/gump/public/gump/cron; /bin/bash gump.sh all - = - #DISABLED JDK 1.5 - This Gump runs on JDK 1.5 - #0 6 * * * cd /srv/gump/jdk15/gump/cron; /bin/bash gump.sh all - = - #DISABLED Test - This Gump runs on JDK 1.4 but uses the latest-and-greate= st gump code out of 'trunk' - #0 12 * * * cd /srv/gump/test/gump/cron; /bin/bash gump.sh all - = - #DISABLED Gump3 - This is the new Gump... - #0 12 * * * cd /srv/gump/gump3/Gump3/; /bin/bash gump run --database= name=3Dgump3 - = - #DISABLED Kaffe - This Gump runs on top of Kaffe and uses the 'live' bran= ch - #0 3,9,15,21 * * * cd /srv/gump/kaffe/gump/cron; /bin/bash gump.sh a= ll; /usr/bin/killall -9w kaffe-bin; rm -f /home/gump/workspaces/kaffe/works= pace/ant/src/main/org/apache/tools/ThisIsALink - = - # Clean up older artifacts - 0 0 * * * /usr/bin/find /srv/gump/*/jars -type f -ctime +6 | /usr/bin/xar= gs -r /bin/rm - = - #TODO Update the local environments and workspace information - #55 * * * * /home/gump/update-envs.sh - = - #TODO Checkout (from CVS) and update blog - #1,16,31,46 * * * * /home/gump/update-blog.sh - = - #TODO Update website from svn - #2,17,32,47 * * * * /home/gump/update-site.sh - = - #Clean up after POI... - 0 0 * * * /bin/rm -f /tmp/*.xls - }}} - * configure {{{/etc/apache2/sites-available/vmgump.apache.org}}} somewha= t like this: - {{{NameVirtualHost * - - = - ServerAdmin pmc@gump.apache.org - ServerName vmgump.apache.org - = - DocumentRoot /var/www/vmgump.apache.org - = - - Options FollowSymLinks - AllowOverride None - - - Options Indexes FollowSymLinks MultiViews - AllowOverride None - Order allow,deny - allow from all - - = - ErrorLog /var/log/apache2/vmgump.apache.org.error.log - = - # Possible values include: debug, info, notice, warn, error, crit, - # alert, emerg. - LogLevel warn - = - CustomLog /var/log/apache2/vmgump.apache.org.access.log combined - ServerSignature On - = - Alias /gump/public/ /srv/gump/public/results/ - Alias /gump/public-jars/ /srv/gump/public/jars/ - = - - HeaderName /disclaimer.html - Options Indexes MultiViews FollowSymLinks - AllowOverride None - Order allow,deny - Allow from all - - = - - Order deny,allow - Deny from all - - = - ProxyRequests Off - - Order deny,allow - Allow from all - - ProxyPass /gump3/ http://localhost:8080/ = - ProxyPassReverse /gump3/ http://localhost:8080/ - }}} - * {{{mkdir /var/www/vmgump.apache.org && chown gump:gump /var/www/gump.a= pache.org}}} - * {{{a2ensite vmgump.apache.org && a2enmod proxy && a2dissite default}}} - * {{{/etc/init.d/apache2 reload}}} - = - * PLEASE DON'T edit gumprun.py to disable all actors except the xdoc one= , since one of the others seems to be - causing weird issues. - = =3D=3D=3D gump3 setup =3D=3D=3D = {{{