Shrink 2GB IMG to fit 2GB SD Card.

Here’s the thing:

You bought a Raspberry Pi, a 2GB SD card and downloaded a 2GB IMG to create your awesome project, just to find the card is too small to write the IMG file to!  The reason for this is that you bought a 2GB SD card, but technically it is only about 1.8G in size!  (1MB=1024768b, work it out from there!)

Continue reading

Bluetooth Speaker + Raspberry PI – The ultimate guide. Now with WiFi support!

Note: Complete installation script available here: Installation Script Once logged into yourRaspberry, just run:
and run the script (after sudo su and chmod 777). Open web-browser with IP assigned.



I purchased a BlueTooth Speaker called a D-Link DBS-2012 Portable Stereo Speaker (Review) with the hope of getting RuneAudio or Volumio streaming to the speaker, but no such luck.  The developers of both states outright they do not support the technology, which I find a bit of a lack of vision.  Please note, you will also need a BT Dongle.

This said, here follows a guide getting a rather nice, light-weight distribution with a web front-end manageable via cell-phone or any web-browser:

Continue reading

OTRS – Delete all tickets from database.

I am running a test site and would like to implement/clear the tickets to start fresh.  To Delete (flush) database of tickets and start fresh:

#mysql -uroot -p

sql>use otrs2;
sql> delete from ticket_history;
sql> delete from article;
sql> delete from article_attachment;
sql> delete from article_plain;
sql> delete from time_accounting;
sql> delete from ticket;

That’s it – no more tickets!

ps – To my sister: Flush it babes! :)

How I Integrated z-push with zimbra

(Reblog from Zimbra)

I looked at several ways to integrate z-push with zimbra with minimum modifications to zimbra itself.

Whether you have your z-push installation on the same server or not, you can use this method.

I personally installed z-push on the same server but I changed the port of z-push into 4433 (example).

Then to integrate z-push with my zimbra installation, this is what I did:

(change into zimbra username)
su zimbra
sudo su zimbra (needed for ubuntu)

1. change the permissions on this file to be able to edit it (rw):
chmod 644 /opt/zimbra/conf/nginx/templates/nginx.conf.web.https.default.template

2. edit the file and go to the location
location ^~ /Microsoft-Server-ActiveSync

3. in that block:
a. change:
proxy_pass ${};

b. change (not sure if this is needed, but the first change should be enough)
set $mailhostport ${web.http.uport}
set $mailhostport 4433;

4. restart cache:
zmproxyctl restart

That’s it, you are free to point your proxy_pass entry to the same server or different server.
Hope this helps.