Skip to content

Compiled, Binary Packages for the Buffalo TeraStation Live

August 16, 2008

If you want to give your TeraStation more power, without having to compile every tool from scratch head over to the the Debian Packages repository and download the packages you need for architecture ARMEL.

This downloads .deb files that need to be converted to .tgz before you can install them in your TeraStation. This is easily done on any Linux box by running alien.

wget http://http.us.debian.org/debian/pool/main/a/apt/apt_0.7.14_armel.deb
alien --to-tgz --scripts apt_0.7.14_armel.deb

This creates the file alien-0.7.14.armel.tgz, no copy it to your TeraStation with scp, or use one of the TeraStation’s file shares

scp apt-0.7.14_armel.tgz user@terastation_ip:/mnt/array1/share_name
ssh user@terasation_ip
cd /mnt/array1/share_name
tar zxf apt-0.7.14_armel.tgz

Now you are ready to install to run or install this package. You may need to install some additional shared libraries.

Using this method a little patience I was able to get a fully operational SVN server on my TeraStation. I will post the details and the full procedure soon.

It would be great to have full apt suite working, in order to resolve the package dependencies easily. I leave the installation of full apt suite as a challenge to the next dedicated user 🙂

Advertisements

From → TeraStation

10 Comments
  1. ckt_designer permalink

    Sounds like what I would like to do…

    I am currently using CVS with a repository on a local drive…

    I would like to convert to Subversion and have purchased the TeraStation for its storage size and RAID-5 protection…
    I would like to use TeraStation to hold my SVN repository, but see that SVN recommends not using a shared folder/directory.

    I would appreciate a posting (or Email) of a detailed procedure to get svnserve onto the TeraStation…

    Many thanks…

  2. ckt_designer permalink

    I did get through part of this…

    After un-tarring the apt-0.7.14_armel.tgz file, I attempted
    to use apt-get (to install subversion)…

    But I get an error:

    apt-get: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.9` not found (required by apt-get)

    I looked for a glibcxx package to download, but didn’t find anything…

    Any idea how to resolve this?

  3. ckt_designer permalink

    I’ve moved on to try to install svnserve using this method…

    I converted (via alien), moved to the Terastation Live, and un-tarred the following .deb files (all from http://http.us.debian.org/debian/pool/main/s/subversion):

    subversion_1.5.1dfsg1-1_armel.deb
    subversion-tools_1.5.1dfsg1-1_all.deb
    libsvn1_1.5.1dfsg1-1_armel.deb
    libsvn-dev_1.5.1dfsg1-1_armel.deb
    libapache2-svn_1.5.1dfsg1-1_armel.deb

    If I perform: ldd /usr/bin/svnserve a number of libraries are not found… These include:

    libapr-1.so.0
    libsasl2.so.2
    libaprutil-1.so.0
    libz.so.1
    libdb-4.6.so

    Any idea what packages contain these libraries?

  4. ckt_designer permalink

    Found the libapr and libaprutil…

    Including those caused others to come up not found:

    libz.so.1
    libldap_r-2.4.so.2
    liblber-2.4.so.2
    libmysqlclient_r.so.15
    libsqlite3.so.0
    libexpat.so.1

    Still looking…

  5. ckt_designer permalink

    Another update…
    I have downloaded/converted(via alien)/untarred the following files:

    zlib1g_1.2.3.3.dfsg-12_armel.deb
    subversion-tool_1.5.1dfsg1-1_all.deb
    subversion_1.5.1dfsg1-1_armel.deb
    libtasn1-3_1.5-1_armel.deb
    libsvn-perl_1.5.1dfsg1-1_armel.deb
    libsvn-java_1.5.1dfsg1-1_armel.deb
    libsvn-dev_1.5.1dfsg1-1_armel.deb
    libsvn1_1.5.1dfsg1-1_armel.deb
    libsqlite3-0_3.5.9-5_armel.deb
    libmysqlclient15off_5.0.51a-15_armel.deb
    libldap-2.4-2_2.4.10-3_armel.deb
    libgpg-error0_1.4-2_armel.deb
    libgnutls26_2.4..1-1_armel.deb
    libgcrypt11_1.4.1-1_armel.deb
    libexpat1_2.0.1-4_armel.deb
    libdb4.7_4.7.25-4_armel.deb
    libaprutil1_1.2.12+dfsg-8_armel.deb
    libapr1_1.2.12-4_armel.deb
    libapache2-svn_1.5.1dfsg1-1_armel.deb

    After untaring on the TeraStation Live, I did a:

    ldconfig -v

    then did:

    ldd /usr/bin/svnserve

    The following libraries are still not found:

    libsasl2.so.2
    libdb-4.6.so
    libpq.so.5

    Note that I downloaded libdb4.7_4.7.25-4_armel.deb, and
    libdb-4.2.so and libdb-4.7.so show up with the ldconfig
    command…

    Questions:

    1. Can libdb-4.7.so be symbolically linked to satisfy the libdb-4.6.so requirement?

    2. Where can I find the other libraries?

    Thanks…

  6. ckt_designer permalink

    Another update:

    Found libdb-4.6.so in db4.6
    Found libpq.so.5 in postgresql-8.3
    Found libsasl2.so.2 in cyrus-sasl2

    Then found libssl.so.0.9.8 and libcrypto.so.0.9.8 in openssl

    so had to additionally download:

    libsasl2-2_2.1.22.dfsg1-23_armel.deb
    libpq5_8.3.4-1_armel.deb
    libssl0.9.8_0.9.8g-13_armel.deb
    libdb4.6_4.6.21-11_armel.deb

    Didn’t need the libdb4.7)4.7_25-4_armel.deb as reported earlier…

    svnserve now loads properly…

    Now to configure and get the server running…

    Modified a script to use as svnserve.sh (in /etc/init.d)

    #! /bin/sh -e
    #### BEGIN INIT INFO
    # Provides: synserve
    # Required-Start: $syslog $time $local_fs $remote_fs
    # Required-Stop: $syslog $time $local_fs $remote_fs
    # Default-Start: 2 3 4 5
    # Defalut-Stop: S 0 1 6
    # Short-Description: Subversion repository server
    # Description: Debian init script for the Subversion repository server
    #### END INIT INFO
    #
    # Author: Rick Beton
    # Modified: Ed Hepler
    #
    set -e

    PATH=/bin:/usr/bin:/sbin:/usr/sbin
    DAEMON=/usr/bin/svnserve
    # Path to your repositories
    REPOS=/mnt/array1/vlsi_svn/SVN_Repositories

    test -x $DAEMON || exit 0

    # this is used by daemonwatch
    ACTIVE_FILE=/var/run/active_svnserve

    case “$1” in
    start)
    echo -n “Start services: svnserve”
    $DAEMON -d -r $REPOS
    touch $ACTIVE_FILE
    ;;
    stop)
    echo -n “Stop services: svnserve”
    killall svnserve
    rm -f $ACTIVE_FILE
    ;;
    force-reload|restart)
    $0 stop
    $0 start
    ;;
    *)
    echo “Usage: /etc/init.d/svnserve (start|stop|restart|force-reload)”
    exit 1
    ;;
    esac

    exit 0

    Then add an entry in /etc/rcS in step 3 (add svnserve.sh to end of list)

  7. I also added the svnserve to the inet daemon as follows:

    # /etc/inetd.conf: see inetd(8) for further informations.
    #
    # Internet server configuration database
    #
    #
    #rsync stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/rsync –daemon
    #8873 stream tcp nowait nobody /usr/sbin/tcpd /usr/local/sbin/rsfwds
    rsync stream tcp nowait root /usr/local/bin/rsync /usr/local/bin/rsync –daemon
    8873 stream tcp nowait nobody /usr/local/sbin/rsfwds /usr/local/sbin/rsfwds
    svn stream tcp nowait admin /mnt/array1/system/usr/bin/svnserve svnserve -i -r /mnt/array1/admin/svn

  8. I now found out that there is a simpler way to extract the DEB packages in the Terastation itself without the use of another PC, Linux and alien.
    Just download the .deb file right to your TeraStation and run

    ar vx apt_0.7.14_armel.deb

    this will create 3 files

    control.tar.gz
    data.tar.gz
    debian-binary

    to extract the files we need just use tar

    tar zxf data.tar.gz

    You’re done!

  9. hey bigdiver,
    seems you have this whole terastation thing figured out. i have just acquired a new Terastation, and i see you wrote to login to the terastation, and download the files needed to setup svn and rsync.

    well dumb question here, how the heck do i login to terastation? i am able to setup from another machine based on the IP address, but dont see how to download anything directly to the NAS?

    Regards,
    DosDawg

  10. Carlos permalink

    Hi BigDiver,

    I am trying to setup and svn server on my TeraStation Live NAS, did you ever got a chance to post the details of how you did it?

    “Using this method a little patience I was able to get a fully operational SVN server on my TeraStation. I will post the details and the full procedure soon.”

    Thanks, Carlos

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: