<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-8143042932392400905</atom:id><lastBuildDate>Sat, 24 Mar 2012 12:35:27 +0000</lastBuildDate><category>debian</category><category>certificate</category><category>SSL</category><category>iphone</category><category>dovecot</category><category>exim4</category><category>ios4</category><category>advanced</category><category>rock</category><category>courier</category><category>jailbreak</category><category>sqlite3</category><title>Interesting gadget hickups</title><description>Some straightforward and advanced solution to your everyday computer and gadget problems or rather, stuff I find useful that might interest others.</description><link>http://blog.mekk.com/</link><managingEditor>noreply@blogger.com (jolt)</managingEditor><generator>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-1303798413463722475</guid><pubDate>Sat, 11 Jun 2011 16:53:00 +0000</pubDate><atom:updated>2011-06-11T18:59:56.489+02:00</atom:updated><title>Time machine and crontab</title><description>Time machine backups of OS X is nice, especially since you can restore your full system from them. What is not so nice is that they run all the time, and they transfer a huge amount of files, so you don't want it to run very often.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Recognize the problem? Add it to crontab instead! Just edit your crontab (crontab -e) and add something like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  &gt;25 3-7 * * *&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper &amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This means that backupd-helper will run between 25 minutes past 03 to 07 (3-7 AM) everyday. backupd-helper is the same thing that is run if you would press "backup now" in the Time Machine preferences.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Oh, in time machine prefs, set it to NOT run (since the point is to run it by crontab). And no, backups will not be taken if you computer is asleep (since cron would be asleep as well..)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-1303798413463722475?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2011/06/time-machine-and-crontab.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-4173941881779353695</guid><pubDate>Thu, 28 Apr 2011 19:18:00 +0000</pubDate><atom:updated>2011-04-28T21:27:26.844+02:00</atom:updated><title>Use a specific proxy connection with Chrome Web Browser in OSX</title><description>I travel a little bit now and then so I use a few different wireless or fixed networks that I'm a guest at. I tend to use Firefox a lot, and in FF i have set FF to always browse via my proxy server at home (tinyproxy). The handy thing with FF is that the proxy setting is only for FF, and that is a feature I've been missing in Chrome which I tend to use more often these days.&lt;br /&gt;&lt;br /&gt;In OSX, there is a setting to use a proxy in System Preferences, but then that setting will be applied to all programs (except FF in my case), which is not what I want. So today I googled if there were any new addons for Chrome that could do that, and lo and behold, here is the solution (but not from a addon...)&lt;br /&gt;&lt;br /&gt;Type the following in a Terminal.app (or iTerm2, which is awesome)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;open -a /Applications/Google\ Chrome.app --args --proxy-server=proxy.home.over.vpn:8888&lt;br /&gt;&lt;/pre&gt;I saved that string as an alias in .bashrc for reuse.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Taken from http://hints.macworld.com/article.php?story=20100213001826236&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-4173941881779353695?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2011/04/use-specific-proxy-connection-with.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-425173843633827223</guid><pubDate>Wed, 16 Mar 2011 11:01:00 +0000</pubDate><atom:updated>2011-03-16T12:26:17.874+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>exim4</category><category domain='http://www.blogger.com/atom/ns#'>sqlite3</category><category domain='http://www.blogger.com/atom/ns#'>dovecot</category><title>Exim4, dovecot with sqlite authentication</title><description>As I am moving away from courier to dovecot I also wanted to move away from the old courierauth DB and use something newer and slicker: sqlite3. Having all my SMTP and IMAP users in sqlite3 is nice, since you don't need them to have a actual system user.&lt;br /&gt;&lt;br /&gt;Creating the sqlite3 db is easy, just "&lt;span style="font-family:courier new;"&gt;sqlite3 /etc/dovecot/authdb.sqlite&lt;/span&gt;". I used the SQL query from the dovecot page:&lt;br /&gt;&lt;br /&gt;&lt;pre  style="font-family:courier new;"&gt;&lt;br /&gt;CREATE TABLE users (&lt;br /&gt;&lt;span class="anchor" id="line-2-2"&gt;&lt;/span&gt;    userid VARCHAR(128) NOT NULL,&lt;br /&gt;&lt;span class="anchor" id="line-3"&gt;&lt;/span&gt;    domain VARCHAR(128) NOT NULL,&lt;br /&gt;&lt;span class="anchor" id="line-4"&gt;&lt;/span&gt;    password VARCHAR(64) NOT NULL,&lt;br /&gt;&lt;span class="anchor" id="line-5"&gt;&lt;/span&gt;    home VARCHAR(255) NOT NULL,&lt;br /&gt;&lt;span class="anchor" id="line-6"&gt;&lt;/span&gt;    uid INTEGER NOT NULL,&lt;br /&gt;&lt;span class="anchor" id="line-7"&gt;&lt;/span&gt;    gid INTEGER NOT NULL&lt;br /&gt;&lt;span class="anchor" id="line-8"&gt;&lt;/span&gt;);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The next step was to edit the /etc/dovecot/dovecot.conf and /etc/dovecot/dovecot-sql.conf. I just created the entries in the sqlite db manually (my courierdb is small)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;insert into users values ('jolt', 'mekk.com','oldcryptedpw', '/home/courier/jolt','104','105');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;where all of the values are directly from the /etc/courier/userdb.&lt;br /&gt;&lt;br /&gt;Now the fun part: get exim4 to play well with sqlite. ( I leave out the Exim dovecot config, since I used the exact same one from courier (i.e. it's the same path. Read the &lt;a href="http://wiki.dovecot.org/Migration/Courier"&gt;Dovecot-courier migration&lt;/a&gt; document for config details).&lt;br /&gt;&lt;br /&gt;In exim I commented out my existing login: and plain: sections and replaced it with this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;plain:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; driver = plaintext&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; public_name = PLAIN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; server_prompts = :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; server_condition = "${if and { \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      {!eq{$2}{}} \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      {!eq{$3}{}} \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      {crypteq{$3}{${lookup sqlite{/etc/dovecot/authdb.sqlite SELECT password FROM users WHERE ( domain = \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                '${domain:$2}' \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                AND userid = '${local_part:$2}') OR userid='$2' }{$value}fail}} }} {yes}{no}}"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; server_set_id = $2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;login:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  driver = plaintext&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  public_name = LOGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  server_prompts = "Username:: : Password::"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  server_condition = "${if and { \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      {!eq{$1}{}} \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      {!eq{$2}{}} \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                      {crypteq{$3}{${lookup sqlite{/etc/dovecot/authdb.sqlite SELECT password FROM users WHERE ( domain = \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                '${domain:$2}' \&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                AND userid = '${local_part:$2}') OR userid='$2' }{$value}fail}} }} {yes}{no}}"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;  server_set_id = $1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The above lines are just a modified version of the MySQL authentication example at the &lt;a href="http://wiki.exim.org/AuthenticatedSmtpUsingMysql"&gt;Exim wiki&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Now I tried exim4 and and after changing the select clause a bit it actually worked!&lt;br /&gt;&lt;br /&gt;Now back to dovecot. Dovecot needs to be configured (in /etc/dovecot/dovecot.conf) to use both passdb sql and fetch userdb info at the same time (enable userdb prefetch). I missed that myself, of course, so be warned:&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: courier new;"&gt;&lt;br /&gt;# SQL database &lt;doc wiki="" txt=""&gt;&lt;br /&gt;passdb sql {&lt;br /&gt;  # Path for SQL configuration file&lt;br /&gt;  args = /etc/dovecot/dovecot-sql.conf&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;userdb prefetch {&lt;br /&gt;}&lt;br /&gt;&lt;/doc&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And dont forget to disable PAM (just comment it out, don't forget the }).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then I needed to change the default crypt method to CRYPT (thats what my courierdb used, remember?). Here is the /etc/dovecot/dovecot-sql.conf config file for your reading pleasure:&lt;br /&gt;&lt;br /&gt;&lt;pre style="font-family: courier new;"&gt;&lt;br /&gt;# Database driver: mysql, pgsql, sqlite&lt;br /&gt;driver = sqlite&lt;br /&gt;connect = /etc/dovecot/authdb.sqlite&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Default password scheme.&lt;br /&gt;#&lt;br /&gt;# List of supported schemes is in&lt;br /&gt;# http://wiki.dovecot.org/Authentication/PasswordSchemes&lt;br /&gt;#&lt;br /&gt;#default_pass_scheme = PLAIN-MD5&lt;br /&gt;default_pass_scheme = CRYPT&lt;br /&gt;&lt;br /&gt;# and enable the last line for user and pw prefetch:&lt;br /&gt;password_query = SELECT userid as user, password, home as userdb_home, uid as userdb_uid, gid as userdb_gid FROM users WHERE userid = '%u'&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I think that's pretty much it, so good luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-425173843633827223?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2011/03/exim4-dovecot-with-sqlite.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-181093511213518797</guid><pubDate>Sat, 23 Oct 2010 12:09:00 +0000</pubDate><atom:updated>2010-10-23T14:14:05.647+02:00</atom:updated><title>Printing with Konica Minolta PP1300W in OSX Snow Leopard (over Time Capsule)</title><description>I was supposed to do this years ago, and I actually tried to, but I never got the gutenprinting stuff to work with the built in CUPS of OSX. However, today was the day I thought I might just do it!&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Turns out it was quite easy (after I tried all the different combinations that is...)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Go to &lt;a href="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/min12xxw"&gt;Linuxprinting&lt;/a&gt; and download the min12xxw dmg (&lt;a href="http://www.openprinting.org/download/printdriver/macosx/min12xxw-0.0.92-ub.dmg"&gt;min12xxw-0.0.92-ub.dmg&lt;/a&gt;).&lt;/li&gt;&lt;li&gt;Download the Ghostscript stuff from the same page (&lt;a href="http://www.openprinting.org/download/printdriver/macosx/gplgs-8.71.dmg"&gt;gplgs-8.71.dmg&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;Run the installer for min12xxw&lt;/li&gt;&lt;li&gt;Run the Ghostscript installer&lt;/li&gt;&lt;li&gt;Add your printer (it will auto select the Foomatic/min12xx driver&lt;/li&gt;&lt;li&gt;Save and print!&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-181093511213518797?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/10/printing-with-konica-minolta-pp1300w-in.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-8765992062191313950</guid><pubDate>Mon, 04 Oct 2010 19:32:00 +0000</pubDate><atom:updated>2010-10-04T21:44:11.900+02:00</atom:updated><title>Automatically upgrade Debian with security updates</title><description>So, one of the boring tasks of being a sysadmin is to do updates. Well, it's not really boring, just a boring task of doing it if you have more than 10 systems or so.&lt;br /&gt;&lt;br /&gt;Since I'm lazy and not really a sysadmin full-time, I'm cheating by using the &lt;a href="http://packages.debian.org/lenny/unattended-upgrades"&gt;unattended-upgrades&lt;/a&gt; package. Here is how you do it:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Install &lt;a href="http://packages.debian.org/lenny/unattended-upgrades"&gt;unattended-upgrades&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Add the following to /etc/apt/apt.conf&lt;br /&gt;&lt;blockquote&gt;APT::Periodic::Update-Package-Lists "1";&lt;br /&gt;APT::Periodic::Unattended-Upgrade "1";&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;See if you need to modify &lt;blockquote&gt;/etc/apt/apt.conf.d/50unattended-upgrades&lt;/blockquote&gt;(I didn't)&lt;/li&gt;&lt;li&gt;Watch your logs for any errors during updates (I use &lt;a href="http://packages.debian.org/lenny/logcheck"&gt;logcheck&lt;/a&gt; for this)&lt;/li&gt;&lt;li&gt;Read the additional info at &lt;a href="https://wiki.ubuntu.com/AutomaticUpdates"&gt;https://wiki.ubuntu.com/AutomaticUpdate&lt;/a&gt;&lt;a href="https://wiki.ubuntu.com/AutomaticUpdates"&gt;s&lt;/a&gt; for more details about this feature if you want to.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-8765992062191313950?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/10/automatically-upgrade-debian-with.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-2894352884491739823</guid><pubDate>Sat, 10 Jul 2010 11:24:00 +0000</pubDate><atom:updated>2010-07-18T12:06:48.031+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>ios4</category><category domain='http://www.blogger.com/atom/ns#'>rock</category><category domain='http://www.blogger.com/atom/ns#'>advanced</category><category domain='http://www.blogger.com/atom/ns#'>jailbreak</category><category domain='http://www.blogger.com/atom/ns#'>iphone</category><title>iPhone 3G iOS4 improved speed</title><description>After installing ios4 the phone became extremely sluggish, so I thought "why not google around when I'm at home with this shitty cold".&lt;br /&gt;&lt;br /&gt;&lt;div&gt;So, first you need to jailbreak your phone (i.e. redsnow or equivalent).&lt;br /&gt;Then install OpenSSH, adv-cmds erica utilities, vim, bash from Cydia or Rock (i prefer Rock to cydia any day).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Now: start with changing your password on root and mobile user to something &lt;a href="http://makepasswd.se/"&gt;not guessable&lt;/a&gt;,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;--&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First tip:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The first one I found was to enable some swap memory by uploading a plist that enable the dynamic pager:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download &lt;a href="http://mekk.com/iphone/com.apple.dynamic_pager.plist"&gt;com.apple.dynamic_pager.plist&lt;/a&gt;, scp it to the iphone and place it in /System/Library/LaunchDaemons/ and reboot.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If you are lazy the iMemory Enhancer is available from Cydia (but I like to know which file they are actually touching).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;--&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The second one is to disable some of the daemons that take care of background tasks.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Login via SSH and perform this:&lt;br /&gt;&lt;br /&gt;launchctl unload -w /System/Library/LaunchDaemons/com.apple.syslogd.plist&lt;br /&gt;&lt;br /&gt;and continue with these (if they exist)&lt;br /&gt;&lt;br /&gt;com.apple.CrashHousekeeping.plist&lt;br /&gt;com.apple.DumpBasebandCrash.plist&lt;br /&gt;com.apple.DumpPanic.plist&lt;br /&gt;com.apple.ReportCrash.DirectoryService.plist&lt;br /&gt;com.apple.ReportCrash.Jetsam.plist&lt;br /&gt;com.apple.ReportCrash.SafetyNet.plist&lt;br /&gt;com.apple.ReportCrash.SimulateCrash.plist&lt;br /&gt;com.apple.ReportCrash.plist&lt;br /&gt;com.apple.powerlog.plist&lt;br /&gt;com.apple.racoon.plist (this is used by VPN subsystem, so don't remove if you use that)&lt;br /&gt;com.apple.scrod.plist (used for voice, which the 3G doesn't support)&lt;br /&gt;com.apple.tcpdump.server.plist&lt;br /&gt;com.apple.apsd.tcpdump.en0.plist (thought to be used by push notification logging)&lt;br /&gt;com.apple.apsd.tcpdump.pdp_ip0.plist ( -"- )&lt;br /&gt;com.apple.wifiFirmwareLoader.plist (thought to be used for the new OTA (over-the-air) updates)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Oh, and you can do the same with sshd if you want to:&lt;br /&gt;launchctl unload -w /Library/LaunchDaemons/com.openssh.sshd.plist&lt;/div&gt;&lt;div&gt;You can then start SSH when you want by using SBSettings&lt;br /&gt;&lt;br /&gt;Now lets, deactivate locationd from startup but let it startpup on request&lt;br /&gt;&lt;br /&gt;cd /System/Library/LaunchDaemons&lt;br /&gt;&lt;br /&gt;plutil -convert xml1 com.apple.locationd.plist&lt;br /&gt;vim com.apple.locationd.plist&lt;br /&gt;------------------&lt;br /&gt;&lt;br /&gt;search for RunAtLoad&lt;br /&gt;&lt;br /&gt;change true ----&gt; false&lt;br /&gt;&lt;br /&gt;----------------&lt;br /&gt;plutil -convert binary1 com.apple.locationd.plist&lt;br /&gt;reboot&lt;br /&gt;&lt;br /&gt;Do this under your own risk.&lt;br /&gt;&lt;br /&gt;Found the info at &lt;a href="http://modmyi.com/forums/general-iphone-chat/715870-my-ios4-hack-speed-batt-improvement.html"&gt;modmyui&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;--&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;iPhone 3G has shadows enabled default for icons and the dock, which sucks some power, removing some of the png's are supposedly helping the graph libs giving you more memory and power. So, remove/move these files from /System/Library/CoreServices/SpringBoard.app:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;WallpaperIconShadow*.png&lt;/div&gt;&lt;div&gt;WallpaperIconDockShadow?.png&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;--&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Also, on another note, people have seen some improvements by removing additional language from applications. Not sure if it really matters or not, your milage will vary:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://a-common-hades.blogspot.com/2010/02/final-script-for-deleting-iphone.html"&gt;http://a-common-hades.blogspot.com/2010/02/final-script-for-deleting-iphone.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-2894352884491739823?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/07/iphone-3g-ios4-improved-speed.html</link><author>noreply@blogger.com (jolt)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-8429187644300030021</guid><pubDate>Wed, 23 Jun 2010 20:54:00 +0000</pubDate><atom:updated>2010-06-23T23:24:06.351+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>exim4</category><category domain='http://www.blogger.com/atom/ns#'>debian</category><category domain='http://www.blogger.com/atom/ns#'>courier</category><title>Startssl certificate (free) + exim + courier (Debian/Lenny)</title><description>So, my godaddy SSL cert finally expired. I wanted a new cert, but I weren't up to paying $29/year/domain for something I only have a few users on, but I still wanted a verified CA (no more adding exceptions). Looking around I found the great startssl.com, a CA that exists in most of todays browsers and email clients, and the best of all, their certs are free for non-business users!&lt;br /&gt;&lt;br /&gt;The host I run is a Debian Lenny machine with exim4 and courier as MTA/IMAP server. So, here we go:&lt;br /&gt;&lt;br /&gt;1) Sign up for a cert at &lt;a href="https://www.startssl.com/"&gt;StartSSL&lt;/a&gt;, follow the instructions (you will eventually end up with a client cert you need to install in your browser&lt;br /&gt;2) Login, verify your email / domain, go into the certificate wizard and create a "Web Server SSL/TLS Certificate"&lt;br /&gt;3) Create a new private key (2048 keylength is default, stick with it). Remember the password, you will need it later.&lt;br /&gt;4) Save the cert as server.crypted.key. Create a keyless version with &lt;pre&gt;openssl rsa -in server.crypted.key -out server.key&lt;/pre&gt;, or just use the toolbox and paste the cert and your key.&lt;br /&gt;5) Select one of the validated domains to create a server cert, enter a subdomain such as mail.domain.com, or whatever. My cert was for the domain.com level, and that name wll also be included in the mail.domain.com cert.&lt;br /&gt;6) The cert is eventuall created, so save it as server.crt&lt;br /&gt;7) Go to the toolbox and download the &lt;a href="https://www.startssl.com/certs/ca-bundle.pem"&gt;Server Certificate Bundle with CRLs&lt;/a&gt; (PEM encoded) as ca-bundle.pem.&lt;br /&gt;8) Copy ca-bundle.pem to /etc/ssl/certs&lt;br /&gt;&lt;br /&gt;I have saved my files to /etc/ssl/startssl/. With this as the base, the real work begins:&lt;br /&gt;Create a dhparam file&lt;br /&gt;1) openssl dhparam -out dhparam.pem 1024&lt;br /&gt;2) openssl gendh &gt;&gt; dhparam.pem&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Exim4:&lt;/span&gt;&lt;br /&gt;1) Edit /etc/exim4/exim4.conf. Add/edit this fields:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;tls_advertise_hosts = *&lt;br /&gt;tls_certificate = /etc/ssl/startssl/server.crt&lt;br /&gt;tls_verify_certificates = /etc/ssl/certs/ca-bundle.pem&lt;br /&gt;tls_privatekey = /etc/ssl/startssl/0x2a.key&lt;br /&gt;tls_dhparam = /etc/ssl/startssl/dhparam.pem&lt;br /&gt;tls_on_connect_ports = 465&lt;br /&gt;auth_advertise_hosts = ${if eq{$tls_cipher}{}{}{*}}&lt;br /&gt;daemon_smtp_ports = 25 : 465 : 587 : 10025&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;2) Your done! Restart exim4 and be a happy camper&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Courier&lt;/span&gt;&lt;br /&gt;1) cat server.key server.crt &gt; server.pem&lt;br /&gt;2) cat server.pem dhparam.pem &gt; /etc/courier/imapd.pem&lt;br /&gt;2)  Edit /etc/courier/imapd-ssl, Add/edit the following:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;TLS_CERTFILE=/etc/courier/imapd.pem&lt;br /&gt;TLS_TRUSTCERTS=/etc/ssl/certs&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3) Restart courier-ssl&lt;br /&gt;&lt;br /&gt;That's how I got it to work. Good luck!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-8429187644300030021?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/06/startssl-certificate-free-exim-courier.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-3580538377881876158</guid><pubDate>Wed, 23 Jun 2010 20:40:00 +0000</pubDate><atom:updated>2010-06-23T22:53:23.299+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>iphone</category><title>iOS4 pictures missing</title><description>After my gf upgraded to iOS4, her camera pictures disappeared. Seems like the discussion forums are swamped with people with the same problem. Here is the solution: (oh, she's running linux, so she are forced to run iTunes in vmware, and these instructions are thus for windows)&lt;br /&gt;&lt;br /&gt;Fix iPhone iOS4 "empty camera roll"&lt;br /&gt; &lt;br /&gt;Tools:&lt;br /&gt;iphone explorer (&lt;a href="http://www.macroplant.com/iphoneexplorer/"&gt;http://www.macroplant.com/iphoneexplorer/&lt;/a&gt;)&lt;br /&gt; &lt;br /&gt;1) Connect your iPhone&lt;br /&gt;2) Launch iPhone explorer and select the "/var/mobile/Media" as the path&lt;br /&gt;3) Backup and then delete the following files:&lt;br /&gt;/DCIM/.MISC/Info.plist&lt;br /&gt;/PhotoData/Photos.sqlite&lt;br /&gt;/PhotoData/PhotosAux.sqlite&lt;br /&gt;4) Unplug your iPhone, launch Camera Roll and wait as it rebuild the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Credits: discussion thread at &lt;a href="http://discussions.info.apple.com/thread.jspa?threadID=2469656&amp;start=15&amp;tstart=0"&gt;Apple discussion forum&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-3580538377881876158?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/06/ios4-pictures-missing.html</link><author>noreply@blogger.com (jolt)</author><thr:total>1</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-4799681652335241088</guid><pubDate>Sat, 08 May 2010 09:30:00 +0000</pubDate><atom:updated>2010-05-08T11:36:15.239+02:00</atom:updated><title>Mount remote filesystem with sshfs in crontab</title><description>So, I use my remote fileserver for XBMC by mounting it via sshfs (live-stream 1080 video FTW!).&lt;br /&gt;&lt;br /&gt;Sometimes the server has to be rebooted though, and I want the mount to be automatically re-mounted when the system is back up again, and I use crontab for that. One problem still exist, and that is that the key I use is passphrase protected, something that is good, and since I use ssh-agent it's not really a problem:&lt;br /&gt;&lt;br /&gt;*/5 * * * *  test -d /mounts/remote.sys/video || . /home/myuser/.ssh/environment ; /usr/bin/sshfs remote.sys:/data /mounts/remote.sys/ -o Cipher=blowfish -o transform_symlinks -o follow_symlinks -o allow_other&lt;br /&gt;&lt;br /&gt;So, what does it do? test -d will test if "/mounts/remote.sys/video" is a directory (the -d). If not, "||" means "not equal", so if it isn't a directory, then do the command following "||". Here I first source the environment variables from ssh-agent, then I just run sshfs to mount the remote system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Very nice indeed!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-4799681652335241088?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/05/mount-remote-filesystem-with-sshfs-in.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-6820397891660643661</guid><pubDate>Wed, 24 Feb 2010 23:08:00 +0000</pubDate><atom:updated>2010-02-26T10:17:08.525+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>SSL</category><category domain='http://www.blogger.com/atom/ns#'>certificate</category><category domain='http://www.blogger.com/atom/ns#'>iphone</category><title>Install a new SSL CA cert to your iPhone</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_vVMu_JXNJeQ/S4eRQSMxzKI/AAAAAAAAAU4/fv1VkveVN8A/s1600-h/IMG_1351.PNG"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 134px; height: 200px;" src="http://4.bp.blogspot.com/_vVMu_JXNJeQ/S4eRQSMxzKI/AAAAAAAAAU4/fv1VkveVN8A/s200/IMG_1351.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5442478383649901730" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My company uses SSL certificates from IPSCA. They are cheap (especially for wildcard certs), but they also kind of suck (since they had a short validity and their level 1 intermediate cert expired 31 of Dec 2009).&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To login to our &lt;a href="http://zimbra.com/"&gt;Zimbra&lt;/a&gt; email over HTTPS I need to accept the new level 1 intermedia CA every time I want to read my email! Not funny and hence this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Download the new SSL cert bundle from your CA. Send it as an email to any email account you have configured in your iPhone, press the attachement and you will enter a config program, select Install on your certificate, (it will complain about it not being signed, but nevermind).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Presto! Now I can visit the email server again without the pesky SSL error.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Tip-of-the-hat goes to &lt;a href="http://forums.whirlpool.net.au/forum-replies-archive.cfm/1018847.html"&gt;this forum&lt;/a&gt; that provided the clues for the answer.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;--- &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_vVMu_JXNJeQ/S4eQx-_mmwI/AAAAAAAAAUw/5iTgMsBisxg/s1600-h/IMG_1350.PNG"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 134px; height: 200px;" src="http://3.bp.blogspot.com/_vVMu_JXNJeQ/S4eQx-_mmwI/AAAAAAAAAUw/5iTgMsBisxg/s200/IMG_1350.PNG" border="0" alt=""id="BLOGGER_PHOTO_ID_5442477863098292994" /&gt;&lt;/a&gt;&lt;br /&gt;Ok, so I was stupid, which goes hand in hand with reading blogs instead of thinking for oneself: I could have just visited the website and clicked on the .crt link in the browser. When that happens, the "Install Profile" pops up. Just click install, enter your pin and you are done. KTHXBYE.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-6820397891660643661?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/02/install-new-ssl-ca-cert-to-your-iphone.html</link><author>noreply@blogger.com (jolt)</author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_vVMu_JXNJeQ/S4eRQSMxzKI/AAAAAAAAAU4/fv1VkveVN8A/s72-c/IMG_1351.PNG' height='72' width='72'/><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-8143042932392400905.post-8848527286133914788</guid><pubDate>Wed, 24 Feb 2010 23:01:00 +0000</pubDate><atom:updated>2010-02-25T00:16:58.603+01:00</atom:updated><title>Track your laptop?</title><description>I used to use Adeona (http://adeona.cs.washington.edu/) for laptop tracking, but since OpenDHT closed down Adeona kind of lost all usability. Today, after the whole story about the school that remotely enabled the webcam in the schools laptop to track their students, I got reminded of Adeona again :)&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Oh, the irony in this! A-ny-way: I wanted something to replace Adeona, and I found http://preyproject.com/download instead. Just download and install! It is written in Bash/Perl so it is highly customizable. Since I rather prefer to keep my information myself I created a SSH cert and set it to upload files to one of my public systems instead of using their information center.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Wanna know more? Check them out! It's free, and it's even available for android!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;BTW: &lt;/div&gt;&lt;div&gt;To enable scp of the data, set "&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;post_method&lt;/span&gt;" to "&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;scp&lt;/span&gt;" in &lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;/usr/share/prey/config&lt;/span&gt;, and set username/hostname at the bottom of that file. Also, since you probably want to run it as root, "&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;sudo su -&lt;/span&gt;" and do "&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;ssh-keygen&lt;/span&gt;" to generate a new cert. Upload this to a prey-user at your server and there you go!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8143042932392400905-8848527286133914788?l=blog.mekk.com' alt='' /&gt;&lt;/div&gt;</description><link>http://blog.mekk.com/2010/02/track-your-laptop.html</link><author>noreply@blogger.com (jolt)</author><thr:total>0</thr:total></item></channel></rss>
