All your (http,https) traffic belongs to squid

phoe6: hello, I have setup a squid proxy running at port 3128; I want all my HTTP as well as HTTPS to proxy to through this one only. what should I do? (the tutorials are too wide and I think I am impatient too :( )

rob0: um, hire someone to do it for you?

phoe6: :) well, it is just two lines rob0. :) I am trying it out.,

phoe6: Sorry, if I sounded offending with the question. Let me try it and ask specific quesitons.

rob0: np, that is how to do it: try things, read manuals, ask specific questions when you get stuck.

phoe6: well I just had to write a filter rule to accept packets through squid-user and any traffic to port 80, pot 443 to reject. by this way my browsing is through squid proxy only.


$iptables -t filter -A OUTPUT -m owner --uid-owner 13 -j ACCEPT
$iptables -t filter -A OUTPUT -p tcp --dport 80 -j REJECT
$iptables -t filter -A OUTPUT -p tcp --dport 443 -j REJECT


Helpful entry: http://stuvel.eu/transproxy

Manually removing a corruped .deb install

I was getting this error, on a corruped install of a debian package.
""The package 'printers-bangalore' is in an inconsistent state and needs to be reinstalled, but no archive can be found for it. Please reinstall the package manually or remove it from the system"

To solve this issue, I followed these steps.

1) I edited /var/lib/dpkg/status and remove all references of that package. (Note that this is a tricky step; in my case it was simple)

2) sudo dpkg --configure -a

World's longest domain name

Some Trivia. I liked the pi value domain name.

BTW, it goes like this:
1) Each domain name can be maximum upto 63 octets. (Octets is 8bits; can safely be considered 1 English Character).
2) The sub-division of domains like (cs.univ.edu;math.univ.edu) can go upto 127 levels.
3) But the entire domain name may not exceed 253 octets.

So, if we are to search for the longest domain name (including sub-domains), we will end up with 253 english character long string. ( That would be like a page of characters). :)

Upgraded Ubuntu from 8.10 to 9.04

This was on my Thinkpad T400 laptop, where Ubuntu is installed through Wubi.

After upgrade, X could not start. No GUI No Window Manager.

Followed the steps mentioned here.

The problem was with fglrx driver.

1) Go to Recovery mode during boot.
2) Choose to drop into Shell with networking support

and do

sudo apt-get remove xorg-driver-fglrx


Reboot. It started working for me.

First thing you will notice in 9.04 is the notification system it has. Nice eye candy stuff.