Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How-To: Reboot on OOM

Posted by chantra on 17th April 2013

Ever had your linux box getting Out of Memory (OOM)? Cleaning up after the OOM killer kicked in to find out that even though OOM killer did a decent job at trying to kill the bad processes, your system ends up in an unknown state and you might be better of rebooting the host to make sure it comes back up in a state that you know is safe.

Read the rest of this entry »

Tags: , , , ,
Posted in Administration, HowTo, System | 1 Comment »

How To: booting another Grub from Grub

Posted by chantra on 15th March 2008

Chainloading an operating system allows grub to boot an opearating system's boot loader. This is commonly used to boot Windows for instance.

I personnaly use it to be able to have my "production" system's grub on the MBR, and address other distros'grub install on their root partition. The advantage is that kernel updates are real easy to handle. Each testing distro modifying their own grub won't interfere with my main OS bootloader.

This tutorial will explain how to configure grub's menu.lst from the main OS to boot other OSes bootloader through an example.

Read the rest of this entry »

Tags: ,
Posted in General, HowTo, System | No Comments »

How-To: Managing services with update-rc.d

Posted by chantra on 5th July 2007

Linux services can be started, stopped and reloaded with the use of scripts stocked in /etc/init.d/.

However, during start up or when changing runlevel, those scripts are searched in /etc/rcX.d/ where X is the runlevel number.

This tutorial will explain how one can activate, deactivate or modify a service start up.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Softwares, System | 8 Comments »

How-To turn off beep from virtual console

Posted by chantra on 31st January 2007

Linux offers a great tool: Tab Completion. With tab completion, you can easily navigate through your filesystem, find command names you forgot the exact name and in general, save you a lot of typing.

The only annoying thing is that it usually comes with a horrible *beep* coming from your PC speaker whenever you press tab and there is ambiguity.

This tutorial will expose a radical way to get rid of this, but somehow different than unplugging the pc speaker ;)

Read the rest of this entry »

Tags: ,
Posted in HowTo, System | No Comments »

Basic Apache Optimizations — page 2

Posted by chantra on 23rd September 2006

This entry is part 2 of 2 in the series Basic Apache Optimizations

KeepAlive

KeepAlive is a feature that make the server keep each listening connection alive for a certain amount of time, allowing a client and the server to keep the same connection for a certain amount of time. This feature has benefits and drawbacks.
A benefit would be that a client making more than one request won't have to re-initiate a new connection for each request.
A drawback will be that ressources on the server are monopolize for a predefined time, even though the client might not request other pages.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, HTTP | No Comments »

Basic Apache Optimizations

Posted by chantra on 23rd September 2006

This entry is part 1 of 2 in the series Basic Apache Optimizations

Apache, the most popular web server, is a stable and reliable software for providing web pages to the world. But sometimes, it happens that Apache will struggle under high loaded traffic.

Here is an overview on how you can optimize apache so it can cope with higher loads. Those tips are not meant to be exceptional but should be sufficient to increase your web site performance by handling more traffic.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, HTTP | No Comments »

How To: Optimize MySQL response time

Posted by chantra on 21st July 2006

High loaded website can get slow to respond when a lot of different visitors visit sites querying the same mysql database server, making it slow to respond.

There is many ways you can improve mysql server response time: by modifying the cache size, stopping dns resolution ....

Let's see how to do that.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, Networking, System | 2 Comments »