Nov 23

SSHD has a little bug when do you want to use ClientAliveCountMax in combination with ClientAliveInterval, so if you want to work try this:

TCPKeepAlive yes
ClientAliveInterval 3600
ClientAliveCountMax 0

this should disconnect iddle session older then 1h.

written by MG \\ tags: , , ,

Nov 18

cd opencore-amr-0.1.2
./configure ; make ; make install

cd faac-1.28
patch -Np1 -i ../faac-1.28-glibc_fixes-1.patch
sed -i -e ‘/obj-type/d’ -e ‘/Long Term/d’ frontend/main.c
./configure ; make ; make install


cd faad2-2.7
./configure; make ; make install

./configure –enable-mp3rtp ; make ; make install

./configure –enable-shared ; make ; make intall

cd xvidcore/build/generic && ./configure –prefix=/usr/local ; make ; make install

svn checkout svn:// ffmpeg
cd ffmpeg
./configure –enable-libxvid –enable-libmp3lame –enable-libfaad –enable-libfaac –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-gpl –enable-shared –enable-nonfree –enable-version3 –enable-pthreads ; make ; make install

written by MG \\ tags: , ,

Oct 01

Add MX records to your DNS like this:


You will also need to add DNS entries that correspond with the new server so that points to the IP address of your back-up mail server.

When the mail server at the IP address relating to is not available mail will be sent to

and then add the following line in /etc/mail/mailertable:

Next we need to add this to the mailertable database.
# makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable And then append the following lines to the bottom of your access file. RELAY Now you should have something like this: # by default we allow relaying from localhost... localhost.localdomain RELAY localhost RELAY RELAY RELAY now run: makemap hash /etc/mail/access.db < /etc/mail/access Now restart the sendmail service to make the changes complete Type: # service sendmail restart

written by MG \\ tags: , ,

Apr 21

 If you are running vsftpd in standalone mode, add the “listen_port” directive in vsftpd.conf,like this:


If you are running vsftpd from an inetd or xinetd program, this becomes an inetd or xinetd problem. You must change the inetd or xinetd configuration files (perhaps /etc/inetd.conf or /etc/xinetd.d/vsftpd).

written by MG \\ tags: , ,

Mar 11

/proc/filesystems is the file used to detect filesystems supported by running kernel. You can quickly run grep or cat command to display the list of all supported file system. nodev indicates that the file system is not associated with a physical device such as /dev/hda1. If you see ext3 or vfat, it means you will be able to mount ext3 and vfat based file systems.

Following cat command will quickly tell you what filesystems supported by currently running Linux kernel:

$ cat /proc/filesystems

written by MG \\ tags: ,

Mar 11

RHEL / Fedora / CentOS has yum-updatesd, which provides notification of updates which are available to be applied to your system. This notification can be done either via syslog, email or over dbus. Configuration is done via the /etc/yum/yum-updatesd.conf file.

Open /etc/yum/yum-updatesd.conf file, enter:
# vi /etc/yum/yum-updatesd.conf

Setup variables as follows:
emit_via = email
# who to send the email to:
email_to =
# who send the notifications
email_from =

 Here is complete working config file:

# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
# how to send notifications (valid: dbus, email, syslog)
emit_via = email
# who to send the email
email_to = 
# who send the notifications
email_from =
# should we listen via dbus to give out update information/check for new updates
dbus_listener = yes
# automatically install updates
do_update = no
# automatically download updates
do_download = yes
# automatically download deps of updates
do_download_deps = yes

Save and close the file. Restart notification yum-updatesd service:
# /etc/rc.d/init.d/yum-updatesd restart

written by MG \\ tags: ,

Mar 11

You need to use e2label or tune2fs command line to change the label on an ext2/ext3 filesystem. e2label will display or change the filesystem label on the ext2 filesystem located on device.

Display current label

If the optional argument new-label is not present, e2label will simply display the current filesystem label.

# e2label /dev/sda1

Set a new label

If the optional argument new-label is present, then e2label will set the filesystem label to be new-label. Ext2 filesystem labels can be at most 16 characters long; if new-label is longer than 16 characters, e2label will truncate it and print a warning message. To set a new label, enter:
# e2label /dev/sdb2 usbstroage

It is also possible to set the filesystem label using the -L option of tune2fs, enter:

# tune2fs -L usbstroage /dev/sdb2


written by MG \\ tags: ,