Tutturu 2009-05-alpha3-dev

From Transmission
Jump to: navigation, search

Doc on building Alpha 2 version of tutturu based on [turnkeylinux drupal6 v. 2009.03]

Security warning: below method will lead to opening for any one write access to folders on your future machine. It might be OK on local network but DO NOT EXPOSE the machine to wild Internet (without firewall) or run it in public area network (eg. wifi hotspot) unless you really know what you are doing.

Contents

Operating System

  1. get Turnkeylinux from [here] and install somewhere locally (tutorial for running as virtual machine is [here])
  2. name the box
    • edit etc/hostname change drupal6 into Tutturu-alpha3
  3. add additional repos
    • apt-get update && apt-get upgrade && apt-get install wget
    • add multiverse to /etc/apt/sources.list.d/sources.list
    • add medibuntu
  4. install basic stuff
    • apt-get install mc nmap bzip2 unrar unzip locate gawk php5-cgi php5-common php5-sqlite php5-xmlrpc sqlite php5-curl php5-gd ffmpeg samba php5-cli
  5. temporary hack for php/drupal memory:
    • go to webmin: System >> PHP configuration >> Manage >> Resource limits and change "Maximum memory allocation", Maximum HTTP POST size, and Maximum file upload size to 64m.
    • That is due to method of passing encoded files from media mover into cck file filed. In futuru it should be done normal way (avoiding limits of browser post method).
  6. enable cron

Drupal CMS

  1. Install fresh drupal
    • cd ~ && mkdir ~/install/ && mkdir ~/install/drupal && cd ~/install/drupal && wget http://ftp.drupal.org/files/projects/drupal-6.11.tar.gz && tar -xvzf drupal-6.11.tar.gz && mkdir /var/www/tutturu/ && cp -R ./drupal-6.11/* /var/www/tutturu/ && cp ./drupal-6.11/.htaccess /var/www/tutturu/ && chown -R www-data /var/www/tutturu/ && cd /var/www/tutturu/ && cp ./sites/default/default.settings.php ./sites/default/settings.php && chmod o+w ./sites/default/settings.php && chmod o+w ./sites/default && mkdir ./sites/default/files && chmod o+w ./sites/default/files
    • get vhost running
      • mcedit /etc/drupal/6/apache/
      • swap all /usr/shared/drupal6/ for /var/www/ and save
      • /etc/init.d/apache2 reload
    • setup new mysql database and user phpmyadmin: https://adress-of-your-appliance:12322
    • install drupal
      • drupal web user propagator pass transmitting77
    • secure the site
      • cd /var/www/tutturu/ && chmod a-w ./sites/default/settings.php && chmod a-w sites/default && chmod a-r ./CHANGELOG.txt
  2. modules instalation

Local file sharing

    • make input and output directores
      • mkdir /var/www/tutturu/sites/default/files/input && mkdir /var/www/tutturu/sites/default/files/output && chown -R www-data /var/www/tutturu/sites/default/files/input && chown -R www-data /var/www/tutturu/sites/default/files/output && chmod 777 /var/www/tutturu/sites/default/files/input && chmod 777 /var/www/tutturu/sites/default/files/output
  1. adding share definition to samba:
    • or from command line at your new machine: mcedit /etc/samba/smb.conf
    • or from your local machine gedit sftp://root@pisuar.labolatorium/etc/samba/smb.conf
      • insert on the end of file /etc/samba/smb.conf :
     [input]
     comment = here split
     path = /var/www/tutturu/sites/default/files/input
     public = yes
     writable = yes
     Create mask = 0777
     directory mask = 0777
     force user = nobody
     force group = nogroup
     [output]
     comment = here suck
     path = /var/www/tutturu/sites/default/files/output
     public = yes
     writable = yes
     Create mask = 0777
     directory mask = 0777
     force user = nobody
     force group = nogroup
    • /etc/init.d/samba restart

By now underlaying system is installed, drupal with needed modules and samba are working. It is possible to upload files from local network into system via network share. Basically any computer on local network should be able to read, upload, and delete files in network folders.

Torrent client

  1. get and unpack torrent client (to do: use rtorrent here)
    • mkdir ~/install/torrent/ && cd ~/install/torrent/ && wget http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2 && tar -jxvf ./torrentflux-b4rt_1.0-beta2.tar.bz2 && cd torrentflux-b4rt_1.0-beta2 && mkdir /var/www/torrent/ && cp -R ./html/* /var/www/torrent/ && cp /var/www/torrent/inc/config/config.db.php.dist /var/www/torrent/inc/config/config.db.php
  2. setup
    • make user + database
    • cd ~/install/torrent/torrentflux-b4rt_1.0-beta2 && mysql -u torrentflux -p torrentflux < ./sql/mysql/mysql_torrentflux-b4rt-1.0.sql
    • mcedit /var/www/torrent/inc/config/config.db.php
      • insert db user name and pass
    • chown -R www-data /var/www && rm /var/www/torrent/setup.php
  3. finishing


Drupal configuration

  1. Create content types
    • video type
  2. Media mover configs
    • here document mm configs
  3. swf tools
    • download [jw 3 player] and copy into modules/swftools/shared/flash_media_player/mediaplayer.swf
    • docs on swftools are [here]


Release of alpha2

Release notes of Tutturu-2009-05-alpha3

Personal tools