what

How to configure single IP Addresses in IPtables

Opening up a whole interface to incoming packets may not be restrictive enough and you may want more control as to what to allow and what to reject. Lets suppose we have a small network of computers that use the 192.168.0.x private subnet. We can open up our firewall to incoming packets from a single [...]

A brief to various iptables commands

We will use an example based approach to examine the various iptables commands. In this first example, we will create a very simple set of rules to set up a Stateful Packet Inspection (SPI) firewall that will allow all outgoing connections but block all unwanted incoming connections:

How to Create tables in Mysql – PHP & MySQL Code

Before you can enter data (rows) into a table, you must first define what kinds of data will be stored (columns). We are now going to design a MySQL query to summon our table from database land. In future lessons we will be using this table, so be sure to enter this query correctly! PHP [...]

How to Verify Email Security With tcpdump

I can use tcpdump to verify that encryption is working. Here is what a plain unencrypted POP mail session looks like. This is an abbreviated example showing only the initial three-way TCP handshake. You can do this yourself by firing up tcpdump, then checking mail. Ctrl+C stops it: # tcpdump port 110 15:04:49.050227 windbag.34348 > [...]

Database Replication in MySQL – Step by Step Guide

Replication enables data from one MySQL database server (called the master) to be replicated to one or more MySQL database servers (slaves). Replication is asynchronous – your replication slaves do not need to be connected permanently to receive updates from the master, which means that updates can occur over long-distance connections and even temporary solutions [...]

How to configure Virtual Hosting using Apache 2 on Ubuntu

Virtual Hosting allow web servers to host more than one website on a sing machine. This is how sharing hosting works. I become pretty handy as well while develloping different web project on the same machine and allows you to access to your local repository using addresses such as http://dev.mysite.com instead of http://localhost/~myuser/myproject/ :) . [...]

How to Assign Disk Quotas in Redhat

A simplistic approach would be to simply divide the disk space by the number of users and/or groups using it. For example, if the system has a 100GB disk drive and 20 users, each user will be given a hard limit of no more than 5GB

How to Implement Disk Quotas on Linux

This tutorial walks you through implementing disk quotas for both users and groups on Linux, using a virtual filesystem, which is a filesystem created from a disk file. Since quotas work on a per-filesystem basis, this is a way to implement quotas on a sub-section, or even multiple subsections of your drive, without reformatting. This [...]

How to Change DHCP to Static IP Address on Ubuntu Server

Changing this setting without a GUI will require some text editing, but that’s classic linux, right? Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor sudo vi /etc/network/interfaces For the primary interface, which is usually eth0, you will see these lines: auto eth0 iface eth0 inet [...]

What are the steps you can take to avoid “Deadlocks” in SQL?

Deadlocking occurs when two user processes have locks on separate objects and each process is trying to acquire a lock on the object that the other process has. When this happens, SQL Server identifies the problem and ends the deadlock by automatically choosing one process and aborting the other process, allowing the other process to [...]

How many way to share the files in windows

7 Ways to Share Information in Windows Environment Got a document, graphic, spreadsheet, program, or just a thought you want to share with your co-workers? The method you choose to share it depends on the content you’re sharing, your personal work style, the tools you have, and if you’re at home, in your office, or [...]

How to Install Imagemagick on CentOS

ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply [...]

How To Install NicTool on FreeBSD 7

It includes an attractive web interface for users, admins, and clients to access and update their DNS zone data as well as a rich API for provisioning systems to interact with. All zone data is stored in MySQL and is extracted by export scripts to the DNS server of choice (tinydns, BIND, PowerDNS). Updates are [...]