<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Supporting Open Source weblog: Category artikels</title>
    <link>http://blog.sos.be/articles/category/artikels</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Virus en spam filtering mail server</title>
      <description>Zoals voorzien installeer ik vandaag op onze nieuwe CentOS server een betrouwbare virus- en spamfiltering mail server.
&lt;h4&gt;Overzicht&lt;/h4&gt;&lt;img src="/files/mailserver.png"/&gt;Naar de buitenwereld toe zijn er 2 poorten beschikbaar: de standaard &lt;span class="caps"&gt;SMTP&lt;/span&gt; poort 25 waar de inkomende mail afgeleverd wordt en de standaard &lt;span class="caps"&gt;IMAPS&lt;/span&gt; poort 993 waar de mail wordt opgehaald door de gebruikers. De &lt;a href="http://www.postfix.org/"&gt;postfix&lt;/a&gt; instantie die de berichten van de buitenwereld ontvangt zorgt ervoor dat de server niet als open relay kan gebruikt worden en voert enkele rudimentaire checks uit om ongewenste mail al aan de bron weg te filteren. Daarna geeft deze de mail door aan &lt;a href="http://www.ijs.si/software/amavisd/"&gt;amavis&lt;/a&gt;. Amavis zorgt vervolgens voor de virus- en spamfiltering door gebruik te maken van &lt;a href="http://spamassassin.apache.org/"&gt;spamassassin&lt;/a&gt; en &lt;a href="http://www.clamav.net/"&gt;ClamAV&lt;/a&gt;. Als de mail aanvaardbaar is wordt deze via de interne Postfix instantie die op poort 10025 luistert afgeleverd in de mailbox van de gebruiker.&lt;h4&gt;Basis installatie&lt;/h4&gt;Onze nieuwe mail server gebruikt zoals gezegd postfix als &lt;span class="caps"&gt;MTA&lt;/span&gt;. Standaard wordt op CentOS echter sendmail als &lt;span class="caps"&gt;MTA&lt;/span&gt; geïnstalleerd. De gemakelijkste manier om van &lt;span class="caps"&gt;MTA&lt;/span&gt; te switchen op een RedHat gebaseerd systeem is door de system-switch-mail en de postfix packages te installeren. Door het system-switch-mail script uit te voeren en voor postfix te kiezen worden alle mail gerelateerde opdrachten via postfix uitgevoerd.
De vorige keer dat ik een gelijkaardige server opgezet heb had ik de packages die niet bij de distributie zaten zelf gecompileerd en gepackaged tot installeerbare RPMs. Ondertussen is dat niet meer nodig dankzij het goede werk van de &lt;a href="http://rpmforge.net/"&gt;rpmforge&lt;/a&gt; jongens. Om de rpmforge packages te gebruiken in yum (of apt) installeer je de rpmforge-release package die bij je distributie past. Na de manuele installatie van deze package kan je de andere packages met yum installeren net zoals de packages die door je distributie aangeboden worden.
Met deze yum opdracht installeren we alles wat nodig is voor onze mail server:
&lt;pre&gt;# yum install amavisd-new clamav clamd razor-agents&lt;/pre&gt;Alle bijbehorende dependencies worden ook aangeboden om te installeren.
Er is echter 1 package die ik wil gebruiken die noch op de distributie repositories, noch op de rpmforge repository beschikbaar is. De pyzor package installeer ik manueel nadat ik hem gedownload heb van de fedora repository.
Nu alle benodigde packages geïnstalleerd zijn zorg ik via &lt;pre&gt;# yum update&lt;/pre&gt; ervoor dat de laatste versies van alle packages gebruikt worden. Op de rpmforge repository zijn namelijk oa updates van spamassassin aanwezig die nieuwe zijn dan deze van CentOS. Gezien de snelheid waarmee de spammers hun technieken evolueren is het zaak om ook de tools om de spammers te bestrijden zo recent mogelijk te houden.
&lt;h4&gt;Dovecot configuratie&lt;/h4&gt;Net na de installatie wou dovecot niet opstarten. In /var/log/maillog verscheen de boodschap: &lt;pre&gt;dovecot: imap-login: imap-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory&lt;/pre&gt; Een google search leerde mij dat de standaard config van dovecot niet werkt op een x86_64 architectuur. De fix was simpelweg om in /etc/dovecot.conf deze lijn toe te voegen:&lt;pre&gt;login_process_size = 64&lt;/pre&gt;Aangezien we niet van plan zijn om een ander protocol te gebruiken dan imaps beperken we de protocols dan ook door dit aan te geven in /etc/dovecot.conf:&lt;pre&gt;protocols = imaps&lt;/pre&gt;Omdat we mailboxen in het Maildir formaat gebruiken kunnen we dat best ook zo aangeven:&lt;pre&gt;mail_location = maildir:~/Maildir&lt;/pre&gt;&lt;h4&gt;ClamAV configuratie&lt;/h4&gt;De clamd standaard configuratie zoals ze gepackaged is door de mensen van rpmforge is bijna onmiddellijk bruikbaar. Het enige dat ik extra configureer omdat de communicatie van amavis naar clamd via een socket file verloopt is het pad naar deze socket file in /etc/clamd.conf:&lt;pre&gt;LocalSocket /var/run/clamav/clamd.socket&lt;/pre&gt;Aangezien de &amp;#8220;AllowSupplementaryGroups yes&amp;#8221; configuratie reeds gebeurd is hoeven we daar niets extras voor te doen buiten de clamav gebruiker aan de amavis groep toe te voegen:&lt;pre&gt;usermod -G amavis clamav&lt;/pre&gt;&lt;h4&gt;Pyzor configuratie&lt;/h4&gt;Om pyzor te kunnen gebruiken als anti spam maatregel moeten we dit correct configureren voor de amavis gebruiker aangezien deze spamassassin en dus ook pyzor zal uitvoeren. De configuratie beperkt zich tot:&lt;pre&gt;# su - amavis
$ pyzor discover&lt;/pre&gt;Als alles goed verlopen is bestaat er nu in de home directory van de amavis gebruiker een subdirectory .pyzor met een servers bestand erin. Of deze servers ook bereikbaar zijn kan getest worden met:&lt;pre&gt;$ pyzor ping
82.94.255.100:24441     (200, 'OK')&lt;/pre&gt;&lt;h4&gt;Razor configuratie&lt;/h4&gt;We maken een default razor configuratie aan met:&lt;pre&gt;# su - amavis
$ razor-admin -create
$ razor-admin -register&lt;/pre&gt;Vervolgens verlagen we de debug boodschappen door in /var/amavis/.razor/razor-agent.conf de debuglevel parameter te wijzigen in:&lt;pre&gt;debuglevel = 0&lt;/pre&gt;&lt;h4&gt;Amavis configuratie&lt;/h4&gt;De amavis configuratie van de rpmforge package is op enkele kleine aanpassingen na perfect voor onze mail server.
Tijdens de eerste weken willen we echter wat voorzichtig zijn met het klasseren van spam en willen we de spam scores goed kunnen monitoren. Daarom zorgen we ervoor dat elke boodschap een spam score header meekrijgt:&lt;pre&gt;$sa_tag_level_deflt  = undef&lt;/pre&gt;Aangezien wij ClamAV gebruiken als virusscanner vervangen we de @av_scanners en @av_scanners_backup secties door:&lt;pre&gt;@av_scanners = (
['ClamAV-clamd',
  \&amp;#38;ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.socket"],
  qr/\bOK$/, qr/\bFOUND$/,
  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);

@av_scanners_backup = (
  ['ClamAV-clamscan', 'clamscan',
    "--stdout --no-summary -r --tempdir=$TEMPBASE {}",
    [0], qr/:.*\sFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);&lt;/pre&gt;De bestandsnaam van de socket file zoals we die in /etc/clamd.conf meegegeven hebben moet dezelfde zijn als deze die hier geconfigureerd is. Als clamd voor een onbekende reden down is of niet antwoordt, wordt de command line scanner clamscan gebruikt.
&lt;h4&gt;Postfix configuratie&lt;/h4&gt;Nu alle backend mail filtering geconfigureerd is moeten we de postfix queues configureren zoals in het overzicht beschreven is. Dit doen we door in /etc/postfix/main.cf een content filter te definiëren:&lt;pre&gt;content_filter = smtp-amavis:[127.0.0.1]:10024&lt;/pre&gt;Voor de uiteindelijke afevering van de berichten hebben we nog een extra postfix instantie nodig die we in /etc/postfix/master.cf configureren:&lt;pre&gt;### anti spam and anti virus
smtp-amavis unix -      -       n       -       2       smtp
  -o smtp_data_done_timeout=1200
  -o disable_dns_lookups=yes
127.0.0.1:10025 inet n  -       n       -       -       smtpd
  -o content_filter=
  -o local_recipient_maps=
  -o relay_recipient_maps=
  -o smtpd_restriction_classes=
  -o smtpd_client_restrictions=
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/8&lt;/pre&gt;De tweede postfix instantie die op poort 10025 luistert doet dit enkel voor localhost en aanvaardt enkel mail vanuit de zeer restrictieve mynetworks 127.0.0.1/8. De content_filter wordt leeg doorgegeven om ervoor te zorgen dat de berichten niet weer aan amavis doorgegeven worden.
Het enige wat nu nog rest is de postfix instantie op poort 25 ook op de externe netwerk interface te laten luiteren want standaard is postfix op CentOS zo geconfigureerd om enkel connecties van loaclhost te aanvaarden. Als er slecht 1 externe interface aanwezig is of indien de smtpd op alle externe interfaces moet luiteren volstaat het om de actieve inet_interfaces lijn uit te commentariëren in /etc/postfix/main.cf:&lt;pre&gt;#inet_interfaces = localhost&lt;/pre&gt;
De volgende lijnen in /etc/postfix/main.cf zorgen ervoor dat de mail server niet als open relay kan gebruikt worden:&lt;pre&gt;myhostname = mail.sos.be
myorigin = $mydomain
mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8&lt;/pre&gt;De laatste postfix configuratie parameter die we gewijzigd hebben tov het standaard CentOS configuratie bestand zorgt ervoor dat de mail in Maildir formaat afgeleverd wordt:&lt;pre&gt;home_mailbox = Maildir/&lt;/pre&gt;</description>
      <pubDate>Fri, 28 Dec 2007 17:55:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:d83c3be8-367e-4b9b-b6b0-59bbfde23113</guid>
      <author>Gert Dewit</author>
      <link>http://blog.sos.be/articles/2007/12/28/virus-en-spam-filtering-mail-server</link>
      <category>artikels</category>
      <category>amavis</category>
      <category>byte</category>
      <category>clamav</category>
      <category>linux</category>
      <category>postfix</category>
      <category>spamassassin</category>
      <enclosure type="image/png" url="http://blog.sos.be/files/mail-server.png" length="14303"/>
    </item>
    <item>
      <title>Operational security, impact on developing secure applications</title>
      <description>&lt;p&gt;Presentatie op &lt;span class="caps"&gt;OWASP&lt;/span&gt; door Patrick Debois&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://blog.sos.be/files/owasp-11-2007-patrick-debois-v5__Compatibility_Mode_.pdf"&gt;&lt;img src="http://blog.sos.be/files/presentatie_owasp.png" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;&lt;a href="/files/owasp-11-2007-patrick-debois-v5__Compatibility_Mode_.pdf"&gt;Download pdf&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 15 Dec 2007 18:24:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:fda62623-3b17-45ee-9dcc-31271434f8a7</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/12/15/operational-security-impact-on-developing-secure-applications</link>
      <category>artikels</category>
      <category>tips</category>
      <category>presentatie</category>
    </item>
    <item>
      <title>Lost use cases of operations</title>
      <description>&lt;h4&gt;Javapolis 2007&lt;/h4&gt;


	&lt;p&gt;Presenatie &lt;em&gt;&amp;#8220;Lost use cases of operations&amp;#8221;&lt;/em&gt; door Patrick Debois&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.slideshare.net/jedi4ever/the-lost-use-cases-of-operations/"&gt;&lt;img src="/files/lost_use_cases_of_operations.png" title="slideshow" alt="slideshow" /&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 15 Dec 2007 18:09:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e164968b-c31f-427f-9d14-4b73f5cb64a6</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/12/15/lost-use-cases-of-operations</link>
      <category>artikels</category>
      <category>tips</category>
      <category>presentatie</category>
    </item>
    <item>
      <title>Startup script for Radiant with Mongrel</title>
      <description>&lt;p&gt;&lt;a href="http://mongrel.rubyforge.org/index.html"&gt;Mongrel&lt;/a&gt; is &lt;span class="caps"&gt;IMHO&lt;/span&gt; the preferred (web)server for &lt;em&gt;Ruby on Rails&lt;/em&gt; applications hence for &lt;a href="http://www.radiantcms.org"&gt;Radiant&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;Here you can find a startup script for Fedora linux, but of course also usable for Ubuntu, ...&lt;/p&gt;


&lt;pre&gt;
#!/bin/bash
#
#    /etc/rc.d/init.d/radiant_cms
#
# Start mongrel &amp;#38; radiant
#
# chkconfig: - 65 35
# description: Mongrel &amp;#38; radiant
# processname: mongrel
# Source function library.
. /etc/init.d/functions

MONGREL=/usr/bin/mongrel_rails
RAILSDIR=/var/www/radiant
CONFFILE=mongrel_config

test -x $MONGREL || exit 0

RETVAL=0
prog="Mongrel for radiant" 

start() {
        echo -n $"Starting $prog: " 
    cd $RAILSDIR
    $MONGREL start -C $CONFFILE
    RETVAL=$?
    echo
}

stop() {
    echo -n $"Stopping $prog: " 
    cd $RAILSDIR
    $MONGREL stop
    RETVAL=$?
    echo
}

#
#    See how we were called.
#
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart)
    stop
    start
    RETVAL=$?
    ;;
  *)
    echo $"Usage: $0 {start|stop|restart}" 
    exit 1
