November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Logrotate

Logrotate is the default and easiest log management tool around. It is shipped by default with most of the major Linux distributions. Logrotate can help you to rotate logs (in other words, it can create a separate log file per day/week/month/year or on the basis of size of log file). It can compress the older […]

Ethernet bonding in Linux

Bonding is creation of a single bonded interface by combining 2 or more ethernet interfaces. This helps in high availability and performance improvement.

Steps for bonding in Fedora Core and Redhat Linux

Step 1.

Create the file ifcfg-bond0 with the IP address, netmask and gateway. Shown below is my test bonding config file.

$ cat […]

Linux Booting Process Sequence

Linux Booting Process Sequence

When the computer is switched on, it automatically invokes BIOS [a ROM chip embedded in the motherboard]. The BIOS will start the processor and perform a POST [power on self test] to check whether the connected device are ready to use and are working properly. Once the POST is completes BIOS […]

Open Files – Linux

Open Files – Linux

 

ope it will be useful to you as well.. You might have this scenario; Logfiles deleted while the process is still running. That’s annoying: On your Linux-Server the /var filesystem is nearly full. You remove a very large logfile that you don’t need with the rm command: myserver1# df -Ph […]

Configuring TCP Wrappers for Linux Security

Configuring TCP Wrappers

 

The TCP Wrappers package is installed by default on Fedora Linux and provides host-based security separate from that provided by a firewall running on the server itself or elsewhere. The application relies on two main files:

/etc/hosts.allow: Defines the hosts and networks allowed to connect to the server. The TCP Wrappers […]

Disable Ping on Linux Server

Disable Ping on Linux Server

How do you disable ping to Linux server? Here is the quick steps:

To disable ping:

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

To enable ping:

echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

That’s all..!

Clean reboot of hung Linux server

Clean reboot of hung Linux server

 

In day to day system administration job, you may come across the situation that your Linux server is hung or freeze and your system is not responding even for Ctrl+Alt+Del in console itself and you must need to do a hard reboot by pressing reset button. As everyone […]

Process priority with nice

Process priority with nice

Modern operating systems are multi-user and multitasking, which means that multiple users and multiple tasks can be using the computer at any given time. Typically you’ll have one person using a desktop system running any number of applications or many users using many applications on a server.

The amount of time […]

Auto reboot after kernel panic

When a kernel encounters certain errors it calls the “panic” function which results from a unrecoverable error. This panic results in LKCD (Linux Kernel Crash Dump) initiating a kernel dump where kernel memory is copied out to the pre-designated dump area. The dump device is configured as primary swap by default. The kernel is not […]

Limit the CPU usage of an application (process) – cpulimit

Limit the CPU usage of an application (process) – cpulimit

 

cpulimit is a simple program that attempts to limit the cpu usage of a process (expressed in percentage, not in cpu time). This is useful to control batch jobs, when you don’t want them to eat too much cpu. It does not act on […]