Pages

Showing posts with label RHCSS. Show all posts
Showing posts with label RHCSS. Show all posts

Sunday, March 31, 2013

How to Yum on RHEL 6.3 or Scientific Linux 6.3 or Centos 6.3


Here is my final Script
At first Insert  Your RHEL 6.3 or Scientific Linux 6.3 or Centos 6.3 DVD your DVD ROM
# df -h [show where your dvd are mounted,i used here /dev/sr0 to /mnt]

please copy this script and Save as
yum.sh
after save this script plz set permission
#chmod +x yum.sh
#./yum.sh
df -h
cd /etc/yum.repos.d/
rm -rf *
touch /etc/yum.repos.d/rhel6.repo
Details Here: Read More

Saturday, March 30, 2013

How to Ekiga on RHEL 6.3 or Centos 6.3 or Scientific Linux 6.3


Ekiga

Ekiga (formely known as GnomeMeeting) is an open source VoIP and video conferencing application for GNOME. Ekiga uses both the H.323 and SIP protocols.
Ekiga is compatible with any software, device or router supporting SIP or H.323. It includes SwissVoice, CISCO, SNOM, ... IP Phones, but also software like Windows Messenger, Netmeeting, SJPhone, Eyebeam, X-Lite, ... or also the Asterisk popular IPBX, as well as any other commercial or Open Source IPBX. Ekiga is not compatible with Skype.
It supports all major features defined by those protocols like call hold, call transfer, call forwarding, ... It also supports basic instant messaging, and has advanced support for NAT traversal. Ekiga supports the best free audio and video codecs, and has wideband support for a superior audio quality, together with echo cancellation.
Ekiga has been designed for the GNOME desktop but it works very well with the KDEdesktop too. For example, Ekiga provides an animated icon automatically added in the KDEsystem tray.

Tuesday, March 26, 2013

How to configure Network File System (NFS) on RHEL 6.3 or Centos 6.3 or Scientific Linux 6.3

It is very Easy to Implement a Network File System (NFS).It is 100% Work.
[root@muraditbd ~]# yum install nfs* -y
Loaded plugins: refresh-packagekit, security
Setting up Install Procetss
Package nfs-utils-lib-1.1.5-4.el6.i686 already installed and latest version
Package 1:nfs-utils-1.2.3-26.el6.i686 already installed and latest version
Package nfs4-acl-tools-0.3.3-6.el6.i686 already installed and latest version
[root@muraditbd ~]# service nfs restart;chkconfig nfs on;servie rpcbind restart;chkconfig rpcbind on;service nfslock restart;chkconfig nfslock on;
[root@muraditbd ~]# vim /etc/exports
/var/ftp/pub *(ro,sync)
[root@muraditbd ~]# service nfs restart;servie rpcbind restart;service nfslock restart;
[root@muraditbd ~]# exportfs -r
[root@muraditbd ~]# exportfs
/var/ftp/pub <world>
[root@muraditbd ~]# showmount -e 192.168.0.254
Export list for 192.168.0.254:
/var/ftp/pub *
############# NFS-Client-Configuration##########

Read More

How to NIS server on RHEL 6.4 or Centos 6.4 or Scientific Linux 6.4

    It is very easy to Implement a Network Information Service (NIS).Do not worry., It is work 100%.                        
                                                         Selinux must be Permissive or Disable
[root@muraditbd ~]# getenforce
Enforcing
[root@muraditbd ~]# setenforce 0
[root@muraditbd ~]# getenforce
Permissive
[root@muraditbd ~]# service iptables status
iptables: Firewall is not running.

[root@muraditbd ~]# yum install yp* -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yp-tools.i686 0:2.9-12.el6 will be installed
---> Package ypbind.i686 3:1.20.4-29.el6 will be installed
---> Package ypserv.i686 0:2.19-22.el6 will be installed
--> Finished Dependency Resolution


Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
yp-tools i686 2.9-12.el6 base 63 k
ypbind i686 3:1.20.4-29.el6 base 50 k
ypserv i686 2.19-22.el6 base 127 k

Transaction Summary
================================================================================
Install 3 Package(s)

