- Friday, June 17, 2011, 7:06
- Exim, Linux, Mail Server
Here we are only giving the basic setup instructions.
Steps:
#yum install exim system-switch-mail
After successful installation, we need to make some necessary configurations. Switch default MTA(Mail Transfer agent) to exim if it is sendmail or any other application by using system-switch-mail. Then stop sendmail service if it is running and disable in startup.
Full story
- Wednesday, June 8, 2011, 18:59
- Linux, Server hardening
For better hardened Linux box especially for web servers,you need to disable the telnet service as telnet simply send the username and passwords in clear text.
Login to your server as root
Open file telnet in /etc/xinetd.d
vi /etc/xinetd.d/telnet
edit the following line and make it yes instead of no.
disable=yes
And restart the xinetd service
service xinetd restart
In order to avoid telnet starting on boot time,turn it of ...
Full story
If you want to delete log files or folders in /var/log directory which are older than 200 days then you can follow the below steps
To list the files which are older than 200 days
#find /var/log -mtime +200
After verifying ,you can delete those files/folders
#find /var/log -mtime +200 -exec rm {} \;
Full story
- Tuesday, February 15, 2011, 10:45
- HOW TOs, Linux, Volume management
This could be implemented with FUSE and SSHFS.
Download path: http://fuse.sourceforge.net/sshfs.html
1. FUSE
package: fuse-2.8.5.tar.gz
Extract and install
#tar xvf fuse-2.8.5.tar.gz
#cd fuse-2.8.5
#./configure
#make
#make install
After successful installation,install SSHFS
2.SSHFS
Full story
- Monday, February 14, 2011, 18:07
- HOW TOs, Linux, Windows
Some times you may want to use windows shares in Linux.So let s check out how to mount windows share in Linux in this article
Full story
- Monday, February 14, 2011, 17:54
- File system, HOW TOs, Linux
There may come situations to convert Ext3 back to Ext2.For that follow this procedure
# umount /dev/hda1
#tune2fs -O ^has_journal /dev/hda1
#e2fsck /dev/hda1
Then edit /etc/fstab for mounting at boot time as ext2
Edit /etc/fstab and change /dev/hda1 to mount type ext2
Full story
- Monday, February 14, 2011, 16:45
- Database, HOW TOs, Linux, MySQL
If you lost your mysql root password then try the following steps.
# /etc/init.d/mysql stop
# mysqld_safe --skip-grant-tables --user=root
Then from another shell,connect to mysql
# mysql -u root
Full story
- Thursday, January 13, 2011, 7:40
- Application Support, Java Core, Linux
1.Verify your current java version
#java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2.Then use alternatives command to display existing java
NOTE:alternatives command used to maintain symbolic links for determining default commands
Full story
- Thursday, November 11, 2010, 15:16
- Linux
If your system's RPM database is corrupted.then you can rebuild the rpm database with following procedure.
Steps:
1. Remove RPM locks
#rm /var/rpm/__db*
2.Rebuild RPM database
#rpm -vv --rebuilddb
3.Verify the integrity of rpm database
#rpmdb_verify Packages
Thats it...
Full story
- Monday, August 16, 2010, 9:40
- Linux
Share a terminal in linux using screen package.
Requirement :
screen package should be installed.
Check the screen package installed or not
#rpm -qa|grep screen
Full story