Child pages
  • Server OS and Third Party Software Setup - 6.*

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3


How to setup the server including OS installation, third party software and components installations.



  • Install your choice of Linux distribution.
    Indiana University currently runs Variations on Red Hat Enterprise Linux 6 (RHEL 6). Derivatives of it such as Centos or White Box will be very similar, but for other distributions, the filenames and/or procedures may be different. The instructions below are tailored to RHEL6.
    • Select "Software Development Workstation" when asked about selecting a software set.
    • When creating the first user, this can be the "dmlserv" user that is required further on in the installation. ( #Variations Variations Administration User Account Creation )
    • Set up your RedHat Network subscription, and update to latest release:
      yum update
    • Install needed packages
      yum install gd-devel gdbm-devel
    • Ensure that hostname -i returns the numeric IP address and not the host name.
      • If hostname -i returns the IP and, edit /etc/hosts so that the ::1 entry has only the values localhost6.localdomain6 and localhost6.
      • If hostname -i returns the host name, edit /etc/hosts to put the IP and hostname in a separate line entry.
        Code Block
        titleExample /etc/hosts
        # Do not remove the following line, or various programs
        # that require network functionality will fail.       localhost.localdomain localhost
        129.12.345.67 taishan
        ::1             localhost6.localdomain6 localhost6


  • MySql has internal parameters specifying how long to keep a stale connection before dropping it. For interactive logons this is interactive_timeout and for non-interactive it is wait_timeout. Note that wait_timeout is set from interactive_timeout when the login is interactive. The default setting for these parameters is 8 hours (specified in seconds). After this time, the connection is dropped and cannot be reestablished without restarting the server. To fix this problem set both wait_timeout and interactive_timeout to 24 hours (86,400 seconds) in the MySql configuration file /etc/my.cnf under both the mysqld and mysqld_safe sections.
    No Format
    The default minimum length for words used in fulltext indexes is 4. This means that searches for words less than 4 characters will fail (e.g., "U2" or "Yes"). It is probably a good idea to reset this to 1 in the /etc/my.cnf file under both the mysqld and mysqld_safe sections. Also, MySQL has a default stopword file that excludes certain words from the text index, and it may exclude words that users might reasonably want to search on. Therefore, it may be best to turn this off by setting ft_stopword_file to "". For a list of MySQL default stop words, see One can also set ft_stopword_file to the name of a file that contains a custom list of stop words.
    No Format
  • Set mysql to start automatically at boot:
    chkconfig mysqld on
  • Start the server now:
    service mysqld start
  • Download MySQL Connector/J database driver for Java (version 5.1 or later).
    • Expand the archive and put the file mysql-connector-java-5.1.1617-bin.jar in the location _/usr/local/lib/_you can put this file in another location but will need to update the configuration file later.


  • Darwin Installation Instructions
    • Download and Install
      • Download Linux Package (for Fedora Core 4 or later, that's us) from:
        At that site, scroll down to Related Links at the bottom, and follow Previous releases.
        At the Previous Releases page, under Linux installer (v5.5.5), follow Streaming Server.
        At this point an Apple ID login or account creation, and license agreement is required before the download is started. Download to any tidy location. The download will install into proper standard locations.
      • Once downloaded, unpack it:
        tar -xzf DarwinStreamingSrvr5.5.5-Linux.tar.gz
      • Change location into the unpacked directory and invoke the installation script:
        • You will be prompted for an administrator user name and password.
        • If you get errors from /usr/local/bin/qtpasswd make sure that you have the required i686 libraries then rerun the installation script:
          yum install glibc.i686 libstdc++.i686; ./Install
      • Make the Darwin log path readable for Variations statistics scripts:
        chmod a+rx /var/streaming /var/streaming/logs
    • Installing Darwin as a Service
      To make Darwin start on boot and be accessible as a service in /etc/init.d/ follow these steps:
      • Download the init.d script to /etc/init.d/
      • Set permissions on the script:
        chmod 755 /etc/init.d/dss
      • Set dss to run as a service on boot:
        chkconfig dss on
      • At this point, you can start dss manually:
        /etc/init.d/dss start
        The dss script has five possible actions:
        /etc/init.d/dss option




        Starts the server


        Stops the server


        Provides current running status for streaminaadminserver and DarwinStreamingServer


        Does a stop and then a start


        If Darwin is running, does a stop and then a start


        Forces Darwin to reread configuration files without disconnecting users

    • Configuring Darwin
      First, edit /etc/streaming/streamingserver.xml to bind the streaming server to its assigned IP address:
      Code Block
      <PREF NAME="bind_ip_addr" >your streaming IP address</PREF>
      You will need to restart the Darwin Streaming Servers for this change to take effect.
      /etc/init.d/dss restart
      Point your browser to http://localhost:1220/ to access the Darwin management tool.

      If you do not have terminal access to this machine and port 1220 is not open, you can try forwarding an X connection through SSH: ssh -Y hostname. This approach requires that X11 is installed on both the server and client of the the SSH connection. Once connected launch the browser of your choice, ie: firefox localhost:1220.

      The only settings that need to be changed for Variations are:
  • the Media Directory
  • enabling Port 80 streaming
    Port 80 streaming should be turned on as a fall back for the Variations client in case firewalls or NAT devices prevent it from receiving RTSP (TCP and UDP) traffic properly.