Linux
Simple steps to recover from kernal panic
How to recover linux machine from kernel panic error?
Kernel panic boot rescue:when there is a kernel panic on server, we might need to have a serious look on it, That too if its a production box then you must consider it very seriously. Normally the below steps are used at ..
Rc.sysinit or inittab file missing
What to do when I receive /etc/inittab file missing error?
what to do when I get /etc/rc.d/sysinit.d file missing?
When you receive the error, follow the below steps to recover or reinstall the inittab script or initscripts
1) Boot Linux from CD
2) You will get boot promt on screen.
3) Type linux rescue
..
Reinstalling kernal file not found error
How to reinstall the kernel?
To test this really if you are interested, make sure you have backup of your system and be ready to install the machine.remove the /vmlinux.... and /initrd image from the machine. and you will get this error.
1) Boot Linux from CD
2) You will get boot promt ..
Recover kernal panic caused of boot image
While booting system, you saw some error and stop the boot process by displaying some error messages.
Kernel Panic - not syncing: Attempted to kill init!
And no further boot process. What you will do to boot the system
Before following these steps try to make a backup of your grub.conf file
1) Boot ..
Rebuild sysimage in linux
how to rebuild sysimage in linux?
As a linux admin you must know, how to rebuild the system image. To rebuild the system image you can follow the below steps.
1) Boot Linux from CD
2) You will get boot promt on screen.
3) Type linux rescue
boot: linux rescue
4) Rescue mode ..
Find the running oracle Database
How to check what are all oracle database present in the website or not?
When you are not sure that the oracle Database is present in the server or not then you can check it the below commands. There are also other methods to check the server, the better way to ..
Recovery file system problem
How to recover from error label not found?
How to recover from error unable to resolve label?
Error Message
fsck.ext3: Unable to resolve 'LABEL=/usrs' [FAILED]
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the ..
Add a user user by specifying UID
The useradd command is used to add a user
Create a user with unique user id
# useradd -m -d /home/jaiho -u 625 -c "jaiho" -s /bin/bash jaiho
where,
-u : specify the user-id, The user id must be unique and numerical value.
-m : Create the users home directory if it ..
Scp multiple files in one time
What is scp?
SCP stands for Secure copy, scp is a linux command which is used to copy files over ssh from one server to the other. scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and ..
Openoffice docs spread sheet password
Set password for openoffice Doc & sheets:
Go to Tools
Select Protect Document -> either Sheet or Document
Type your Password -> ok
..
How to use up2date command
How can I use up2date command?
How can I register the redhat machine using up2date command?
The Redhat Enterprise Linux operating system gets update from RHN via Redhat Network Satellite/proxy servers (usually used by big hosting/ISPs or larget RHEL installation setups) to install critical and non-critical security updates as well as ..
How to use wireless card in fedora
Below are some of the commands, which are used to set up a wireless network setup in linux machine or fedora. Follow the steps listed below to setup the linux network.
Steps tobe followed:
1) Identify the chipset of the wireless device
2) Choose the right driver
3) Install the driver
# lspci
..
Check lgtoclnt nsr status using nsrwatch
The below is simple example to check the networker or lgtoclnt or nsr is running or not.
# ps -ef | grep nsr
OUTPUT:
math 12326 1 0 2011 ? 00:00:09 /usr/sbin/nsrexecd
math 26087 12345 ..
Share windows on linux machine.
Normally we use samba to share the linux machine or linux share to windows. In general the mount command is used to mount the
windows share under linux machine. Use the mount command to mount remote windows partition or windows share under Linux as
follows.
Steps to mount or remount windows ..
Backup server configuration a example
The below is a simple example of a eth card configuration in linux environment. This example can help you when you configure the network manually, The below are some of the important rules whcih has to be added in the configuration file.
# cat /etc/sysconfig/network-scripts/ifcfg-ethx
OUTPUT:
# NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server ..