Thursday 20 August 2015

How to enable bash-completion in ubuntu 14.04

1. You need to reinstall bash-completion by using below command
learning@learning:~/Desktop$ sudo apt-get install –reinstall bash-completion
2. Now you need to write it in .bashrc file like below given at very last line
learning@learning:~/Desktop$ sudo vim /root/.bashrc
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
 
Article Source - http://www.rhce.co.in/how-to-enable-bash-completion-in-ubuntu-14-04/

Saturday 8 August 2015

RHCE Exam Objectives

RHCE exam candidates should be able to accomplish the following without assistance. These have been grouped into several categories.

System Configuration and Management

  • Route IP traffic and create static routes
  • Use iptables to implement packet filtering and configure network address translation (NAT)
  • Use /proc/sys and sysctl to modify and set kernel run-time parameters
  • Configure system to authenticate using Kerberos
  • Build a simple RPM that packages a single file
  • Configure a system as an iSCSI initiator that persistently mounts an iSCSI target
  • Produce and deliver reports on system utilization (processor, memory, disk, and network)
  • Use shell scripting to automate system maintenance tasks
  • Configure a system to log to a remote system
  • Configure a system to accept logging from a remote system

Network Services

Network services are an important subset of the exam objectives. RHCE candidates should be capable of meeting the following objectives for each of the network services listed below:
  • Install the packages needed to provide the service
  • Configure SELinux to support the service
  • Configure the service to start when the system is booted
  • Configure the service for basic operation
  • Configure host-based and user-based security for the service
RHCE candidates should also be capable of meeting the following objectives associated with specific services:

HTTP/HTTPS

  • Configure a virtual host
  • Configure private directories
  • Deploy a basic CGI application
  • Configure group-managed content

DNS

  • Configure a caching-only name server
  • Configure a caching-only name server to forward DNS queries
  • Note: Candidates are not expected to configure master or slave name servers

FTP

  • Configure anonymous-only download

NFS

  • Provide network shares to specific clients
  • Provide network shares suitable for group collaboration

SMB

  • Provide network shares to specific clients
  • Provide network shares suitable for group collaboration

SMTP

  • Configure a mail transfer agent (MTA) to accept inbound email from other systems
  • Configure an MTA to forward (relay) email through a smart host

 To know more about the RHCE Training in Jaipur. please visit on - LinuxWorld Informatics pvt. ltd

 

 

SSH

 

  • Configure key-based authentication
  • Configure additional options described in documentation                
Reference:

Thursday 6 August 2015

Managing Partition in Linux using Parted

Parted is another utility  for managing  hard in linux based os

Step 1:-  To check number of partition  in a hard disk
======

[root@desktop12 ~]# parted  /dev/sda print  
Model: ATA ST3160812AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  538MB   537MB   primary   ext4            boot
 2      538MB   79.2GB  78.6GB  primary                   lvm
 3      79.2GB  79.7GB  537MB   primary   linux-swap(v1)
 4      79.7GB  160GB   80.3GB  extended
 5      79.7GB  82.9GB  3221MB  logical
 6      82.9GB  137GB   53.7GB  logical
 7      137GB   137GB   105MB   logical   ext3
 8      137GB   137GB   524MB   logical   ext4
 9      137GB   138GB   524MB   logical   ext4
10      138GB   140GB   2147MB  logical   ext4
11      140GB   140GB   105MB   logical
12      140GB   140GB   41.9MB  logical
13      140GB   141GB   524MB   logical
14      141GB   143GB   2147MB  logical   ext4

OR
==

[root@desktop12 ~]# parted  /dev/sda 
GNU Parted 2.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model: ATA ST3160812AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  538MB   537MB   primary   ext4            boot
 2      538MB   79.2GB  78.6GB  primary                   lvm
 3      79.2GB  79.7GB  537MB   primary   linux-swap(v1)
 4      79.7GB  160GB   80.3GB  extended
 5      79.7GB  82.9GB  3221MB  logical
 6      82.9GB  137GB   53.7GB  logical
 7      137GB   137GB   105MB   logical   ext3

Step 2: To show create  a new  logical partition 
===================================================

Inside your  hard disk create partition of  2GB

(parted) mkpart  logical  143GB   145GB

Note: quit to exit from partition table

fire partx command to 
[root@desktop12 ~]# partx  -a /dev/sda

step 3: create file system  of desired format 
=============================================

[root@desktop12 ~]# mkfs.vfat   /dev/sda15

step 4: Now mount your partition 
=================================
[root@desktop12 ~]# mkdir  /media/kkk
[root@desktop12 ~]# mount  /dev/sda15  /media/kkk

Now you can save your data and can also made entry in /etc/fstab to make this partition persistance
 
Article Source - http://www.rhce.co.in/managing-partition-in-linux-using-parted/