esac

exit $RETVAL
&lt;/pre&gt;&lt;h4&gt;mongrel_config&lt;/h4&gt;


&lt;pre&gt;
--- 
:cwd: /var/www/radiant
:includes: 
- mongrel
:debug: false
:log_file: log/mongrel.log
:config_script: 
:pid_file: log/mongrel.pid
:timeout: 0
:num_processors: 1024
:docroot: public
:config_file: 
:user: apache
:host: 0.0.0.0
:group: apache
:mime_map: 
:environment: production
:prefix: 
:port: 4000
:daemon: true
&lt;/pre&gt;

	&lt;p&gt;This file should be fairly self explaining:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;/var/www/radiant&lt;/code&gt; is the &lt;strong&gt;radiant&lt;/strong&gt; base directory.&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;host:&lt;/em&gt; 0.0.0.0 listens on every address, for safety better to use 127.0.0.1, and in combination with reverse proxying&lt;/li&gt;
		&lt;li&gt;&lt;em&gt;port:&lt;/em&gt; 4000 for instance for reverse proxying, 80 for direct web serving.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;&lt;strong&gt;mongrel&lt;/strong&gt; with &lt;em&gt;apache&lt;/em&gt; as a &lt;em&gt;reverse proxy&lt;/em&gt; will be explained in a different article to come.&lt;/p&gt;


	&lt;h3&gt;chkconfig&lt;/h3&gt;


	&lt;p&gt;On fedora you can use &lt;code&gt;chkconfig&lt;/code&gt; to activate the startup script. Please also read the &lt;code&gt;chkconfig&lt;/code&gt; man page.&lt;/p&gt;


