fintanr's weblog

Archives

« May 2006 »
MonTueWedThuFriSatSun
1
2
3
5
6
7
8
9
10
11
12
13
14
15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today

the links




Twitter Updates

    follow me on Twitter
















    20060516 Tuesday May 16, 2006

    apt-get install sun-java5-jre
    I think the title says it all. Take a look at the JDK Distros Project for more details. This is cool, very cool, incredibly cool (okay I'll stop). I'm guessing it will only be a matter of days before the Nextenta folks have this available as well.
    (2006-05-16 15:27:58.0) Permalink

    Sun Java System Web Server 7 Tech Preview
    As part of our ongoing performance work we have been running the development builds of the Sun Java System Web Server 7 for quite some time (this work ties into what I previously termed as the Buzzword Bingo area of Suns Performance Lifestyle). Web Server 7 has just been released as a technology preview, you can download it here, as also mentioned by Chris Elving, Joe McCabe and other members of the Web Server development team.

    From the work that I have done with Web Server 7 over the last few months I have to admit that I have become a big fan of this version, its got some really nice features, particuarly in terms of admininstration, in my case the stand out administration feature is the command line interface wadm, and its massively, massively scaleable. However in terms of our benchmarking work the first step for us is to ensure that we can install the webserver automatically when we get a new build, so here as an example of a silent installation of Web Server 7.

    The example here is on my laptop, running the latest Solaris Express. I will assume that you have an unarchived version of the webserver to start with, and go from there.

    Create a statefile, you can use this as a template if you wish, in my case the statefile is the following

    [STATE_BEGIN Sun Java System Web Server c618c83b4cca71e43586cdace6e02487c986543d]
    defaultInstallDirectory = /sun/webserver7
    currentInstallDirectory = /opt/SUNWwbsvr7
    UPGRADE = false
    SELECTED_COMPONENTS = svrcore,admincli,devsupport
    USE_BUNDLED_JDK = FALSE
    JDK_LOCATION = /usr/java
    CONFIGURE_ADMIN_AS = Server
    STARTUP_ONBOOT = false
    ADMIN_HOST = prometheus
    ADMIN_SSL_PORT = 8989
    ADMIN_PORT =
    ADMIN_UID = root
    ADMIN_NAME = admin
    ADMIN_PASSWD = changeme
    AGENT_HOST =
    AGENT_SSL_PORT =
    REGISTER_ADMIN_AGENT =
    WEB_SERVERNAME = prometheus
    WEB_PORT = 80
    WEB_UID = webservd
    WEB_DOCROOT =
    SIXTYFOURBIT_INSTALL = false
    CONFIG_NAME = prometheus
    [STATE_DONE Sun Java System Web Server c618c83b4cca71e43586cdace6e02487c986543d]

    This statefile installs the webserver, adminstration server and sample applications, using the already installed jvm, and setups the admininstration server as a server rather than agent instance. You may need to generate a different id string for your machine, if so, assuming your template is saved as say /tmp/template you could do something like the following

    #!/bin/sh
    
    ID=`./setup --id`
    ID_STR=`grep STATE_BEGIN /tmp/template | awk '{print $7}' | sed -e "s/]//"`
    sed -e "s/$ID_STR/$ID/g" < /tmp/template > /tmp/ws7inst.txt
    

    And thats pretty much it, to do your install just run the setup program....

    # ./setup --silent /tmp/ws7inst.txt
    
    Installation Successful.
    
    Next Steps:
    
    1. Start the Administration Server by executing:
    
    /opt/SUNWwbsvr7/admin-server/bin/startserv
    
    2. You can access the Web Admin Server by accessing the following URL:
    
    https://prometheus:8989
    
    3. Refer to the installation log file at
    /opt/SUNWwbsvr7/setup/Sun_Java_System_Web_Server_install.log for more details.
    

    (2006-05-16 15:00:15.0) Permalink