Archive for the ‘Linux’ Category

Install and configure EXIM Mail Server on CENTOS

exim 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

Disable telnet service in 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

Delete OLD files in linux

delete old files in linux
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

How to mount SFTP share in remote Linux machine

sftp
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

How to mount windows share in Linux

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

Converting from Ext3 to Ext2

Linux filesystem
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

Recovering mysql root password

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

How to install multiple JVM in Linux

jvm
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

How to rebuild RPM database

rpm
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

How to share Terminal through SSH

gnome-terminal
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
Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site