To be manageable by chkconfig, the script needs a special section, an example follows:
&lt;pre&gt;
#!/bin/bash
#
#    /etc/rc.d/init.d/radiant_cms
#
# Start mongrel &amp;#38; radiant
#
# chkconfig: - 65 35
# description: Mongrel &amp;#38; radiant
# processname: mongrel
&lt;/pre&gt;

Active? And in wich runlevels?
&lt;pre&gt;
chkconfig --list radiant_cms
service radiant_cms supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add radiant_cms')
&lt;/pre&gt;

So it is added, but not yet activated:
&lt;pre&gt;
chkconfig --add radiant_cms
chkconfig --list radiant_cms
radiant_cms        0:off   1:off   2:off   3:off   4:off   5:off   6:off
&lt;/pre&gt;

	&lt;p&gt;And, to activate:&lt;/p&gt;


&lt;pre&gt;
chkconfig radiant_cms on

chkconfig --list 
radiant_cms        0:off   1:off   2:on    3:on    4:on    5:on    6:off
&lt;/pre&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:54:00 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:242c52db-a14e-450d-9c68-ce3a080c1962</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/03/26/startup-script-for-radiant-with-mongrel</link>
      <category>artikels</category>
      <category>interessant open source</category>
      <category>mongrel</category>
      <category>radiant</category>
    </item>
    <item>
      <title>Let There Be Light: Promoting OpenOffice.org with Sun</title>
      <description>&lt;p&gt;The OpenDocument Format (ODF) just keeps on getting stronger. It is now an official &lt;span class="caps"&gt;ISO&lt;/span&gt; standard; there are numerous applications that support it, with varying degrees of fidelity, including Google&amp;#8217;s online word processor and spreadsheet; there&amp;#8217;s an official Microsoft-funded plug-in for Microsoft Office that allows it to open and save &lt;span class="caps"&gt;ODF&lt;/span&gt; files, and a program that converts between &lt;span class="caps"&gt;ODF&lt;/span&gt; and the Chinese &lt;span class="caps"&gt;UOF XML&lt;/span&gt; office format; and the &lt;span class="caps"&gt;ODF&lt;/span&gt; community has largely sorted out issues of accessibility that threatened to de-rail its adoption by Massachusetts.&lt;/p&gt;


	&lt;p&gt;At the same time, Microsoft is clearly beginning to feel the pressure. Its attempts to ram its own &lt;span class="caps"&gt;XML&lt;/span&gt; format through as an &lt;span class="caps"&gt;ISO&lt;/span&gt; standard, and the unseemly haste with which its 6000 pages of documentation were approved as an &lt;span class="caps"&gt;ECMA&lt;/span&gt; standard, are an indication that it is playing catch-up in this sector, even if it remains the dominant player.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://www.linuxjournal.com/node/1000179"&gt;Read the rest of this Linux Journal article&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 14 Feb 2007 17:13:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e4d468e0-e705-47ce-8c72-e0c57a7f6575</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/02/14/let-there-be-light-promoting-openoffice-org-with-sun</link>
      <category>artikels</category>
      <category>interessant open source</category>
    </item>
    <item>
      <title>Conceptual model of the mysql information_schema</title>
      <description>&lt;p&gt;In MySQL (&amp;gt;= 5.0) there exists a metadata database, &lt;span class="caps"&gt;INFORMATION&lt;/span&gt;_SCHEMA, in wich is stored information about all other databases, their tables, columntypes, accessprivileges, etc.&lt;/p&gt;&lt;p&gt;In addition to the &lt;code&gt;show&lt;/code&gt; commands, the &lt;code&gt;select ... from information_schema....&lt;/code&gt; offers the possibility of nearly unlimited output variations in querying the metadata.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;INFORMATION&lt;/span&gt;_SCHEMA is a special kind of database, there is no database directory of that name, and some tables are in fact views, and it is also read-only. But you can connect to it with the &lt;code&gt;use&lt;/code&gt; statement.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://rpbouman.blogspot.com/"&gt;Roland Bouman&lt;/a&gt; created an interesting &lt;a href="http://www.xcdsql.org/MySQL/information_schema/5.1/MySQL_5_1_INFORMATION_SCHEMA.html"&gt;diagram&lt;/a&gt; of the &lt;span class="caps"&gt;INFORMATION&lt;/span&gt;_SCHEMA database;&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://dev.mysql.com/doc/refman/5.0/en/information-schema.html"&gt;See Also the MySQL reference Manual&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 05 Feb 2007 16:00:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e63dc589-01e7-4f1e-aead-263363cb3ed9</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/02/05/conceptual-model-of-the-mysql-information_schema</link>
      <category>artikels</category>
    </item>
    <item>
      <title>Installing typo with the installer</title>
      <description>&lt;p&gt;(&lt;a href="http://blog.sos.be/articles/2007/01/17/typo-installeren-met-de-installer"&gt;De nederlandse versie van dit artikel&lt;/a&gt;)&lt;/p&gt;


	&lt;p&gt;The most recent version (4.0.3) of typo has a gem based installer included. Installing the typo weblog server is now fairly easy to do.&lt;/p&gt;&lt;p&gt;See also: &lt;a href="http://scottstuff.net/blog/articles/2006/07/23/typo-installer"&gt;ScottStuff&lt;/a&gt;&lt;/p&gt;


