Category Archives: Linux

Fast Nginx Configuration

This is a presentation of how to rapidly configure nginx.

This product is one of the fastest and most used web server on the market. It works mainly on linux installations, but you can pretty much install it everywhere. Unlike apache, while nginx can be used as well as a full fledged web server, it is consistently used as a front service for nodejs installations.

Continue reading

SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

You need to access Oracle database server from your linux machine, installed the Oracle client and you get the message above. Actually this is not the full message that you get, the full stuff is something like that:

$ /ora/fs0000/app/oracle/product/11.2/bin/sqlplus
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

So you start browsing the internet and people is asking you to check the msb files are actually there, that you got rights to read, some people will tell you that write rights are needed as well in some folders, etc.
Continue reading

Tomcat Startup Takes Forever

The Problem

So you install your new machine, with Java, Tomcat and MySql and then you start everything. You use the very latest version of these products (currently Tomcat 8 and JDK1.8) and you expect the best. However, Tomcat starts very very slowly - anything between 2 minutes and 30 minutes.
Continue reading

Linux Iptables Tutorial

Iptables is a tool that is used to configure the netfilter linux kernel module. This inspects all the incoming / outcoming network packets and decides what is to be done with each of them.

This article is not fully featured documentation, it only shows a number of commands and their functionality. Iptables capabilities are huge, however for most of the use cases the information present in this article should do.
Continue reading

Configure Postfix

Postfix is one of the most popular MTA (mail transfer agent) products on unix. This article presents a simple way of configuring postfix for virtual domains

Continue reading