RSS2.0

RHCE and RHCT exam:exporting NFS filesystems in RHEL4

Tuesday, April 25, 2006

Exporting NFS filesystem in RHEL4 (Redhat enterprise Linux) servers:

To export directory /home/export you need to add an entry in /etc/exports :

/home/export parmount.ice.com(rw,sync)

make sure there is space between mount options and hostname otherwise you will get permission error on redhat linux client.

RHCE and RHCT exam: max telnet session limit reached in RHEL4

maximum telnet session limit reached in( RHEL4)Redhat Enterprise Linux :


Quick Fix if you are getting maximum telnet service_limit reached messages in /var/log/secure logs in redhat enterprise Linux servers . Awesome you don't need to reboot your RHEL4 server unlike HP-UX serves :

Getting error : xinetd [4092] :FAIL: telnet service_limit


Just change session limit from 60 for instances to some large number

#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
instances = 400
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

service telnet2
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}

#[root@ice]# service xinetd reload

RHCE RHCT Exam questions : How to check kernel in RHEL4

Sunday, April 23, 2006

RHCE RHCT Exam questions : How to check kernel in RHEL4 ?



[root@ice ~]# file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

RHCE and RHCT exam: Memory available on RHEL4

Saturday, April 22, 2006

How can you Check availale Memory on RHEL4 (Redhat Enterprise Linux servers) :


[root@ice /]# grep Mem /proc/meminfo
MemTotal: 255972 kB
MemFree: 5896 kB

RHCE RHCT EXAM :create disk paritions without reboot in RHEL4

Create partition on RHEL :Redhat Enterprise Linux without reboot :

