Creating a bootable USB stick from any ISO in MacOSX

Here are a few steps if you want to create a bootable USB stick:

  1. open Disk Utility and erase the USB drive with the partition tab
  2. choose "1 partition" and "free space" as file system
  3. open the Terminal
  4. find your USB stick device:

    # diskutil list
  5. and type

    # sudo dd if=/path/to/fiile.iso of=/dev/rdiskX bs=1m

Please make sure that you use the correct output device (of=/dev/rdiskX). if you choose the wrong one you could overwrite your internal disk!

Installing PySide 1.2.4 on Ubuntu 14.04 LTS

Installing PySide 1.2.4 is quite easy and also has phonon support. Simply copy and paste following lines (line by line) to your terminal:

# sudo apt-get install build-essential git cmake libqt4-dev libphonon-dev python2.7-dev libxml2-dev libxslt1-dev qtmobility-dev libqtwebkit-dev python-pip
# pip install --upgrade wheel
# wget https://pypi.python.org/packages/source/P/PySide/PySide-1.2.4.tar.gz
# tar -xvzf PySide-1.2.4.tar.gz
# cd PySide-1.2.4
# python setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4 --standalone
# pip install dist/PySide-1.2.4-cp27-none-linux-x86_64.whl

 

Postfix: sending email copies of all incoming and outgoing mails to another domain or account

How to send an BCC copy of every incoming and outgoing email to another account? This is fairly simple to do with postfix. First open you main.cf and add or edit following lines:

# vim /etc/postfix/main.cf

now add these two lines:

sender_bcc_maps = regexp:/etc/postfix/archive_domain
recipient_bcc_maps = regexp:/etc/postfix/archive_domain

just a small explanation:

sender_bcc_maps is a regex based text file containing the mapping for outgoing mail
recipient_bcc_maps is a regex based text file containing the mappings for incoming mail

and here is an example line in the archive_domain file:

/^([^@]+)\@example\.com$/    $1@archive.example.com

the above line explained: every user @example.com will have a BCC copy send to that user @archive.example.com