Sunday, March 20, 2011

Wall paper slide show on Kubuntu


Right Click on the Kubuntu Desktop and   Select "Desktop Activity Settings" Change the "Type" dropdown to read "Slideshow".
Select the Image folders you want to scan, and the time delay you want

How to block flash videos using Squid proxy Server

    Some times network admins want to block flash videos from  being played on the network. You can configure  Squid proxy server to do the same if we block the appropriate MIME type.
The MIME Type reply is generally set correctly so browsers are able to pass the reply to the correct module (image, text, html, flash, music, mpeg, etc.)

The MIME type for flash videos  is "video/x-flv". Creating an ACL to block this is easy.

First, create an ACL which matches the MIME type in question:
acl deny_rep_mime_flashvideo rep_mime_type video/x-flv
Then create a HTTP Reply ACL which denies any replies with that MIME type:
http_reply_access deny deny_rep_mime_flashvideo

If the content is blocked the following similar line will be seen in access.log:

1282485682.146    903 127.0.0.1 TCP_DENIED_REPLY/403 3143 GET http://tc.v15.cache3.c.youtube.com/videoplayback? - DIRECT/208.117.252.163 text/html

Saturday, March 19, 2011

Converting IMG files to ISO images

Some time you will find CD images with .img extentions. Most probably such images are created by clonecd, a windows program.

IMG files are raw-data copies of optical media and are primarily used  to  store  CDs with  odd  properties,such as sectors which need to have read errors when read. Conversion to ISO format removes this  information,as ISO format does not support this.

You can manipulate  such images if you install ccd2iso package.
   sudo aptitude install ccd2iso

  You can  convert  img files to iso files as shown below.
    ccd2iso file.img file1.iso
 IMG  files almost always include a SUB file, which contains additional data for the disc format, and a CCD file, which is a plaintext configu-ration file describing the disc layout.ccd2iso does not make use of  these files

  

Friday, March 18, 2011

How to Autostart a program at log in ( Ubuntu )

 You can start up a program or script automatically when you login by creating a ling to  ~/.config/autostart 
For example, to start Firefox at log in , create a symbolic link.
 $ sudo ln -s /usr/bin/firefox ~/.config/autostart