[root@ice ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 2610.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 8e Linux LVM
/dev/sda3 1319 1579 2096482+ 82 Linux swap

Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Selected partition 4
First cylinder (1580-2610, default 1580):
Using default value 1580
Last cylinder or +size or +sizeM or +sizeK (1580-2610, default 2610):
Using default value 2610

Command (m for help): p

Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 8e Linux LVM
/dev/sda3 1319 1579 2096482+ 82 Linux swap
/dev/sda4 1580 2610 8281507+ 5 Extended
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

Finally type partprobe to make parition change available to Redhat enterprise Linux (RHEL4) without reboot :

[root@ice ~]# partprobe /dev/sda

RHCE and RHCT exam questions

For RHCT and RHCE exam questions, you should know How to check installed packages :

For example to check whether you have firefox installed you can use rpm utility available on RedHat enterprise Linux :
[root@ice ~]# rpm -qa |grep firefox
firefox-1.0.7-1.4.3

RHCT RHCE Exam:DNS name resolution in RHEL4

Wednesday, April 19, 2006

DNS name resolution in RHEL4 :



/etc/resolv.conf file is used for Domain name resolution (DNS name resolution) :
search rhceexam.linux.com
nameserver 192.168.100.1
nameserver 192.168.100.2

RHCT RHCE Exam:Mounting USB drive on RHEL 4

Mounting USB drive/USB floppy drive on RHEL4

USB drive /device on Redhat Enterprise Linux is recognized as scsi device /dev/sdx (where is x is
number of next available scsi disk... example if you have two scsi disk namely sda and sdb then usb floppy drive will be sdc1

#mount /dev/sdc1 /floppy

RHCT RHCE Exam: practice prepration questions

Friday, April 07, 2006

RHCT RHCE Exam: practice prepration questions :


Question: Where do you look for changing boot loader sequence ?

Answer: on RHEL4 ( redhat enterprise Linux 4 ) /boot/grub/grub.conf

RHCT RHCE Exam: practice prepration questions

Thursday, April 06, 2006

RHCT RHCE Exam: practice prepration questions

Question:What file do you edit to set the default runlevel?

Answer: /etc/inittab

RHCT RHCE Exam: practice questions

RHCE RHCT Practice questions of the Day !

Question:How you can check status of network interface ?

Answer : # ifconfig eth0

Number of open files per process in RHEL4 redhat Linux

Tuesday, April 04, 2006

In RHEL4 (redhat hat enterprise Linux 4 AS ) running kernel 2.6 the number of open files per process is still limited to 1024. you can do ulimit -a to see number of open files per user :

[root@firefox] /# ulimit -a

core file size (blocks) 1000000
data seg size (kbytes) unlimited
file size (blocks) unlimited
max memory size (kbytes) unlimited
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes unlimited (1)
pipe size (512 bytes) 8
open files 1024
virtual memory (kbytes) 2105343


To Increases the system limit on open files for instance a process on change the number of open files for Oracle , IB DB2 databases in redhat enterprise Linux (RHEL4) :

#ulimit -n 90000

To make changes permanent add soft and hard limits in /etc/security/limits.conf file :

* soft nofile 90000
* hard nofile 90000

RHCE RHCT Exam: RHCE Certification Training

Saturday, April 01, 2006

Red Hat RHCE certification training is experiencing a great demand within the IT industry.
In recent years, the RHCE certification has become a global standard for many successful IT companies,increasing the importance of having a RHCE Red Hat certification.If you are interested in passing the RHCE certification exam and the RHCE certification testing requirements to start earning that high paying RHCE certification salary you always wanted. Then you have to read redhatcert.blogspot.com where i am putting tips,quetions training books,site that will ensure you pass your Red Hat RHCE exams on your first try.
As i was able to pass my RHCT exam .you can use other free RHCE materials and free RHCE study guide resources,but only Redhatcert Blog delivers you the most accurate, current and updated tips for RHCE certification.

Looking to become an RHCE Red Hat certified professional? Would you like to reduce or minimize your RHCE certification cost? Do you want to pass all of the RHCE certification tests? If you answered YES, then look no further. Keep reading this Blog and i have added seach on my Blog .I am trying to add best resource for RHCE certification training solutions that cover all core topics and RHCE certification requirements found in the RHCE certification test.

RHCT RHCE Exam: questions

Thursday, March 30, 2006

For RHCT and RHCE exam questions, you should know about networking as it is required for these exams under Networking configuration :

  • network card/device is recognised as eth0 in redhat linux and other flavours of linux
  • ifconfig eth0 will display ip address for network interface
  • you should expect questions in RHCE/RHCT exam to bring up and down network interface:
    • ifup eth0
    • ifdown eth0
  • For RHCT/RHCE exam question you should know network configuration files:
    • /etc/sysconfig/network-scripts/ifcfg-eth0 is network configuration file
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.30.29
NETMASK=255.255.255.0
GATEWAY=192.168.30.1
    • For RHCT/RHCE exam you should know how to change static ip to dhcp
    • Simply change BOOTPROTO to dhcp from none
  • you can also run system-config-network to change these settings by GUI but for RHCT and RHCE exam you should know how to change network setting using command line that will save time as time is critical in RHCT and RHCE exams.

RHCT RHCE Exam :Redhat Linux Exam Certification Tip 1

Sunday, March 26, 2006

RHCE RHCT Linux Certification Exam :Tip 1

Since RHCT and RHCE exam are Performance based exam, you don't need any book or Exam Cram. I realized this when i passed my RHCT exam without reading a book. All you need is PC running Linux. If you don't have PC at work or at home ..Buy one PC , belive me this will help you for RHCT and RHCE Linux certification Exam.Best tip for RHCE/RHCT exam is to have hands on experience... a pc running linux at home

If you already have PC then for installing Linux you have to partition your har drive and this is critical step , if you are not an PC expert you might loose your data while partitioning your single har drive and might loose important data. But here is good news using VMware you can install Redhat Linux on your windows operating system. Search this blog on your left you will find where and how you can get Vmware.

RHCE RHCT Exam: How to enable root telnet for redhat enterprise Linux RHEL4

Thursday, March 23, 2006

How to enable root telnet for redhat enterprise Linux RHEL4:

To enable direct telnet for root account on redhat linux enterprise servers ( i have done wthis on RHEL3 and RHEL4 without any issues ) over the network :

under /etc/ directory edit /etc/securetty file and add pts entries :

pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
pts/6
pts/7
pts/8
pts/9
pts/10

or Just remove /etc/securetty file alltogether , i prefer moving /etc/securetty it.

mv /etc/securetty /etc/securetty.sav


Bingo root telnet is enabled now ... on redhat enterprise Linux 4 .That's all you need to do to enable telnet access for root account on Linux servers. Root access is activated right away you don't need to restart any services on redhat linux .


Warning : telnet is not secure and you should be using SSH only for logins on RHEL4.Keep reading redhatcert blog to find out how to enable SSH logins on redhat enterprise Linux 4.

RHCE RHCT Linux EXAM CRAM

RHCE and RHCT Linux Exam Cram :

Although there are several books available online and in stores for RHCE and RHCT Exam Cram.But Buying Linux Exam Cram doen't make any sense. There are books out there :
Don't Buy any more Linux "Exam Cram" because Linux is performance based exam.I don't understand there are so many Linux Exam Cram book out there and many websites claiming Exam Cram online to pass RHCT and RHCE exam. Truth is there are no multiple choice questions in RHCE and RHCT exam . so..... don't get fooled and please don't purchase any Linux exam cram for RHCT and RHCE.. If you really want to purchase any RHCE/RHCT exam book
buy RHCE exam study Guide RH302

But again no linux exam cram ....don't buy any linux exam cram and don't get fooled.

RHCE RHCT EXAM: configure kernel parameters in redhat enterprise Linux

Tuesday, March 21, 2006

configure kernel parameters in redhat enterprise Linux :


How to turn off ping response in redhat Linux :

#cat /proc/sys/net/ipv4/icmp_echo_ignore_all
0

Zero means ping is enable and Linux machine will respond to ping requests.

# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

This kernel change is not permanent , to make it permanent add to /etc/sysctl.conf :

net.ipv4.icmp_echo_ignore_all=1

RHCE RHCT Exam questions : enable telnet services on Linux

How to enable telnet services on Redhat enterprise Linux :

# chkconfig telnet --list
#chkconfig telnet on
#chkconfig --level 35 telnet on

where 3 and 5 are run levels , so telnet will run when Linux is running in runlevel 3 and 5 only.

RHCE RHCT Exam questions : How to change Linux default run level

You shoud know how to change Redhat Linux system default run level for RHCE and RHCT exam preparation and questions :

1. edit /etc/inittab file and changerun level from level 5 (which is X or GUI mode ) to run level 3


# vi /etc/inittab
id:3:initdefault:

2. simply reboot the server and your default run level changes to level 3 which is text based linux session.

3.How to dynamically change the runlevel of Linux system without rebooting

  • e.g: switch to single user mode :
# telinit S
  • e.g: switch to X or GUI (desktop) mode
#telinit 5
  • e.g:If you have made changes to the /etc/inittab file to change the default runlevel and want to change the system to that new default you can do so by using the telinit with the q command-line option:
# telinit q