Blog List


Restricting System Access from Servers and Networks

Usually a firewall is used to protect a server from other servers and networks. However, in some cases you may also want to protect a server within a network by using a TCP Wrapper. The Xinetd super server that comes


LiveUSB MultiSystem – LiveUSB MultiBoot in Linux

Installation into Linux Mint/PinguyOS/ElementaryOS or others Ubuntu distrs: 1. Add repository Terminal Shekin@mylinuxmintpc~$ sudo apt-add-repository 'deb all main' 2. Add key Terminal Shekin@mylinuxmintpc~$ wget -q -O - | sudo apt-key add - 3. Update sources and Install MultiSystem Terminal Shekin@mylinuxmintpc~$ sudo apt-get update sudo apt-get


Cheat Sheet: Advanced Linux Commands

As an example scenario, we are going to pretend we are developing a LAMP (Linux, Apache, MariaDB and PHP) application on single machine running Red Hat Enterprise Linux 7. As a first step, we’re going to install Apache, PHP and


Recover MySQL root password

YOU CAN RECOVER A MYSQL DATABASE SERVER PASSWORD WITH THE FOLLOWING FIVE EASY STEPS: Stop the MySQL server process. Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for a password. Connect to


Getting the size of a directory on the command line?

Here is a function for  .bash_aliases (vi ~/.bash_aliases) # du with mount exclude and sort function dusort () { DIR=$(echo $1 | sed 's#\/$##') du -scxh $(mount | awk '{print $3}' | sort | uniq \ | sed 's#/# --


Kernel Tuning of Linux web server

Config  /etc/sysctl.conf # Configuration file for runtime kernel parameters. # See sysctl.conf(5) for more information. # See also for # an explanation about some of these parameters, and instructions for # a few other tweaks outside this file. #


optimize and speed up linux server

Its a common meditation – think of us that hardware upgrade is the best way to speed up a server. Its like more memory, or cpu cant deliver vetter performance. Hardware upgrades are only a temporary fix. if services /


Remove packages including unused dependencies on Linux

Very often we install a package just for short usage. Most of the time do these packages install a lot of dependencies along with it. After you don’t require the package anymore you remove it but the dependencies are not


Vmware template creation : Centos 7

# some variables export ADMIN_USER=“admin” export ADMIN_PUBLIC_KEY=“your public ssh key” # install necessary and helpful components yum –y install net–tools nano deltarpm wget bash–completion yum–plugin–remove–with–leaves yum–utils # install VM tools and perl for VMware VM customizations yum –y install open–vm–tools

web server

Sentora install with NginX and Varnish for performance optimization

Sentora, comes with Apache 2.2 and I feel that it’s a bad solution when there are many good solutions already for using as web server e.g. Litespeed, NginX, Lighttpd etc. Litespeed is a paid service. If you have the ability to