Total download size: 240 k
Installed size: 532 k
Downloading Packages:
--------------------------------------------------------------------------------
Total 19 MB/s | 240 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 3:ypbind-1.20.4-29.el6.i686 1/3
Installing : yp-tools-2.9-12.el6.i686 2/3
Installing : ypserv-2.19-22.el6.i686 3/3
Verifying : yp-tools-2.9-12.el6.i686 1/3
Verifying : ypserv-2.19-22.el6.i686 2/3
Verifying : 3:ypbind-1.20.4-29.el6.i686 3/3

Installed:
yp-tools.i686 0:2.9-12.el6 ypbind.i686 3:1.20.4-29.el6 ypserv.i686 0:2.19-22.el6

Complete!

[root@muraditbd ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=muraditbd.com
NISDOMAIN=muraditbd.com
[root@muraditbd ~]# nisdomainname muraditbd.com
Read More

Monday, March 25, 2013

How to kickstart on RHEL 6.4 OR Scientific linux 6.4or Centos 6.4 Via NFS

It is very easy to install your linux on  computer via Network .It is 100% work.
[SELINUX MUST BE permissive or disabled]
#vim /etc/sysconfig/selinux
selinux=disabled
save & exit
# reboot
#getenforce
[note if show selinux is disabled fine or if show selinux status enforcing or Permissive follow those Instruction]
if show Enforcing
to set selinux=Permissive
#setenforce 0
you can show selinux status
#getenforce

'1' for Enforcing '0' for Permissive

Set your Local LAN Static IP
I used Here: 192.168.0.254
#serrvice NetworkManager stop;
#chkconfig NetworkManager off;
#ifdown eth0;
#ifup eth0;
#yum install dhcp* -y
#vim /etc/dhcp/dhcpd.conf

all content are remove & Insert all line
----------------------------------------------------------------
ddns-update-style interim;
ignore client-updates;
authoritative;
allow booting;
allow bootp;
allow unknown-clients;
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.1 192.168.0.253;
  option domain-name-servers 192.168.0.254;
  option domain-name "server1.example.com";
  option routers 192.168.0.254;
  option broadcast-address 10.5.5.31;
  default-lease-time 600;
  max-lease-time 7200;

# PXE SERVER IP

next-server 192.168.0.254;
filename "pxelinux.0";
}

Save & Exit


 Read More

Sunday, March 17, 2013

How to LDAP (Directory Server) on RHEL 6.4 or CentOS 6.4 or Scientific Linux 6.4

[root@muraditbd ~]# vim /etc/sysconfig/iptables
[bottom of the page add]
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
-A INPUT -m state --state NEW -m tcp -p tcp --dport 389 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 636 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 9830 -j ACCEPT
COMMIT
[save&exit.]
[root@muraditbd ~]# service iptables save;service iptables restart;chkconfig iptables on;service iptables status;
[root@muraditbd ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Read More:

Tuesday, February 19, 2013

How to PXE on RHEL 6.4 or Centos 6.4 or Scientific Linux 6.4

Here is Final PXE & Kickstart Configuration.It is 100% work.
Coverage this tutorila
(1) DHCP SERVER (2) TFTP SERVER (3) NFS SERVER (4) PXE & KICKSTART CONFIGURATION

[SELINUX MUST BE permissive or disabled]
#vim /etc/sysconfig/selinux
selinux=disabled
save & exit
# reboot
#getenforce
[note if show selinux is disabled fine or if show selinux status enforcing or Permissive follow those Instruction]
if show Enforcing
to set selinux=Permissive
#setenforce 0
you can show selinux status
#getenforce

'1' for Enforcing '0' for Permissive

Set your Local LAN Static IP
I used Here: 192.168.0.254
#serrvice NetworkManager stop;
#chkconfig NetworkManager off;
#ifdown eth0;
#ifup eth0;
#yum install dhcp* -y
#vim /etc/dhcp/dhcpd.conf

all content are remove & Insert all line
----------------------------------------------------------------
ddns-update-style interim;
ignore client-updates;
authoritative;
allow booting;
allow bootp;
allow unknown-clients;
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.1 192.168.0.253;
  option domain-name-servers 192.168.0.254;
  option domain-name "server1.example.com";
  option routers 192.168.0.254;
  option broadcast-address 10.5.5.31;
  default-lease-time 600;
  max-lease-time 7200;

# PXE SERVER IP

next-server 192.168.0.254;
filename "pxelinux.0";
}

Save & Exit

Read More

Thursday, January 31, 2013

how to Configure dhcp on RHEL 6.3 & Centos 6.3

#yum install dhcp* -y
# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
cp: overwrite `/etc/dhcp/dhcpd.conf'? yes
#vim /etc/dhcp/dhcpd.conf

47 subnet 192.168.0.0 netmask 255.255.255.0 {
 48   range 192.168.0.3 192.168.0.254;
 49   option domain-name-servers station1.example.com;
 50   option domain-name "station1.example.com";
 51   option routers 192.168.0.1;
 52   option broadcast-address 10.5.5.31;
 53   default-lease-time 600;
 54   max-lease-time 7200;
 55 }
Read More

Wednesday, January 30, 2013

How to install wine on RHEL 6.3 & Centos 6.3

Install Howto

  1. Download the latest epel-release rpm from
    (a) http://dl.fedoraproject.org/pub/epel/6/SRPMS/epel-release-6-8.src.rpm
    (b) http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  2. Install epel-release rpm:
    # rpm -Uvh epel-release*rpm
  3. Install epel-release rpm package:
    # yum install epel-release
     
    #yum list all;
    #yum update all;
    #yum install wine* -y;
     
     Read More:
    ###################### GET Magic ######################## 

Thursday, January 3, 2013

RHEL 6.3 ,CentOS 6.3,Scientific Linux 6.3 Archives and compressed files

Command
Description
# bunzip2 file1.bz2
decompress a file called 'file1.bz2'  
# bzip2 file1
compress a file called 'file1'  
# gunzip file1.gz
decompress a file called 'file1.gz'  
# gzip file1
compress a file called 'file1'  
[root@server1 ~]#
 tar –cvf archive_name source
[root@server1 ~]# cd /etc/
[root@server1 etc]
# tar -cvf /bakup/resolv.tar resolv.conf
[root@server1 etc]# cd /bakup/
[root@server1 bakup]# ls -l
total 12
-rw-r--r-- 1 root root 10240 Dec 18 18:30 resolv.tar
Create tar extension file
[root@server1 bakup]
# tar -xvf /bakup/resolv.tar
[root@server1 bakup]# ls
resolv.conf  resolv.tar
Extract from tar file
[root@server1 bakup]
# gzip -v /bakup/resolv.tar
/bakup/resolv.tar:          98.6% -- replaced with /bakup/resolv.tar.gz
[root@server1 bakup]# ls
resolv.conf  resolv.tar.gz
For Compress
[root@server1 bakup]
# gunzip -v /bakup/resolv.tar
/bakup/resolv.tar.gz:      98.6% -- replaced with /bakup/resolv.tar
[root@server1 bakup]# ls
resolv.conf  resolv.tar
UnCompress
[root@server1 ~]# ps
Show current Process
[root@server1 ~]# pstree
Show current process with tree
[root@server1 ~]# uptime
How many times are system start
[root@server1 ~]# top
 System process monitor
[root@server1 ~]# pstree | less
Show process with tree
[root@server1 ~]# iostat
Show system process & Idle time
[root@server1 ~]# hostname
server1.example.com
Check Host name
[root@server1 ~]# ntsysv
Show runlevel list
[root@server1 ~]# setup
For network configuration,authentication
[root@server1 ~]#chkconfig vsftpd on
Automaticaly on vsftpd on system reboot

RHEL 6.3,Centos 6.3 ,Scientific Linux 6.3 Shutdown, Restart and Logout of a system Command

 

Command
Description
# init 0
shutdown system
# logout
leaving session  
# reboot
reboot
# shutdown -h now
shutdown system
# shutdown -h 16:30 &
planned shutdown of the system  
# shutdown -c
cancel a planned shutdown of the system  
# shutdown -r now
reboot  
# telinit 0
shutdown system
# halt
 For shutdown system

RHEL 6.3 ,CentOS 6.3 ,Scientific Linux 6.3 Advanced Linux Command

Advanced Command

Command
Description
[root@server1 /]# ls
[root@server1 ~]# ls
anaconda-ks.cfg  Documents  file1  install.log.syslog  Pictures  TemplatesDesktop  Downloads  install.log  Music      Public    Videos
Show list of directory
[root@server1 ~]# ls –a
[root@server1 ~]# su user1
[user1@server1 root]$ cd
[user1@server1 ~]$ ls -a
.  ..  .bash_history  .bash_logout  .bash_profile  .bashrc  .gnome2  .mozilla  .viminfo
 Show hidden content of a directory
[user1@server1 ~]$ su root
Password:
[root@server1 user1]# cd
[root@server1 ~]# ls -l
total 104
-rw-------. 1 root root  2467 Dec 15 20:25 anaconda-ks.cfg
drwxr-xr-x. 2 root root  4096 Dec 18 02:04 Desktop
drwxr-xr-x. 2 root root  4096 Dec 16 00:34 Documents
drwxr-xr-x. 2 root root  4096 Dec 16 00:34 Downloads
Show Content list with Permission
[root@server1 ~]# ls -lh
total 104K
-rw-------. 1 root root 2.5K Dec 15 20:25 anaconda-ks.cfg
drwxr-xr-x. 2 root root 4.0K Dec 18 02:04 Desktop
drwxr-xr-x. 2 root root 4.0K Dec 16 00:34 Documents
drwxr-xr-x. 2 root root 4.0K Dec 16 00:34 Downloads

Show content total & Individual
 Content size.
[root@server1 ~]# ls -lt
total 148
-rw-r--r--  1 root root 46974 Dec 18 04:02 install.log
 List by Modification
[root@server1 ~]# ls
install.log         Music     Public     Videos
anaconda-ks.cfg  Documents  file1      install.log.syslog  Pictures  Templates
[root@server1 ~]# more install.log
 Show content with list
Then press Enter
[root@server1 ~]# clear
Clear Screen
[root@server1 ~]# tree
Content show with tree diagram
[root@server1 ~]# rmdir
[root@server1 ~]# mkdir 1
[root@server1 ~]# rmdir 1
 Remove Emtpy directory
[root@server1 ~]# hwclock
Tue 18 Dec 2012 04:20:34 AM BDT  -0.924766 seconds
  Show DATE & TIME
[root@server1 ~]# history 10
Show content history
[root@server1 ~]# mail
 mail from /var/spool/mail
[root@server1 ~]# locate resolv.conf
/etc/resolv.conf
/etc/sysconfig/networking/profiles/default/resolv.conf
/usr/share/man/man5/resolv.conf.5.gz
Search file or service from full system
Last update #updatedb


Postfix,SMTP Email Server on CentOS 6.3 OR Scientific Linux 6.3,RHEl 6.3

Final  Postfix dovcot Server configure & test

[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 Desktop]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 yum install postfix dovecot squirrelmail -y
Loaded plugins: refresh-packagekit, security
other                                                                                                 | 1.3 kB     00:00 ...
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be installed
---> Package squirrelmail.noarch 0:1.4.22-3.el6 will be installed
--> Processing Dependency: php for package: squirrelmail-1.4.22-3.el6.noarch
--> Running transaction check
---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                        Arch                     Version                                Repository              Size
=============================================================================================================================
Installing:
 dovecot                        x86_64                   1:2.0.9-2.el6_1.1                      base                   1.9 M
 postfix                        x86_64                   2:2.6.6-2.2.el6_1                      base                   2.0 M
 squirrelmail                   noarch                   1.4.22-3.el6                           base                   4.1 M
Installing for dependencies:
 php                            x86_64                   5.3.3-3.el6_2.8                        base                   1.1 M

Transaction Summary
=============================================================================================================================
Install       4 Package(s)

Total download size: 9.2 M
Installed size: 39 M
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                         34 MB/s | 9.2 MB     00:00   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                          1/4
  Installing : php-5.3.3-3.el6_2.8.x86_64                                                                                2/4
  Installing : squirrelmail-1.4.22-3.el6.noarch                                                                          3/4
  Installing : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                                                          4/4
  Verifying  : squirrelmail-1.4.22-3.el6.noarch                                                                          1/4
  Verifying  : 1:dovecot-2.0.9-2.el6_1.1.x86_64                                                                          2/4
  Verifying  : php-5.3.3-3.el6_2.8.x86_64                                                                                3/4
  Verifying  : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                          4/4

Installed:
  dovecot.x86_64 1:2.0.9-2.el6_1.1        postfix.x86_64 2:2.6.6-2.2.el6_1        squirrelmail.noarch 0:1.4.22-3.el6     

Dependency Installed:
  php.x86_64 0:5.3.3-3.el6_2.8                                                                                             

Complete!
############################### STEP 02 ##################################
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
 service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix:                                     [FAILED]
Starting postfix:                                          [  OK  ]
[root@server1 ~]#  service postfix status;service postfix restart;chkconfig postfix on;
master (pid  3261) is running...
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
################################## STEP 03 #####################################
[root@server1 ~]# vim /etc/postfix/main.cf

Change

From

75 #myhostname = host.domain.tld
83 #mydomain = domain.tld
99 #myorigin = $mydomain
113 #inet_interfaces = all
116 inet_interfaces = localhost
164 mydestination = $myhostname, localhost.$mydomain, localhost
165 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 #home_mailbox = Maildir/


To

75 myhostname = mail.example.com
83 mydomain = example.com
99 myorigin = $mydomain
113 inet_interfaces = all
116 #inet_interfaces = localhost
164 #mydestination = $myhostname, localhost.$mydomain, localhost
165 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 home_mailbox = Maildir/
:wq save and quit

[root@server1 ~]# service postfix restart;chkconfig postfix on;service postfix status;
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
master (pid  3604) is running...

Read more

How to Configure DNS on CentOS 6.3 & RHEL 6.3,Scientific Linux 6.3

############################# STEP-01 ##########################
[root@localhost ~]# hostname
localhost.localdomain
root@localhost ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=server1.example.com

[root@server1 Desktop]# yum install bind -y
Loaded plugins: refresh-packagekit, security
other                                                                                                                  20/20
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package bind.x86_64 32:9.8.2-0.10.rc1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                 Arch                      Version                                     Repository               Size
=============================================================================================================================
Installing:
 bind                    x86_64                    32:9.8.2-0.10.rc1.el6                       base                    4.0 M

Transaction Summary
=============================================================================================================================
Install       1 Package(s)

Total download size: 4.0 M
Installed size: 7.2 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1
  Verifying  : 32:bind-9.8.2-0.10.rc1.el6.x86_64                                                                         1/1

Installed:
  bind.x86_64 32:9.8.2-0.10.rc1.el6                                                                                        

Complete!


################################ STEP-02 ########################################

[root@server1 Desktop]# mkdir -p /bakup/dns
[root@server1 Desktop]# cp /etc/named.conf /bakup/dns/named.conf.original
[root@server1 Desktop]# cp /etc/named.rfc1912.zones /bakup/dns/named.rfc1912.zones.original
[root@server1 Desktop]# vim /etc/named.conf
From

11         listen-on port 53 { 127.0.0.1; };

            To

11         listen-on port 53 { 192.168.0.254; };

17         allow-query     { any; };

Save&exit
[root@server1 Desktop]# vim /etc/named.rfc1912.zones

From

 13 zone "localhost.localdomain" IN {
 14         type master;
 15         file "named.localhost";
 16         allow-update { none; };
 17 };

31 zone "1.0.0.127.in-addr.arpa" IN {
 32         type master;
 33         file "named.loopback";
 34         allow-update { none; };
 35 };


To

13 zone "example.com" IN {
 14         type master;
 15         file "forward.zone";
 16         allow-update { none; };
 17 };

31 zone "0.168.192.in-addr.arpa" IN {
 32         type master;
 33         file "reverse.zone";
 34         allow-update { none; };
 35 };
Read More

How to NAT or Masquerade on RHEL 6.3 or Scientific Linux 6 or Centos 6.3

[root@server1 ~] vim /etc/sysctl.con
net.ipv4.ip_forward = 1

[root@server1 ~]iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

How to Configure Web Server on RHEL 6.3 or CentOS 6.3 or Scientific linux 6.3

[root@server1 ~]# yum install httpd
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.sl6.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                    Arch                        Version                              Repository                 Size
=============================================================================================================================
Installing:
 httpd                      x86_64                      2.2.15-15.sl6.1                      base                      812 k

Transaction Summary
=============================================================================================================================
Install       1 Package(s)

Total download size: 812 k
Installed size: 2.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : httpd-2.2.15-15.sl6.1.x86_64                                                                              1/1
  Verifying  : httpd-2.2.15-15.sl6.1.x86_64                                                                              1/1

Installed:
  httpd.x86_64 0:2.2.15-15.sl6.1                                                                                           

Complete!
[root@server1 ~]# service httpd restart;chkconfig httpd on
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@server1 ~]# vim /etc/httpd/conf/httpd.conf
change
    From
262 ServerAdmin root@localhost
276 #ServerName www.example.com:80
402 DirectoryIndex index.html index.html.var


                To
262 ServerAdmin root@server1.example.com
276 ServerName server1.example.com:80
402 DirectoryIndex index.html index.html.var index.php
[root@server1 ~]# touch /var/www/html/index.html
[root@server1 ~]# vim index.html

<html>
<head>
<title>
This is My Test mail
</title>
</head>
<body bgcolor=pink>
<center>Welcome to Technologybd.net</center>
</body>
</html>


[root@server1 ~]# service httpd restart;chkconfig httpd on
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Read More

How to Multiple IP on ONE NIC on RHEL 6.3 ,CentOS 6.3 or Scientific Linux 6.3

[root@server1 ~]# cd /etc/sysconfig/network-scripts/
[root@server1 network-scripts]# ls
[root@server1 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:e0:4c:04:7d:2b
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="587b9935-5b28-45e3-8d45-ae3e179f9ad0"
IPADDR=192.168.0.254
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
DNS1=192.168.0.254
IPV6INIT=no
USERCTL=no

[Note:Before editing network configuration file, take backup of it.]

eth0:1 is an alias of the eth0 interface. Now, let̢۪s assign a different IP address to eth0:1. Other NIC aliases could be named eth0:2, eth0:3 etc.

[root@server1 network-scripts]# cp ifcfg-eth0 ifcfg-eth0:1
[root@server1 network-scripts]# vim ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
HWADDR=00:e0:4c:04:7d:2b
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="587b9935-5b28-45e3-8d45-ae3e179f9ad0"
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
DNS1=192.168.0.254
IPV6INIT=no
USERCTL=no
Read More

Dial OUT Server on Scientific Linux 6.3 or CentOS 6.3

[root@localhost ~]# rpm -q wvdial
package wvdial is not installed
[root@localhost ~]# yum install wvdial -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package wvdial.x86_64 0:1.60-12.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================
 Package              Arch                 Version                    Repository          Size
===============================================================================================
Installing:
 wvdial               x86_64               1.60-12.el6                base                91 k

Transaction Summary
===============================================================================================
Install       1 Package(s)

Total download size: 91 k
Installed size: 218 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : wvdial-1.60-12.el6.x86_64                                                   1/1
  Verifying  : wvdial-1.60-12.el6.x86_64                                                   1/1

Installed:
  wvdial.x86_64 0:1.60-12.el6                                                                

Complete!
[root@localhost ~]# rpm -q wvdial
wvdial-1.60-12.el6.x86_64
[root@localhost ~]# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3 
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
Read More

FTP SERVER ON SCIENTIFIC LINUX 6.3 & CENTOS 6.3


[root@server1 ~]# yum install ftp vsftpd -y
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package ftp.x86_64 0:0.17-51.1.el6 will be installed
---> Package vsftpd.x86_64 0:2.2.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================
 Package       Arch          Version                 Repository   Size
=======================================================================
Installing:
 ftp           x86_64        0.17-51.1.el6           base         56 k
 vsftpd        x86_64        2.2.2-11.el6            base        150 k

Transaction Summary
=======================================================================
Install       2 Package(s)

Total download size: 206 k
Installed size: 426 k
Downloading Packages:
-----------------------------------------------------------------------
Total                                   22 MB/s | 206 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ftp-0.17-51.1.el6.x86_64                            1/2
  Installing : vsftpd-2.2.2-11.el6.x86_64                          2/2
  Verifying  : vsftpd-2.2.2-11.el6.x86_64                          1/2
  Verifying  : ftp-0.17-51.1.el6.x86_64                            2/2

Installed:
  ftp.x86_64 0:0.17-51.1.el6        vsftpd.x86_64 0:2.2.2-11.el6      

Complete!
[root@server1 ~]# rpm -q vsftpd;rpm -q ftp;
vsftpd-2.2.2-11.el6.x86_64
ftp-0.17-51.1.el6.x86_64
[root@server1 ~]# setenforce
usage:  setenforce [ Enforcing | Permissive | 1 | 0 ]
[root@server1 ~]# getenforce
Enforcing
[root@server1 ~]# setenforce 0
[root@server1 ~]# getenforce
Permissive