Automatically reboot server after a kernel panic

Add panic=10 to the kernel command line to reboot with 10 seconds of a kernel error. Be careful with this when setting up new kernels. It’s possible to change it later with sysctl, or by writing to /proc: # echo 10 > /proc/sys/kernel/panic To make it permanent, edit /etc/sysctl.conf and add the below line: kernel.panic [...]

Finding Files On The Command Line

One of the things I like about Linux is the command line. I have used nautilus, gnome-commander, konqueror, kommander, dolphin and thunar to manage files in Linux and these file managers are great for what they do. But there are times when one simply wants to find a file when working on the command line [...]

Installing Debian Raid

Instructions for installing a very clean Debian GNU/Linux system that boots from RAID 1, and has RAID 1 or RAID 5 root and data filesystems. The examples assume two identical harddrives, sda and sdb, on which after a small boot partition, 1 GB is used for swap, 25 GB is used for the root filesystem [...]

Installing MySQL Proxy On CentOS 5 (FINAL) x86_64

This tutorial explains how you can install MySQL Proxy on a CentOS 5 (x86_64) system. MySQL Proxy is a simple program that sits between your client and MySQL server(s) that can monitor, analyze or transform their communication. Its flexibility allows for unlimited uses; common ones include: load balancing; failover; query analysis; query filtering and modification; [...]

Creating banner for ssh server

A banner for ssh server is a few phrase that will come out the time you want to access a server through ssh. By default, this feature is turned off. To turned it on: Login as ‘root’ Create your banner file first. In this example, i will create banner file named /home/banner # vi /home/banner [...]

Exploring Urchin Web Analytics Software

By default Urchin 6 is installed at /usr/local/urchin directory. You can change directory by typing the following command: # cd /usr/local/urchin Use urchinctl to control Urchin web server / scheduler You will find urchinctl inside bin directory. It is used to control Urchin web server listing on TCP port 9999. To start the Urchin webserver, [...]

Quick check for a ddos via number of connections

A quick and usefull command for checking if a server is under ddos is: netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n That will list the IPs taking the most amount of connections to a server. It is important to remember that the [...]

Lessfs 1.5 On CentOS 5

For this HowTo I used a VirtualBox with CentOS 5.7 x86_64. I attached a separate 20GB Data drive mounted to /data. This will hold the lessfs DB and data. The lessfs mountpoint I put at /lessfs. This is a very basic setup, just to get it running. There is plenty of tuning to be done [...]

Solaris > Access the zip / jaz drive (mount zip disk)

The Volume Management daemon, vold, creates and maintains a file system image rooted at root-dir that contains symbolic names for CD-ROM and floppy, ZIP/JAZ, and DVD-ROM devices and other removable devices. Use volcheck command to checks for media in a drive and by default checks all floppy media. 1) Put zip/jaz disk into drive 2) [...]

Connecting Linux or UNIX system to Network attached storage device

Network attached storage (NAS) allows using TCP/IP network to backup files. This enables multiple servers in IDC to share the same storage for backup at once, which minimizes overhead by centrally managing hard disks. NAS is scalable, high performance network solution. The main advantage is more hard disk storage space added to a network that [...]

How to defragment or optimize a database in Mysql?

In case you remove a lot of data from the tables OR change the database structure, a de-fragmentation/optimizing of the database is necessary to avoid performance loss, especially while running queries. The above changes results in a performance loss, so make sure you run the “optimizer” on the database. SSH to your server and execute: [...]

More from Database server

Email Archiving with Exim/cPanel

If you’re interesting in saving a copy of all incoming and outgoing mail for a particular domain, look no further! This can be expanded a little further to include all domains on the server or other stipulations, but I am going to include the config for a single domain. First we’ll need to make a [...]

More from Email server

Plesk webmail + DB Error: connect failed

You may receive the following error message while accessing Webmail on a Plesk server: A fatal error has occurred DB Error: connect failed You need to make sure the ‘horde’ user is able to connect to the ‘horde’ database using the password mentioned in the file “/etc/psa/.webmail.shadow”. You have to create the file and specify [...]

More from Hosting Controller

Automatically reboot server after a kernel panic

Add panic=10 to the kernel command line to reboot with 10 seconds of a kernel error. Be careful with this when setting up new kernels. It’s possible to change it later with sysctl, or by writing to /proc: # echo 10 > /proc/sys/kernel/panic To make it permanent, edit /etc/sysctl.conf and add the below line: kernel.panic [...]

More from Linux

Automatically reboot server after a kernel panic

Add panic=10 to the kernel command line to reboot with 10 seconds of a kernel error. Be careful with this when setting up new kernels. It’s possible to change it later with sysctl, or by writing to /proc: # echo 10 > /proc/sys/kernel/panic To make it permanent, edit /etc/sysctl.conf and add the below line: kernel.panic [...]

More from OS

ConfigServer ModSecurity Control

This is an exclusive! and free! add-on product for cPanel/WHM. The product provides you with an interface to the cPanel mod_security implementation from within WHM. With ConfigServer ModSecurity Control you can: Disable mod_security rules that have unique ID numbers on a global, per cPanel user or per hosted domain level Disable mod_security entirely, also on [...]

More from Security

Remote Server Rsync Backup Replication Shell Script

You need to setup password less login using ssh keys; refer to following tutorials: + Howto Linux / UNIX setup SSH with DSA public key authentication (password less login) + SSH Public key based authentication – Howto #!/bin/bash # Remote Server Rsync backup Replication Shell Script # ————————————————————————- # Copyright (c) 2005 nixCraft project # [...]

More from shell script

How to create a Callback option

1. Overview This tutorial will show you how to create a queue, where your incoming calls to arrive. Noting so special, but we are also going to show you how to give a choice to the callers – they will be able to leave the queue at any time and in our example they will [...]

More from Voip

Tuning the Apache MaxClients parameter

This parameter defines how many simultaneous request can be served. Any connection request from browsers that come in after that will be queued. Apache prefork, StartServers, MaxSpareServers and MinSpareServers In the most common case, you will be using Apache in the prefork mode, meaning one process per connection, with a pool of processes pre-forked to [...]

More from Web Server

Enter your email address:

Liên Kết Website

web design | Shared linux windows problems | Dedicated server | website chất lượng cao | hosting chất lượng cao | Tutorial video collection | Troubleshooting Tips and Tutorial