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: idle, Linux, sshd, time
AMRNB & AMRWB
wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz?use_mirror=mesh
cd opencore-amr-0.1.2
./configure ; make ; make install
FAAC
wget http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28/faac-1.28.tar.gz?use_mirror=sunet
wget http://www.linuxfromscratch.org/patches/blfs/svn/faac-1.28-glibc_fixes-1.patch
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
docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/faac.html
FAAD
wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz
cd faad2-2.7
./configure; make ; make install
docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/faad2.html
LAME
wget http://downloads.sourceforge.net/lame/lame-398-2.tar.gz
./configure –enable-mp3rtp ; make ; make install
docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/lame.html
Liba52
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
./configure –enable-shared ; make ; make intall
docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/liba52.html
XVIDCORE
wget http://downloads.xvid.org/downloads/xvidcore-1.2.2.tar.gz
cd xvidcore/build/generic && ./configure –prefix=/usr/local ; make ; make install
docs: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/xvid.html
FFMPEG
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk 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: compile, fc11, ffmpeg
Add MX records to your DNS like this:
10 mail.yourdomain.com
20 backup.yourdomain.com
You will also need to add DNS entries that correspond with the new server so that backup.yourdomain.com points to the IP address of your back-up mail server.
When the mail server at the IP address relating to mail.yourdomain.com is not available mail will be sent to backup.yourdomain.com
and then add the following line in /etc/mail/mailertable:
yourdomain.com smtp:mail.yourdomain.com
Next we need to add this to the mailertable database.
Type:
# makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
And then append the following lines to the bottom of your access file.
To:yourdomain.com RELAY
Now you should have something like this:
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
To:yourdomain.com 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: Linux, mx, sendmail
If you are running vsftpd in standalone mode, add the “listen_port” directive in vsftpd.conf,like this:
listen_port=30
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: ftp, Linux, vsftpd
/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: filesystem, Linux
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 = admin@domain.com
# who send the notifications
email_from = yumupdate@domain.com
Here is complete working config file:
[main]
# 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 = admin@domain.com
# who send the notifications
email_from = yumupdate@domain.com
# 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: Linux, yum
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: label, Linux
Recent Comments