Category Archives: Operating Systems

Linux : How to benchmark disk I/O

A few utilities are available to test the disk I/O performance. The easy way to do it without installing anything on the system would be running this simple command : time dd if=/dev/zero of=/tmp/test-hd bs=1M count=1000 Another, more complete tool I recommend is “SysBench”. http://sysbench.sourceforge.net/docs/

Linux : How to reset MySQL root password

Lost your root password for MySQL? Follow this simple procedure to reset it. Of course, you need at least root access level on your operating system to proceed. 1. Stop MySQL database server : /etc/init.d/mysql stop 2. Start MySQL with “skip grant table” option : mysqld_safe –skip-grant-tables  & WARNING! This is VERY insecure – while… Read More »

Linux : How to add IP range on RHEL/CentOS

If you have a full subnet to add on RHEL/CentOS Linux system, there is a short way to achieve this instead of manually create single alias interfaces. 1. Create a script at this location : vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 (ajust values as needed, according to the interface you would would have the IP subnet binded to an… Read More »

Linux : Installing text mode setup tool

If you’ve done a Basic/Minimal OS install on RHEL/CentOS Linux, setuptool (which could be invoked typing “setup” in terminal), this tool is probably missing on your system. To install it via Yum repository, simply type the following command : yum install setuptool system-config-securitylevel-tui authconfig system-config-network-tui ntsysv There is a description of each packages : setuptool… Read More »