Thursday, 21 November 2013

Location of php.ini

In the terminal type

php --ini

To view the locations and names of all the ini files that were parsed.

Solution Selling - A sales method

http://en.wikipedia.org/wiki/Solution_selling

Running an Android VM in Linux

http://www.cnx-software.com/2013/03/01/how-to-run-android-apps-in-linux-with-androvm/

Installing Microsoft Fuzzy Lookup

You need a Windows 7 system with Office 2010 or higher. You also need .net framework 4, and Visual Studio 2010 Tools for Office Runtime.


.net 4 framework: www.microsoft.com/en-in/download/details.aspx?id=17718

VS 2010 tools for office runtime: http://www.microsoft.com/en-us/download/details.aspx?id=40790

To download MS Fuzzy Lookup for Excel:

http://www.microsoft.com/en-in/download/details.aspx?id=15011

Cloning a disk on Linux

https://wiki.archlinux.org/index.php/Disk_Cloning

Create a tar archive preserving all attributes

tar --selinux --acls --xattrs  -cvf file.tar /var/www
 
http://www.cyberciti.biz/faq/linux-tar-rsync-preserving-acls-selinux-contexts/ 

Wednesday, 20 November 2013

Backup entire installed OS

sudo rsync -aAXv /* /mnt/backup_vol --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}


The above command will backup all the OS files with the regular attributes and SELinux attributes. rsync also allows the backups to updated. The backup path should be to a Linux filesystem.

To restore the OS from the backup, and more details see: https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync