Archive for June, 2009

Parental Control

We know what this is so lets skip the introduction. You need to have squid 3 installed.

How to Set up Parental Control.

Still using our squid proxy server, download dansguardian. In ubuntu:

sudo apt-get install dansguardian

After installing

gksudo mousepad /etc/dansguardian/dansguardian.conf

look for “UNCONFIGURED” and remove it, save the file then restart dansguardian.

sudo /etc/init.d/dansguardian restart

Porn materials are now blocked. Try it out.

To apply your proxy settings to a home network, configure the browsers to use your proxy server using the IP address of the server machine still using port 8080.


Say Goodbye to Internet Ads

To all you surfers out there. would it be nice not to be bothered (for once) by annoying Ads. Like when you visit say or, you will see a lot of ads on the side of that page which eats up a about 30% of your bandwidth. On top of that, it slows your system down and it is annoying as well. Oh I hate them so much that I wish i could scrape them off my screen.

Heres the trick. In Firefox, there is an add-on called Adblock plus. That does the trick but only if your using Firefox. But what about Opera, Safari, IE and the others. Adblock obviously wont work.

In order to do that, you need to install a proxy server and adzapper to filter out the ads using any browser.

The following intructions applies to Ubuntu Jaunty

Squid 3 and Adzapper Installation

  1. Open Synaptic Package Manager
  2. Search for “squid3 and adzapper” and mark for installation,
  3. Apply
  4. Then your done with the installation

