Tuesday, December 29, 2009

Zimbra Installation on Debian, Ubuntu & Linux

Hi All...

Zimbra installation on any linux is very easy. It keeps system administrator in peace. If you really want to feel it INSTALL IT ;-) Enjoy.

  • Download Zimbra OS from http://www.zimbra.com/community/downloads.html
  • Before configuring setup the dns for the domain you want to configure the email on local machine or any dns servers. Example : Everydns, Xname.org.. ( This may take few hours).
  • Installation of bind ( Dns ) Configuration on debian / ubuntu.
  • apt-get install bind ( Installs bind packages on debian box )
  • add your ip address to /etc/hosts.
  • The first line of the file defines the IP address of localhost as follows: localhost.localdomain localhost
  • The second line will include the private IP address and hostname of the server: Ip Address) mail.domain-name.com mail
ex :- localhost.localdomain localhost
Your Public-Ip-Address mail.domain-name.com mail

  • Go To /etc/bind/ copy db.local file /var/cache/bind/'domain'.db = ( 'domain' = Your Domain Name. Any .com , .in, .org,) It would be better to configuring on local machine as dns server take few hours to resolve.
  • Change the domain name and ip address. ( Dont forget to add your ip add in /etc/hosts ).
  • Tip :- Properly mention the ( DOT (.) , Open Bracket & Close Bracket () in the /var/cache/bind/domain-name.db file. These are the main important things techies will go mad. ;-) unless they are very professional.
  • Add the domain zone in /etc/bind/named.conf.local
zone "example.com" {
type master;
file "/var/cache/bind/example.com.db"

; BIND data file for local loopback interface

$TTL 604800
@ IN SOA domain-name.com. root.domain-name.com. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS example.com.
@ IN A IP Add)
mx IN A IP Add)
mail IN A IP Add)
@ IN MX 5 mx.example.com.

  • Try to dig(Resolve) your domain name locally it should point your ip address.Once verified you can go head with next step. If you find any problem check the previous step.
  • Use dig command to check. exaample :- dig domain-name.com, dig domain-name.com mx.
  • Untar the downloaded zimbra file.
tar -xjvf filename.tgz /opt/
  • Before installation of zimbra you may need to install some necessary dependency packages.
libidn11, fetchmail, libgmp3c2, libxml2, libstdc++6, openssl, libltdl3, curl
  • Start installation of ZCS.
Go to /opt/zimbra/ run install.sh file.
             Run ./install.sh
  • After it confirms the dependency packages has been installed and it asks select the ZCS packages to be selected by ckecking " Y ".
Example :- Zimbra Apache, Zimbra Anti-Spam, Zimbra Anti-Virus, Zimbra MTA, Zimbra logger, Zimbra Stats, By Default Zimbra Proxy will be marked as "No". You can make it installable if you need. Please refer configure documentation of zimbra proxy in Zimbra Administration Documentation.
  • It starts unpacking the packages & installs all necessary & selected packages.
  • It asks you to make some changes in the zimbra administration configuration such as https port, username, password, etc..
  • Once done, Configuration will be saved & asks to send zimbra notification. ( You can say "Yes" If you want OR You can "No" too ).
  • Your zimbra mailbox starts working now.
  • Check your zimbra wheather its working properly.
    su - zimbra
zmcontrol status
netstat -antp

  • Finally Reboot your mail machine & check it.
  • Happy Zimbra Mail Server......................... :-)

Saturday, December 26, 2009

Domain Level Blocking Users in Zimbra

Hi All..

The follwing are the simple steps to blocking users in zimbra postfix.

Below mentioned are the steps to "REJECT" an external email address from sending mail to the users of the Zimbra Domain.

1. Edit /opt/zimbra/conf/zmmta.cf

Add this line below (smtpd_recipient_restrictions)
POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions

2. Create file /opt/zimbra/conf/postfix_sender_restrictions with the below line:


3. Create file /opt/zimbra/postfix/conf/reject with the list of email address to be rejected in the below format:

user@domain.com REJECT

4. postmap /opt/zimbra/postfix/conf/reject

5. zmmtactl stop ; zmmtactl start

Please note :- This change will not survive an upgrade and you will have to redo these after the upgrade.

Courtesy :- http://wiki.zimbra.com/index.php?title=Domain_level_blocking_of_users

Monday, December 21, 2009

