Install packages:
$ sudo aptitude install tor privoxy
Add the following lines to relevant sections in /etc/privoxy/config:
... forward-socks4a / 127.0.0.1:9050 . ... listen-address 127.0.0.1:8118
( See this thread for detail.) Then
$ sudo /etc/init.d/privoxy restart
to make the change effective. In my browser proxy setting, use 127.0.0.1 as server and 8118 as port to use it.