Install GUI to Ubuntu Server

Some customers ask for a GUI on their Ubuntu Server, usually with Unity installed for a connection via TeamViewer. Although I personally don’t appreciate such methods, these usually mean that the customer has no idea on handling a Linux Server. Well it’s their problem and we should deliver their needs. After installing a fresh Ubuntu […]

Read More

Install mod_python on Centos 6

mod_python is one of the easiest ways to use your Python Scripts as web pages. To install mod_python on your Centos 6 server, simply follow the steps below. We also recommend using our LAMP installer, this method can easily be implemented with our installer. To install mod_python, we need the EPEL repositories: rpm –import https://fedoraproject.org/static/0608B895.txt […]

Read More

Installing IonCube Loader on Linux

Installation of IonCube Loader on any variaty of Linux is very simple. Just get the copy from ioncube webpage itself, http://www.ioncube.com/loaders.php We will download the 64-bit version for our example. Then extract the file, copy the shared object file that matches your PHP version to an appropriate folder. To learn your PHP version you can […]

Read More

Download Plugged.in LAMP installer for CentOS 6.x

Version Info: V0.2 21/06/2012 DO you ever wanted to set-up a testing server with – Apache virtual config, logs, paths setted, – MySQL server with password set, – FTP Server (Vsftpd), – PHP and PhpMyAdmin installed & configured on your server or VPS in seconds? If you answer “yes” to the question, you are in […]

Read More

Bind Multiple IP Addresses on a Single Network Card IPv4 & IPv6

The beauty of having multiple IP addresses on a single server is that you can run several services with different addressing. This way you can announce your FTP service on a different address and your HTTP on another. Below I’ll describe how to achieve this in Debian based and Red Hat based distros seperately. Using […]

Read More

Find the Largest Files

The other day I was working on a server and needed the LARGEST files on some directory – including its subdirectories. As it turns out, it’s a very simple task limiting the file size you want with the output of the find tool. The -size argument will define the borders of your output. Let’s say […]

Read More

Step II: DirectAdmin Setup

If you prepared your server with the directives we mentioned on the previous article, it will be so much easy to install DireactAdmin software. You must download the setup file from DirectAdmin site: Download DirectAdmin setup file & run: mkdir /root/DA cd /root/DA wget http://www.directadmin.com/setup.sh sh setup.sh Steps to follow: DirectAdmin setup will ask you […]

Read More

Adding Job to Crontab Using BASH

Adding a task into crontab is relatively easy. You just enter the crontab with “$ crontab -e” and add the necessary job, save and exit. But adding a job in your bash script is not that simple, because what you have to do is, to get the entire list of the jobs, append your new […]

Read More

Detecting Possible Mail Forgers in EXIM

The other day we were working on a mail server of a customer’s that spammed insanely. Since the mail transfer agent it uses is exim, it’s necessary to check the mainlog files. Whilst doing that, we realized the server was getting a lot of incoming mails as forgery. So, it is possible to get the […]

Read More

A Bash Script to Detect OS Info

Here’s a simple bash script snippet I use for detecting the OS information on the current system. #!/bin/bash ### Getting OS Information if [ -f /etc/lsb-release ]; then . /etc/lsb-release DIST=$DISTRIB_ID DIST_VER=$DISTRIB_RELEASE else DIST=”Unknown” DIST_VER=”Unknown” fi if [ -f /etc/debian_version ]; then OS=”Debian” VER=$(cat /etc/debian_version) elif [ -f /etc/redhat-release ]; then OS=”Red Hat” VER=$(cat /etc/redhat-release) […]

Read More

Rescuing system with Linux Rescue

You are reading this article, most probably you faced trouble booting your Linux. Follow the steps below to fully chroot into your system as you booted regularly. Please note that we offer you to take a disk clone before doing anything in your boot configuration. To do so, you can use dd or dd_rescue to […]

Read More

Linux Optimization from the scratch

Using LINUX as a server?, if so please read below Most of the Linux distros released as CD or DVD media for installing and if you install Linux with defualy options you get a nice user interface and a bunch of applications that you will never use in a server environment. Also default installation will […]

Read More

How to update Linux with Yum

Updating RedHat & CentOS with Yum If you are using RedHat & its clones like CentOS or CloudLinux etc. you can use Yum or up2date to upgrade your current system. Please note that is you have a RedHat Enterprise Linux Subscription we offer you to use the command up2date, to upgrade your server with yum […]

Read More

Determine folder size with “du” including sub folders

You can use du command to see the folder size in LINUX including subfolders.: With du du -h # including subfolders (-h means human readable format in MB, GB or TB) If you want to exclude subfolders, type: du -h –max-depth=1   If you want to know a specific folders size (easy to remember) type: […]

Read More

Disabling IPv6 in Linux

In default LINUX installation IPv6 is enabled. IPv6 might use system resources or for what ever reason you have Run this command as root: echo “alias net-pf-10 off” >> /etc/modprobe.conf echo “alias ipv6 off” >> /etc/modprobe.conf You need to restart your server after this command.

Read More

Linux version & Operating System info

LINUX Version Info To learn the architecture and kernel version info use the shell command below: less /etc/redhat-release The output will be like CentOS release 5.6 (Final) To learn the architecture & kernel version: uname -a you can use the command above, the last numbers marked as red below is your architecture: Linux xxx.veriportal.com 2.6.18-164.9.1.el5 […]

Read More

Setting time with NTP

NTP (Network Time Protocol) could be used to set time synced with ntp clocks, to do this use the shell command below: Setting time with NTP: yum install ntp -y \cp -f /usr/share/zoneinfo/Europe/Istanbul /etc/localtime ntpdate -v -b in.pool.ntp.org And set the hardware clock with: hwclock -w

Read More

Linux Recursive Search inside files

You can make a search inside files within a a directory using the command “find“, to do that: with the find command cd /to_folder find . -iname ‘*conf’ | xargs grep ‘string’ -sl -iname ‘*conf’ states that the seach will only check the files ending with *conf, using -iname ‘*’ will search inside all the […]

Read More