Check BitRate,Frequency,Info of Mp3 Files on Debian & Ubuntu

Hi All..

Know you songs BitRate, Play Time, Frequency, of your mp3 files.

eyeD3 filname.mp3

Example :-

everything_i_do.mp3 [ 6.00 MB ]
Time: 06:33 MPEG1, Layer III [ 128 kb/s @ 44100 Hz - Joint stereo ]
ID3 v1.0:
title: Everything I Do, I Do It For artist: Bryan Adams
album: year: None
track: genre: Unknown (id 255)


Thursday, May 28, 2009


Hi All..

Ipod management for Linux users, GNUPOD makes it very very easy... :-), I was using previously iTunes when i was unaware of of gnupod, Though i use linux for each work, i got new tool 'GnuPod' to manage my ipod. Installation & Using gnupod is simple. Follow the instruction to install & configure your new ipod management tool...

For Debian & Ubuntu Users:

Installation Of Gnu POd :

1. apt-cache search gnupod-tools
( Search for gnupod tools)

2. apt-get install gnupod-tools
( Installs the package)

3. apt-get install libtimedate-perl

Don't forget to install this package, If its installed not a problem, it not do it.

4. Plug in your Ipod, Mount it.

mount /dev/usbdisk /mount_point

5. If want you can take backup of it.

6. After taking backup, Remove data from mounted partition

rm -rf /mount_point

7. Preparation

gnupod_INIT -m /mount_point ( If the iPod is freshly formatted or you never used GNUpod before with this iPod, run this)

8. Adding files to Gnupod

gnupod_addsong -m /mount_point filename.mp3


You can specify the list of files to add.

9. After adding files

mktunes -m /mount_point

10. Umount the device.
umount /dev/usbdisk

11. Ready to use your Ipod.

For More Info : http://www.gnu.org/software/gnupod/gnupod.html

Happy gnupod.

Friday, April 10, 2009


1.ssh-keygen generates, manages and converts authentication keys for ssh

root:~#ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_dsa.
Your public key has been saved in /root/.ssh/id_dsa.pub.
The key fingerprint is:
97:67:2b:55:6a:7e:ed:c3:e2:3e:14:3e:1b:7a:ee:12 root@localhost

After Running This Command, You will find id_dsa.pub file in ~root/.ssh/id_dsa.pub

2. Copy that id_dsa.pub file to another machine.

root:~# scp ~root/.ssh/id_dsa.pub root@host:.ssh/authorized_keys2

3. Now try to login using ssh root@xxxx

Enjoy.. :-)

Monday, April 6, 2009

Hindi On Debian & Ubuntu Box

1 .Install the following packages using apt-get install.

scim-uim scim-tables-additional scim-modules-table scim-m17n scim-gtk2-immodule scim uim-xim uim-utils uim-m17nlib uim scim-uim

2. Download The Font From Website.


3. Make a directory ttf-hindi in /usr/share/fonts/truetype/

4. Copy the downloaded font to /usr/share/fonts/truetype/ttf-hindi/

5. Run fc-cache in /usr/share/fonts/truetype/ttf-hindi/

6. Open text editor & test it.

Enjoy.. :-)

Saturday, March 7, 2009

Configure Postfix, Postfixadmin, Dovecot On Debian & Ubuntu

Hi All..

Download Postfixadmin , put that webroot configure it.

vim /var/www/postfixadmin/config.inc.php

$CONF['configured'] = true;
$CONF['postfix_admin_url'] = 'http://yourdomain.tld/postfixadmin';

$CONF['database_type'] = 'mysql';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfixadmin';
$CONF['database_password'] = 'SecretPassword!';
$CONF['database_name'] = 'postfix';

$CONF['domain_path'] = 'YES';
$CONF['domain_in_mailbox'] = 'NO';
$CONF['encrypt'] = 'cleartext';

Take a look at the rest of that file if you need to make more tweaks.

You can quickly change the default domain to your own:

replace "change-this-to-your.domain.tld" "yourdomain.com" -- /usr/share/postfixadmin/config.inc.php
shell> mysql -u root -p
mysql> create database postfix;
mysql> grant all privileges on postfix.* to 'postfixadmin'@'localhost' identified by 'SecretPassword!';
mysql> flush privileges;
mysql> \q

