Posts

Showing posts from March, 2010

Error:: "Esc is Already Running"

If you got the error after rebooting the Linux Machine, just follow the follow the given steps.... 1) On command prompt...      # rpm -qi esc O/P::: Name        : esc                          Relocations: (not relocatable) Version     : 1.1.0                             Vendor: CentOS Release     : 9.el5                         Build Date: Thu 03 Sep 2009 11:59:48 PM IST Install Date: Tue 24 Nov 2009 05:37:13 AM IST      Build Host: builder10.centos.org Group   ...

Kernel panic - not syncing: Attempted to kill init! " Error

Kernel panic - not syncing: Attempted to kill init! " Error Follow the following steps. 1. Once you are at the grub screen, press c for command line. 2. On command line execute the following commands. find /grub/stage2 find /etc/hosts This will provide you the boot partition & the root partition nos. in the format (hd0,2) etc If the root partition & boot partitions are same then execute the following commands. root (hd0,2) kernel /boot/vmlinuz-kernel version ro root=/dev/hda3 initrd /boot/initrd-version boot if the boot & root partitions are different then replace the root=/dev/hda3 with the value you get for root partition i.e. if you get (hd0,5) then replace the value with /dev/hda6. If you still get the kernel panic message, recreate the initrd image using the mkinitrd command. Hope this will work.  Regards   Kuldeep Sharma

Resetting root Password in Linux

Image
How to reset forgotten root password in Linux? The root password for the Linux system can be reset by booting it into the Single User mode which is also termed as Emergency mode or more popularly known as Rescue mode. If the boot loader installed on your Linux system is GRUB, then please follow the below listed steps to reset the root password. Select the line which specifies the kernel to be loaded. Press the ‘e’ key to edit the entry. Choose second line (the line starting with the word kernel). Press the ‘e’ key again to edit kernel entry Append the letter ‘S’ or word ’single’ to the end of the line. Press the [ENTER] key Press the ‘b’ key to boot the Linux kernel into single user mode After the booting process completes, mount the ‘/’ and ‘proc’ partitions using the below listed commands. # mount -t proc proc /proc # mount -o remount,rw / Issue the 'passwd' command to change the root password. Finally, reboot the system employing the below commands. # sync # re...

Intro About Run Levels in Linux

Run Levels and inittab – RHEL Now that we have already seen the boot sequence and GRUB file for linux, lets now check what is run level and one of the important file /etc/inittab which is used during booting linux. Run Level Operating system like linux has several services that are running. Each service will provide some functionality to OS. Example ftp service will allow other machine to FTP from your machine. Similarly network service will allow networking functionality. But keeping all the services running while working on only few serivce will impact performance. Some times administrator does not need all the services and just need few services for working. For this kind of situation, linux provides different runlevel. Each run level has some specific set of services running. Example if you start your linux in run level 1, some specific set of services will get started but not all. If you boot linux in run level 2 some more services will get started over and above services ...

Linux Partitions

Creating Partition and Filesystem in Linux Introduction This post describes how to create a partitons in linux and use it. Creating a new partition for use is a 4 step process. You identify a disk and create a partition using fdisk You create a file system on that disk and assign a label You create an entry in /etc/fstab to make partition persistant accrose reboot You mount the partition for access to the user. Lets start with creating a partition from a disk. Creating Partition and filesystem In my system I have /dev/sda as primary device and following are the different partitions [root@10.176.87.179]# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda2             2.9G  350M  2.4G  13% / /dev/sda7             487M   18M  444M   4% /h...

Configuring poptop VPN Server

Hi Friends,                   Let us discuss How to Configure poptop VPN Server on Linux(CentOS5.3) System. 1.) First of all Install all the required Libraries and pptd Server on Linux System. 2.) You can also make the use of yum to install the pptp server as...          # yum -y install ppp 3.) After you make sure that you have ppp installed, download and install Poptop. You can get the RHEL/CentOS 5 RPMs from net easily. 4.) After installing Poptop, open the file /etc/pptpd.conf.      # vi /etc/pptpd.conf                    Go to the end of the file where you can see examples of localip and remoteip. Below them add your own values for localip and remoteip. localip      10.0.0.1 remoteip     10.0.0.10-100 ...