&lt;pre&gt;
gem install typo --include-dependencies

typo install directory bind-address=127.0.0.1 port-number=3010 database=mysql
db_name=xxx db_user=xxx db_password=xxx
&lt;/pre&gt;

	&lt;p&gt;For installing typo: &lt;code&gt;typo install directory var1=val1 var2=val2 ...&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;To modify the config: &lt;code&gt;typo config directory var1=val1 var2=val2 ...&lt;/code&gt;&lt;/p&gt;


&lt;hr/&gt;

	&lt;p&gt;&lt;strong&gt;But attention:&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;&lt;em&gt;Modification for the database params, as mentioned above, have no effect. You need to change them manually in the rails database config:&lt;/em&gt; &lt;code&gt;/path/to/typo/config/database.yml&lt;/code&gt;&lt;/p&gt;


&lt;hr/&gt;

	&lt;p&gt;For displaying the current config: &lt;code&gt;typo config directory&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;Wich gives the following result, and at once the possible parameters:&lt;/p&gt;


&lt;pre&gt;
typo config typo

database=mysql
db_name=typo
db_user=xxx
db_password=xxx
port-number=xxx
rails-environment=production
threads=2
web-server=mongrel
&lt;/pre&gt;

Other useful options/variables are:
&lt;pre&gt;
bind-address
url-prefix
&lt;/pre&gt;

	&lt;h2&gt;To start and to stop:&lt;/h2&gt;


