<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nanji &#187; Tryton</title>
	<atom:link href="http://nanji.de/blog/category/dev/tryton/feed/" rel="self" type="application/rss+xml" />
	<link>http://nanji.de/blog</link>
	<description>Seo, Sem, Usability, Entwicklung, PHP, VoIP, TTS</description>
	<lastBuildDate>Thu, 14 Jan 2010 14:49:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Tryton ERP Update unter Debian 5.0 “Lenny” von 1.2 auf 1.4</title>
		<link>http://nanji.de/blog/dev/tryton/tryton-erp-update-unter-debian-5-0-%e2%80%9clenny%e2%80%9d-von-1-2-auf-1-4/</link>
		<comments>http://nanji.de/blog/dev/tryton/tryton-erp-update-unter-debian-5-0-%e2%80%9clenny%e2%80%9d-von-1-2-auf-1-4/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 14:49:42 +0000</pubDate>
		<dc:creator>huzzel</dc:creator>
				<category><![CDATA[Tryton]]></category>

		<guid isPermaLink="false">http://nanji.de/blog/?p=115</guid>
		<description><![CDATA[Tryton ERP Update unter Debian 5.0 “Lenny” von 1.2 auf 1.4]]></description>
			<content:encoded><![CDATA[<p>Die Informationen über ein Update habe ich nicht recherchieren können. Timitos war so nett mir auf die Sprünge zu helfen.<br />
http://tryton.origo.ethz.ch/node/204<br />
Ebenfalls hilfreich war dieser http://wiki.ubuntuusers.de/Tryton#Update Artikel.</p>
<p>Man sollte eine <strong>EXTERNE </strong> Sicherung vom kompletten Ordner anlegen <img src='http://nanji.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Das Backupen der Datenbank spare ich mir. Ich werde dafür bald einen eigenen Artikel schreiben.</p>
<pre>
/etc/init.d/trytond stop
cd /usr/local/tryton/
tar cfz tryton_bck.tgz *
</pre>
<p>jetzt den Ordner leeren</p>
<pre>
cd /usr/local/tryton/
rm -r *
</pre>
<p>nun brauchen wir wieder das updatescript</p>
<pre>
cd /usr/local/tryton
wget http://hg.tryton.org/hgwebdir.cgi/tryton-dev/raw-file/tip/tryton-dev.sh
chmod +x tryton-dev.sh
./tryton-dev.sh -b 1.4
</pre>
<p>Danach sollte man noch die Datenbank auf den neuen Stand bringen und den Dienst neustarten. Das erledigt man mit</p>
<pre>
/usr/local/tryton/trytond/bin/trytond -u all -d <datenbankname>
/etc/init.d/trytond restart
</pre>
<p>Viel Spaß <img src='http://nanji.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  mit der 1.4 </p>
]]></content:encoded>
			<wfw:commentRss>http://nanji.de/blog/dev/tryton/tryton-erp-update-unter-debian-5-0-%e2%80%9clenny%e2%80%9d-von-1-2-auf-1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tryton ERP unter Debian 5.0 &#8220;Lenny&#8221; (Quick &amp; Dirty) für Anwender :-)</title>
		<link>http://nanji.de/blog/dev/tryton/tryton-erp-unter-debian-50-lenny-quick-dirty-fur-anwender/</link>
		<comments>http://nanji.de/blog/dev/tryton/tryton-erp-unter-debian-50-lenny-quick-dirty-fur-anwender/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 18:13:08 +0000</pubDate>
		<dc:creator>huzzel</dc:creator>
				<category><![CDATA[Tryton]]></category>

		<guid isPermaLink="false">http://nanji.de/blog/?p=74</guid>
		<description><![CDATA[Dieser Artikel bezieht sich auf Tryton 1.2 
aptitude install mercurial postgresql
Jetzt müssen wir noch den Datenbankserver absichern

su postgres
psql -c "ALTER ROLE postgres WITH PASSWORD 'dbpasswd';"
exit

Und da der Server nur local lauschen soll noch schnell unter

vim /etc/postgresql/8.3/main/postgresql.conf
listen_addresses = 'localhost'

und IPv6 auskommentieren

vim /etc/postgresql/8.3/main/pg_hba.conf
# host    all         all [...]]]></description>
			<content:encoded><![CDATA[<p>Dieser Artikel bezieht sich auf Tryton 1.2 </p>
<pre>aptitude install mercurial postgresql</pre>
<p>Jetzt müssen wir noch den Datenbankserver absichern</p>
<pre>
su postgres
psql -c "ALTER ROLE postgres WITH PASSWORD 'dbpasswd';"
exit
</pre>
<p>Und da der Server nur local lauschen soll noch schnell unter</p>
<pre>
vim /etc/postgresql/8.3/main/postgresql.conf
listen_addresses = 'localhost'
</pre>
<p>und IPv6 auskommentieren</p>
<pre>
vim /etc/postgresql/8.3/main/pg_hba.conf
# host    all         all         ::1/128               md5
</pre>
<p>Nun starten wir den postgresqlserver neu und schauen ob er lokal lauscht.</p>
<pre>
/etc/init.d/postgresql-8.3 restart
netstat -taupen
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      102        17456       4273/postgres
</pre>
<p>Wir brauchen natürlich noch einen tryton user und einen datenbankaccount</p>
<pre>
adduser --no-create-home --system --group tryton
mkdir /usr/local/tryton
chown -R tryton:tryton /usr/local/tryton
su postgres -c "createuser --createdb --no-adduser -P tryton"
Geben Sie das Passwort der neuen Rolle ein:passwd
Geben Sie es noch einmal ein:passwd
Soll die neue Rolle weitere neue Rollen erzeugen dürfen? (j/n) n
</pre>
<p>Es ist an der Zeit Tryton herunterzuladen</p>
<pre>
cd /usr/local/tryton
wget http://hg.tryton.org/hgwebdir.cgi/tryton-dev/raw-file/tip/tryton-dev.sh
chmod +x tryton-dev.sh
./tryton-dev.sh -b 1.2
</pre>
<p>Das ganze dauert jetzt ein bisschen <img src='http://nanji.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  *kaffee*<br />
Jetzt lösen wir noch ein paar Abhängigkeiten auf</p>
<pre>
aptitude install python-psycopg2 python-lxml python-setuptools python-beautifulsoup python-vobject python-tz python-ldap python-yaml python-cairo python-pycha
easy_install -U setuptools
easy_install relatorio
easy_install PyWebDAV
</pre>
<p>Das müsste es gewesen sein.<br />
Natürlich muss jetzt noch die Konfigruationsdatei angepasst werden. Nach diesem Tutorial findet man Sie unter</p>
<pre>
vim /usr/local/tryton/trytond/etc/trytond.conf
# das Pw von su postgres -c "createuser --createdb --no-adduser -P tryton"
db_host = localhost
db_user = tryton
db_password = pass
admin_passwd = topsecret
data_path = /var/lib/trytond
logfile = /var/log/trytond.log
</pre>
<p>Noch ein paar Verzeichnisse </p>
<pre>
touch /var/log/trytond.log
chown tryton:tryton /var/log/trytond.log
mkdir /var/lib/trytond
chown -R tryton:tryton /var/lib/trytond
</pre>
<p>Nun können wir den Server zum ersten mal starten</p>
<pre>
cd /usr/local/tryton/trytond/bin
./trytond
[Sun Oct 04 23:11:25 2009] DEBUG:psycopg2:installed. Logging using Python logging module
[Sun Oct 04 23:11:26 2009] INFO:server:waiting for connections...
</pre>
<p>Mit Strg+c könnt ihr den Server beenden (dirty)<br />
Wir bräuchen nämlich noch ein Startscript<br />
Leider blockiert wget den download deswegen hör ich jetz auf<br />
#http://groups.google.com/group/tryton/web/debian_sample_initscripts.tar.bz2</p>
<pre>
Ab diesem Punkt gibt es genug andere Docs <img src='http://nanji.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <br />
#http://debian.asconix.com/tryton-debian-lenny-howto<br />
#http://tryton.origo.ethz.ch/wiki/doc</p>
]]></content:encoded>
			<wfw:commentRss>http://nanji.de/blog/dev/tryton/tryton-erp-unter-debian-50-lenny-quick-dirty-fur-anwender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