Then browse to http://yourdomain.com/postfixadmin/ or http://yourip/postfixadmin/. It will prompt you to run Setup. Make sure the Setup Checker says ‘OK’ for everything.

Remove the setup.php as it recommends.

Then browse to http://yourdomain.com/postfixadmin/admin. You should get prompted. Login with the admin email you registered earlier in the setup page.
From here you can add domains, mailboxes, etc. But Postfix won’t see these yet. We need to install Postfix, and configure it.

Install Postfix, SASL2 with MySQL support

apt-get install postfix-mysql postfix-tls libsasl2-modules-sql libsasl2-modules

Add the following to /etc/postfix/main.cf

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:106
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 106
virtual_transport = virtual
virtual_uid_maps = static:106

# grep postfix /etc/passwd
--> uid: 102; gid: 105

Create the following files in /etc/postfix/:


user = postfix
password = SecretPassword!
hosts = localhost
dbname = postfix
table = alias
select_field = goto
where_field = address


user = postfix
password = SecretPassword!
hosts = localhost
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '0' and active = '1'


user = postfix
password = SecretPassword!
hosts = localhost
dbname = postfix
table = mailbox
select_field = maildir
where_field = username

If you want to be be able to relay mail through your server with SMTP AUTH, setup the following in /etc/postfix/sasl/smtpd.conf:

pwcheck_method: auxprop
mech_list: PLAIN LOGIN
auxprop_plugin: sql
sql_verbose: yes
sql_engine: mysql
sql_hostnames: localhost
sql_user: postfix
sql_passwd: postfix
sql_database: postfix
sql_select: select password from mailbox where username ='%u@%r'

Create the directory structure, including a directory for the first domain. You’ll also want to go into PostfixAdmin and create a ‘test’ account for the yourdomain.com to match this.

mkdir -p /home/vmail/yourdomain.com/test
chmod -R 770 /home/vmail
chown -R postfix:postfix /home/vmail/

Install Dovecot with MySQL support

apt-get install dovecot-common dovecot-imapd dovecot-pop3d

Configure the Dovecot/MySQL setup in /etc/dovecot/dovecot-mysql.conf using these settings:

driver = mysql
connect = dbname=postfix user=postfixadmin host=localhost password=SecretPassword!
default_pass_scheme = PLAIN
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 106 AS uid, 106 AS gid FROM mailbox WHERE username = '%u'

Then configure Dovecot to use MySQL by setting these options in /etc/dovecot/dovecot.conf:

protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
mail_access_groups = mail
first_valid_uid = 106
first_valid_gid = 106
protocol imap {

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
auth default {
mechanisms = digest-md5 plain
passdb sql {
args = /etc/dovecot/dovecot-mysql.conf
userdb sql {
args = /etc/dovecot/dovecot-mysql.conf
user = root

Restart Dovecot and Postfix and test it all out.

At the end of it, you should be able to add new domains, mailboxes and aliases using PostfixAdmin and have it all work properly, including SMTP authentication. Note that you don’t need saslauthd for SMTP authentication to work.

Enjoy.. :-)

Friday, February 6, 2009

SNMP and MRTG on Debian

SNMP server configuration

Firstly, you need an SNMP server to provide network interface statstics on demand:

# apt-get install snmpd

You need to edit the configuration for this as it does not allow any connections by default. With your favourite editor, edit:


Comment out the following (prefix with #):

com2sec paranoid default public

Insert the following underneath the commented out section:

com2sec readonly default public

That gives anyone with access to the SNMP server read-only access to the public community. This is the one that contains the interface statistics.

To apply the changes, restart snmpd:

/etc/init.d/snmpd restart

Make sure you firewall off any SNMP related ports so that you don't get any unwanted visitors (check netstat and /etc/services for port information).

Installation of MRTG

MRTG is the main collection and graphing component of the traffic monitoring solution I am presenting here. Firstly, install MRTG:

# apt-get install mrtg

You can manually or automatically generate the configuration file for mrtg. I would recommend doing it automatically as it is a lot easier. Issue the following command:

# cfgmaker --global 'WorkDir: /var/www/mrtg' \
--output /etc/mrtg.cfg public@

This will generate the configuration file. You then need to make an index file which contains a list of all of your interfaces. Issue the following command:

# indexmaker /etc/mrtg.cfg --columns=1 \
--output /var/www/mrtg/index.html

You will now need to execute mrtg manually 3 times to create the required database files. Issue the following command 3 times sequentially. On the third run, you should see no errors being reported:

# mrtg

This is executed every 5 minutes by cron. The cron job was added by dpkg for you so you do not have to configure it.


Thursday, January 29, 2009

Skype On Ubuntu & Debian

Skype Instant messanger in Debian

As the root user, add this line to the end of your /etc/apt/sources.list file and save.

#vi /etc/apt/sources.list

deb http://download.skype.com/linux/repos/debian/ stable non-free

Now you need to update your source list using the following command

#apt-get update

Install Skype in debian

#apt-get install skype

This will install the latest version of Skype on your computer.

After finishing installation you can open skype from Applications–>Internet—>Skype you can see this in the following screen

Enjoy Skype.. :-)

Skype Instant messanger in Ubuntu

You need to edit your /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

add the following Repository and save the file

deb http://download.skype.com/linux/repos/debian/ stable non-free

Now you need to update your source list using the following command

sudo apt-get update

Install Skype in ubuntu

sudo apt-get install skype

This will install the latest version of Skype on your computer.

After finishing installation you can open skype from Applications–>Internet—>Skype you can see this in the following screen

Enjoy Skype... :-)

File Compression in Linux


These are the daily used simple compression tools in all linux boxes.


zip -r filename.zip filename(source file/dir)

unzip filneame.zip


Create :
tar -cvf filename.tar filename(source file/dir)

tar -xvf filename.tar


tar -cvzf filename.tar.gz filname(source file/dir)

tar -xzvf filename.tar.gz


tar -cjvf filnema.tar.bz2 filname(source file/dir)

tar -xjzf filename.tar.bz2


gzip filename

gunzip filename.gz


bzip2 filname

bunzip2 filname.bz2

Enjoy.. :-)

Restoring GRUB On Linux Machine.


Simple steps to reload the grub on any linux box :

1 .Boot from the linux live cd (ex: knoppix, ubuntu).

2. After sucuessful booting, Open a terminal,

3. Mount the root partition on any of the file system (ex : /mnt )

Ex : mount /dev/sda2 /mnt or /media

To check the root partition you can user fdisk -l or cfdisk.

4. Reload the grub.

grub-install --root-directory=/mnt /dev/sda (Specify the device not the partition)


grub-install /dev/sda

5. Reboot the machine. Now you should be able to access your OS.

Enjoy.. :-)

Subversion (version control system)

  1. On both server and client, install Subversion:
    sudo apt-get install subversion
  2. On the server (setting up Subversion to be accessed via SSH):
    1. Make a directory for the repositories to sit:
      mkdir $SVN_DIR 
      Typically, use /home/$USER/svn as $SVN_DIR.
    2. Create a repository:
      svnadmin create $SVN_DIR/$PROJECT 
      where $PROJECT is your project name
    3. Turn off anonymous access:
      nano $SVN_DIR/$PROJECT/conf/svnserve.conf
      Add the following lines:
      [general]  #section heading
      anon-access = none # turn off anonymous access
    4. (optional) Import existing content to the repository:
      svn import /path/to/original/content/ file://$SVN_DIR/$PROJECT[/deeper]
  3. On the client:
    1. Initial checkout:
      svn checkout svn+ssh://$SVN_SERVER/$SVN_DIR/$PROJECT[/deeper/]
    2. Subsequent updates, commits, etc.:
      svn update/commit/add/remove/rename/revert [filenames]

Debian GNU/Linux device driver check page


Check Your Debian Linux Device Drivers Here.


Enjoy.. :-)

Wednesday, January 21, 2009

Adding flash plugin to iceweasel


Installating adobe flash plugin nonfree to iceweasel browser.

Add the following repo to source list.

vim /etc/apt/sourcelist
deb http://www.backports.org/debian etch-backports main contrib non-free
:wq (save & exit)

Run apt-get update
(No problem if it shows any public_key error.)

debian:~# apt-cache search nonfree plugin
flashplugin-nonfree - Adobe Flash Player - browser plugin

debian:~#apt-get insall flashplugin-nonfree

Enjoy... :-)

dpkg: parse error, in file '/var/lib/dpkg/available'


dpkg parse errors problems...

Example or error:

