Tuesday, July 28, 2009

Setting up a Network

Checking IP Address Details

#ifconfig

This will define the IP address of one interface. If the PC has two NICs, then it could have two IPs. The Networl configuration file could be found in

#cd /etc/sysconfig/network-scripts

In this there are several files. "ifcfg-eth0" contains the Network Card information. The file looks as follows.

DEVICE = eth0 [This is the first NIC interface]
BOOTPROTO = [dhcp OR static ---> If it is DHCP the card will listen to a DHCP Server]
HWADDR = 00:06:5B:22:FS:8E [MAC Address]
ONBOOT = yes [For the Network to load at boot-up]
TYPE = Ethernet

To add a IP Address change the file as

BOOTPROTO = static
and add
IPADDR = 192.168.190.1[The IP you wish to assign]

Optionally you could perform the same thing by

#netconfig

OR

#ifconfig 192.168.190.1/24

After completing the Network Services should be restarted.

#service network restart

Once again if you check out the IP address you may see

#ifconfig

'etho' will have an IP Address
'l0' is for the Loop Back IP


Now you Computer has been set up for the network. Try to 'ping' another PC on the WORKGROUP. It should work.

Good Luck....!

Saturday, July 18, 2009

Accessing NTFS Partitions from RHEL 4

By default RHEL 4 kernel supports READ and WRITE access for FAT partitions, while it does not does not support NTFS read or write access. So we have to upgrade the kernel by down loading and installing necessary kernel modules to the Linux System. It could be downloaded through http://www.linux-ntfs.org

For this you should first find the current Kernel version of your Linux Installation.
#uname -r [ENTER]

To see the Processor version
#uname -p [ENTER]

Now install the Downloaded package
#rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm [ENTER]

Now you have to load the installed modules to the running kernel.
#modprobe ntfs [ENTER]

To create a mount point
# mkdir /media/Windows

Automatically mounting the Microsoft partitions when the System starts up.

To this you should edit a system file called 'fstab'. Find it and open it with 'vi'. In it we should and a new entry

/dev/hda1[tab][tab]/media/Windows[tab]ntfs[tab]defaults[tab]0[space]0

Save and EXIT.

Now mount the Partitions.
#mount /media/Windows

Wednesday, June 10, 2009

Purpose of Libraries in Linux

/bin
Binaries or executable files which are common Linux user commands.

/boot
Here you find potable files, boot loader and a compressed copy of the Linux Kernel.

/dev
This contains device drivers.

/etc
This contains administrative and system configuration files.

/home
This contains the home folder of normal Linux Users.

/initrd
The initial RPM drive location. Do not any data or delete this.

/lib
This contains all libraries, applications, extensions needed to run Linux executable.

/media
This contains mount points to access removable storage devices.

/opt
This contains optional S/W s. The location to install platform independent S/W s.

/proc

Running Linux Processors and current system information. When the system is shut down it automatically gets erased.

/root
The Privileged user's home folder
  • root - Super User
  • / - Top of the File System
  • /root - Super Users Home Folder
/sbin
This contains administrative commands and files related to services.

/usr
This contains platform dependent applications

/var
This contains dynamic data related to Linux applications. Automatic updates, without the knowledge of the user.

Set up RedHat Version 4 From Scratch


Partitioning The Hard Drive

To install Linux you should have a minimum of 2 partitions. But as an optional you could also have 3 or more partitions.
  • swap - Essential Partition This is like the Virtual Memory on Windows.
  • root ('/') - Essential Partition This is where all the other partitions will list. This the most top of the USER file system(Linux has an Universal File System, not like Windows).
  • boot ('/boot') - Optional Partition This will store the files which are needed for the OS to boot up in a separate partition.
Linux has an Universal Directory hierarchy and Windows has a Tree Directory hierarchy.