Changes

From SME Server
Jump to navigationJump to search
336 bytes added ,  12:41, 11 May 2010
m
categorisation
Line 12: Line 12:  
Download all rpms to one directory:
 
Download all rpms to one directory:
   −
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/python2.4/rpm/alternatives-0.2.0rc3-9.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/python2.4/rpms/alternatives-0.2.0rc3-9.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/python2.4/rpm/python24-2.4.2-10.el4.pyv.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/python2.4/rpms/python24-2.4.2-10.el4.pyv.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/elementtree-1.2.7-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/elementtree-1.2.7-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/jToolkit-0.7.8-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/jToolkit-0.7.8-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/kid-0.9.6-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/kid-0.9.6-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/Pootle-1.2.0-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/Pootle-1.2.0-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/lxml-1.2-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/lxml-1.2-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/psyco-1.6-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/psyco-1.6-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/pysqlite-2.4.1-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/pysqlite-2.4.1-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/python-Levenshtein-0.10.1-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/python-Levenshtein-0.10.1-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/translate-toolkit-1.2.0-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/translate-toolkit-1.2.0-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-core-1.0.4-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/xapian-core-libs-1.0.4-1.i386.rpm
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-core-libs-1.0.4-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/xapian-bindings-python-1.0.4-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-bindings-1.0.4-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/xapian-bindings-1.0.4-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-bindings-python-1.0.4-1.i386.rpm
  −
 
      
Install with yum:
 
Install with yum:
Line 44: Line 42:     
=== Start pootle server ===
 
=== Start pootle server ===
Before you can start pootle server, you will must configure an user account. Pootle come with a default user account "startup" with the same password. Edit the file '''/usr/lib/python2.4/site-packages/Pootle/user.prefs''' and uncomment the following lines:
+
Before you can start pootle server, you will must configure an user account. Pootle come with a default user account "startup" with the same password. Edit the file '''/usr/lib/python2.4/site-packages/Pootle/users.prefs''' and uncomment the following lines:
    
  startup:
 
  startup:
Line 55: Line 53:     
Then you can add a new user with admin privileges as say in pootle site, and for security reasons, comment again the user "startup".
 
Then you can add a new user with admin privileges as say in pootle site, and for security reasons, comment again the user "startup".
 +
 +
I suggest you to enable '''stats_db''' in the '''pootle.prefs''' file for improve the speed. Of course, make the cache directory and uncomment the line '''stats_db = "/var/cache/pootle/stats.db"'''
    
Manually you can start pootle server as indicate in pootle site:
 
Manually you can start pootle server as indicate in pootle site:
Line 60: Line 60:  
  python2.4 /usr/bin/PootleServer --port=8081 > /var/log/pootle.log 2>&1 &
 
  python2.4 /usr/bin/PootleServer --port=8081 > /var/log/pootle.log 2>&1 &
   −
Or better create a file named '''S99Pootle''' under '''/etc/e-smith/events/local''' and add this content:
+
Or better create a file under /etc/e-smith/events/local:
 
+
nano /etc/e-smith/events/local/S99Pootle
 +
 
  #!/bin/sh
 
  #!/bin/sh
   
  /usr/bin/python2.4 /usr/bin/PootleServer --port=8081 > /var/log/pootle.log 2>&1 &
 
  /usr/bin/python2.4 /usr/bin/PootleServer --port=8081 > /var/log/pootle.log 2>&1 &
  −
  −
Chmoded to make executable:
      
  chmod 0755 /etc/e-smith/events/local/S99Pootle
 
  chmod 0755 /etc/e-smith/events/local/S99Pootle
Line 86: Line 83:  
Or proxying through apache: http://forums.contribs.org/index.php?topic=40081
 
Or proxying through apache: http://forums.contribs.org/index.php?topic=40081
   −
 
+
=== Updating from Pootle 1.1.0 to 1.2.0 ===
=== Update from Pootle 1.1.0 to 1.2.0 ===
   
Before you try to update, keep a backup copy of '''/usr/lib/python2.4/site-packages/Pootle'''
 
Before you try to update, keep a backup copy of '''/usr/lib/python2.4/site-packages/Pootle'''
   Line 104: Line 100:  
Download the new packages under a folder
 
Download the new packages under a folder
   −
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/Pootle-1.2.0-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/Pootle-1.2.0-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/translate-toolkit-1.2.0-1.noarch.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/translate-toolkit-1.2.0-1.noarch.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-core-1.0.4-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/xapian-core-libs-1.0.4-1.i386.rpm
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-core-libs-1.0.4-1.i386.rpm
+
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpms/xapian-bindings-python-1.0.4-1.i386.rpm
  wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-bindings-1.0.4-1.i386.rpm
  −
wget http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/xapian-bindings-python-1.0.4-1.i386.rpm
      
Install them with yum
 
Install them with yum
Line 116: Line 110:     
Now copy from you Pootle backup the files '''pootle.prefs''' and '''users.prefs''' under '''/usr/lib/python2.4/site-packages/Pootle'''
 
Now copy from you Pootle backup the files '''pootle.prefs''' and '''users.prefs''' under '''/usr/lib/python2.4/site-packages/Pootle'''
 +
 +
Merge the new configuration sections if they are need it: '''Pootle.stats_db''' and '''Pootle.enablealtsrc'''
 +
 +
I suggest you to enable '''stats_db''' in the '''pootle.prefs''' file for improve the speed. Of course, make the cache directory and uncomment the line '''stats_db = "/var/cache/pootle/stats.db"'''
 +
 +
For cleanup your old pylucene indexes remove all folders '''.poindex-project-lang''' under '''po/your-project''' folder.
 +
 +
Now you can start PootleServer again.
    
=== Conclusions ===
 
=== Conclusions ===
Line 136: Line 138:  
and then expand template
 
and then expand template
   −
  expand-template /etc/yum.conf
+
  signal-event yum-modify
    
Use as --enablerepo=pyvault
 
Use as --enablerepo=pyvault
Line 149: Line 151:     
[[Category: Contrib]]
 
[[Category: Contrib]]
 +
[[Category:Development Tools]]

Navigation menu