How to Install and Configure NFS and NFSv4 on Centos 6+

Here are the process how I install and Configure NFS/NFSv4 Configuring Server-Machine first yum install nfs-utils nfs4-acl-tools portmap xinetd Note: you might have problem installing portmap so downlaod rpm from here Be sure there following rpm packages are installed rpm -qa nfs* rpm -qa portmap* rpm -qa xinetd* ———————————————————————————————————- Service portmap start service xinetd start … Read more

Change / Update MySQLadmin Password

mysqladmin -u root password newpassword change or update root password mysqladmin -u root -p ‘oldpassword’ password ‘newpassword’ MySQL Grant Privileges CREATE USER ‘username’@’localhost’ IDENTIFIED BY ‘newpassword’; GRANT ALL PRIVILEGES ON database.* ‘username’@’localhost’ WITH GRANT OPTION;

How to comment all lines in VI editor ?

This can be done with a using a command like ‘search and replace’1.Open the file in ‘vi’ editor.2.Press Escape and type :1,$s/^/##/g3.Press Enter 1,$s/^/##/g can be broken down as1: To start from 1st line $s :To end at the last line/^ : Search for the start of the line/##:Replace with ##/g: Replace all occurrences

How to Install RedMine on CentOS

Install Redmine on Centos 6.3 1. As a Root Install Following Packages. yum install make gcc gcc-c++ zlib-devel ruby-devel rubygems ruby-libs apr-devel apr-util-devel httpd-devel mysql-devel mysql-server automake autoconf ImageMagick ImageMagick-devel curl-devel 2. gem install bundle 3. Install Redmine    mkdir /var/www/redmine    wget http://rubyforge.org/frs/download.php/76255/redmine-1.4.4.tar.gz    (I am not sure if this method will work for newer version) 4. … Read more

Basic VI Editor

Go to Command line Type vi space “file Name” To Insert Text: I Type texts what you want to type. Press Esc To save :R To quite without save :q!

Replication of MySQL Server

For Master to Slave Replication do following steps: 1. vi /etc/my.cnf and add following linesFor ServerA        server-id = 5        replicate-same-server-id = 0        auto-increment-increment = 2        auto-increment-offset = 1        relay-log = /var/lib/mysql/serverA-relay-bin        relay-log-index = /var/lib/mysql/serverA-relay-bin.index        log-error = /var/log/mysql/mysql.err        master-info-file = /var/lib/mysql/mysql-master.info        relay-log-info-file = /var/lib/mysql/serverA-relay-log.info        log-bin = /var/lib/mysql/ServerA-bin For ServerB        server-id = 6        replicate-same-server-id = 0        auto-increment-increment … Read more

Command Differents – Windows/Linux/Centos

Command’s Purpose MS-DOS Linux Basic Linux Example Copies files copy cp cp thisfile.txt /home/thisdirectory Moves files move mv mv thisfile.txt /home/thisdirectory Lists files dir ls ls Clears screen cls clear clear Closes prompt window exit exit exit Displays or sets date date date date Deletes files del rm rm thisfile.txt “Echoes” output on the screen … Read more

Basic Linux Commands

for move file —>  mv noldfile newfile to make new directory > mkdir dirname to put file into a new directory > mv textfile dirname/ to change file name > rm filename to view the text file …>>>>> less filename to add new user >>> useradd to del user >>> userdel username less command to … Read more

Installation of CentOS 5.8

http://mirrors.manchester.icecolo.com/centos/5.8/isos/x86_64/CentOS-5.8-x86_64-netinstall.iso http://mirror.rmg.io/centos/5.8/isos/i386/CentOS-5.8-i386-netinstall.iso Web site name: mirror.centos.org CentOS directory for i386: /centos/5/os/i386 or /centos/5.8/os/i386 CentOS directory for x86_64: /centos/5/os/x86_64 or /centos/5.8/os/x86_64