&amp;nbsp;
&lt;pre&gt;
typo start /path/to/typo

typo stop /path/to/typo
&lt;/pre&gt;</description>
      <pubDate>Fri, 02 Feb 2007 22:05:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:9ede8578-44c5-4fc5-9671-d2538f7fb2fe</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/02/02/installing-typo-with-the-installer</link>
      <category>artikels</category>
      <category>typo</category>
    </item>
    <item>
      <title>secure apt: authenticatie van packages</title>
      <description>&lt;h3&gt; Authenticatiefout&lt;/h3&gt;


	&lt;p&gt;Soms komt er de mededeling:&lt;/p&gt;


&lt;pre&gt;
Warning: The following packages cannot be authenticated!

 ... ... ...

Install these packages without verification [y/N] ?
&lt;/pre&gt;

	&lt;p&gt;Dit komt omdat recente packages kunnen getest worden op een geldige signature.&lt;/p&gt;


	&lt;p&gt;Je kan de melding negeren, en gewoon verder gaan. Of je kan het verifiëren uitschakelen door een extra optie mee te geven met apt-get.&lt;/p&gt;&lt;pre&gt;
apt-get --allow-unauthenticated install ...
&lt;/pre&gt;

	&lt;p&gt;Ook is het mogelijk een extra lijn toe te voegen in /etc/apt/apt.conf:&lt;/p&gt;


