Postfix admin password recovery

Generate a new password for the Postfixadmin admin panel. 

doveadm pw -s MD5-CRYPT -p password | sed ‘s/{MD5-CRYPT}//’
Posted in Uncategorized | Leave a comment

Video rotation with FFMPEG

ffmpeg -i input.mp4 -vf transpose=2 -vcodec libx264 -vpre medium -crf 22 -threads 0 -acodec copy output.mp4
Posted in Uncategorized | Leave a comment

Installing GEOIP on Debian Squeeze.

Installing GEOIP on Apache2 Debian Squeeze.

Please install the following packages:
1. First install apache2 :)
2. apt-get install libgeoip-dev php5-geo
3. pecl install geoip
Edit your /etc/apache2/php.ini file;
You should add “extension=geoip.so” to php.ini
Restart apache2; service apache2 restart
Now you are able to use or develop application, making use of GEOIP.
Posted in Uncategorized | Leave a comment

Postgresql password authentication

Scripting automation tasks for postgresql can be done easy.
By default ( In Debian and Ubuntu ) postgresql uses IDENT as method
for authentication. This means that the user “postgres” only can connect
to the database if the unix user is logged in or sudoed. In my version 8.4
/etc/postgresql/8.4/main/pg_hba.conf has a line witch should be modified .
Replace ident with password, and here you go.

Posted in Uncategorized | Tagged | Leave a comment

Mount ddrescue file

You can do fdisk on the image file, via a loopback
device:
Load data file / image file made with

losetup -r /dev/loop0 drive.ima
fdisk -lu /dev/loop0

The you will see something like this;

Disk /dev/loop0: 4009 MB, 4009754624 bytes
84 heads, 22 sectors/track, 4237 cylinders, total 7831552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc5328fd3

Device Boot Start End Blocks Id System
/dev/loop0p1 * 62 7831551 3915745 4 FAT16 <32M

Posted in Uncategorized | Tagged | Leave a comment

Auto hide panel gnome 3

The Auto hide panel has been moved in a new extension called; https://extensions.gnome.org/extension/208/panel-settings/

The ubuntu 12.04 gnome-fallback thingy will be canceled, so a good
thing to just install the Gnome 3 complete. Information how to this can be found
at  http://askubuntu.com/questions/119357/how-to-install-the-full-gnome-desktop-as-close-to-upstream-as-possible

Posted in Debian, Linux, Ubuntu | Leave a comment

Galaxy Nexus JellyBean update; download now:

Information by Koush from XDA.


http://www.clockworkmod.com/rommanag…0Nexus%20(GSM)
https://twitter.com/koush/status/218169047051804672

Decided to make a how-to thread since the other thread is quite messy.

1.Backup apps and other data
2.Wipe Data , cache, dalvik cache etc
3.You must be on xxla2 radio. http://goo.gl/zttLP or http://www.mediafire.com/?d1776uuaei5aubi
3. Flash this to return to IMM30D ( required to update to JB JRN84D) http://www.mediafire.com/?acbm284ax7a5b0u
or http://www.embedupload.com/?d=02MTABK2G3
4.Then flash http://android.clients.google.com/pa…D.5a07884d.zip or http://www.mediafire.com/?wd0ureeywv44ld7
5. Reboot, and you should be on Jelly bean 4.1 

These exact steps are untested by me ( i dont have a gnexus) but should work fine

Posted in Uncategorized | Leave a comment

galaxy nexus and S2 Samsung S voice / siri like tool

Here is the S Voice apk file extracted from Samsung S3 phone;

http://www.mediafire.com/?m7mu6pdt0b63dul
http://uploaded.to/file/itkvz5ej
http://db.tt/UJHkCZWc

Installation;

1. Copy the APK to your memory.
2. Install Astro File explorer
3. Select the file and install.

Source; http://forum.xda-developers.com/showthread.php?t=1662254

Posted in Android, Uncategorized | Tagged , , | Leave a comment

Windows 2008 r2 setup KVM

Installing Windows 2008 r2 on KVM resulted in some issues. The screenshot shows the first error, below i will explain how to solve this problem.

After some search i found out the ISO was corrupted. Downloading again from their super fast ( not really ) servers seems to be enough.
So installing windows on a Debian Squeeze KVM system;
step 1. Download the correct .iso file
step 2. Get the latest virtio-win .iso file from the Fedora Linux project; http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
step 3. Go to the
virt-install –connect qemu:///system -n win2k8 -r 1024 –vcpus=2  –disk /dev/vg1/windows –vnc  –noautoconsole –os-type windows –os-variant win2k8 -c /mnt/test/dvd2.iso –disk path=/mnt/test/virtio-win-0.1-22.iso,device=cdrom,perms=ro
The Virto Win part is needed for Windows en Qemu to find the correct harddisk drivers. Else the setup will get stuck or slow down really bad ending with a message; “No harddisks found”
After this continue installing with virt-manager, the VNC option will make it possible to do a GUI Windows install.
Posted in Uncategorized | Leave a comment

KVM install on LVM Debian

This rule installs a new debian distribution on KVM

–disk=/dev/virtual/linux01 represents the lvm partition.

Change the values below for your own configuration

virt-install –connect qemu:///system -n zarafa01 -r 1024 –vcpus=2 –disk=/dev/virtual1/linux01 -c /mnt/extusb/debian6.iso –vnc –noautoconsole –os-type linux –accelerate –network=bridge:br0 –hvm

Posted in Uncategorized | Leave a comment