web analytics

Posts Tagged ‘ubuntu’

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

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


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

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.

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.

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.

How to mount remote directory on Ubuntu 11.10 using SSHFS

Written by config on . Posted in Linux, Ubuntu

In this tutorial I will teach you how to mount a complete directory to a local server from a remote server using SSHFS i.e. securely. SSHFS stands for Secure Shell FileSystem. This kind of filesystem provides the directories and files securely over SSH and all the local users can access those files as if they are local files or directories. The remote share is mounted using FUSE which means FileSystem in Userspace.

Linux Mint and the meaning for Linux users.

Written by config on . Posted in Linux, Ubuntu

In the world of operating systems, each mass-marketed system of software has its unique nuances. It’s these nuances that are played the most to potential buyers. If you love messing with your computer, but don’t have a degree in computer science, then you’re probably a Windows guy. If you know absolutely nothing about computers and how to customize your software to your liking, you’re probably a Mac guy. And then there is the Linux crowd…

People who operate Linux operating systems are the kind of people that really know what they’re doing. They understand computers and have probably studied them in great detail, more than likely obtaining a degree in something computer related. The people that appreciate Linux are the people that want to get the most out of their machines.

Now lets talk about the latest Linux Mint release.

Finding large files on Linux distributions

Written by config on . Posted in Linux

Finding large files on all operating systems is a daily task for systems administrators around the world, it serves a lot of purposes.
I will show multiple ways to do it on various Linux distribution. Simple and makes your life easier.

Pay attention to the size in all examples – change it according to your needs.

RPM Based distributions: Red Hat, Centos, Fedora

Specify path:

find {/path/to/location/} -type f -size +{size-in-kb}k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Example for specific path:

find /home/http/logs -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Current Dir:

find . -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

Debian or Debian based ( Ubuntu and various other deb based distros )

Specify path:

find {/path/to/location} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'

Current Dir:

find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'

Largest files in directory:

ls -lSh | less

du -xakh .|sort -n|tail -10

du -k | sort -n | perl -ne 'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024)); printf                 ("%6.1f\t%s\t%25s  %s\n",($1/(2**(10*$m))),(("K","M","G","T","P")[$m]),"*"x (1.5*$l),$2);}'

find . -type f -print0 | xargs -0 ls -lSh | head -10