<?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>Kanojo.de Blog &#187; server</title>
	<atom:link href="http://blog.kanojo.de/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.kanojo.de</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 09:54:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The pain of being independent</title>
		<link>http://blog.kanojo.de/2009/12/07/the-pain-of-being-independent/</link>
		<comments>http://blog.kanojo.de/2009/12/07/the-pain-of-being-independent/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 21:30:57 +0000</pubDate>
		<dc:creator>nebuk</dc:creator>
				<category><![CDATA[Electronic]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Non-Tut]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.kanojo.de/?p=95</guid>
		<description><![CDATA[I've spend a whole lot of the time of the last few days tinkering on various parts of my root server. With the time passing you get used to the comfort of various (web based) tools such as GMail, Google-Calendar, Google Reader, etc. You may notice that you just read the word "Google" quite often, [...]]]></description>
			<content:encoded><![CDATA[<p>I've spend a whole lot of the time of the last few days tinkering on various parts of my root server. With the time passing you get used to the comfort of various (web based) tools such as GMail, Google-Calendar, Google Reader, etc. You may notice that you just read the word "Google" quite often, so what pops into your mind? Right, privacy. Google kind of mines quite some of your data. Ever checked the Ads google shows you on various sites (given you don't use a capable Ad Blocker)? Sometimes it gets quite creepy. That data is quite valueable for profiling your behavior, and that profile is (not related to your persona, but in general) sold to marketing monkeys.</p>
<p>So, that's why you might want to rebuild all those Tools you're used to in a trusted environment - your own server. You don't want your mail stored in some possible hostile environment on a untrusted machine that could leak your valuable data. Turns out its not that easy sometimes. I've only worked on getting a capable Web Mailer and Feed Reader to run smoothly. What surprised me here - and why I'm writing about this - is that it was exceptionally hard - or rather time-intensive - for something sounding as easy as this.</p>
<p><img class="size-full wp-image-99 alignleft" src="http://blog.kanojo.de/files/2009/12/google-privacy.gif" alt="google-privacy" width="250" height="202" /></p>
<p>I first targeted the Reader, looked around Freshmeat and SourceForge where you expect to find decent free software for that task. I've found quite a few not-so-simple-looking projects, including Tiny Tiny RSS. Turned out TinyTiny RSS is almost there, but needs PostgreSQL. So  i set up PostgreSQL, installed TTRSS and set it up. Imported GoogleReaders OPML, and zup. worked. Problem's all the feeds are in one big Table - resulting in the whole thing beeing painfully slow. So up for 7-8 Hours of harcore Postgres performance tuning, trying to hack memcached into ttrss, etc. Speedup of almost 100%, yet it was not close to beeing usable. Turns out the developer didn't intent the project for archiving articles for having a searchable archive. So up for something different, Gregarius, which the TTRSS dev recommended. This worked quite out of the box, except for 3-4 Hours of tinkering and writing small plugins to get the whole thing to work properly. But it does - and has almost all the feature one expects.</p>
<p>The harder part came now, Webmail. I first tried to hack the roughly-set-up RoundCube that still was on my server. After short testing and many functions that just did not work due to unknown reasons i knew i needed something different - and started toying around with Horde and its webmailer Imp(4) in the Horde Webmail Edition pack. Horde feels somehow "unix style"-ish, like ... building a highly reusable backend, letting other projects include/work ontop of that backend, etc. - but let me say one thing: This beast is so darn hard to set up. I've got it working - more or less - after hours and hours of doc reading, tinkering around with mysql tables and databases and reading Horde source due to its ... slightly lacking ... documentation on some points. Still, it was so unstable and lacked features too. So i finally decided Horde/IMP was a bit too much to go with. After searching around its a lets-get-back-to-Roundcube.</p>
<p><img class="size-medium wp-image-101 alignright" src="http://blog.kanojo.de/files/2009/12/fB2tdAiwKpnaovqajbieqTQCo1_500-449x550.png" alt="GoogleXKCD" width="300" height="367" /></p>
<p>Just that this didn't make things better, well... a bit at least. It takes tinkering, fixing old plugins to work with the current version, finding out why the hell buttons are greyed out that shouldn't be and getting a "well, reset the database (again)" from the developers. All of that fun. As of now i at least managed to get everything except for Filter-Rules and sa-learning ham to work. Phew!</p>
<p>Okay, so why am i writing all this? you may ask yourself. Well, i've gone through some PITA for beeing independent. It really takes some work to get everything to run smoothly if you're used to professional systems that are customly coded (such as the google stuff) and backed by real money its still some hackish tinkering to get the Free Software tools that we're given by the community (which i'm not ranting against by the way, all that code out there is really beautiful in fact) to the same level. I also want to encourage everyone out there not to give away their data but to build something on their own, keeping their data. As computer users used to for a good reason for a long long time.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.kanojo.de%2F2009%2F12%2F07%2Fthe-pain-of-being-independent%2F&amp;title=The%20pain%20of%20being%20independent" id="wpa2a_2"><img src="http://kanojo.blogs.ghostdub.de/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kanojo.de/2009/12/07/the-pain-of-being-independent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone Push-EMail with your own Mailserver (Exim, Postfix, QMail, etc&#8230;)</title>
		<link>http://blog.kanojo.de/2009/11/04/iphone-push-email-with-your-own-mailserver-exim-postfix-qmail-etc/</link>
		<comments>http://blog.kanojo.de/2009/11/04/iphone-push-email-with-your-own-mailserver-exim-postfix-qmail-etc/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 14:35:15 +0000</pubDate>
		<dc:creator>nebuk</dc:creator>
				<category><![CDATA[Electronic]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tinkering]]></category>

		<guid isPermaLink="false">http://blog.kanojo.de/?p=67</guid>
		<description><![CDATA[As Jabber does not seem appropriate for a SMS-replacement (the clients just don't to survive connection changes from wifi-&#62;3g, 3g-&#62;E, etc.) i've been looking for something different. E-Mail is nice, just the shortest polling-interval of 15minutes is not suited for realtime communication. So - theres Push Email (meaning the iPhone will hold a HTTP connection [...]]]></description>
			<content:encoded><![CDATA[<p>As Jabber does not seem appropriate for a SMS-replacement (the clients just don't  to survive connection changes from wifi-&gt;3g, 3g-&gt;E, etc.) i've been looking for something different. E-Mail is nice, just the shortest polling-interval of 15minutes is not suited for realtime communication. So - theres Push Email (meaning the iPhone will hold a HTTP connection to some server open all the time and the server writes something to that stream as soon as a new mail arrives) for various services including Microsoft Exchange and GMail. How about you hosting a own server since you don't want to give away all your data? No problem - either use one of the tons of commercial servers supporting Push or use Z-Push with your favorite IMAP and SMTP server.</p>
<p><span id="more-67"></span></p>
<p>Z-Push is a collection of PHP Scripts that emulate a Microsoft Exchange AS Server to provide push. It supports multiple backends - IMAP among them.</p>
<p>One drawback of Z-Push is that it does so strange PHP magic it doesn't support PHP-CGI on apache, it wants mod_php really really bad. But mod_php is bad for security. So for testing purposes i've set up Z-Push on my homeserver instead of my dedicated server which runs php-cgi. Problem: Z-Push will run on a different domain and machine than the mailserver runs on. This produces quite some headache - here's how you solve it:</p>
<ol>
<li>normally install Z-Push (simply unpack the tarball and install according to INSTALL) on your "small server". Edit config.php to reflect your timezone settings, change the BACKEND_PROVIDER to "BackendIMAP", enter your server data (you may want /ssl/[no]validate-cert in IMAP_OPTIONS). Also set IMAP_DEFAULTFROM to "@yourdomain.com" - important <img src='http://blog.kanojo.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
<li>Configure your "small servers" MTA to relay via your "big server". As i don't want a pseudo-open relay on my "big server" i chose to use exims SMARTHOST with SMTP Login method:</li>
<li>(I'm assuming Debian here) install exim4 or start dpkg-reconfigure exim4-config. Configure your box to be a smarthost with remote smtp. Then open up "<tt>/etc/exim4/passwd.client" and add a line with the syntax "host:user:password" to reflect your "big servers" smtp account.</tt></li>
<li><tt>As this is a normal smtp connection and no relay, no changes must be made to your big server.</tt></li>
<li><tt>Thats it, enter the data as Microsoft Exchange Account on your iPhone, valdidation will fail. Press Next and Save anyways, navigate to Account Details, turn of SSL.</tt></li>
<li><tt>Now your Push-Email account works!</tt></li>
</ol>
<p>Tipp: if you need debug output from Z-Push create a file called debug.txt in its Install-Dir and chmod it a+rw.</p>
<p>Well, this is IMO a quite nice way to get PushMail as a SMS-Substitute for the iPhone (given all your friends have Smartphones with Internet and use your Push solution too <img src='http://blog.kanojo.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). Have fun!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.kanojo.de%2F2009%2F11%2F04%2Fiphone-push-email-with-your-own-mailserver-exim-postfix-qmail-etc%2F&amp;title=iPhone%20Push-EMail%20with%20your%20own%20Mailserver%20%28Exim%2C%20Postfix%2C%20QMail%2C%20etc%26%238230%3B%29" id="wpa2a_4"><img src="http://kanojo.blogs.ghostdub.de/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kanojo.de/2009/11/04/iphone-push-email-with-your-own-mailserver-exim-postfix-qmail-etc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GNU/Linux  iPhone Sync &#8211; Wireless! Funambol error -1, yay!</title>
		<link>http://blog.kanojo.de/2009/10/30/gnulinux-iphone-sync-wireless-funambol-error-1-yay/</link>
		<comments>http://blog.kanojo.de/2009/10/30/gnulinux-iphone-sync-wireless-funambol-error-1-yay/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 14:51:09 +0000</pubDate>
		<dc:creator>nebuk</dc:creator>
				<category><![CDATA[Electronic]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[bugfix]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tinkering]]></category>

		<guid isPermaLink="false">http://blog.kanojo.de/?p=52</guid>
		<description><![CDATA[I recently got me a iPhone for tinkering, development (i've got a few nice ideas) and general nerdism. I've run into a few problems syncing my PIM (stuff like Contacts, Tasks, etc.) - especially since i use GNU/Linux which is no platform to run iTunes. Pictures and Music is no Problem as gtkpod and the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got me a iPhone for tinkering, development (i've got a few nice ideas) and general nerdism. I've run into a few problems syncing my PIM (stuff like Contacts, Tasks, etc.) - especially since i use GNU/Linux which is no platform to run iTunes. Pictures and Music is no Problem as gtkpod and the like support the iPhone. Just the important stuff does not work out nicely.</p>
<p><span id="more-52"></span></p>
<p>So, after a *ton* of googeling and looking around i found out theres a app for jailbroken iPhones which reads the .sqlitedb files of Contacts, Calendar and Notes and sends it to a specialized synchronization server for PIM. Luckily theres a bunch of clients for other platforms - including S60, evolution, ldap, etc. - we're interested in the Evolution one.</p>
<p>So, i installed Funambol (the syncserver) on my server and started it up. First to notice is that the startup often does not work at first try - i had to start/stop the server a few times before it would serve me on http://hostname:8080/funambol/. Also there seems to be a fucked-up state where the http-server is running but the admin-interface won't let you log in. At that point i also had to restart the server a few times *sigh*.<br />
Then i installed iPhoneSync, the iPhone funambol client on my handset, started it up, entered my servers data and synced. Woosh, failed. The Log said "server returned error -1" ... wowziez, cool - whats that? No table of error codes, no description, no server debug log entries, nothing - not even a bugreport in some mailinglist. Basically its a funambol bug concerning contact-Thumbnails with more than 8k size *Sigh*. At least its fixed in svn trunk...</p>
<p>Now comes the fun part - compiling Funambol. As Funambol needs tomcat, netbeans, maven2 and a whole other bunch of dependencies its *really* fun. With some tinkering i made it to a installer package - that now even works with the iPhone.<br />
So, for all of you out there running into the same bug as me - heres a Funambol binary of svn trunk with this bug fixed:</p>
<p><a title="funambol-8.2.2-SNAPSHOT.bin" href="http://tmp.kanojo.de/funambol-8.2.2-SNAPSHOT.bin">http://tmp.kanojo.de/funambol-8.2.2-SNAPSHOT.bin</a></p>
<p>So - here's what you basically need to do:</p>
<ol>
<li>scp the above binary on your server, ssh there and execute "sh <a title="funambol-8.2.2-SNAPSHOT.bin" href="http://tmp.kanojo.de/funambol-8.2.2-SNAPSHOT.bin">funambol-8.2.2-SNAPSHOT.bin</a>"</li>
<li>install the server as guided by the installation program, i installed it to /opt. Also note it *really* only installs stuff there, so no worries about trash not managed by the package management on your system <img src='http://blog.kanojo.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
<li>when asked whether you want to start the server say no</li>
<li>cd to /&lt;wherever&gt;/Funambol/, execute "./bin/funambol-server start", wait a few minutes (you can also check top whether java has stopped eating up your whole cpu-power)</li>
<li>start up the admin interface, either on the server by using remote X (ssh -X) "./admin/bin/funamboladmin" or in a installation of funambol on your current desktop box.</li>
<li>there, log in using "admin" as user and "sa" as password, go to user management, change the admin pw (important! <img src='http://blog.kanojo.de/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ) and log in again.</li>
<li>once again in user management create a new user for you.</li>
<li>on your jailbroken iPhone with cydia, install "iphonesync" via cydia, start it up, enter your servers data (http://yourhostname:8080/funambol/ds) - and sync!</li>
<li>on your desktop box, install syncevolution, to configure do the following:</li>
<li>execute "syncevolution --configure --sync-property "username=123456" --sync-property "password=!@#ABcd1234" funambol". then open up ~/.config/syncevolution/funambol/config.ini and change the URI to the same as you used on your iPhone</li>
<li>sync using syncevolution -s &lt;mode&gt; funambol (&lt;mode&gt; can be one of the items seen in "syncevolution -s ?")</li>
</ol>
<p>Happy Syncing!</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.kanojo.de%2F2009%2F10%2F30%2Fgnulinux-iphone-sync-wireless-funambol-error-1-yay%2F&amp;title=GNU%2FLinux%20%20iPhone%20Sync%20%26%238211%3B%20Wireless%21%20Funambol%20error%20-1%2C%20yay%21" id="wpa2a_6"><img src="http://kanojo.blogs.ghostdub.de/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.kanojo.de/2009/10/30/gnulinux-iphone-sync-wireless-funambol-error-1-yay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

