Tuesday, August 12, 2008

Network-wide Adblock on Ubuntu + OpenDNS adblocking

Based on the article found here: http://notes.ozmonet.com/index.php?title=Network-Wide_Adblock

This method will work for both Internet Explorer and Google Chrome.
You must have lighttpd or apache installed to serve up replacement images or pages.

Install squid: sudo apt-get install squid

Configure: /etc/squid/squid.conf

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
log_ip_on_direct off
url_rewrite_children 5
url_rewrite_concurrency 0
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src
acl our_networks src
cache deny all
http_access allow our_networks
http_reply_access allow all
icp_access allow all
visible_hostname SERVERNAME
coredump_dir /var/spool/squid
Install squidguard: sudo apt-get install squidguard

Download and configure adblock for use with squidguard

wget http://easylist.adblockplus.org/adblock_rick752.txt
create a sefile with this inside it:

s,\$.*$,, g;

Create the expression list: cat adblock_rick752.txt | sed -f sedfile > expressions

In your squidguard folder /var/lib/squidguard/db, create a folder for adblock and copy the expressions file inside it.

sudo chmod proxy.proxy -R adblock

Edit your /etc/squid/squid.conf, add this at the end
redirect_program /usr/bin/squidGuard -d -c /etc/squid/squidGuard.conf

Edit your /etc/squid/squidGuard.conf file
dbhome /var/lib/squidguard/db
logdir /var/log/squid

src my_network {

dest adblock {
expressionlist adblock/expressions
redirect http://localhost/lol.jpg
acl {
my_network {
pass !adblock any
default {
pass none
redirect http://localhost/lol.jpg
Restart Squid and then configure your browsers to use the ip address of the server running squid, mine was, fire up your browser and surf ad riddled sites to test it.

Sign-up for OpenDNS, not only do they provide you with speedy DNS queries they also feature ad blocking. The good thing about OpenDNS is that you only have to configure your router and it enables all the features on every computer on your network.

Their DNS servers are down below:

If you need help configuring your computer or router please check their site.

Once you are done setting up your router login to their dashboard and go to settings \ Content Filtering. I enabled filtering for adware, parked domains and phishing.

Well that about covers it, enjoy add free surfing!

Sunday, August 10, 2008

Can't watch the Olympics on Linux!!!

Went to nbcolympics.com to watch my favorite events on the olympics and it wouldn't let me, so finally had to grab my laptop and see what the requirements were.

I knew I had flash properly configured on my LinuxMint pc but it required something else!!! Microsoft Silverlight!

Damn, what a fine way to muscle your way into people's computers, "wanna watch it online gotta install our fucking Silverlight".

Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

Tuesday, August 5, 2008

Songbird Folder Watch Ghost Feature!!!

Features | Songbirdnest.com
Set Music Watch Folders
Tell Songbird to watch a folder for new music and it will automatically add new tracks to your collection
Fuck songbird!!! How do you set folder watch when it is nowhere to be found in any of your options!!! And yet it is listed as one of your fucking features!!! I'm still on a quest to find a media monkey clone in linux or at least something better than shitty amarok or that rhythm box where is always declares my mapped share drive missing and has to rescan all my stuff every freakin time.

Songbird is promising indeed, but no FOLDER WATCH!!!

EDIT: Apparently I got into an old page when looking for information about songbird, anyway google "songbird folder watch" and I think that is the first one on the list and it is also from their website. http://www.songbirdnest.com/features, you guys might want to edit that page or put something like "available on final version".

I just like to say that I love the feature that you can download songs through skreemr and that is works almost flawlessly on Linux Mint. It just looks too much like iTunes, personally I think the iTunes interface sucks, if you're looking for inspiration and features please please please look at Media Monkey!

Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

Friday, August 1, 2008

MySQL backup script

I just basically run this script on a cron job every night.

#! /bin/bash
BACKUPDATE=$(date +%Y%m%d).sql.gz
echo "Start backup SMFSG"
mysqldump -u username -ppassword dbname | gzip -v9 > /destfolder/smfsg$BACKUPDATE