Setting up a Development Server (3/4)

Posted on Posted in Technology Center


  • Install CVS via yum.
  • Setup the listening port.
  • Make sure the following lines exist in /etc/services

    cvspserver 2401/tcp

  • Create file named cvspserver under/etc/xinetd.dwith the following contents:

    service cvspserver
    socket_type = stream
    protocol = tcp
    wait = no
    user = root
    server = /usr/bin/cvs
    server_args = –allow-root=/home/cvs pserver

      • Make sure to set allow-root to correct cvs home.
      • Initialize the repository.

    cvs -d :local:/home/cvs init

    • Check if directory has appropriate permissions.

      chmod –R 775 /home/cvs
      chmod –R g+ws /home/cvs

    • Restart xinetd.d service.

      /etc/init.d/xinetd restart

  • Test CVS Connection.

Java (Reference:

  • To add jpackage (prebuilt for RHEL4) repository to CentOS:

    cd /etc/yum.repos.d/
    vi jpackage.repo

  • Enable the rhel specific repository. Keep the others enabled as well.

    name=JPackage (free) for Red Hat Enterprise Linux $releasever

  • These packages are signed with a GPG key so you will need to import the key
    ( as root ).

    rpm –import

  • Build non-free java packages. (
      • First, you need a build tree in user home directory. This build tree should have the following structure:

        |– BUILD
        |– RPMS
        | |– i386
        | |– i586
        | `– noarch
        |– SOURCES
        |– SPECS
        |– SRPMS
        `– tmp

      • Now you need to do some rpm configuration. A simple ~/.rpmmacros with the following contents should be enough:

    %_topdir %(echo ${HOME}/rpm)
    %_tmppath %{_topdir}/tmp

    %packager Allan Tan

    # Uncomment to have built RPMs land in RPMS/ instead of RPMS//
    #%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

    • Upload the following files and copy to ~/rpm/SOURCES:

    • Download, verify and install the java-1.5.0-sun package from Jpackage, again ignore the warnings about users not existing.

      $ wget /SRPMS/java-1.5.0-sun-
      $ rpm -K java-1.5.0-sun-
      $ rpm -Uvh java-1.5.0-sun-

    • Next try building the package to see what is needed from the Sun site.

      $ cd ~/rpms/specs/
      $ rpmbuild -ba java-1.5.0-sun.spec

    • Now you should be ready to install the java-1.5.0-sun-devel- package that JTA depends on, and any dependencies.

      $ rpm -Uvh ~/rpms/rpms/i586/java-1.5.0-sun-
      $ rpm -Uvh ~/rpms/rpms/i586/java-1.5.0-sun-devel-

    • In case error occurred for, you need to install xorg-x11-deprecated-libs.i386 via yum.
    • Now we can go back to the jta build instructions above and try again; this time there should not be any errors.

      $ cd ~/rpms/specs/
      $ rpmbuild -ba jta.spec

    • And now install jta.

      $ rpm -Uvh ~/rpms/rpms/noarch/jta-1.0.1-0.b.4jpp.noarch.rpm


      Continued… Setting up a Development Server (4/4)

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.