You are here: Noosfero>Dev>Deploy>DebianPackage (18 Apr 2012, AntonioTerceiro) EditAttach

Feature: Debian Package

Important notice

Since Noosfero 0.36.0, the Debian packages are developed for, and tested on, Debian GNU/Linux stable (currently Debian 6.0, codename Squeeze). In special, Noosfero currently requires Rails version 2.3.5, which is the version shipped with Debian Squeeze.

If you try to install this package on other Debian-based systems, it may work if you have Rails 2.3.5 installed, but it can also melt down your CPU, eat your hard drives, steal your wallet and crap on your kitchen. Use at your own risk.

The Noosfero Debian repository does not includes the tango icon theme package anymore because this package has moved into the main section on Squeeze.

If you have any questions, ask on the mailing lists or on IRC (Freenode: #noosfero for English, #noosfero-br for Portuguese).

Installation

Add the following line to your /etc/apt/sources.list:

deb http://download.noosfero.org/debian/squeeze ./

Run the following command to add our archive signing key to your APT security database:

$ wget -O - http://download.noosfero.org/debian/signing-key.asc | sudo apt-key add -

Update your packages lists:

$ sudo apt-get update

Install Noosfero:

$ sudo apt-get install noosfero noosfero-apache

Attention: Noosfero 0.35.3, is the last version that requires Rails 2.1.0 and works on Debian 5 (lenny). To obtain it, add the following line to your /etc/apt/sources.list instead of the one above: deb http://download.noosfero.org/debian/lenny ./

Converting a manual installation to a Debian package installation

If you already have an installation of Noosfero which was made by following the instructions in the distributed INSTALL file, this section describes how to migrate to a Debian package-based installation.

The migration must be done to the same version of the current installation, so you must first upgrade your manual installation to the same version of the Debian packages you wish to install. To do that, follow the instructions in the INSTALL file.

After your manual installation is running the latest Noosfero version, follow the following steps to migrate from it to a Debian package-based installation:

  • Stop Noosfero
    • invoke-rc.d noosfero stop
  • Unlink /etc/init.d/noosfero
    • unlink /etc/init.d/noosfero
  • Unlink /etc/logrotate.d/noosfero
    • unlink /etc/logrotate.d/noosfero
  • Install the following packages noosfero and noosfero-apache
    • apt-get install noosfero noosfero-apache
  • Stop Noosfero
    • invoke-rc.d noosfero stop
  • Create a dump of noosfero_production and populate the database noosfero
  • Move the following folders from the old installation to the new one
    • mv public/articles/* /var/lib/noosfero-data/public/articles/
    • mv public/thumbnails/* /var/lib/noosfero-data/public/thumbnails/
    • mv public/images/[0-9]* /var/lib/noosfero-data/public/image_uploads/
    • mv index/* /var/lib/noosfero-data/index/
  • If varnish is in use
    • change port number from 80 to 8080 at /etc/apache2/sites-available/noosfero
    • correct include path at /etc/varnish/default.vcl file to /etc/noosfero/varnish-accept-language.vcl
  • Change noosfero home to /usr/share/noosfero
    • usermod -d /usr/share/noosfero/ noosfero
  • Start noosfero
    • invoke-rc.d noosfero start

If you have any questions, ask on the mailing lists or on IRC.

Related action items:
Action item Version Status
#1842: I can't remove noosfero Debian package 0.29.3 Rejected
#1848: Missing noosfero.yml.dist and database.yml.template at wrong place 0.30.2 Done
#1849: Impossible to run rake db:migrate with noosfero user 0.30.2 Rejected
#1850: Errors on Noosfero package upgrade 0.31.4 Rejected
#1897: Upgrade to rails 2.3 0.36.0 Done
#2014: Warnings about ufc while upgrading debian package N/A Rejected
#2126: Ask for environment contact e-mail from debconf   Pending
#2141: Missing varnish files for Noosfero 0.37.1 Pending
#2146: Rake task to debian package building doesn't work 0.34.1 Rejected
#2230: Allow the admin to opt-out from creating a virtual host definition automatically N/A Pending
#2291: Debian package fails on new installs 0.35.2 Done
#2300: Some pids files aren't stopped with stop_via_pid_file 0.35.3 Done
#2358: Noosfero keeps writing to rotated log files 0.37.1 Pending
#919: Initial Debian packaging 0.28.0 Done

FeatureForm edit

Name Debian Package
Topic revision: r16 - 18 Apr 2012 - 13:38:16 - AntonioTerceiro
 
Translations: English
Global Search:
   
ActionItem Search:

Copyright © 2007-2011 Noosfero
Colivre - Cooperativa de Tecnologias Livres