How to send email from linux console

Sending an email from console is an easy procedure that comes in handy. I use it a lot, mainly when I setup a new mail server to send test email or when I want to send the contents of a big configuration file.

To install the mail command in red-hat based distributions, issue Read more »

create a database in postgreSQL

Recently I was asked for a postgres database by a web application. Working with mysql all the time I didn’t have a clue about postgres commands, it was an easy procedure after all.

Howto create a database

There are two ways to create a new database Read more »

spam king released from prison

After serving three years, eight months, and 27 days in prison, Robert Soloway aka “spam king” has been released. Soloway had troubles with the law from back in 2005 when  Microsoft won a $7.8 million civil judgment against Soloway, for spam sent through MSN and Hotmail services. In May 30, 2007 he was arrested for 35 charges including mail fraud, wire fraud, e-mail fraud, identity theft and money laundering. On March 14, 2008, Robert Read more »

western digital is acquiring hitachi storage

Under the terms of the agreement, WD will acquire Hitachi GST for $3.5 billion in cash and 25 million WD common shares valued at $750 million, based on a WD closing stock price of $30.01 as of March 4, 2011. Hitachi, Ltd. will own approximately ten percent of Western Digital shares outstanding after issuance of the shares and two representatives of Hitachi will be added to the WD board of directors at closing. The transaction has been approved by the Read more »

howto password protect a cisco switch

To  password protect privileged exec mode on your switch, issue the following command in global configuration mode

enable secret my_password

if you are running an old ios and enable secret is not recognized then issue

enable password my_password

and encrypt the password

service password-encryption


next secure the virtual consoles

line vty 0 15

and finally the console

line con 0
password my_password

do not forget to issue from privileged exec mode

copy run start

to save your configuration


reload the switch and test

new category “networking”

There is a new category coming up on called networking

things i’m going to write about in this new category:


I intend to do some reading about ipv6 in the following days. Since I’m given the opportunity, I’ll write about new technologies and protocols ipv6 will bring and of course about the way ipv6 works.


3 years ago I’ve taken ccna (Cisco Certified Network Associate) & fwl (Fundamentals of Wireless LAN) certifications. Unfortunately I haven’t been working on cisco devices over the last couple of years and most of the things I’ve learned are long forgotten. It’s a good opportunity for me to freshen up my knowledge on ios.

Various other interesting things about networking. Stay tuned.

identifying your hdd from cli

lets say you have two identical hdd in your linux box in a software raid1 setup. one of them fails and you have a nice degraded array. you have to replace the failed hdd and rebuild the array. but which one is to replace??

let’s say sda is the working hdd, issue the following command

hdparm -I /dev/sda | head -8

and you should see


ATA device, with non-removable media
Model Number:       WDC WD6400AACS-00G8B1
Serial Number:      WD-WCAUF2974726
Firmware Revision:  05.04C05
Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5

voila, there you have the model number and the serial of the hdd 🙂

optimizing ispconfig3 for a low end vps

ISPConfig 3 is a very nice open source hosting control panel for Linux based systems. Here are some things you can do in case you are running ispconfig3 on a low end vps and you want to free up resources. This post is based on centos and ispconfig3 v3.0.3.2

php handler

Preffer suPHP as the php handler for your websites

remove eaccelerator


yum erase php-eaccelerator

to remove eaccelerator

disable clamav

ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats. ispconfig uses clamav to scan email attachments. By disabling clam you’ll gain a lot of ram

Read more »

how to send a fax from cli with hylafax

create a file

vi test

and insert some text, then send it with the following command

sendfax -n -D -d XXXXXXX test

where XXXXXXX is the number of the remote fax machine, replace it with a valid fax number

Drive traffic to your Site. SEO tips !

Many of us have a webpage. The content is good but where are the visitors ?  Ok , one way is to advertise but before this step

you can try these tips.


  1. Submit your page to search engines like, Google, Yahoo, Msn, Dmoz etc.
  2. Check your pages, posts to have metadata and keywords. Use google adwords tool to find the most searched keywords
  3. Add heading tags <h1>  to your page.
  4. Create Backlinks. Check if you have some  with this tool. If not , write to forums, promote your post with Facebook , twitter etc , or ask your friends to add a link to your page.
  5. Create a sitemap, internal links inside your page

Most of all find a good title.  And check often your page rank to see what’s going on. You can check at net-tools your pagerank and links.


Have fun !