Posts

Showing posts from September, 2009

Internet Monitoring With SARG and Squid On Windows

SARG aka Squid Analysis Report Generator is a nice little tool that analyses Squid's access.log files and creates a management friendly report along with graph. This guide is for someone who have already configured SARG on Linux box . Install Squid on Windows. You can follow this post  squid-on-windows SARG port for windows is available in the SARG website itself  SARG . Or download it by clicking here . Unzip it in C:\sarg Edit sarg.conf file inside c:\sarg\etc Edit access_log graph option output_dir where your web server can be pointed. Others that you think is important. This is very simple file with all needed description. Make your scheduled task to run SARG and rotate Squid log files or restart Squid from services.msc .

Squid On Windows

Here is a short and simple guide for installing Squid on Windows for those who knows how it works in Linux. Windows port for Squid is available from Acme Consulting. Grab it from  http://squid.acmeconsulting.it/ Unzip it and put it in C drive making the folder structure c:\squid You'll find squid.conf file in C:\squid\etc\squid.conf Configure it as per your requirements. (mainly the following) Your hostname Dns server Cache directory ACL logrotate (make sure that the options you choose are available with the squid you chose by running squid -v) Create the cache directory by: Open Command Prompt Go to C:\squid\sbin Run squid.exe -D -z Install the squid service by running squid.exe -i You can manage squid service from services.msc or using the squid.exe CLI. Unlike Linux you may need to pass "-n Squid" as parameters for few commands. Set scheduled task to rotate your log. You may need to use third party software to transparently use this Squid. Unti

Google Chrome Update Keeps Appearing Even After Removing From Application Sources

I use Google Chrome -unstable as my primary browser and am very happy with it. But one problem I keep facing is it asks me to update the daily build each day. Removing it from /etc/apt/sources.list.d/google-chrome.list doesn't help. So if you also don't want to install the daily build each and every day follow the following steps: Remove the google-chrome apt list from /etc/apt/sources.list Remove the google-chrome.list file from /etc/apt/sources.list.d/google-chrome.list Remove the file /etc/default/google-chrome This should prevent Google Chrome daily updates. P.S. If by change you landed here and don't have Google chrome and want to install it get the daily build from here  or the deb package from here(32 bit)  or here(64 bit) .

Install Firefox 3.5 on OLPC XO

Download Firefox 3.5 from http://www.mozilla.com/en-US/firefox/all.html for Linux. Open your xo Put the extracted Firefox in /home/olpc/Activities Rename it to Firefox. activity Go inside /home/olpc/Activities/Firefox.activity Make a folder "activity" Go inside /home/olpc/Activities/Firefox.activity/activity Make a file activity.info with following content [Activity] name = Firefox service_name = org.laptop.firefox35 icon = firefox activity_version = 35 show_launcher = yes exec = ./firefox Put one svg icon for Firefox in /home/olpc/Activities/Firefox.activity/activity with file name firefox.svg Change the permission of /home/olpc/Activities/Firefox.activity to 755 by running chmod -R 755 /home/olpc/Activities/Firefox.activity Change the owner of the /home/olpc/Activities/Firefox.activity to olpc:olpc by running chown -R olpc:olpc /home/olpc/Activities/Firefox.activity Restart the X server by pressing Alt+Ctrl+Erase Your Firefox 3.5 is ready though y

Fixing small bugs in Ubuntu

A bugs like typo doesn't require you to have a great technical knowledge. Yet there are many bugs in launchpad that are related to typos. Once you start fixing this kinds of bugs chances are you will move on and start fixing more complex bug simple and small bugs. So how do we get started ? If you haven't missed yesterday's #ubuntu-classroom you should have known a lot. Here I'm just trying to replay yesterday's class by dholbach on " Fixing small bugs in Ubuntu". First of all lets prepare our system. It is recommended to use a development release. Its not important at this moment. For now open your terminal and type: sudo apt-get install --no-install-recommends bzr ubuntu-dev-tools devscripts dpkg-dev cdbs Now make sure you have 'Sources' enabled in System -> Administration -> Software Sources -> Ubuntu Software . Now open ~/.bashrc file in your favorite text editor. Add the following line to it. export DEBFULLNAME='Your

Ubuntu Developers Week, don't miss

From Monday, 31st August 2009 to Friday, 4th September 2009 there is going to be Ubuntu developers week. This is a event you can't afford to miss and all you need to attend is an IRC. Check your timetable for the class here . If you need to prepare for the session click here . Then join #ubuntu-classroom for your desired class. This class is muted so if you need to talk or ask question do it in #ubuntu-classroom-chat. Remember questions are prefixed with QUESTION. More info here .

Use localepurge to remove unnecessary locales

Ubuntu, Debian and and many Linux Distros comes bundled with many locales. Locale beside yours is hardly useful for you. Most people use one or two locale or locales that represent them. For example people from America will most probably use only en_us locale while people from India might use both Indian and American locale. There isn't any problem having many locale lying in your system. But if you have computer with minimum hard disk space like Dell Mini 9 then it might be good idea for you to remove unnecessary locale and free space. Also you don't have to waste time compiling all the locale when you only need some of them. This saves time while updating and installing some application. Now to remove the unnecessary locales, open terminal and type sudo apt-get install localepurge