Configuring Squid Proxy 3 and Ad-zapper

  1. On the terminal type “gksudo mousepad /etc/squid3/squid.conf” (less the quotes),
  2. This pulls up the squid3 configuration file. Now at the very top, type “redirect_program /usr/bin/adzapper.wrapper” (less the quotes), and on the bottom type “cache deny all”
  3. Save the file and restart squid3:  “sudo /etc/init.d/squid restart”
  4. thats about all you need to do with squid and adzapper.
  5. Now you need to configure your browser to point to your proxy server.
  6. In Opera its Tools->Preferences->Advanced->Net Works->Proxy Servers
  7. Assign proxy settings using as the address and 8080 as the port,
  8. Visit several sites and you will notice adz being filtered out. Have fun


  1. Configuring Squid and AdZapper to filter ads

    The Old Tech Guy

    The old tech guys when they first came out, only a hand full were then dominating the industry. Indeed the Old Tech guy remembered during those he was one person who overly dominated his work place with his craft. Imagine a lone Dbase programmer in the office who can automatically print documents, keep a database and retrieve it in an instant

    It was considered an achievement indeed having to run a whole days work with just a few codes, with such accuracy never imaginable in those days. It finally came to an end one day when by some stroke of bad faith, things did not go well and finally the old tech guy had to bow out and move to another place much less than what he desired for. And this is were it all began. The old tech guy began to loose what he thought to be a craft that would never be lost. He lost it as fast as he gained it and finally he saw himself with nothing more than just a memory of what it was before. In a mere instant, everything was lost.

    Days, weeks, months and years went by The old tech guy moved on and on. Nothing has changed except the drive to continuously think of better ways to do things. Programming was no longer his turf, and so the old tech guy decided to move on to what he thought was a level higher than just a mere encoder. Innovation, he said, is the key to success. And he was right, innovate, thats it. Later on he realized that the ability to think out of the box did pay off but what he didn’t know was that innovation had a price as well. The world of innovation and change are loomed with pirates and vultures waiting for dead meat to feast on. one good idea gets stolen and “re-invented.” Many Old tech fell into this and many ended up poorer because they not only lost money, they also lost their ideas.

    In the end, the old tech guy had to settle for tech job teaching old ladies, from a far away land who has never heard or seen a computer in her life, learn how to use the damn computer. Or an old man who thought that the computer is a type writer. But even in this kind of job, The old tech guy managed to innovate and apply ways to do things differently. And so he did. the old tech guy found an innovative way of doing things in the work place. Ha, a sure formula to success he said. And so he was right. It was such a bright idea so much so that in no time at all, word about an old tech guy with new things in mind, reached the president and top executives. Then the boss came along, shook the old tech guy’s hands and said “Thank you.” And I never saw her again.

    to be continued……

    Games streaming to a PSP

    I started to stream games to a PSP machine just to see if it will work.

    Here is the latest video of it

    Battle of Wesnoth Game Streaming to PSP

    What it can do:

    1) Stream and play 3D games to a mobile device PSP\Mobile Phone, using a Virtual Network Computing (VNC) client installed in it,

    This is not a screen capture applications were the mobile device merely acts like a second screen or a remote control to the PC. In fact, it does not render the image on the server screen at all. Someone maybe doing something else on the server like surfing, doing word/excel spread sheet or even watching movies while the server is streaming the game to a mobile device.

    2) Allows multiple session

    Allows several PCs and mobile devices to play games independently at the same time which is a feature that a screen scraper cannot do. Screen scraper applications can only create one session.

    3) Makes use of the server GPU and processor to stream 3D games to multiple devices at the same time. 3D images are rendered and buffered to the GPU, not the server screen. It is then converted to 2D images and streamed to the mobile device. Current streaming sessions are not rendered on the server machine but you may view the session if you wish. Mouse and keyboard events are transmitted to the server by VNC which eventually triggers a change in the image being rendered and streamed.

    Game Streaming

    Game streaming is much like video streaming but the difference is that the mouse and keyboard events can be captured by the server that triggers the image to change. the idea behind game steaming is to render 3D images to a pbuffer in the GPU memory, convert it to 2D object and stream the same to a client much like streaming video using VLC.

    A lot of companies are doing this kind of project. Streammygame is one of the and the other is Onlive. I sort of got interested in the subject so I decided to search for possible ways of doing it. A DYI if you will. So I came across several sights dealing with the same subject matter, I compiled several forum discussions on how to implement it on a LAN environment. Right now I still don’t believe that it will work over the Internet. Too much variables to consider. So I decided to do it on a LAN environment instead.

    Much of the work I have done on game streaming can be found here. The more essential part of that forum is how to install it so here goes.

    • DEB and RPM files can be found here
    • Install TurboJPEG first
    • Install TurboVNC and finally
    • VirtualGL

    TurboVNC and virtualGL needs to be installed on the client machine as well. Soon as that is done start the VNC Server on the host machine. Pull up an terminal window and issue this command


    If everything is installed correctly, the following reply will be issued

    New ‘X’ desktop is ubuntu:1

    Starting applications specified in /home/ranch/.vnc/xstartup
    Log file is /home/ranch/.vnc/ubuntu:1.log


    This means that an instance of an “X” server is running and is ready to stream a game. Note that you can create several instances (or sessions) to have several clients stream the game and play it independently of the others.

    Client Machine

    You need to download and install TurboVNC client on you client machine. After doing that, run the TurboVNC viewer. You will need to login to it to connect to the server. Then when the GUI of the host machine appears. open a terminal window and issue this command

    vglrun <openglapplication> -opengl

    This starts the applciation:

    Counter Strike 1.6 Linux installation using wine 1.1.23

    Installation of Counter Strike 1.6 using Wine Ver. 1.1.23, went on smoothly without any errors. However, the game crashes after a few seconds. So I un-installed wine and substituted the 1.1.15 Version and the game worked well. Was able to test the game but not on a LAN environment with other players.

    Similar experiences were observed by other testers as well. I am currently using Ubuntu 9.04 and with it is PulseAudio. This apparently caused the application to crash. And indeed when the sound starts, the games stops and eventually it crashes. That was clearly observed.

    What was not clear to me is when I reverted back to wine 1.1.15 without touching the Pulseaudio thing, i did work well. No hang ups no crashes.  Could it really be the PulseAudio thing that’s causing the problem here? or is it a bug in the newer version of wine.

    I did not disable the Pulseaudio because I did not want to mess up my sound system which appears to be running fine at this point. I decided to downgrade my wine installation instead. And that worked for me.


    My First Ubuntu Experience

    Highlights all my experience using Ubuntu as my operating system. This includes setting up the system, installing the drivers (GPU), email clients to server configuration and eventually video and game streaming.

    It all started when I joined a forum and started a thread about my experience with a Linux Distro called Ubuntu. Of course there are a hundred or more linux distros out there but I chose Ubuntu all because it is a lot easier to install on an existing Windows Machine.

    Anyway, I downloaded and installed Wubi,  which is basically a windows application that allows two operating system to be installed on the same partition. So i ran the wubi.exe file on a windows machine, downloaded the xubuntu version did a little processing then after that,  restarted the computer (a very well known practice indeed). Then I continued the installation process from there. Eventually I came up with a dual boot system where I can choose to either boot to Windows XP or xUbuntu. Most of the time of course I choose xubuntu.

    Why xUbuntu? well because it makes use of a light weight (using XFCE4) windows manager making it more responsive than the gnome version (Ubuntu) or the KDE vesion (Kubuntu). But under the hood, it is basically the same.

    Oh just a quick note, the machine I am using right now was donated to me by a friend who, to my mind, thought of the best way to dispose off excess baggage, if you will. Here is the general specification of that piece of hardware and I must tell you that it is modest in all respect.

    AMD Duron Processor 996 Mhz
    768 MB RAM
    Current installation: Win XP SP 3 Dual boot Ubuntu 9.04 (jaunty)
    80 Gig Hard Drive
    NVDIA Gforce 5 Series (5500)

    My objective then (and still is)  was to create a test environment for a possible switch from Windows. This was is inspired by another thread in a forum where it highlights the woos and sad state of the Internet cafe industry.

    Much of the work I have done so far is located here. It all stated here at PinoyGeekDotOrg so even if I am creating my own blog now, I still wish to keep that sight. Please take time out to visit and contribute to that sight. We welcome everyone especially those who wish to contribute valuable knowledge. You are always welcome.