Linux Creating a Partition Size Larger than 2TB
Linux desktop user generally uses small hard disk and partition, but on server you need a large partition. For example, you cannot create 4TB partition size (RAID based) using fdisk command. It will...
View ArticleKill process in Linux or terminate a process in Linux systems
kill process using PID (process id)Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:# kill 3486OR# kill -9 3486Where,-9 is special Kill signal, which will kill...
View ArticleLinux install and configure NTP to synchronize the system clock
ProcedureLogin as the root userType the following command to install ntp# yum install ntpTurn on service# chkconfig ntpd onSynchronize the system clock with 0.pool.ntp.org server:# ntpdate...
View ArticleHow to change the hostname of a Linux system
Permanent hostname change on RedHat based systemsRedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script...
View ArticleLinux burn ISO images to Cds and CD-RW/DVD-+R howto
List device and Get an overview of drives and their addresses.cdrskin -scanbus# cdrskin -scanbuscdrskin 0.7.0 : limited cdrecord compatibility wrapper for libburncdrskin: scanning for devices...
View ArticleHow to Synchronize Two Directories in a Local Server.
To sync two directories in a local computer, use the following rsync -vrupAogEhcommand.# rsync -vrupAogEh /mnt/remote-fs/shares/ /srv/shares/sending incremental file...
View ArticleConfiguring a DHCP Server CentOS 6.
DHCP server installation:# yum search dhcpLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: centos.mirror.xtratelecom.es * extras: centos.mirror.xtratelecom.es * updates:...
View ArticleHow do restore and accidental chmod of root directory
Run console a root user #rpm --setperms -a To reset permissions
View ArticleInstalling Bacula on CentOS 6
under construction Installing Bacula on CentOS 6 with Webmin interface quick start guide. The assumption for this CentOS 6 tutorial is that you are running as root and have a basic understanding of...
View ArticlePing Range using fping
Fpingis a tool thatallows you tolista networkquicklyand specify network rangearedetermined whichare activeipin that range.Get a version and...
View ArticleSend the result of the command executed by mail
 ls -la /www/html/ | mail -s "ls command" name@domain.com
View ArticleHow to install sshfs and fuse / Mount remote FS
Info to link: http://fuse.sourceforge.net/sshfs.htmlDownload fuse wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.8.5/fuse-2.8.5.tar.gz/downloadInstall fuse.tar -xzf fuse-2.8.5.tar.gz...
View ArticleAdding a startup script to be run at bootup RedHat or Similar
Adding a startup script to be run at bootup RedHat or SimilarCreate script[root@lowtrafic ~]# vi /etc/init.d/mystartup.shAdd Command Line Parameters.Save file and exit.Add permission to...
View ArticleHow to install LAMP
[root@lowtrafic ~]# yum install -y httpd vsftpd php mysql-server mysql php-mysql [root@lowtrafic ~]# service vsftpd start [root@lowtrafic ~]# service httpd start[root@lowtrafic ~]# service mysqld...
View ArticleHtaccess Authentication.
Configuration: Protecting content with basic authentication Linux Http Apache.There are two configuration steps which you must complete in order to protect a resource using basic authentication. Or...
View ArticleHow I can change the time zone of a node on Redhat
HowI canchangethe time zoneof a node onRedhat.Open consola.The file containingthe configuration islocated in /etc/localtime.Makea copyof the file andcopy theconfiguration filetime zonethat is yours.The...
View ArticleMysql Time.
The Tutorial help you to make an example from Time Now in Mysql. In this Tutorial we use now ( ) keywords in Mysql which returns you the current time.Query systen time.Open console.Login in mysql.run...
View ArticleArticle 4
The chmod calculator is the script to have handy when setting permissionsChmodPermissionOwnerGroupOtherReadWriteExecuteThis free script provided byHistory Linux Kit
View ArticleSetup Vmware Workstation 2.8 on Linux CentOS 6.0 i686 release
[root@moon ~]# uname -aLinux zeus 2.6.32-71.29.1.el6.i686 #1 SMP Mon Jun 27 18:07:00 BST 2011 i686 i686 i386 GNU/Linux[root@moon ~]#yum install -y gcc-c++ kernel-headers kernel-develYou have to get...
View ArticleHow to duplicate a MySQL database
Let's say the original database is dbSouce and the duplicate is dbDestinatio.- Login in MySql, Create a new database, dbDestination- Set permissions new database.- Run this command in console, for...
View ArticleChange Default User Login Shell Permanently
To change the default linux shell type every time a new user is created, simply modify linux file /etc/default/useradd. Edit /etc/default/useradd, the default linux shell is explicitly defined. You can...
View ArticleHow to stop a running mysql query
login in mysql[root@sol ~]#mysql -u username -pSHOW PROCESSLIST;KILL <thread_to_be_killed>;Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 4Server version:...
View Article