blog.up-link.ro
31Dec/100

Linux: How To Create a USB Debian Installation Flash Drive

In this tutorial I'll show you how to create a USB drive which can be used as an installation media to install Debian Linux.

You will need a computer which is already running Linux and a USB flash drive of size at least 256 MB which we will prepare as our installation media.

Insert the USB drive into the computer running Linux and make sure it gets detect by the Linux Kernel. You can check if the USB device got detect or not by running the following command:

dmesg

and you should see something like this:

[143981.321725] sd 8:0:0:0: [sdb] .321725 512-byte hardware sectors (1024 MB)
[143981.522718] sd 8:0:0:0: [sdb] Write Protect is off
....
[143981.522719] sd 8:0:0:0: [sdb] Attached SCSI disk

Print This Post Print This Post
7Aug/100

How To Install and Integrate eAccelerator into PHP5

eAccelerator is an open source PHP accelerator, optimizer, and dynamic content cache which provides a bytecode cache. eAccelerator increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

1. Install prerequisites

There is no eAccelerator package in the official repositories, therefore we must compile and install it from the sources. Before we can do this, we need to install some prerequisites.

Print This Post Print This Post
1May/100

How To Limit CPU Usage of A Process with cpulimit under Linux

In this tutorial I'll show you how you can limit the CPU usage of a process with cpulimit tool on Debian/Ubuntu Linux.
cpulimit is a program that limit the CPU Usage of a process (expressed in percentage, not in CPU Time). This is very useful to control batch jobs, when you don't want them to use to much CPU. cpulimit is able to adapt itself to the overall system load, dynamically and quickly.

Print This Post Print This Post
10Apr/100

How To monitor Apache traffic in real-time with apachetop

Apachetop is a very useful program that displays the stats for Apache in real time. Apachetop can show you how many requests per second are coming in, what files have been accessed and how many times. It can also show you who is hitting the sites and where they are coming from.

1. Installing apachetop

To install apachetop in CentOS, Fedora:

# yum install apachetop

Make sure you have DAG repository enabled.

Print This Post Print This Post