Amanda Setup – Open source backup software for linux

Amanda provides a way to back up a variety of enterprise data sources and applications, supporting multiple flavors of Unix and Linux, Windows, and Mac OS X.

Installation

For installation follow the given URL
http://www.zmanda.com/quick-backup-setup.html

Exclude files/folder in backup

You can exclude files and folder in backup. To exclude folders, you will have to edit the dumptype entry in amanda.conf file.

Refer the given dumptype I used in my backup.

define dumptype user-tar-span {
root-tar
tape_splitsize 3 Gb
comment "tape-spanning user partitions dumped with tar"
priority medium
exclude append "./Directory/exclude_folder_1/*"
exclude append "./Directory/exclude_folder_2/*"
exclude append "./Directory/exclude_folder_3/*"
exclude append "./Directory/exclude_folder_4/*"
}

Here in the above example you can exlude ./Directory/exclude_folder_1,2,3 and 4.

Login to Linux without authentication through Putty

This tutorial explains how you can replace password-based SSH authentication with key-based authentication which is more secure because only the people that own the key can log in. In this example, we're using PuTTY as our SSH client on a Windows system.

You can download requaired components from this link: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

1. Generate a private and public key pair
Open PuTTYgen.exe, press Generate button, move mouse. Once the keys are generated, type your key passphrase (choose a "hard to guess" one). Save Public key. Save Private key.

2. Now login into linux using SSH and goto /root/.ssh folder. There create one file "authorized_keys2". Copy content of publickey generated on Windows PC into "authorized_keys2" file.
or copy public file from windows PC to linux and run below command it will automatically add public key content to authorized_keys2 file.
ssh-keygen -i -f mypublicKey.pub >> .ssh/authorized_keys
It should look something like
ssh-rsa AAAAC1sdf#FasdccP1....
Then change its permission to 700
chmod 700 authorized_keys2
3. Add private key to putty SSH authentication agent.
Start the putty SSH authentication agent PAGENT.EXE. When started, right-click on and then click on "Add Key" , give the path of Private key generated. Now you can start session to Linux PC through putty. You will be asked for username, but not password.. ;)

ffmpeg-php installation on Fedora

Ffmpeg-php
You can download ffmpeg-php from
http://ffmpeg-php.sourceforge.net/
Before You Install
Make sure you have php-gd and php-devel installed.

How to Install
You need to run following commands on SSH prompt as user "root"
cd /usr/local/src
svn co https://ffmpeg-php.svn.sourceforge.net/svnroot/ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.0 ffmpeg-php-0.6.0
cd ffmpeg-php-0.6.0
make clean && make distclean
phpize
./configure --with-ffmpeg=/usr
make && make install


Configuration
After installation of ffmpeg-php, you need to edit php.ini and load ffmpeg-php module with "extension=ffmpeg.so"
For most servers, you will be able to find php.ini in one of the following locations
/etc/php.ini
/usr/local/lib/php.ini
/usr/local/Zend/etc/php.ini

To find extact location of php.ini on your server, run following command in ssh prompt/command line.
php -i|grep php.ini

After you find location of php.ini, edit the file with vi

You need to edit php.ini and set it to the folder on which ffmpeg.so is installed. This you will get while installation. On some servers, ffmpeg-php installation will set this, if not you need to it it your self.
FIND
extension=
After ADD, in new line
extension=ffmpeg.so
Now run
php -i |grep ffmpeg
You will see ffmpeg php details like shown below.
# php -i |grep ffm
ffmpeg
ffmpeg-php version => 0.6.0-svn
ffmpeg-php built on => Dec 24 2008 22:12:50
ffmpeg-php gd support => enabled
ffmpeg libavcodec version => Lavc52.8.0
ffmpeg libavformat version => Lavf52.23.1
ffmpeg swscaler => disabled
ffmpeg.allow_persistent => 0 => 0
ffmpeg.show_warnings => 0 => 0
#




Now you need to restart your web server, then only it will show on your phpinfo page.
service httpd restart

Virtualization in Linux

Installation of VirtualBox in Fedora 8 in Four Steps.
1. First download VirtualBox rpm package from website. Run the following command to download the package.wget http://download.virtualbox.org/virtualbox/2.1.4/VirtualBox-2.1.4_42893_fedora8-1.i386.rpm
2. When package will be downloaded, you will need to rename that package. Run following command to rename the package.
cp VirtualBox-2.1.4_42893_fedora8-1.i386.rpm\?e\=1235648684\&h\=d3621aba1a93f87daa9ed33faa0c8486 VirtualBox-2.1.4_42893_fedora8-1.i386.rpm
note: your downloaded package name can be different than given in command. So take care of it.
3. Install rpm with the following command.
rpm -ivh VirtualBox-2.1.4_42893_fedora8-1.i386.rpm
4. After installation of rpm package add user root to vboxusers group.
/usr/sbin/usermod -G vboxusers root