web analytics

Author Archive

Squid3 configuration for multiple ip adresses and users with basic http auth, transparent proxy

Written by config on . Posted in CentOS, Linux, Ubuntu

Advertisement

So for example you’ve decided to setup squid and you would like to let your users connect and authenticate via simple http auth and you also would like each user to use different ip address. How can you achieve that with squid3?
I’m going to show you a very simple squid configuration that will let you to setup the proxy in a few minutes on your own machine and let your users use dedicated ip. In this example I’m configuring squid to be transparent and use non standart port so that when someone will try to probe your user ip it won’t find squid easily on its default ports listening. That is how they will know your user is using a proxy.
The example shown here tested on Ubuntu Server 12.04 but I guess it will work on any other linux distribution as long as you installed Squid3

tail: inotify cannot be used

Written by config on . Posted in CentOS, Linux, Ubuntu

If you get the following error:

tail: inotify cannot be used, reverting to polling: Too many open files

you can adjust these values in your sysctl.conf:

fs.inotify.max_user_watches = 1280000
fs.inotify.max_user_instances = 512

If you do not have those, just add it and run /sbin/sysctl -p

Crontab

Written by config on . Posted in CentOS, Linux, Ubuntu

What is Crontab ?
One can enter the list of commands that he wishes to execute at a particular time in future, or they can be scheduled to execute on a daily basis. Crontab is a general text file which holds this list. The commands entered in crontab and the times to execute them is handled by cron daemon. It runs in background. Crontab’s man page explains about itself pretty well. Later we have lined up a crontab example for better understanding.

Setting up Squid Proxy server on RHEL 5 / CentOS 5 linux

Written by config on . Posted in CentOS, Linux

Proxy is one of the major component of adding security to the network. It also acts as a Gateway that receives the request from the clients and then validates it, when it is fine it forwards it to the destination server.

Squid is one of the most popular Open Source Proxy server and a Web Cache Daemon.

It has the wide variety of features from:

1. Speeding up a web server by caching repeated requests.

2. Caching Web, DNS, and other lookups.

3. Controlling bandwidth, Access controlling, etc.

This article explains how to setup Squid Proxy server in your RHEL 5 / CentOS 5 in a easy step-by-step procedure.

Setting User and Group Permissions for executing programs in Linux

Written by config on . Posted in CentOS, Linux, Ubuntu

Every User or group in a Linux or (Unix like) Operating system is associated with a unique identity called UserID (UID) for a user and GroupID(GID) for a group.
To know the uid, gid of your account simply type the ‘id’ command in your terminal.
To know the id of any user account, simply type ‘id username’. Replace username with corresponding username.

Setting Up A Ubuntu Web-Server On A Remote Host – Ubuntu Lamp

Written by config on . Posted in Linux, Ubuntu

The main advantage of using and setting up a Linux server is that it will be interesting and informative as you learn lot of things on how to customize and fine tune the Open Source operating system to your needs,‭ ‬and of course this is fun and you will feel happy when you yourself do things on your own,‭ ‬isn’t it‭?
In this Tutorial you will learn how to install LAMP on Ubuntu server. Including all the components – fast and easy straight from the repo.

Upgrade Fedora 15 to Fedora 16

Written by config on . Posted in Linux

It’s really very easy to upgrade from Fedora 15 to Fedora 16 and this tutorial describes in simple step-by-step procedure on how to upgrade from Fedora 15 to Fedora 16 (both Desktop and Server).

Requirements:

1. Active Internet Connection by any means

2. Super user or Root’s password.

Important Note: If you gain root access using “su” command, ignore the keyword “sudo“ before every command mentioned in the following steps. If you are not gaining Root access and performing the upgrade as normal user use the command as it is mentioned.
“sudo“ works only if the user has been added to perform Administrative privileges at the time of installation or it can be performed manually after installation.

Configuring VSFTPD in CentOS‭ ‬6.0

Written by config on . Posted in CentOS, Linux

Configuring VSFTPD in CentOS‭ ‬6.0

vsftpd stands for‭ ‬Very‭ ‬Secure‭ ‬File‭ ‬Transfer‭ ‬Protocol‭ ‬Daemon and it is an popular and well known FTP server for Unix-like‭ (‬Linux‭) ‬Operating system.

It is Licensed under GNU General Public License.

In this tutorial we cover how to configure‭ ‘‬vsftpd‭’ FTP server ‬on CentOS‭ ‬6.0.

Assumptions:

We assume that you are using CentOS‭ ‬6‭ (‬Linux operating system based on RedHat Distribution‭)‬.
And using‭ ‬vsftpd‭ ‬version‭ ‬2.2.2
Your system is connected to Internet via any means.

How to install GNOME 3 and Mate on Ubuntu 11.10

Written by config on . Posted in Linux, Ubuntu

In this tutorial I am going to show you how to install GNOME 3 on your Ubuntu 11.10 desktop. We will install it with some shell extensions so that you can get the feel and look of GNOME 2 on GNOME 3. This is for those guys who want to revert to GNOME 2. For GNOME 3 lovers there is no need to install this extension.

Preliminaries:
This works perfectly with Ubuntu 11.10, may work with other versions of Ubuntu but I am not sure about that. You may try, I won’t guarantee on this.

Fedora 15 with GNOME 3 – A glimpse

Written by config on . Posted in Linux, Ubuntu

Fedora project, powered by Red Hat, has released another beast into the wild, Fedora 15, Linux-based operating system.
In previous versions, there have been similarities between the two leading distros- Ubuntu and Fedora. Ubuntu fans are now going to have second thoughts about it. Fedora 15, has got over the leap and now major differences can be pointed out. The brain storm only got worse.
Skipping all regular debate remarks, the discussion can be narrowed down to comparison between GNOME 3 and Unity. Fedora has always been different from the league.