&lt;pre&gt;
APT::Get:AllowUnauthenticated 1;
&lt;/pre&gt;

	&lt;h3&gt; Signature Checking&lt;/h3&gt;


	&lt;p&gt;Maar nog beter, om corrupte packages te vermijden, is deze te verifiëren tegen een public key.&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;gnupg moet reeds geïnstalleerd zijn&lt;/li&gt;
		&lt;li&gt;&lt;strong&gt;ziyi_key_JJJJ.asc&lt;/strong&gt; downloaden van de debian webstek onder releases&lt;/li&gt;
		&lt;li&gt;volgende commando&amp;#8217;s uitvoeren:&lt;/li&gt;
	&lt;/ul&gt;


&lt;pre&gt;
cat ziyi_key_JJJJ.asc | gpg --import

gpg --list-keys

apt-key list

gpg -a --export [keycode] | apt-key add -

apt-key list
&lt;/pre&gt;

&lt;hr /&gt;

	&lt;h2&gt;Voor ubuntu&lt;/h2&gt;


	&lt;p&gt;Voor ubuntu kunnen de keyfiles gedownload worden, ook voor de meeste third-party repositories.&lt;/p&gt;


	&lt;p&gt;Om zo&amp;#8217;n key in te brengen in de &lt;em&gt;&lt;span class="caps"&gt;APT&lt;/span&gt; trusted keys database&lt;/em&gt;:&lt;/p&gt;


