TechSpecs-KaHA

From Transmission
Jump to: navigation, search

20090220

Kampung Halaman Local Archive Project Technical Site Information

When the server is turned on:

you need to run in Applications->Accessories->terminal:

$sudo /opt/Plone-2.5.5/zeocluster/bin/startcluster.sh

this will start the zope/plone/plumi server. It's running as a cluster - two instances on the two default ports, 8080 and 8081. Next time I would do it the andycat way - the two instances are made redundant by indytube - it can only see one of the instances without some cli-kung-fu, so I would suggest installing from the non Unified installer packages.

Check to see if there is a lock file in the indytube folder:

/opt/plumi-0.2.3-final/indytube/depotvideo-encoder.lock

by doing this:

$ls /opt/plumi-0.2.3-final/indytube/ | grep lock

and delete it if is there, by doing

$rm /opt/plumi-0.2.3-final/indytube/depotvideo-encoder.lock

then you need to run:

$sudo /opt/plumi-0.2.3-final/indytube/run_indytube.sh

to get the in transcoding of uploaded files to be happening.

List of things done:

Base

  • Installed Ubuntu 64 bit 8.10 "Intrepid Ibex" Desktop version. Had to then install the server based things required including but not exclusively: build-essentials, python-setuptools, bind...


Plumi/Plone/Zope

installed in /opt/Plone-2.5.5

installed in /opt/plumi-0.2.3-final

  • Installed all dependencies - see the plumi-0.2.3-final/indytube/README for a comprehensive list. Most were done with apt-get install

DNS, DHCP and APACHE (and, incidentally indytube)

  • original settings on router changed.

The server was set to a static IP address: 192.168.1.2

The DNS settings now point to the server first and to itself second...with it's internal settings pointing upstream to the ISPs DNS server.

Also, if you configure another router identically (at least in terms of DHCP and DNS settings) you should be able to take this LAN anywhere.

  • There was also a little bit of wrangling on the server - needed to set the Network Configuration of the server to have the static IP address and it's DNS server as well (this was what was overwriting the /etc/resolv.conf on the server file causing headaches).

This was done so we could serve the video across the LAN on a URL instead of using the ip:port descriptor - I thought that would be more user friendly and professional.

I've set up the server hostname and primary domain to be bausasran (that may have been a mistake in retrospect - should have kept those two things different). I've also set up four subdomains - depotvideo, depot-flv, test-depot, and test-flv.

I have made the adjustments below based on Plone's client1 - served on port 8080. Client2 is unused.

  • Adjustments were then made to the files:
  1. /etc/hosts
  2. /etc/bind/named.conf.local
  3. /etc/bind/named.conf.options
  4. /etc/bind/zones directory was created
  5. /etc/bind/zones/bausasran.zone file was created
  6. /opt/plumi-0.2.3-final/indytube/indytube.conf
  7. /etc/apache2/ports.conf
  8. /etc/apache2/sites-available/depot-video file was created
  9. /etc/apache2/sites-available/flv-depot file was created

A copy of these files is available on request, and is saved locally.

  • For indytube we added the directory /var/www/flv-depot-video to hold the transcoded files.

I also put the FlowPlayer.swf into this folder. Note that indytube/flowplayer doesn't come with a FlowPlayer.swf but with a bunch of FlowPlayers that are all themed and you need to make one/symlink one to a FlowPlayer.swf

Don't forget to

$sudo a2enmod proxy proxy_http rewrite
$sudo a2ensite depot-video flv-depot
$/etc/init.d/bind9 restart
$/etc/init.d/apache2 restart

to get everything going again.

Samba file share

This was done so that up-to-date copies of VLC, ffmpegx, handbrake etc for each platform can be taken with each server.

It has been set up at

/opt/software

with subdirs

  • /opt/software/linux
  • /opt/software/mac
  • /opt/software/windows

and can be browsed to via windows, mac or linux

Log files worth watching

  • Apache: in /var/log/apache2/
    • depot-video-error.log (the "what is going wrong" log)
    • depot-video-access.log (the "what apache is doing with depot-video" log)
    • flv-depot-video.log
    • flv-depot-video-access.log
  • Zope: in /opt/Plone-2.5.5/zeocluster/client1/log/
    • Z2.log
    • events.log

(these two files can be deleted at any time, they will be re-made straight away)

  • indytube:
    • /opt/plumi-0.2.3-final/indytube/run_indytube.log (the "why indytube isn't running" log; deletable)
    • /var/log/depotvideo-wetube.log (the "what indytube is doing" log, should be compressed and archived)

Changing the skin:

  • You need to be logged in as a manager of the site (eg: admin user)
  • surf to http://depotvideo.bausasran/manage
  • in either left or right column, scroll down to "portal_skins" and click on it.
  • find the thing you want to change. This will almost always be in the plone- or plumi- folders:
    • plone-images
    • plone-templates
    • plone-styles
    • plumi-icons
    • plumi-images
    • plumi-templates
    • plumi-styles

within each of these folders, each object is a clickable link. By clicking "customize" you will make a copy in the custom skins folder that you can edit/upload new image/etc etc.

Changing the video categories or genres:

  • You need to be logged in as a manager of the site (eg: admin user)
  • surf to http://depotvideo.bausasran/manage
  • in either left or right column, scroll down to "portal_vocabularies" and click on it.
  • choose which list of words you want to change, click on it
  • select the drop down menu in the mid-upper right of the screen, scroll down to ATVocabularyManager Content
  • when that screen loads, select SimpleVocabularyTerm
  • give the new Term an id, then click on the term and give it a Title, then hit change.

Administering new users

  • To make a user a manager or reviewer
  • You need to be logged in as a manager of the site (eg: admin user)
  • click "preferences" in the top right
  • click on "Users and Groups Administration" in the left column
  • show all or search for user
  • apply new roles with tick boxes and save.

Changing a users password

  • You need to be logged in as a manager of the site (eg: admin user)
  • surf to http://depotvideo.bausasran/manage
  • choose acl_users from the list
  • choose source_users from the list
  • hit the password button