<?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>Andreas Schneider &#187; SUSE</title>
	<atom:link href="http://blog.cynapses.org/category/suse/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cynapses.org</link>
	<description>a cosmological pedestrian</description>
	<lastBuildDate>Tue, 23 Feb 2010 10:17:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>undefined reference to &#8220;function name&#8221;</title>
		<link>http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/</link>
		<comments>http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 20:11:00 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[linker]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=118</guid>
		<description><![CDATA[Since hermes is flooding my mailbox I haven't looked if all my packages are compiling on Factory. So I had a look for interesting emails today. ctrlproxy (irc proxy/bouncer) didn't build with undefined reference to "". I wondered if the libarary packages have been renamed, but everything looked fine. I've talked to darix and he [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://hermes.opensuse.org/">hermes</a> is flooding my mailbox I haven't looked if all my packages are compiling on Factory. So I had a look for interesting emails today. <a href="http://www.ctrlproxy.org/">ctrlproxy</a> (irc proxy/bouncer) didn't build with undefined reference to "<function-name>". I wondered if the libarary packages have been renamed, but everything looked fine. I've talked to darix and he told me about the --as-needed flag of the linker which is set by default now. I've searched for some documentation didn't find something which explains the problems so here is my documentation.</p>
<p>The problem is the linking order of the libraries and source code! Lets look at an example:</p>
<p>Assume that you built a static library libwurst and it uses the pow() function from the math library.</p>
<p><code> $ gcc -Wl,--as-needed --static main.c -o wurstsalat -L. -lm -lwurst<br />
 ./libwurst.a(wurst.o): In function `wurst':<br />
 wurst.c:(.text+0x29): undefined reference to `pow'</code></p>
<p>The problem here is, that the linker doesn't find any reference to pow() in main.c. Then the first library is libm and as it is not needed, the linker skips it. So you have to link against libwurst.a before you link against libm.</p>
<p><code> $ gcc -Wl,--as-needed --static main.c -o wurstsalat -L. -lwurst -lm</code></p>
<p>To summarize it: <strong>When using --as-needed, the order in which the libraries appear in the command line is relevant: any library X must precede all libraries Y that offer symbols that X uses.</strong></p>
<p>I've created a page in the openSUSE wiki, you can find it <a href="http://en.opensuse.org/Packaging/Fixing">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>phonon and amarok wakeups</title>
		<link>http://blog.cynapses.org/2008/12/29/amarok-phonon-wakeups/</link>
		<comments>http://blog.cynapses.org/2008/12/29/amarok-phonon-wakeups/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 09:13:14 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[ALSA]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Sound]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=43</guid>
		<description><![CDATA[I've used my notebook the first time with openSUSE 11.1 without a power cable attached and wondered why my battery was empty after a short time. So I've did some research and found a knotify4 bug, this leads to a phonon and xine bug. I have the latest version of xine installed and the wakeup [...]]]></description>
			<content:encoded><![CDATA[<p>I've used my notebook the first time with openSUSE 11.1 without a power cable attached and wondered why my battery was empty after a short time. So I've did some research and found a knotify4 bug, this leads to a phonon and xine bug. I have the latest version of xine installed and the wakeup bug in xine is already fixed sine 1.1.9. So there must be still a bug in the phonen backend of KDE 4.1.3.</p>
<p>I found a new phonon-xine backend on kde-apps.org, <a href="http://www.kde-apps.org/content/show.php/Phonon+Xine+TNG?content=84411">here</a>. I've found packages in the build service (<a href="http://download.opensuse.org/repositories/home:/MasterPatricko/openSUSE_11.1/">click</a>) and tested them. The wakeups of the whole system dropped to less than 200 wakeups per second.</p>
<p>During my research I stumbled over a amarok problem too. If you're playing music with amarok, it produces more than 900 wakeups, even if you stopped playing the music. The whole system should need more than 500 wakeups if you play music and browse the internet.<br />
You have to quit the application!</p>
<p>UPDATE:<br />
The bugs are fixed in KDE SVN (KDE 4.2). Thanks to Mark Kretschmann. The amarok bug for this was <a href="https://bugs.kde.org/show_bug.cgi?id=177517">#177517</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2008/12/29/amarok-phonon-wakeups/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hackweek3: Logitech hacking</title>
		<link>http://blog.cynapses.org/2008/08/26/hackweek3-logitech-hacking/</link>
		<comments>http://blog.cynapses.org/2008/08/26/hackweek3-logitech-hacking/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 14:59:18 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=35</guid>
		<description><![CDATA[I planning to rewrite lomoco since a long time now. The problem is that Logitech has introduced a new protocol to talk to the devices. For the main features of these new mice we have already proof of concept code but some features aren't suppport. I still don't know how they identify a cordless mouse [...]]]></description>
			<content:encoded><![CDATA[<p>I planning to rewrite <a href="http://www.lomoco.org/">lomoco</a> since a long time now. The problem is that Logitech has introduced a new protocol to talk to the devices. For the main features of these new mice we have already proof of concept code but some features aren't suppport.</p>
<p>I still don't know how they identify a cordless mouse connected to a receiver. The MX Revolution and the G7 share the same receiver. Yesterday I've discovered how to read the battery status from the MX and VX Revolution. I can display the battery status in percent and if the mouse is charging or is fully charged.</p>
<p>I've put together a proof-of-concept code <a href="http://www.lomoco.org/vx_hack.c">here</a>. Now it is time to think about a library, liblomoco. If someone is interested in hacking, feel free to contact me <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you have a VX Nano or G7 please send me the output of the <a href="http://www.lomoco.org/vx_hack.c">vx_hack</a>. If you own a G7 please send me the output of the 'lsusb' command.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2008/08/26/hackweek3-logitech-hacking/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>csync 0.42.0 alpha1</title>
		<link>http://blog.cynapses.org/2008/06/02/csync-0420-alpha1/</link>
		<comments>http://blog.cynapses.org/2008/06/02/csync-0420-alpha1/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 15:05:56 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[file synchronization]]></category>
		<category><![CDATA[roaming home directories]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/?p=29</guid>
		<description><![CDATA[I've released the first alpha version of csync. csync is a client only bidirectional file synchronizer. You can use csync for different things. The intention is to provide Roaming Home Directories for Linux but you can use it to synchronize your music collection or create a backup of a directory. This is *not* intended for [...]]]></description>
			<content:encoded><![CDATA[<p>I've released the first alpha version of csync. csync is a client only bidirectional file synchronizer. You can use csync for different things. The intention is to provide Roaming Home Directories for Linux but you can use it to synchronize your music collection or create a backup of a directory. This is *not* intended for production environments and is designed for testing purposes only. This version is fully functional and you can sync two local directories or a local directory with a samba share.</p>
<p>More at <a href="http://www.csync.org/">http://www.csync.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2008/06/02/csync-0420-alpha1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qemu (kvm) internal network setup</title>
		<link>http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/</link>
		<comments>http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 19:19:42 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[qemu]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/</guid>
		<description><![CDATA[I got a new notebook, a nice Thinkpad T61 with virtualization technology. I need to run some Windows system for development so I've decided to use the Kernel based Virtual Machine (KVM). The VMs should communicate over an internal network but should have access to the internet and I want access via network to them. [...]]]></description>
			<content:encoded><![CDATA[<p>I got a new notebook, a nice Thinkpad T61 with virtualization technology. I need to run some Windows system for development so I've decided to use the <a href="http://kvm.qumranet.com/">Kernel based Virtual Machine</a> (KVM). The VMs should communicate over an internal network but should have access to the internet and I want access via network to them. So I setup a bridge with TUN/TAP devices masqueraded to my normal interface.</p>
<pre>

               HOST            QEMU GUEST1
        +---------------+   +--------------+
        | 10.10.5.158   |   |              |
 LAN ---+---- eth0      |   |              |
        |               |   |              |    QEMU GUEST2
        |   +------+ +--+---+---- nic0     |   +--------------+
        |   | tap0---+  |   |192.168.100.5 |   |              |
        |   | tap1---+  |   +--------------+   |              |
        |   +------+ |  |                      |              |
        |     br0    +--+----------------------+---- nic0     |
        |192.168.100.254|                      |192.168.100.1 |
        +---------------+                      +--------------+
</pre>
<h3>Needed packages:</h3>
<p>tunctl (uml-utilities)<br />
bridge-utilities<br />
kvm</p>
<h3>Setup the network:</h3>
<p>Create a file call kvm-network with the following content and make it executeable.</p>
<pre>
#!/bin/bash

KVMNET_UID=1000
KVMNET_GID=$(grep kvm /etc/group | cut -d ':' -f 3)

# number of TUN/TAP devices to setup
NUM_OF_DEVICES=3

case $1 in
        start)
                modprobe kvm
                modprobe kvm_intel

                modprobe tun
                echo "Setting up bridge device br0"
                brctl addbr br0
                ifconfig br0 192.168.100.254 netmask 255.255.255.0 up
                for ((i=0; i < NUM_OF_DEVICES ; i++)); do
                        echo -n "Setting up "
                        tunctl -b -g ${KVMNET_GID} -t kvmnet$i
                        #tunctl -b -u ${KVMNET_UID} -t kvmnet$i
                        brctl addif br0 kvmnet$i
                        ifconfig kvmnet$i up 0.0.0.0 promisc
                done
                SuSEfirewall2 stop
                SuSEfirewall2
        ;;
        stop)
                for ((i=0; i < NUM_OF_DEVICES ; i++)); do
                        ifconfig kvmnet$i down
                        brctl delif br0 kvmnet$i
                        tunctl -d kvmnet$i
                done
                ifconfig br0 down
                brctl delbr br0
                SuSEfirewall2 stop
                SuSEfirewall2

                rmmod kvm_intel
                rmmod kvm
        ;;
        *)
                echo "Usage: $(basename $0) (start|stop)"
        ;;
esac
</pre>
<p>br0 is the gateway to the external network.</p>
<h3>Setting up the firewall:</h3>
<p>Edit /etc/sysconfig/SuSEfirewall and set the following variables:</p>
<pre>
FW_DEV_INT="br0 qtap0 qtap1 qtap2 qtap3 qtap4"
FW_ROUTE="yes"
FW_MASQUERADE="yes"
FW_MASQ_NETS="192.168.100.0/24"
FW_PROTECT_FROM_INT="no"
</pre>
<p>If you don't run a SUSE system use the following lines to setup masquerading:</p>
<pre>
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
</pre>
<p>On the guest you have to set the default gateway to 192.168.100.254 which is the bridge br0 and take a look in /etc/resolv.conf to get the name servers. I run a Windows 2003 Server as a guest which is the dhcp and name server for the other guests (Vista, several Linux installations).</p>
<h3>Setting up qemu</h3>
<h4>Guest 1:</h4>
<pre>
#!/bin/bash

qemu-kvm /path/to/vm.img \
          -net nic,model=rtl8139,macaddr=52:54:00:12:34:56 \
          -net tap,ifname=qtap0,script=no \
          -m 256 \
          -smp 1 \
          -usb \
          -usbdevice tablet \
          -localtime
</pre>
<h4>Guest 2:</h4>
<pre>
#!/bin/bash

qemu-kvm /path/to/vm2.img \
          -net nic,model=rtl8139,macaddr=52:54:00:12:34:57 \
          -net tap,ifname=qtap1,script=no \
          -m 256 \
          -smp 1 \
          -usb \
          -usbdevice tablet \
          -localtime
</pre>
<p><strong>Note that the VMs have different MAC addresses</strong>. It took me a long time to find why I couldn't ping from one guest to another <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  By the way, one of the guests is running <a href="http://blog.cynapses.org/wp-content/uploads/2007/07/vista.png">Vista</a>, which runs smoothly on my machine with KVM.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>WengoPhone 2.1rc1</title>
		<link>http://blog.cynapses.org/2007/03/09/wengophone-21rc1/</link>
		<comments>http://blog.cynapses.org/2007/03/09/wengophone-21rc1/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 10:23:58 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/2007/03/09/wengophone-21rc1/</guid>
		<description><![CDATA[WengoPhone 2.1rc1 has been released today. We migrated the build system to the CMake and added an abstraction layer called owbuild for WengoPhone. It compiles just fine under Linux, MacOSX and Windows on x86, x86_64 and ppc. The last weekend I have fixed a lot of problematic warnings to be sure it works just fine [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.openwengo.org/">WengoPhone</a> 2.1rc1 has been released today. We <a href="http://www.cynapses.org/tmp/wengophone/wengophone.png">migrated the build system</a> to the <a href="http://www.cmake.org/">CMake</a> and added an abstraction layer called <a href="http://dev.openwengo.com/trac/openwengo/trac.cgi/wiki/OWBuild">owbuild</a> for WengoPhone. It compiles just fine under Linux, MacOSX and Windows on x86, x86_64 and ppc. The last weekend I have fixed a lot of problematic warnings to be sure it works just fine under x86_64 now.</p>
<p>Back to WengoPhone. It has some nice new features.</p>
<ul>
<li>Secure voice calls using AES 128 bit encryption (Wengo <--> Wengo)</li>
<li>The ability to configure a SIP account on any SIP server</li>
<li>Massive stability enhancement on Mac and Linux</li>
<li>Several usability improvements</li>
</ul>
<p>WengoPhone 2.1rc1 RPMs for openSUSE 10.2 are available at <a href="http://packman.links2linux.org/package/Wengophone">Packman</a>, <a href="http://packman.links2linux.org/package/Wengophone">here</a>.</p>
<p>If you have some problems with sound, install the portaudio package from Factory. You can get it <a href="http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/x86_64/portaudio-19-125.x86_64.rpm">here</a>.<br />
Please report bugs to the ticket system at: <a href="http://dev.openwengo.com/">http://dev.openwengo.com/</a></p>
<p><img src="http://www.cynapses.org/tmp/wengophone/wengophone-interface.png" alt="WengoPhone" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2007/03/09/wengophone-21rc1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Client Integration with Samba</title>
		<link>http://blog.cynapses.org/2006/11/23/client-integration-with-samba/</link>
		<comments>http://blog.cynapses.org/2006/11/23/client-integration-with-samba/#comments</comments>
		<pubDate>Thu, 23 Nov 2006 14:34:32 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/2006/11/23/client-integration-with-samba/</guid>
		<description><![CDATA[At the beginning of October I started writing my diploma thesis at SUSE Linux in Nuernberg. I'll develop a library and a PAM module to synchronize the home directory from a Linux client to a Microsoft Windows ADS environment and back. The main problem of this subject is to write a file synchronizer which works [...]]]></description>
			<content:encoded><![CDATA[<p>At the beginning of October I started writing my diploma thesis at SUSE Linux in Nuernberg. I'll develop a library and a PAM module to synchronize the home directory from a Linux client to a Microsoft Windows ADS environment and back.<br />
The main problem of this subject is to write a file synchronizer which works with the infrastructure we already have and acts like the Windows one. This means a client only file synchronizer which just uses libsmbclient and is as simple as the Windows "Merge Algorithm" used for Roaming Profiles since Windows 2000.<br />
<a href="http://www.cynapses.org/tmp/diploma/overview.png"><img width="476" height="456" align="middle" src="http://www.cynapses.org/tmp/diploma/overview.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2006/11/23/client-integration-with-samba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Build Service Home</title>
		<link>http://blog.cynapses.org/2006/10/17/new-build-service-home/</link>
		<comments>http://blog.cynapses.org/2006/10/17/new-build-service-home/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 08:19:38 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/2006/10/17/new-build-service-home/</guid>
		<description><![CDATA[Hi, the Build Service uses now Novell's iChain to authenticate the user. So my home project has changed to home:gladiac and I build now all packages against the KDE:Qt project. Update you configuration for the new URL. By the way KVIrc 3.2.5 is availiable]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>the <a target="_blank" href="http://build.opensuse.org/">Build Service</a> uses now Novell's iChain to authenticate the user. So my home project has changed to <a target="_blank" href="http://software.opensuse.org/download/home:/gladiac/">home:gladiac</a> and I build now all packages against the KDE:Qt project. Update you configuration for the new URL.</p>
<p>By the way KVIrc 3.2.5 is availiable <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2006/10/17/new-build-service-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webdav Calendar and Addressbook</title>
		<link>http://blog.cynapses.org/2006/07/16/webdav-calendar-and-addressbook/</link>
		<comments>http://blog.cynapses.org/2006/07/16/webdav-calendar-and-addressbook/#comments</comments>
		<pubDate>Sun, 16 Jul 2006 13:17:20 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/2006/07/16/webdav-calendar-and-addressbook/</guid>
		<description><![CDATA[Webdav I want to access my calendar and addressbook from my mainframe and from my notebook. I write exams at the moment so it is the best time to do something else. I've setup a webdav to store my adressbook and calendar so I can access it with KOrganizer, Mozilla Sunbird or KAdressbook from everywhere. [...]]]></description>
			<content:encoded><![CDATA[<h2>Webdav</h2>
<p>I want to access my calendar and addressbook from my mainframe and from my notebook. I write exams at the moment so it is the best time to do something else. I've setup a webdav to store my adressbook and calendar so I can access it with KOrganizer, Mozilla Sunbird or KAdressbook from everywhere.</p>
<p>First we have to create a directory for the webdav databases (lock, user).</p>
<div style="padding: 3px; background: black; color: white; font-family: fixed,Courier,monospace; font-size: 80%; border 1px #efefef solid">
	mkdir -p /var/lib/apache2/dav<br />
	chgrp www /var/lib/apache2/dav<br />
	chmod 775 /var/lib/apache2/dav
</div>
<p>Now we need a user</p>
<div style="padding: 3px; background: black; color: white; font-family: fixed,Courier,monospace; font-size: 80%; border 1px #efefef solid">
	htpasswd2 -c /etc/apache2/dav_users.db &#060;username&#062;
</div>
<p>Change &#060;username&#062; to your user and enter a password. Now lets create the web accessible directory.</p>
<div style="padding: 3px; background: black; color: white; font-family: fixed,Courier,monospace; font-size: 80%; border 1px #efefef solid">
	mkdir /srv/www/webdav<br />
	chgrp www /srv/www/webdav<br />
	chmod 775 /srv/www/webdav
</div>
<h4>mod_dav.conf</h4>
<p>The next step is to create a config file and add the dav modules.
<p>Edit <tt>/etc/sysconfig/apache2</tt> and add "dav" and "dav_fs" to the APACHE_MODULES variable. Then create a file <tt>/etc/apache2/mod_dav.conf</tt> with the following content:</p>
<pre style="padding: 3px; color: black; font-family: fixed,Courier,monospace; font-size: 80%; border: 1px #bfbfbf solid;">
&#060;IfModule mod_dav_fs.c&#062;
	# Location of the WebDAV lock database.
	DAVLockDB /var/lib/apache2/dav/lockdb
&#060;/IfModule&#062;

&#060;IfModule mod_dav.c&#062;
	# XML request bodies are loaded into memory;
	# limit to 128K by default
	LimitXMLRequestBody 131072

	# Location of the WebDav Repository.
	Alias /webdav "/srv/www/webdav"

	&#060;Directory /srv/www/webdav&#062;
		# enable webdav for this directory
		Dav On
		Options +Indexes
		IndexOptions FancyIndexing
		AddDefaultCharset UTF-8
		AuthType Basic
		AuthName "WebDAV Server"
		# htpasswd2 -c /etc/apache2/dav_users.db &#060;username&#062;
		AuthUserFile /etc/apache2/dav_users.db
		&#060;LimitExcept GET OPTIONS&#062;
			Require valid-user
		&#060;/LimitExcept&#062;
		Order allow,deny
		Allow from all
	&#060;/Directory&#062;
&#060;/IfModule&#062;
</pre>
<p>and include it in /etc/httpd.conf</p>
<div style="padding: 3px; background: black; color: white; font-family: fixed,Courier,monospace; font-size: 80%; border 1px #efefef solid">
	# webdav<br />
	Include /etc/apache2/mod_dav.conf
</div>
<p>Now you can access your webdav directory with http://domain.tld/webdav</p>
<h3>SSL</h3>
<p>I'm sure you want to access your server the secure way, so we need mod_ssl and a certificate. I have an <a href="http://cacert.org" target="_blank">CACert</a> account so I created a real one <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>You have to create a CSR (Certificate Signing Request) for CACert. This file contains pieces of information about your cert and your public key.<br />
It is used by the Certification Authority to sign your cert.</p>
<h4>Generate an encrypted key</h4>
<p>Type the following command to generate a private key that is file encrypted.</p>
<div style="padding: 3px; background: black; color: white; font-family: fixed,Courier,monospace; font-size: 80%; border 1px #efefef solid">
openssl genrsa -des3 -out server.key 1024
</div>
<p>You will be prompted for the password to access the file and also when starting your webserver. <font color="red">Warning: If you lose or forget the passphrase, you must generate another certificate.</font><br />
If you decide at a later stage that you would rather use an unencrypted key (cause you don't want to enter the key at boot time), you may create an unencrypted version of server.key in server.key.unsecure by executing:</p>
<div style="padding: 3px; background: black; color: white; font-family: fixed,Courier,monospace; font-size: 80%; border 1px #efefef solid">
openssl rsa -in server.key -out server.key.unsecure
</div>
<h4>Request a Server Certificate</h4>
<p>Log in to your CACert account and post the CSR, you'll will receiver the <tt>server.crt</tt> by mail. Replace the <tt>server.key</tt> in <tt>/etc/apache2/ssl.key</tt> and <tt>server.crt</tt> in <tt>/etc/apache2/ssl.crt</tt> with your CSR and your cert.</p>
<h4>Configure SSL</h4>
<p>Edit in /etc/sysconfig/apache2 the add to <tt>APACHE_SERVER_FLAGS</tt> the option <tt>-DSSL</tt>. Restart your apache2 and connect e.g. with konqueror to your webdav and log in:</p>
<p><tt>webdavs://domain.tld/webdav</tt></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2006/07/16/webdav-calendar-and-addressbook/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WengoPhone</title>
		<link>http://blog.cynapses.org/2006/06/29/wengophone/</link>
		<comments>http://blog.cynapses.org/2006/06/29/wengophone/#comments</comments>
		<pubDate>Thu, 29 Jun 2006 09:02:54 +0000</pubDate>
		<dc:creator>GlaDiaC</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SUSE]]></category>

		<guid isPermaLink="false">http://blog.cynapses.org/2006/06/29/wengophone/</guid>
		<description><![CDATA[Maybe you heard already about that OpenWengo thing. OpenWengo is a community of Free Software enthusiasts. The OpenWengo community is sponsored by Wengo, a French SIP provider, itself backed by Neuf Cegetel, a French telco. WengoPhone, a SIP compliant VoIP client and a multiprotocol instant messanger (MSN, AIM, ICQ, Jabber, Google Talk). We're talkig here [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you heard already about that <a target="_blank" href="http://www.openwengo.org/">OpenWengo</a> thing. OpenWengo is a community of Free Software enthusiasts. The OpenWengo community is sponsored by <a title="Wengo" href="http://www.wengo.com/">Wengo</a>, a French <a title="SIP" href="http://en.wikipedia.org/wiki/SIP">SIP</a> provider, itself backed by Neuf Cegetel, a French telco. WengoPhone, a <a title="SIP" href="http://en.wikipedia.org/wiki/SIP">SIP</a> compliant <a title="VoIP" href="http://en.wikipedia.org/wiki/VoIP">VoIP</a> client and a multiprotocol instant messanger (MSN, AIM, ICQ, Jabber, Google Talk). We're talkig here about WengoPhone NG (Next Generation) which is the version in development.</p>
<p>Currently I'm working on a RPM package for WengoPhone NG. I've <a target="_blank" href="http://www.cynapses.org/tmp/wengophone/">written some patches</a> to build it on x86_64 and to fix some bugs to build it on SUSE. The problem is that I can't link the application at the moment cause SUSE doesn't provide libQtUiTools in their QT4 packages (SUSE LINUX 10.1 and factory). To drop it at the build service a <a target="_blank" href="https://bugzilla.novell.com/show_bug.cgi?id=187760">bug fix</a> for the boost package is needed too.</p>
<p>I hope that my patches will be in SVN soon and that SUSE will fix the packages. I don't want to create a fixed QT4 package <img src='http://blog.cynapses.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cynapses.org/2006/06/29/wengophone/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
