OUR NETWORK:TiVo Community TechLore Sling Community MediaSmart Home Pogoplugged See all... About UsAdvertiseContact Us

Free TiVo: Build a Better DVR out of an Old PC (Page 4 of 4)


7. Install Cygwin and Server Software

To finish up my TV PC, I wanted to add in the functionality of an HTTP server, FTP server, and an SSH server. I chose to do this in Cygwin, which is an environment for Windows that simulates the *NIX operating system interface. Many of the free software packages that are available for Linux are also available in Cygwin versions. I chose to use Cygwin for much of my server software because I like the Linux command-line interface, it's free, and I wasn't able to locate a SSH server available for Windows. Another side effect of using Cygwin is that I can install many of my favorite development tools, such as GCC, Perl, Flex, bison, and Python, and have those tools available if I need them for another project.

I chose to use the Apache webserver (httpd), ProFTP (proftpd), and OpenSSH (sshd) for my server installations. All of this software is available for download via Cygwin's standard installer (I didn't have to build any of them from source code). To set up these three programs, I used the instructions which install to the /usr/share/doc/Cygwin directory. The documents in this directory show you how to install these three programs as Windows services (they need to be services to run properly in Windows).

The only addition I had to make to these instructions was with HTTPd. To get this service to start without error, I had to go into the Windows service manager and set the service to logon as Administrator (instead of the default Local System). This can be done by right-clicking on My Computer and choosing Manage. From here, go to Services and Applications -> Services, and right-click and choose Properties on the "CYGWIN httpd (apache)" service. In the dialog that comes up, change the Log On from Local System account to the computer's Administrator account. Now the HTTPd service should start up correctly.

I also changed some of the default configuration for ProFTPd. The first thing I did was to remove Anonymous user access. Usually the authorized users for an FTP server are the same as the authorized users for the computer. But I didn't want everyone to have access to the entire system, so I used a configuration directive called AuthUserFile to set a passwd file for the FTP server only. I used a Perl script called ftpasswd to create this alternate passwd file and add users to it (the script is available

at http://www.castaglia.org/proftpd/contrib/ftpasswd.html). I also set up a feature called a root jail that allows you to restrict user access to a subset of the PC's hard drive(s). Next up, I set permissions on my directories such that FTP users could only write to their home directories and to an incoming folder. Note that the entire ProFTP configuration is controlled by editing the /etc/proftpd.conf file. For more info on modifying the proftpd.conf file, refer to the documentation at http://www.proftpd.org/.

8. Set up Firewall and Dynamic DNS Service

For remote access, I needed to configure the firewall on my D-Link router to allow connections to the FTP, HTTP, SlimServer, and SSH servers. After these ports were open, I added port forwarding, so that requests coming over these ports would be forwarded my TV PC.

Finally, I wanted to make it easier to access my servers from the outside world. As with many broadband users, I am at the mercy of my ISP's DHCP server. What this means is that the IP address of my network is dynamically assigned by my ISP and can change at any moment (in reality, it usually only changes every couple of months). I also have no DNS access, so I have to remember an easily-forgotten 12-digit number to get to my computer.

I found a free solution to this problem by using a Dynamic DNS service. Basically, a service like this allows you to configure a Domain Name for your IP address, so instead of typing "192.168.42.13" you can type something like "ken.isageek.org". These types of accounts also allow you to automatically update your IP address by using a small utility which checks your IP at set time intervals and updates your account automatically if anything changes. I chose to use http://www.dyndns.org/ for my service provider and a small utility called DirectUpdate, which runs on my TV PC to automatically update my IP address if it changes.

USE IT:

This project came together very well, and I now have a DVR PC that far exceeded my original expectations. The real beauty of this project is its versatility. If you have some additional programs or features you'd like to add, it's very simple to install the software and integrate it into the system using Girder.

Page « Previous 1 2 3 4

Discussion:    Add a Comment | Comments 1-4 of 4 | Latest Comment

January 6, 2009 10:33 PM

used dell 4300 dimesion p4 160 gig hd  radeon 9600 video ati tv wonder. monitor has built in tuner with coaxial fitting and vga . records ok video is fuzzy in center aprox 4 inches any ideas what is causing this. i am runnig direct tv spliting it on out to splitter in then one out to tv one to tv wonder help would be apperciated.

April 7, 2009 6:31 PM

I like Xbox gamepads they are $10 or less at gamestop and usually cordless ones are $12 or less there as well. These can be spliced to merge them onto a simple USB cord which I get off old USB mice when they wear out without ruining their Xbox plug. Just melt away the wire to expose the four wires (best done in a well ventilated area) and splice in the four wires needed. The xbox pads are nice and big for my large manly hands and very sturdy and durable.

You can also get an old Xbox at gamestop $50 usually and use some tricks to convert that into a media center using the XBMC package. Much cheaper albeit maybe not quite as cutting edge or high tech as a full blown computer media center. The advantage...Xbox is built to be quieter than your typical PC and much more power consumed with PC like 350 watts avg.

April 8, 2009 8:41 PM

? looking into pos converting a DELL Optiplex w/ W2000 to DVR, I have straight cable (no set top box) and a Netflix account.... Can the converted PC/DVR stand alone and play/record TV and also be able to play Netflix instant DVD's??

OR

Do I have to have a set top box?

Thanks

M

May 15, 2009 8:04 AM

The DRM type security they (Blockbuster and Netflix) are required to apply to their online movie viewing offers makes it rather gimicky at best. Pretty much all PC's should be able to view these although not through the convenient remote control of the media center software. You would almost certainly need to add the obligatory wireless keyboard (and mouse) to use the media center in a PC capacity to play these video offerings.

MediaPortal is one good way to go when using a PC as a media center or the usual Microsoft MCE operating systems which includes Windows(CP)MCE2005 and Vista Ultimate.

PopcornHour.com is another good option for watching old video and online streaming of stuff like Youtube to the TV without the need for the wireless keyboard and mouse. Although as of today it doesn't support HULU because this platform and technology continues to evolve. It almost certainly could have supported HULU at one time but seems people started releasing 3rd party tools which could capture the videos and allow people to store them and watch without the commercials so HULU changed how they coded their video streams - like I said it gets gimicky and they are really determined to make people either pay cash to watch or force you to watch the commercials - none of that store it so you can skip/not have at all or fast forward the commercials.

Discussion:    Add a Comment | Comments 1-4 of 4 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window