dpkg: parse error, in file `/var/lib/

dpkg/available' near line 1134 package `login':
`Replaces' field, invalid package name `manpag1:7.04+20070412': character `:' not allowed (only letters, digits and characters `-+._')
E: Sub-process /usr/bin/dpkg returned an error code (2)


dpkg --clear-avail & make apt-get update, I belive then will you will not be having problem like this.. :-)


Vnstat On Debian & Ubuntu


Installation Of Vnstat On Debian

apt-get install vnstat

Once installed you'll need to initialise the database the system uses for recording your traffic details. The tool uses one database for each network interface you wish it to monitor. (These are not real databases, just text files located in the directory /var/lib/vnstat.)

vnstat -u -i eth0

debian:~# vnstat
Database updated: Wed Jan 21 15:25:01 2009


received: 0 MB (nan%)
transmitted: 0 MB (nan%)
total: 0 MB

rx | tx | total
today 0 MB | 0 MB | 0 MB
estimated 0 MB | 0 MB | 0 MB

vnstat --help
-q, --query query database
-h, --hours show hours
-d, --days show days
-m, --months show months
-w, --weeks show weeks
-t, --top10 show top10
-s, --short use short output
-u, --update update database
-i, --iface change interface (default: eth0)
-?, --help short help
-v, --version show version
-tr, --traffic calculate traffic

See also "--longhelp" for complete options list and "man vnstat".

man vnstat (View Man Page For More info)

Repairing Mysql Tables

1. Checking your tables

Run myisamchk *.MYI or myisamchk -e *.MYI if you have more time. Use the -s (silent) option to suppress unnecessary information.

If the mysqld server is stopped, you should use the --update-state option to tell myisamchk to mark the table as “checked.

You have to repair only those tables for which myisamchk announces an error. For such tables, proceed to Stage 2.

If you get unexpected errors when checking (such as out of memory errors), or if myisamchk crashes, go to Stage 3.

Stage 2: Easy safe repair

First, try myisamchk -r -q tbl_name (-r -q means “quick recovery mode”). This attempts to repair the index file without touching the data file. If the data file contains everything that it should and the delete links point at the correct locations within the data file, this should work, and the table is fixed. Start repairing the next table. Otherwise, use the following procedure:

  1. Make a backup of the data file before continuing.

  2. Use myisamchk -r tbl_name (-r means “recovery mode”). This removes incorrect rows and deleted rows from the data file and reconstructs the index file.

  3. If the preceding step fails, use myisamchk --safe-recover tbl_name. Safe recovery mode uses an old recovery method that handles a few cases that regular recovery mode does not (but is slower).


If you want a repair operation to go much faster, you should set the values of the sort_buffer_size and key_buffer_size variables each to about 25% of your available memory when running myisamchk.

If you get unexpected errors when repairing (such as out of memory errors), or if myisamchk crashes, go to Stage 3.

Stage 3: Difficult repair

You should reach this stage only if the first 16KB block in the index file is destroyed or contains incorrect information, or if the index file is missing. In this case, it is necessary to create a new index file. Do so as follows:

  1. Move the data file to a safe place.

  2. Use the table description file to create new (empty) data and index files:

    shell> mysql db_name
    mysql> SET autocommit=1;
    mysql> TRUNCATE TABLE tbl_name;
    mysql> quit
  3. Copy the old data file back onto the newly created data file. (Do not just move the old file back onto the new file. You want to retain a copy in case something goes wrong.)


If you are using replication, you should stop it prior to performing the above procedure, since it involves filesystem operations, and these are not logged by MySQL.

Go back to Stage 2. myisamchk -r -q should work. (This should not be an endless loop.)

You can also use the REPAIR TABLE tbl_name USE_FRM SQL statement, which performs the whole procedure automatically. There is also no possibility of unwanted interaction between a utility and the server, because the server does all the work when you use Syntax”REPAIR TABLE. See Section, “REPAIR TABLE.

Stage 4: Very difficult repair

You should reach this stage only if the .frm description file has also crashed. That should never happen, because the description file is not changed after the table is created:

  1. Restore the description file from a backup and go back to Stage 3. You can also restore the index file and go back to Stage 2. In the latter case, you should start with myisamchk -r.

  2. If you do not have a backup but know exactly how the table was created, create a copy of the table in another database. Remove the new data file, and then move the .frm description and .MYI index files from the other database to your crashed database. This gives you new description and index files, but leaves the .MYD data file alone. Go back to Stage 2 and attempt to reconstruct the index file.

Saturday, January 17, 2009

Request Tracker Installation On Ubuntu

Hi All...

Howto Install Request-Tracker 3.6 (mysql) on Ubuntu Dapper Server 6.06


This Howto will explain how to install request-tracker on a clean Ubuntu Dapper Server install. It is tested on Ubuntu Dapper 6.06 and might work with slight modifications on other versions or Debian based distros.

It also installs the additional services required for Request-Tracker, such as

* Apache2 - Web Server
* Postfix - Email Server (for sending emails)
* Mysqld 5.0.22-- Database to Store the RT information.

Install the Request Tracker Packages
Open a Root Login Shell


sudo -s

as member of the admin group to get a root-login shell.
Enable Universe

Enable universe in your apt ''sources.list''

cp -vpr /etc/apt/sources.list /etc/apt/sources.list.orig
vim /etc/apt/sources.list

Uncomment universe sources, by removing the ''#''.

deb http://us.archive.ubuntu.com/ubuntu/ dapper universe

Update your apt package list

apt-get update

Install the Packages

apt-get install rt3.6-apache2 (this will also take care of some prerequisites)

apt-get install request-tracker3.6 rt3.6-clients apache2-doc postfix mysql-server lynx libdbd-pg-perl

* In the "Postfix Configuration" - I choose "Internet Site", just because I prefer to have the system send emails without being dependent on a different mail server. The logic behind that is because if the email server goes down, the ticket server should NOT follow.
* You should see this message after the install is done...

Postfix is now set up with a default configuration. If you need to make
changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Configure Rt

* Backup the RT config file. I like to do this for every conf file I modify

cp -vpr /etc/request-tracker3.6/RT_SiteConfig.pm /etc/request-tracker3.6/RT_SiteConfig.pm.orig

vim /etc/request-tracker3.6/RT_SiteConfig.pm

* Customize using the directions in the file.

Create the Database

I used the ConfigureMysqlOnGentoo guide as reference and had issues with the script my workaround was to create the database, create the user, drop the database and recreate the database and it worked fine.

* Use script to create database (don’t worry about user error message we will fix this later)

/usr/sbin/rt-setup-database-3.6 --action init --dba root --prompt-for-dba-password

* As root, login to MySQL

mysql –p

*Create user CREATE USER rtuser IDENTIFIED BY 'p4ssw0rd';

* Grant access rights to rtuser


* Drop the database

mysqladmin drop rtdb –p

* Recreate the database using the script (it should work this time)

/usr/sbin/rt-setup-database-3.6 --action init --dba root --prompt-for-dba-password
Configure Apache2
Add the Virtual Host Config

cp -vpr /etc/apache2/sites-available/default /etc/apache2/sites-available/default.orig
vim /etc/apache2/sites-available/default

Add the following line to the VirtualHost section of Apache from which you wish to serve RT

Include "/etc/request-tracker3.6/apache2-modperl2.conf"
Enable Apache2 RewriteEngine

cd /etc/apache2/mods-enabled/
ln -s ../mods-available/rewrite.load .

Install Apache::Session

Make sure that you update the 'make', 'tar', 'unzip', and 'gzip' libraries in your distribution prior to installing ''Apache::Session'':

apt-get install make tar gzip unzip

Check that Apache::Session is installed. If necessary, install (as root) with

cpan install Apache::Session

Restart Apache

/etc/init.d/apache2 force-reload


You can now login to:


using user root and password "password" (without quotation marks of course). Change this passwd ASAP via the Configuration menu.

Best Source : http://www.bestpractical.com/rt

Friday, January 16, 2009

Monitor Disk Space In Linux With Shell Script

Hi.. All..

Monitoring Disk Space In Linux With Shell Script

# set alert level 90% is default
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
#echo $output
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
partition=$(echo $output | awk '{ print $2 }' )
if [ $usep -ge $ALERT ]; then
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |
mail -s
"Alert: Almost out of disk space $usep" $ADMIN

Source : http://bash.cyberciti.biz/monitoring/shell-script-monitor-unix-linux-diskspace/

Thursday, January 15, 2009

Configure Ldap & NFS On Client Machine

### Ldap Configuration & NFS On Debian Etch & Ubuntu Linux ###

To install Ldap and NFS, Install the following packages as below:

aptitude search libpam-ldap libnss-ldap ------>(To search whether the application is present in repo).

aptitude install libpam-ldap libnss-ldap -----> (To Install the application)

While installation you will get the ldap server configuration setup wizard fill it up as below example:

Ldap Server Ip address

dc=domain,dc=ac,dc=in (your local network name)

cn=admin,ou=Apps,dc=domain,dc=ac,dc=in, passwd of your ldap server,and say 'NO' to other options...

after compleating ldap server configuration edit the following by using editor as a root:

1. /etc/pam_ldap.conf

change the host ip (ldap server ip)

base dc=domain,dc=ac,dc=in

rootbinddn cn=admin,ou=Apps,dc=domain,dc=ac,dc=in

2. /etc/libnss-ldap.conf

Change the host ip to ldap server ip

rootbinddn cn=admin,ou=Apps,dc=domain,dc=ac,dc=in

3. /etc/nsswitch.conf

passwd: files ldap
group: files ldap
shadow: files ldap
hosts: files dns mdns

4. cd /etc/pam.d

a. vi common-auth

auth sufficient pam_ldap.so
auth required pam_unix.so nullok_secure try_first_pass

b. vi common-account

account sufficient pam_ldap.so
account required pam_unix.so

c. vi common-password

password sufficient pam_ldap.so
password required pam_unix.so nullok obscure min=4 max=8 md5

d. vi commaom-session

session sufficient pam_ldap.so
session required pam_unix.so
session optional pam_foreground.so

To see the UID & PASSWD type as a root 'getent passwd' a list of uid & passwd will appear.. by this the Ldap configuration finishes...

If Your Unable To Find Ldap User, Run The Following Command :- (For Ubuntu 7.04 & 7.10)

After configuration these files create a group, 'sudo addgroup --system nvram'.After this you should be able to see username
and passwd of all users..

## Network File System Configuration ##

### Installation of nfs-common, portmap, autofs ####

aptitude install nfs-common, portmap, autofs

After installation edit the following files..

a. vi /etc/auto.master

/home /etc/auto.home

b. vi /etc/auto.home
* ( Ldap server ip address):/home/&

After editting these files reatsrt the service...

/etc/init.d/portmap restart

/etc/init.d/autofs restart


Reboot the machine, after rebooting you should be able to login to your account.

Monday, January 5, 2009

Creating genisoimage / mkisofs & Buring Images On Linux Machine


Creating genisoimages / mkisofs on linux machines (debian / ubuntu)

Making iso image:

genisoimage -v -o filename.iso /home/user/dir_name

Burn CD / DVD images :

CD Buring:
wodim -v dev=/dev/hda speed=40 file.iso

Buring DVD images :
growisofs -dvd-compat -Z /dev/dvd=image.iso

Appending More Data On DVD :
growisofs -M /dev/dvd -R -J /more/files

More Details : man growisofs, man genisoimage

Friday, January 2, 2009

nautilus crash in debian lenny/sid


Nautilus crashes double clicking on any partition or directory.

Distribution: Debian lenny/sid
Gnome Release: 2.22.3 2008-09-18 (Debian)
BugBuddy Version: 2.22.0

Backtrace was generated from '/usr/bin/nautilus'

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb6c88700 (LWP 3355)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7fcc410 in ?? ()
#0 0xb7fcc410 in ?? ()
#1 0xbf84e708 in ?? ()
#2 0x00000000 in ?? ()

Thread 1 (Thread 0xb6c88700 (LWP 3355)):
#0 0xb7fcc410 in ?? ()
No symbol table info available.
#1 0xbf84e708 in ?? ()
No symbol table info available.
#2 0x00000000 in ?? ()
No symbol table info available.
#0 0xb7fcc410 in ?? ()
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]


Check for the presence of a -dbg package for the source package you're investigating. For example, if you're looking into a gnome-applets crash, install gnome-applets-dbg.

If the crash happens in a GNOME library, for example in libgnomeui, here you might want to install libgnomeui-dbg. However, the rule also applies to non-GNOME libs; for example, Epiphany is built against xulrunner, so you should install libxul0d-dbg as well. You can also install debugging symbols for most GNOME libraries in a single run by installing the gnome-dbg metapackage.

Source : http://live.gnome.org/GettingTraces/DistroSpecificInstructions