Category: Linux

  • Setting up Linux Gateway

    Using this, you can set up your linux pc as a home gateway for all the other systems. For instructions on how to do this, you may refer the below links:

    Iptables Tutorial (look at the the Example Scripts)
    Using Linux iptables or ipchains to set up an internet gateway / firewall / routerfor home or office.
    Setting up a Linux Home Gateway

    Please note to disable any other firewall services (such as Guarddog) if you are using your own custom rules or else the firewall will not work as expected.

  • About SSL/TLS

    SSL/TLS enables you to communicate securely with your server. Most of the major protocols such as http, smtp, pop3, imap can use SSL/TLS. While TLS can be used over the same port, SSL has to be run on a different port such as https, smtps, pop3s, imaps. SSL has been superseded by TLS. You can find more information about SSL/TLS on Wikipedia.

    StartCom Free SSL Certification Authority and CAcert.org are two CAs which issue free certificates.

  • Dynamic DNS

    Dynamic DNS enables mapping of a dynamic IP to a fixed domain name. This is especially useful if you connect using ADSL services such as those of Tata Indicom, Airtel or BSNL as they provide a dynamic public IP every time you connect to the Internet. A public IP is a IP to identify the machine in the Internet (in contrast to private IP which is limited to intranets). Again both public IP and private IP can each be either static or dynamic.

    While having a static public IP makes it easy to access your server on the Internet, static public IPs are costly. But using dynamic dns service, we can map a fixed domain name to a dynamic IP thereby making the server accessible just as in the previous case. Some of the services which offer free dynamic dns support are:

    While the first two services DynDns and No-IP are more popular, please note that the free version of their services enables mapping of only certain fixed sub-domains. If you want to map your own custom domain to a dynamic IP, then you shall have to purchase their premium service.

    But the last service zoneedit offers even this custom domain name mapping for free. It also has a very extensive DNS records management tool. The only limit is the maximum number of free zones you can add to their system is limited to five (even if you add and delete one zone you lose one credit and are only left with the ability to add four more zones). But for individuals and SOHO, this should be more than enough.

  • The Gnome Time Tracker

    Here is a quick review of The Gnome Time Tracker. Time tracking software is used to keep track of the time spent on various activities. This is especially a boon for freelancers who want to track the amount of time they spend on individual projects.

    While there might be other Time Trackers in linux, what especially made me like this software is its simple user interface and editing functionality. You can start and stop timers for your tasks. And if you had forgotten to start/stop the timer, you can later modify the times as well.

    One small feature which I have simple come to love in GnoTIme is its ability to stop the timer automatically when there has been no mouse/keyboard activity for a certain duration. And later it prompts the user whether to restart the timer and what to do with the inactivity time period.

    Be sure to check out GnoTime (if you use Linux) or other Time Tracking software (there will be many free ones in windows as well) if you want to efficiently track how your time is spent in front of the comp.

    A review of GnoTime can be found here.

  • May The Source Be With You

    May The Source Be With You

    No idea who the author is but this one is really funny!

  • Apache2 + Tomcat5 + mod_jk

    This is a straight forward step-by-step tutorial to set up Apache2 to server java content (jsp and servlets) through tomcat web server using mod_jk.

    1. Install apache2 along with dependencies.
      # apt-get install apache2

    2. Install tomcat5 along with dependencies.
      # apt-get install tomcat5

      Modify /etc/default/tomcat5 to set the correct path to JAVA_HOME directory (jdk needs to be installed and setup prior to installing tomcat). Then restart tomcat.
      # /etc/init.d/tomcat5 restart

      The tomcat5 webserver runs on port 8180 by default in Mepis / Ubuntu.

    3. Install the mod_jk connector and restart apache2 to load the module.
      # apt-get install libapache2-mod-jk
      # /etc/init.d/apache2 restart

      The beauty of installing the distribution specific libapache2-mod-jk package is that it comes pre-configured with all the necessary files and options for using the connector out-of-the-box.

    4. Next you need to edit /etc/apache2/apache2.conf and add the following lines: .

      ##### Begin Tomcat connector configuration #####

      # Where to find workers.properties
      JkWorkersFile /etc/libapache2-mod-jk/workers.properties
      # Where to put jk logs
      JkLogFile /var/log/apache2/mod_jk.log
      # Set the jk log level [debug/error/info]
      JkLogLevel info
      # Select the log format
      JkLogStampFormat “[%a %b %d %H:%M:%S %Y] ”
      # JkOptions indicate to send SSL KEY SIZE,
      JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
      # JkRequestLogFormat set the request format
      JkRequestLogFormat “%w %V %T”

      ##### End Tomcat connector configuration #####

    5. Now you have to add directives in /etc/apache2/apache2.conf or in the virtual host () section to tell apache which content has to be forward to tomcat. Below are a few examples.

      To send all jsp requests to tomcat, add the line:
      JkMount /* ajp13_worker

      To send servlet for context /jsp-examples:
      JkMount /jsp-examples ajp13_worker

      To send JSPs for context /jsp-examples/*:
      JkMount /jsp-examples/* ajp13_worker

      To send all but /cgi-bin/ requests to tomcat, add:
      JkMount /* ajp13_worker
      JkUnMount /cgi-bin/* ajp13_worker

  • Installing Ubuntu 6.06 LTS Dapper On Intel DG965RY via PXE / Network / USB

    This article mainly covers the installation of Ubuntu 6.06 Dapper (both Desktop Edition and Server Edition) on an Intel DG965RY motherboard. Anyone of you who have purchased this motherboard must have realized that most of the linux distributions fail to boot from the IDE CD-ROM. The reason for this being DG965RY uses Marvell PATA controller and this is not supported by anything but the bleeding edge kernels. So though the CD maybe booted initially, at the point where the kernel has to fetch the files from the CD-ROM the installation fails. The few linux distributions which seem to be working with this are Open Suse 10.2 and Ubuntu Fiesty 7.04 (as these seem to support the Marvell PATA controller).

    There were various methods I tried to install Ubuntu Dapper. I shall cover these methods below:

    • Network Installation (works with Server Edition and possibly Alternate CD, does not work with Desktop Edition)
    • USB Installation (works with Desktop Edition and possibly Server Edition and Alternate CD)
    • Installation using USB-Disk and CD-ROM (works with Server Edition and possibly Alternate CD, does not work with Desktop Edition)

    Requirments

    Intel DG965RY motheboard (or any board based on the Marvell PATA controller) + Processor
    SATA Hard Drive
    1 GB USB Disk and/or Network Card (depending upon the installation method)
    IDE CD-ROM (only for third installation method)

    Network Installation

    Oh yeah, this seems to be the most obvious choice if you have a PC running linux other than the one you are about to install on. Let us call the PC with DG965RY motherboard on which Ubuntu is to be installed “PC-I” and the second PC which acts as a server and holds the Ubuntu packages “PC-S” (IP: 192.168.2.1).

    For this installation, it is necessary that you have an extra network card as the onboard network interface is not recogniszed by the dapper kernel. So have the network card fixed to your PC before you start installation.

    Setting up server (PC-S) for serving install files

    1. Install and configure apache2 web server so that the install files can be served via http
      # apt-get install apache2
    2. Create the directory /var/www/ubuntu/.
      # mkdir -p /var/www/ubuntu
    3. If you have the ubutnu server edition iso image, mount it as below.
      # mount -o loop ubuntu-6.06.1-server-i386.iso /var/www/ubuntu/

      If you have the ubuntu server edition CD, then you can mount it as below.
      # mount /dev/cdrom /var/www/ubuntu/

    4. Access http://192.168.2.1/ubuntu/ from another PC to make sure the files are accessible.

    Starting Installation via PXE

    As per the instructions, we need to have a DHCP and TFTP server running. The DHCP server assings and IP and netmask to PC-I and also mentions the intitial file to be fetched from the TFTP server. The TFTP server provides the kernel for booting linux.

    Setting up TFTP server:

    1. First install the tftp server
      # apt-get install tftpd-hpa
    2. Next I suggest running it as a seperate service and not as an inetd service. So first open /etc/inetd.conf and comment out the line starting with “tftp”. Restart the inetd service (/etc/init.d/inetutils-inetd restart). You can check that the tftp service is not running using netstat (netstat -nl | grep 69).
    3. Now edit /etc/default/tftpd-hpa and set RUN_DAEMON=”yes”. Now restart the tftpd-hpa service.
      # /etc/init.d/tftpd-hpa stop
      # /etc/init.d/tftpd-hpa start
    4. Now you will have to download and extract the netboot files for dapper to the tftp repository.
      # cd /var/lib/tftpboot
      # wget -c -t 0 “http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-i386/current/images/netboot/netboot.tar.gz”
      # tar -xvzf netboot.tar.gz
      # rm netboot.tar.gz (optional)
    5. The tftp server is now ready to serve the files. In order to test it, you can install the tftp client on some other machine and try connecting and downloading the pxelinux.0 file from PC-S.
      # apt-get install tftp-hpa
      # tftp 192.168.2.1
      tftp> verbose on
      Verbose Mode On.
      tftp> binary
      mode set to octet
      tftp> get pxelinux.0
      getting from 192.168.2.1:pxelinux.0 to pxelinux.0 [octet]
      Received 13156 bytes in 0.0 seconds [inf bits/sec]
      tftp> quit
    6. In case you face any problems, you may need to check whether the service is running on it, listening on the approriate interface and also the firewall settings

    Setting up DCHP server:

    1. Install dhcp3-server
      # apt-get install dhcp3-server
    2. Edit /etc/dhcp3/dhcpd.conf (you may need to comment out everything else) and add the following lines. The “server-name” is the TFTP server from which the file “pxelinux.0” should be fetched. I belive the next-server is also used for the same purpose. For me, it was not necessary to add “next-server” to start the installation. But as it has been given in many sites, I am adding it here.

      ping-check = 1;
      subnet 192.168.2.0 netmask 255.255.255.0 {
      range 192.168.2.11 192.168.2.254;
      server-name “192.168.2.1”;
      next-server 192.168.2.1;
      filename = “pxelinux.0”;
      }

      Note: If you plan to do installation over internet, you will also have to add the default gateway and name servers.

    3. Add the appropraite interface on which DHCP server should be listening in /etc/default/dhcp3-server
    4. Restart the server
      # /etc/init.d/dhcp3-server restart

    Launching installation:

    1. Fix the network cable to the onboard network interface of PC-I. Boot PC-I, go to the BIOS Boot options and enable booting through network. Also set the boot priority of the network to be before that of hard disk. Now boot the PC. The PC should first get itself an IP automatically and then show the “boot:” prompt.

    Starting Installation via USB disk

    1. Download boot.img.gz and write it the USB disk (the USB should not be mounted)
      # wget -c -t 0 “http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-i386/current/images/netboot/boot.img.gz”
      # zcat boot.img.gz > /dev/sda
      # sync

      We are assuming that /dev/sda refers to the USB drive. It might differ.

    2. Once the USB floppy is ready, boot the computer, go to BIOS configuration and enable booting of USB disks and set its booting order. Save the changes and restart the computer. You should get the “boot:” prompt.

    Continuing Installation

    1. Now that you got the “boot:” prompt using either PXE or USB floppy and that the server (PC-S) is serving the installation files, you can now boot one of the four boot labels – “install”, “expert”, “server”, “server-expert”. Please note that all the boot labels should be passed the option “pci=nommconf” or else the installation will not proceed. Here is an example:

      boot: expert pci=nommconf

    Notes

    1. Due to some strange reason, when “install” or “expert” boot lables were used the installation hanged while downloading the installer components. In case you face this problem, please use “expert” and “server-expert” boot labels.
    2. If using PXE to start installtion, once the kernel is loaded, you will have to remove the cable from the onboard network interface and plug-in to the extra network interface card. If using USB floppy installation, you can plug-in the cable to the extra network interface card from the beginning of the installation itself.
    3. If you have started the installation via USB disk, make sure you have either used DHCP or manually configured the network for the PC properly.

    Related Links

    Hacking the Ubuntu Installation: Kicking Off the Network Install with a USB Drive
    Ubuntu Network Install
    PXE Network Booting on Ubuntu Linux
    Halis Way: Ubuntu dapper PXE network install
    Installation from LocalNet

    Install Ubuntu without CD-ROM
    Ubuntu PXE Install
    Linux on DG965RY HOWTO

    USB Installation

    Installation via USB Disk shall be useful if you want to install the Desktop Edition. Below are the steps to perform this.

    1. Blank the USB Disk using “dcfldd”. “dcfldd” is nothing but an enhanced version of dd and performs just like dd. But it also has some nice features like progress indicator, because of which I use it here (“dfcldd” can be installed using apt-get). Assuming /dev/sda is your USB disk, run the below command (the USB disk should not be mounted)
      # dcfldd statusinterval=10 if=/dev/zero of=/dev/sda
    2. Next create a FAT 16 file system
      # mkdosfs -I -F 16 /dev/sda
    3. Mount the Live CD and the USB drive.
      # mkdir -p /mnt/usb
      # mkdir -p /mnt/img
      # mount -o loop ubuntu-6.06-desktop-i386.iso /mnt/img/
      # mount /dev/sda /mnt/usb
    4. Copy over the files. This can take 30 minutes or longer. Also, ignore the errors about symbolic links since FAT16 does not support them.
      # (cd /mnt/img ; tar -cf – *) | (cd /mnt/usb ; tar -xvf -)
      # sync
    5. Set up the files for a bootable disk. Since SYSLINUX does not support subdirectories for kernel files, you need to move these to the top directory on the USB drive.

      Move the kernel files and memory tester
      # mv /mnt/usb/casper/vmlinuz /mnt/usb/vmlinuz
      # mv /mnt/usb/casper/initrd.gz /mnt/usb/initrd.gz
      # mv /mnt/usb/install/mt86plus /mnt/usb/mt86plus

      Move boot files to top of the drive
      # mv /mnt/usb/isolinux/* /mnt/usb/
      # mv /mnt/usb/isolinux.cfg /mnt/usb/syslinux.cfg
      # rm /mnt/usb/isolinux.bin

      Optionalally, you may delete Windows tools and ISO files to free space
      # rm -rf /mnt/usb/start.* /mnt/usb/autorun.inf
      # rm -rf /mnt/usb/bin /mnt/usb/programs
      # rm -rf /mnt/usb/isolinux

      All done
      # sync

    6. Edit the /mnt/usb/syslinux.cfg file and correct the kernel paths. Remove the paths /casper/ and /install/ wherever you see them. This is because you moved the files to the root of the USB drive in the previous step.
      # sed -r ‘s/\/casper\///g;s/\/install\///g’ syslinux.cfg > syslinux.cfg.tmp && mv -f syslinux.cfg.tmp syslinux.cfg
    7. Unmount the drive and make it bootable.
      # umount /mnt/usb
      # syslinux /dev/sda
      # sync
    8. Now plug in the USB, enable USB booting in the BIOS and boot from the USB. At the splash screen, do not forget to press F6 and add the “pci=nommconf” option to the kernel.

    By making minor changes to the above procedure it should be possible to boot Ubuntu Server Edition from USB as well.

    Notes

    1. You may have to choose the Safe graphics mode for starting GNOME

    Related Links

    Hacking the Ubuntu Installation: Installating a Full File System
    Installation from USB Stick

    Installation using USB-Disk and CD-ROM

    This is another interesting way of installing Ubuntu Server Edition. The idea behind this is to start the boot using the CD-ROM but the installation files are provided by the USB disk. Below are the steps to perform this.

    1. First write the server edition iso image to the USB disk. Assuming /dev/sda is your USB disk, this is done as follows:
      # dcfldd statusinterval=10 if=ubuntu-6.06.1-server-i386.iso of=/dev/sda bs=1M
      # sync

      If you have the Server Edition CD, you can run the below command:
      # dcfldd conv=noerror statusinterval=10 if=/dev/cdrom of=/dev/sda bs=1M
      # sync

    2. You can check if the image got properly written by mounting it.
      # mkdir -p /mnt/usb
      # mount -t iso9660 /dev/sda /mnt/usb
      # ls -a /mnt/usb
      # umount /mnt/usb
    3. Now fix the USB to the PC and boot the PC from the server edition CD. At the boot prompt as usual be sure to pass “pci=nommconf” option to the kernel.
    4. Once the kernel is loaded from the CD-ROM, the files are automatically loaded from the usb disk into the /cdrom directory.
    5. If the installer complains of a missing cdrom, you will have to create a cdrom device and link it to the USB disk. Assuming /dev/sdb is your usb disk (as /dev/sda will most probably be the SATA hard disk), do the following by pressing “Alt F2” and opening the console:

      # mkdir -p /dev/cdroms
      # cd /dev/cdroms
      # ln -s ../sdb cdrom0

      This will add a new cd-rom device. The installation should continue from here.

    Related Links

    Installing ubuntu on dg965ry motherboard

    Other References

    Ubuntu Various Installation Methods
    Core 2 Duo Support and Work-Arounds

    Related Information

  • Partition Backing Up and Restoring Tools

    Partimage

    Partimage is an excellent tool for taking backup of any partition. But please note that when you restore, the partition size should be the same as the original partition size. If it is less, the restore will not take place and if it is more the extra space will be wasted. Also the partition should not be mounted if you are taking a backup. As of version 0.6.0, partitions can be saved across the network.

    Dump/Restore Utilities

    Dump/Restore Utilities overcome some of the limitations of partimage but it can be used only on ext2 filesystem.

    Dump examines files in a filesystem, determines which ones need to be backed up, and copies those files to a specified disk, tape or other storage medium. Subsequent incremental backups can then be layered on top of the full backup.

    The restore command performs the inverse function of dump; it can restore a full backup of a filesystem. Single files and directory subtrees may also be restored from full or partial backups in interractive mode.

    For dumping a full partition, run:
    # dump -0vz -f /mnt/hda4/impdata.gz /dev/hda7

    For restoring the dumped file of a full partition, format the destination partition, mount it, enter the mount directory and run:
    # restore rf /mnt/hda4/impdata.gz

    For more info on how to use dump/restore, refer Backup with dump and restore on Linux mini-HOWTO

    Entire hard disk backup using g4u

    g4u is an excellent tool for taking backup of the entire hard disk. I had used it once which I have documented here.

  • TV Tuner software and remote control software

    XawTV and TVtime

    “xawtv” comes as the default tv watching program for Mepis. “xawtv” also features recording ability but I think a lot of work has to be done on this feature.

    But when it comes to quality and full-screen mode “tvtime” rules. TVtime is installable via apt. The Indian cable settings are:

    Default Television Standard: PAL
    Default Frequency Table : Europe
    Default Audio Standard : PAL-BG

    Other TV viewing software

    There are other software such as mythtv, freevo, mplayer, mencoder, kplayer, etc. available for watching TV. But I had problems in configuring most of them. MythTV is an excellent TV viewing application but i think it relies on some xmltv listings which is not available for India and hence I believe this application cannot be used here.

    Remote control

    Remote control support is provided in linux using LIRC. lirc can be installed via apt.

    Notes:

    1. While installing lirc, it will prompt you for two things. The first prompt is about the remote model which you are using. I am using Pinnacle Stereo TV Tuner card and the model to be selected for it is “Other serial port devices -> Pinnacle Systems PCTV (pro) receiver”.
    2. The second prompt is for the serial port to which your receiver is connected. Most PCs generally have only two serial ports. If you know whether your remote is connected to COM1 / COM2, you can select it right away. If you are not sure then just select the first option and while testing if the remote doesn’t work, you can either fix the receiver to the other serial port and test / you can modify the com port setting (DEVICE) in “/etc/lirc/hardware.conf”, restart the lirc daemon and then test.
    3. In order to test whether everything is working properly, you will need to run the command “irw” and press some buttons on the remote. The output should be similar as below (remember the lirc deamon should be running before you execute the command):
      # irw
      000000000000002f 00 Power PinnacleSysPCTVRemote
      0000000000000033 00 3 PinnacleSysPCTVRemote
      0000000000000032 00 2 PinnacleSysPCTVRemote
      0000000000000031 00 1 PinnacleSysPCTVRemote
      0000000000000034 00 4 PinnacleSysPCTVRemote
      0000000000000035 00 5 PinnacleSysPCTVRemote
      000000000000003f 00 Chan+Play PinnacleSysPCTVRemote
    4. Sometimes lirc may give problems working with your remote. It would be a good idea to get the latest sources from the website, compile, install and then test.
    5. Once your remote control is working fine, you can then configure lirc for tvtime. Instructions on configuring lirc for tvtime can be found here.

    Software tried and failed for Recording

    – Freevo (depends on xmltv listings)
    – MythTV (depends on xmltv listings)
    – vdr (needs a specific DVB card)
    – dvr (gave some error when executed)
    – vcr
    – streamer

    I am still looking for some TV capture software in linux. If anyone of you comes across such a software, kindly let me know.

    Recording using ffmpeg

    Upon looking for a way to capture from TV Tuner card, I posed the problem to one of my college mates Anurag Singh. He suggested the below method. Though I have not tried it out, you can give it a try if interested.

    Hi sir,
    Ofcourse I remember you. How are you? Ok, I’ll tell you in detail about the
    whole thing.

    We’ve set up two frameworks for recording. The first one is for
    news.iiit.ac.in. In this one, we decided a static list of channels for
    various 30 min time slots for the whole day. We wrote some shell scripts
    which execute periodically using cron and they record the required channel as
    one video each. For this, we had to find out the frequency of the required
    channel to be recorded. We used xawtv to tune the channels. Its done like
    this.

    We open xawtv. We press up and down arrow keys to change channel. Say for
    example we somehow reached ‘ZEE TV’. Now, if you want to note the frequency,
    right click on the xawtv window and select ‘Channel editor’. You can then see
    the channel frequency. Generally it will be a number from 1 to 25… or S01
    S02 or SE1 SE2 or E1 E2, etc kind of a string. Also just before you do all
    this, you need to select the ‘frequency type’ …. which can be selected from
    xawtv. For all channels in India, we need to select ‘europe-west’.

    Anyways, for all these tuning purposes also, we’ve written shell scripts,
    which can be used to create frequencies of all channels with human assistance
    though.

    Another part of the whole framework is tv.iiit.ac.in. This part was done to
    get IIIT a supply of videos on demand. It uses a php portal and a mysql
    database. It takes votes of people all 24 hours and finally records the
    channel which was voted the most. It also uses cron for the whole thing. Here
    also we needed to manually tune the channels which were available as choices
    to be recorded. These tuned frequencies keep changing when the cable operator
    switches then, so we need to keep monitoring the correspondence of channel
    name and frequency from time to time.

    Anyways, here are a few commands of help.

    v4lctl setchannel S01
    This command makes the hardware start receiving the channel at frequency S01.
    If you do ‘xawtv’ just after this, the first channel to be shown will be the
    one at S01.

    v4lctl setfreq 69250
    This command has the same effect as the previous one. This basically sets the
    frequency based on the value instead of the tag name. You can find the values
    and tag name mappings in /usr/share/xawtv. The europe-list file, along with
    what it includes, is of interest.

    ffmpeg -tvstd pal -vd /dev/video0 -deinterlace -ad /dev/dsp1 -minrate
    1000 -maxrate 1000 -b 1000 -bufsize 3000 -aspect 4:3 -s 640×480 -y -t 40
    something.avi
    This command can be used to record the telecast into a file ‘something.avi’.
    The option -t specifies number of seconds to record (40). -aspect specifies
    aspect ratio, -s specifies resolution, -y specifies allow overwriting the
    file if it exists. -vd option is used to select the video device
    (video0), -ad for audio device. The deinterlace option is to deinterlace the
    video as the input will generally be even and odd rows of video in alternate
    frames. The -b, -minrate, -maxrate, -bufsize options specify the bitrate of
    recording. -tvstd option is generally optional.
    Other interesting options for ffmpeg are
    -qscale <num>
    The num can vary between 1 to 35 and can be used in place
    of -b, -minrate, -maxrate, -bufsize options. 1 refers to best possible
    quality and 35 to the lowest quality.
    -sameq
    This options asks the encoder to use the same quality as source.

    We’ve tried all these options… and for good enough recording.. the above
    given ffmpeg command works well.

    The current news.iiit.ac.in is fully working.. and I can give you all the
    scripts to use it. But I think static recording wont be of much use to you.
    The tv.iiit.ac.in portal last worked in April. We’ve stopped working on it
    since then, but seems after a few tweaks it can function as well. But I
    guess, using cron, v4lctl, xawtv and ffmpeg, it’d be a matter of 20 mins for
    you to set up your own recording system, rather than debugging that whole
    portal. I’ll happily send it to you if needed.

    And do write back if you have more queries (which I am sure you’ll have as I
    am not very good at explaining :D).

    Regards,
    Anurag.

    शुक्रवार 01 सितम्बर 2006 22:09 को, आपने लिखा था:
    > > Hi Anurag,
    > > I hope you remember me. I am Rahul from the 2k batch. I needed a small
    > > piece of information. I have a Pinnacle PCTV Plus TV Tuner Card. I have
    > > tried umpteen number of times to set up PVR in linux for this card. But
    > > failed everytime. I tried Mythtv, Freevo, Xawtv, VDR, DVR, etc. but all
    > > in vain. Most of them require some XML listings while in some of them
    > > recording quality is very bad and some of them don’t even work. What I
    > > have heard is that a video recording solution has been set up in IIIT
    > > and you are part of the team. It would be very helpful if you can answer
    > > my below two queries:
    > >
    > > – Are there are any tools which are tried and tested by you using which
    > > I can record TV shows?
    > > – Can I use the software developed at IIIT for recording i.e. is it free
    > > and and in a usable state?
    > >
    > > Hoping everything is going fine on your end. Looking forward to a
    > > response …
    > >
    > > Regards,
    > > Rahul.
    > >
    > > P.S.: I am able to view TV using tvtime. So getting the card to be
    > > recognised and loading the appropriate drivers for it is not an issue.

  • Mail Clients, pop3 servers, configuration settings

    Mail Clients

    Thunderbird and KMail are two excellent mail clients for linux users. I tried Evolution (it seems to be very popular) but it kept crashing and hence I had to stop using it.

    KMail was excellent except for two problems – i. the composer does not wrap text automatically and ii. Support for IMAP folders is not very extensive.

    Thunderbird provided me almost all the features of KMail except for a missing system tray icon which I was easily able to add using the alltray package (installable via apt). Hence I decided to use Thunderbird as I use an IMAP mail as well along with POP3.

    Accessing Yahoo Mail Using POP3

    YPOPs! is an application which emulates a POP3/SMTP mail server and provides free POP3 and SMTP access to Yahoo! Mail.

    You need to download the source from the site, compile it and install it. Also YPOPs! source requires the mimepp library version 1.3.3.

    Assuming that you have set POP3 port to “11111” and SMTP port to “25251”, the below settings should work for KMail while creating a POP3 account for yahoo.
    POP3 – 127.0.0.1/11111, username: amaramrahul, Mail Encryption – None, Password Auth – Clear Text

    Accessing Hotmail using POP3

    Hotwayd is a utility which functions similar to YPOPs! and offers POP3 and SMTP access to Hotmail. Luckily hotwayd and hotsmtpd is available via apt. The below steps should be followed for accessing Hotmail via POP3.

    1. First install hotwayd and hotsmtpd
      # apt-get install hotway
      # apt-get install hotsmtp
    2. Add the below two lines in /etc/services:
      hotwayd 11110/tcp # Hotwayd Http-POP3 Gateway for Hotmail
      hotsmtpd 25250/tcp # Hotwayd Http-SMTP Gateway for Hotmail
    3. Add the below two lines in /etc/inetd.conf and restart the inetd service (/etc/init.d/inetd restart):
      hotwayd stream tcp nowait root /usr/sbin/tcpd /usr/bin/hotwayd
      hotsmtpd stream tcp nowait root /usr/sbin/tcpd /usr/bin/hotsmtpd
    4. Configure KMail with the below settings while created a Hotmail POP3 account.
      POP3 – 127.0.0.1/11110, username: amaramrahul@hotmail.com, Mail Encryption – None, Password Auth – Clear Text

    Accessing GMail using POP3

    Use the below settings in KMail to access Gmail via smtp.

    POP3 – pop.gmail.com/995, username: amaramrahul, Mail Encryption – SSL, Password Auth – Clear Text
    SMTP – smtp.gmail.com/25, username: amaramrahul, Mail Encryption – TLS, Password Auth – Plain

    Other utilites which provide similar functionality

    FetchYahoo is a perl script that downloads mail from a Yahoo! account to a local mail spool. It is meant to replace fetchmail for people using Yahoo! mail since Yahoo!’s POP service no longer free. It downloads messages to a local mail spool, including all parts and attachments. It then deletes messages unless requested not to. It can also optionally forward messages to a specified e-mail address and repeat with a given interval.

    Gotmail is a perl script to download mail from hotmail.com without user interaction. It is probably best run from a cron job.

    Getmail is a mail retriever designed to allow you to get your mail from one or more mail accounts on various mail servers to your local machine for reading with a minimum of fuss. getmail is designed to be secure, flexible, reliable, and easy-to-use. getmail is designed to replace other mail retrievers such as fetchmail. To see a sample configuration file for fetching gmail mails, click here.

    MrPostman is a java program that allows you to access Yahoo Mail, Hotmail and other webmail services directly from your favorite mail client. It converts the web pages of your favorite webmail provider to e-mails and provides the standard POP interface to your mail client. Currently supported webmail providers:
    * Hotmail
    * mail.com
    * Yahoo
    * gmail (Google mail)
    * indiatimes.com
    * juno
    * rediffmail
    * Gossamer mail
    * Outlook Web Access (Exchange 5.5)
    * Outlook Web Access 2003

    While it might be obvious that FetchYahoo and Gotmail are not POP3 servers, MrPostman is clearly a replacment for YPOPs! and Hotwayd. But why I did not choose it is because YPOPs! and Hotwayd work much better than MrPostman. Nevertheless it deserves a special mention here for the high number of providers to which it provides POP3 access.