Posts

gnome applet in xfce

Want to add your favorite Gnome-applet like search bar or Tomboy notes in XFCE? Its pretty simple. Open terminal -> xterm type -> sudo apt-get install xfce4-xfapplet-plugin Now right click your panel Click Add Item You will see a new option xfApplet. Click it. Now from the new dialog box choose the required gnome applet. Enjoy!

Blocking Pornography

Image
Blocking pornography or any other sites in a single computer or in the whole network is just a matter of a single click. You can use opendns.com DNS server and choose option to block the sites you want. Go to opendns.com Sign up for a free account Go to network and add you IP address or the network address. Go to settings. Under filtering there is option to block adult sites. You can use whitelist to make sure that some sites never gets blocked. You can block any domain too. Also it prevents you from phishing attack. After finishing setting up with opendns.com, use their DNS servers 208.67.222.222 and 208.67.220.220 You can use it in routers to block sites in the whole network, or if you have your own DNS or Proxy server then use the above IP to block on the whole network. The downside is if the clients enters the IP address directly then it wont work. For rest, Make your network safer, faster, smarter and more reliable. It's free.

Squid Access.log Meaning Explained

Squid access log is very informative if you know how to dig something out of it. Following is an a line from access.log file. 1201172176.719 1190 127.0.0.1 TCP_MISS/200 529 GET http://www.blogger.com/status.g? - DIRECT/72.14.221.191 application/xml This line can be written as: Timestamp, Total time, Source, Action/Code, Size, Method, URL, Ident, Hierarchy/From, Content type 1: Timestamp Time when the request was completed. 2: Total time Total time taken to complete the request 3: Source IP address of the client 4: Action/Code Action taken for the request 5: Size Total size of the request in bytes 6: Method Whether the request was GET or POST 7: URL The actual request 8: Ident Usually - 9: Hierarchy/From How the object is fetched and from where 10: Content type Type of object Action "TCP_" refers to requests on the HTTP port (3128) TCP_HIT A valid copy of the requested object was in the cache. TCP_MISS The requested object was not in the cache. ...

Downloading from Rapidshare using wget

You can use wget to download from rapidshare using premium account. Before downloading you need to get the cookie. wget --save-cookies ~/.cookies/rapidshare --post-data "login= USERNAME &password= PASSWORD " -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null The command is one line and -O - is capital alphabet O. This puts your cookie under .cookies folder under your home directory with the name rapidshare. Now whenever you need to download anything just enter wget -c --load-cookies ~/.cookies/rapidshare

Remove Squid footer completely

You can remove footer from squid error pages. Removing the version number from the footer is very easy. In squid.conf enable httpd_suppress_version_string But what if you want to remove the whole message. Generated Thu, 08 Jun 2000 06:58:30 GMT by proxy1.proxy.com (Squid/2.3.STABLE1) There is no configuration available to remove it but you can always edit the source file for that. Don't worry its very easy. Easy because its really easy. Just follow the following steps: Go to squid source. /usr/src/squid/src Backup the existing file errorpage.c cp ./errorpage.c ./errorpage.c.bkp Remove errorpage.o rm errorpage.o Edit the file errorpage.c vim errorpage.c { ERR_SQUID_SIGNATURE, "\n \n" " \n" " \n" "Generated %T by %h (%s)\n" " \n" " \n" } Remove the line "Generated %T by %h (%s)\n" Save and exit :wq Reconfigure squid with old options ./configure ......... Ma...

Handwriting in Messenger

Image
Do you want to write by your hand while you IM?? Just like below?? I use AMSN so I'll tell you how to do it on AMSN. If you use other IM clients then either change to AMSN or Google to how to do it on them. I'm sure there are many tips lying out there. Open AMSN Open Account Goto Select Plugins Select Inkdraw and click load. If you cant find Inkdraw there you can find it and lots of others plugins here . Now in conversation windows, you will find an Icon for Inkdraw. Happy messaging.

SARG - Squid Analysis Report Generator

Image
SARG - Squid Analysis Report Generator is a tool that allow you to view "where" your users are going to on the Internet. Its very useful tool which generates graphical and tabular report from your access.log file in a web browser. You can get sarg from http://sarg.sourceforge.net/sarg.php Extract it to your src folder, configure it and install it. The configuration file is sarg.conf. You really don't need to change that file as most of the option can be passed through command line parameters. One thing you must make sure is that the output directory is your web accessible directory. The configuration file is pretty simple. Also make sure that it gets your right access.log file.

Google Analytics for you blog

Google Analytics can help you track uses of your site and plan for the future. You must already be knowing about this. I am posting this because adding this to your blog can be a little tricky. Many users are trying to add the Google analytics code the classical way which works only on classic templates. If you try it for new template you will get the following error. We were unable to save your template Please correct the error below, and submit your template again. Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The content of elements must consist of well-formed character data or markup So to successfully set up try the following way. Click Template Click Page Elements Click Add Click HTML/JavaScript Put your code their. Do not write anything more not even the title. If you do so, it will appear on the homepage. Check you Google analytics account

Your wife's future

Image
If you are a computer guy then one day you sure will find your wife like in the picture below

Password protect a web page

Password protect your web pages in apache server in a very simple way. This is however not that secure and is not recommended. Just use this for simple thing and when other authentication cant be used. First create a file which holds username and password. For this you can use htpasswd program. /usr/local/httpd/bin/htpasswd -c /usr/local/httpd/passwordfile username The -c option here creates new file. So if the file already exists or you are just modifying or adding a new user omit -c option. Not doing that will make a new file resulting in loss of old username and password. The file must be somewhere your webserver can find but not other place. Though the password is encrypted its better to keep it off from human eye. Now edit you httpd.conf file to include the follwoing line in whichever websites that you require authentication AuthType Basic AuthName "By Invitation Only" AuthUserFile /usr/local/apache/passwd/passwords Require user rbowen sungo Restart apache and you're...

A wall paper all you people should have.

Image
Do your work. Don't be stupid.

MRTG for SQUID

Image
MRTG for SQUID gives you a detail idea of what is happening behind the scene. In this tutorial I'll make sure that you will successfully set up one like below. First thing is to make sure that you have given --enable-snmp option while compiling your squid. If you have not done so then its time to do so. Compile your squid with --enable-snmp and then 'make clean', 'make', and 'make install' Edit you squid.conf file so that snmp_port 3401 acl snmppublic snmp_community public snmp_access allow snmppublic localhost snmp_access deny all The first line defines the port SNMP is listening on squid. Second line defines public as the community string or lets say password. Third line defines that from localhost snmp query can be made to squid. Fourth line denies query from all.(except localhost) Now you need a web server to serve the graphs. Download apache from http://www.reverse.net/pub/apache/httpd/httpd-2.2.6.tar.bz2 mv ./httpd-2.2.6.tar.bz2 /usr/loca...