&lt;pre&gt;
wget http://dl.ivtvdriver.org/ubuntu/80DF6D58.gpg -O- | sudo apt-key add -
&lt;/pre&gt;

	&lt;p&gt;Zie ook de manpage van &lt;code&gt;wget&lt;/code&gt; maar &lt;code&gt;-O-&lt;/code&gt; wil zeggen: schrijven naar &lt;span class="caps"&gt;STDOUT&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Synaptic&lt;/strong&gt;: Je kan de keyfile ook gewoon downloaden en dan inbrengen met &lt;em&gt;synaptic -&amp;gt; settings&lt;/em&gt; -&amp;gt; &lt;em&gt;repositories&lt;/em&gt; -&amp;gt;  &lt;em&gt;Authentication tab&lt;/em&gt;.&lt;/p&gt;</description>
      <pubDate>Tue, 30 Jan 2007 12:23:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:3cdb4baa-a954-4474-8511-f351a6114efb</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/01/30/secure-apt-authenticatie-van-packages</link>
      <category>artikels</category>
      <category>debian</category>
      <category>linux</category>
      <category>ubuntu</category>
    </item>
    <item>
      <title>Ubuntu: Als een proxy nodig is voor het downloaden van packages</title>
      <description>&lt;p&gt;Voor het installeren of upgraden van packages achter een proxy zijn volgende aanpassingen nodig.&lt;/p&gt;


	&lt;p&gt;In de grafische &lt;em&gt;synaptic&lt;/em&gt; package manager kan een proxy ingesteld worden. Maar deze instelling gebeurt enkel in $HOME/.synaptic/synaptic.conf, en dus niet systeemwijd.&lt;/p&gt;&lt;p&gt;Dat moet gebeuren in &lt;code&gt;/etc/apt/apt.conf&lt;/code&gt;, voor debian. Ubuntu gebruikt een iets ander systeem en daar moet het ingesteld worden in &lt;code&gt;/etc/apt/apt.conf.d/01ubuntu&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;En wel met volgende code:&lt;/p&gt;


&lt;pre&gt;
Acquire::http::Proxy "http://PROXYSERVER:POORT";
&lt;/pre&gt;</description>
      <pubDate>Tue, 30 Jan 2007 12:17:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:1eba868d-1402-49cd-ad94-97debcb90aca</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/01/30/ubuntu-als-een-proxy-nodig-is-voor-het-downloaden-van-packages</link>
      <category>artikels</category>
      <category>debian</category>
      <category>ubuntu</category>
      <category>linux</category>
    </item>
    <item>
      <title>Ubuntu en win32codecs</title>
      <description>&lt;p&gt;Voor het bekijken van videoformaten zonder Open Source alternatief, zoals Quicktime &amp;#8211; &lt;span class="caps"&gt;MOV&lt;/span&gt; , &lt;span class="caps"&gt;WMV&lt;/span&gt;, DivX &amp;#8211; &lt;span class="caps"&gt;AVI&lt;/span&gt;, is het nodig om de zogenaamde &amp;#8220;win32codecs&amp;#8221; of &amp;#8220;w32codecs&amp;#8221; te installeren.&lt;/p&gt;


	&lt;p&gt;De webstek hiervoor is &lt;a href="http://www4.mplayerhq.hu"&gt;http://www4.mplayerhq.hu&lt;/a&gt; maar het is makkelijker om packages te downloaden bij &lt;a href="http://blog.racoon97.net"&gt;medibuntu&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Daarvoor moet de &lt;code&gt;sources.list&lt;/code&gt; aangepast worden, en een key-file gedownload. Dit kan ingegeven worden in &lt;em&gt;synaptic&lt;/em&gt; -&amp;gt; &lt;em&gt;settings&lt;/em&gt; -&amp;gt; &lt;em&gt;repositories&lt;/em&gt;, in de &lt;em&gt;Third Party&lt;/em&gt; en &lt;em&gt;Authentication&lt;/em&gt; tabs.&lt;/p&gt;


	&lt;p&gt;Maar makkelijker nog is &lt;code&gt;sources.list&lt;/code&gt; als volgt editeren:&lt;/p&gt;


&lt;pre&gt;
deb http://medibuntu.sos-sts.com/repo/ edgy free
deb http://medibuntu.sos-sts.com/repo/ edgy non-free
&lt;/pre&gt;

	&lt;p&gt;Daarna nog de &lt;a href="http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg"&gt;auth-key-file downloaden&lt;/a&gt; en activeren met &lt;code&gt;apt-key&lt;/code&gt;:&lt;/p&gt;


&lt;pre&gt;
apt-key add medibuntu-key.gpg
&lt;/pre&gt;

	&lt;p&gt;Of, in een enkele beweging:&lt;/p&gt;


&lt;pre&gt;
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
&lt;/pre&gt;

	&lt;p&gt;&lt;a href="http://blog.racoon97.net/index.php?2006/12/11/70-les-plf-sont-morts-vive-medibuntu"&gt;Voor meer info zie ook&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 30 Jan 2007 11:47:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:a3781ade-3798-4dfc-88af-444a7547fcbc</guid>
      <author>Paul Verreth</author>
      <link>http://blog.sos.be/articles/2007/01/30/ubuntu-en-win32codecs</link>
      <category>artikels</category>
      <category>ubuntu</category>
      <category>debian</category>
      <category>linux</category>
      <category>multimedia</category>
    </item>
  </channel>
</rss>
