MythTV on CentOS part 2

January 3, 2006

I finally got around to rebuilding my FC2 MythTV box with CentOS 4. For the most part, I followed Jarod’s Guide, but I did need to make some adjustments. This is mostly from memory, so let me know if you catch any mistakes.

I’ll follow Jarod’s numbering scheme:

6. Configure 3rd-party package repositories
Your /etc/yum.repos.d/apt.repo should look like this:
[atrpms]
name=ATrpms for Enterprise Linux $releasever - $basearch
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
enabled=1
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
[atrpms-testing]
name=ATrpms for Enterprise Linux $releasever - $basearch
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing
enabled=0
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
[atrpms-bleeding]
name=ATrpms for Enterprise Linux $releasever - $basearch
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/bleeding
enabled=0
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms

freshrpms does not have a EL4 repo so I went with Dag instead. /etc/yum.repos.d/apt.repo should look like this:
[dag]
name = Dag
enabled = 0
baseurl = http://dag.freshrpms.net/redhat/el4/en/$basearch/dag/
http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el4/en/i386/dag/
gpgcheck = 1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

I chose not to enable it and only use it when a package was missing, but you would probably be ok to just enable it. If you want to turn it on temporarily, you can use it like this:
# yum --enablerepo=dag install xine

7. Get and install video card drivers
nVidia drivers worked fine. (current version is 8178)

8. Audio setup
Haven’t gone there yet. OSS works out of the box.

9. Get and install MythTV
No problems.

10. Get and install capture card driver(s)
For ivtv-based cards (PVR-250/350, M179, MPG600, etc):
Atrpms install of IVTV failed for me. Fortunately, installing it from source was a snap.
# yum install kernel-devel ivtv-firmware
$ wget http://dl.ivtvdriver.org/ivtv/archive/0.4.x/ivtv-0.4.1.tar.gz
$ tar xvzf ivtv-0.4.1.tar.gz
$ cd ivtv-0.4.1
$ ./configue --prefix=/usr
$ make
# make install
# cp driver/*.ko /lib/modules/`uname -r`/kernel/drivers/media/video/

Now you should be able to use Jarod’s Guide staring at “Now, edit /etc/modprobe.conf to add ivtv-specific configuration info.”
Note: I did not need the tveeprom or msp3400 lines.

FireWire capture from a supported cable box:
I don’t have a firewire cable box, but I did want firewire support for my dv camcorder. The stock el4 kernel does not have the raw1394 module in it. You can install it with this line:
rpm -ivh http://oss.oracle.com/projects/firewire/dist/files/RedHat/RHEL4/i386/oracle-firewire-modules-2.6.9-22.0.1.EL-1286-1.i686.rpm

11. Get and install lirc
Haven’t gone there yet.

The rest should be by the book. One other note, el4 suffers from the same faulty urw-fonts package as FC3. This will fix it:
rpm -Uvh --oldpackage ftp://rpmfind.net/linux/fedora/core/2/i386/os/Fedora/RPMS/urw-fonts-2.1-7.noarch.rpm

I am testing running an Asterisk@Home install on the same box. I’ll let you know how it goes.


reloadevery for firefox 1.5

November 18, 2005

I started using Roundcube webmail, but my session would expire all the time. It needs an auto-reload feature similar to what gmail does. Before digging into the code, I remember seeing a Firefox extension a while back that had the same features.

I found it (autoreload), but it needs a simple change to work in Firefox 1.5. I made the change and here is the updated installer.


pandora radio sharing

November 11, 2005

I’ve been listening to Pandora Radio ever since they announced it would be free. It lets you build your own streaming radio station based on your likes and dislikes.

Their sharing feature is still a little lacking. Tagdora will allow people to publically share and tag their radio stations on del.icio.us. Join in and send Tagdora your favorite station.


free ipod nano’s

November 1, 2005

Apple 4 GB iPod Nano Black
I have had 4 of the 5 referals needed to get my free ipod nano for a few months. Just one more to go, help me out!
free ipod nano referral link


change port for freenx

November 1, 2005

I usually change the default port for ssh when it needs to be accessible from the internet. Only problem is that it breaks FreeNX, which is great for encrypted remote X sessions.

To change the port FreeNX uses to connect to sshd, change this around line 80 in /usr/bin/nxloadconfig
SSHD_PORT=22


inkscape on fedora core 4

October 27, 2005

I did a yum install inkscape, but everytime I started it I got this error:
inkscape: symbol lookup error: /usr/lib/libglibmm-2.4.so.1: undefined symbol: g_build_filenamev

yum install glib2 glib2-devel fixed it. These were downloaded from the yum repo at http://yum.nrpms.net


mounting windows 2003 share in Linux

October 16, 2005

Tried using the old sudo mount -t smbfs -o username=user,password=pass //server/share /mnt/directory, but I got this error
cli_negprot: SMB signing is mandatory and we have disabled it.
15201: protocol negotiation failed
SMB connection failed

I could have disabled SMB signing on the server, but I came across cifs. It works like a charm:
sudo mount -t cifs -o username=user,password=pass //server/share /mnt/directory


can’t open jpeg/picture attachments

October 5, 2005

I have received 4 calls in the last couple weeks from people that can’t open jpeg’s from Outlook. An error pops up saying that it can’t find the file. The common thread is that they all have Dell PC’s with Dell Picture Studio as the default profram to open jpeg’s. I have yet to see a reason why you should use their software over something like Picasa or the Windows Picture and Fax Viewer.

To fix the problem

  1. save the jpeg to your hard drive
  2. browse to the file location
  3. right click on the file and select Open With
  4. Select Choose Program... from the flyout menu
  5. Select Windows Picture and Fax Viewer
  6. Check Always use the selected program...
  7. Click OK

linksys wpc54g ver. 1.2 is really v2.

October 3, 2005

Here’s a fun one. I needed to reinstall a Linksys WPC54G PC card on a Windows 2000 laptop. On the Linksys site, there are 3 options, v1, v2, or v3. OK, so I flip the card over and check the version. It says ver. 1.2??
I go ahead an assume that v1 covers ver. 1.2. Installed the drivers and software, everything looked fine, but the card showed up as inactive.
I had to run, so I left it for the next day. That night I did a chat with Linksys tech support:

Hi, my name is James Ryan D. (25471). How may I help you?
Unknown: I have a WPC54G ver.1.2. Which drivers do I download? v1?
James Ryan D. (25471): Give me a few moments and let me check to see what the latest driver version is for your adapter.
Unknown: When I intalled the v1 drivers in Windows 2000 it says the the device is not enabled (or inactive) I can’t remember.
Unknown: The card is working fine using built in drivers on XP.
James Ryan D. (25471): Please download drivers if the the version 1./
James Ryan D. (25471): So why do you want to download drivers?
Unknown: huh…
James Ryan D. (25471): Why do you want to download drivers?
Unknown: Don’t have install disk. Need to use on Win2k laptop.
Unknown: Does “Please download drivers if the the version 1./” mean I should use the v1 drivers?
James Ryan D. (25471): Okay you can go to our download site and use the driver for wpc54g v1.
Unknown: Win2k sees the device as active in the device manager as v3. Then the linksys wireless management software says the card is inactive.
Unknown: What do I need to do to make the software see it.
James Ryan D. (25471): Please give me a few moments. I am currently doing some research on the issue and will return shortly. I apologize in advance for the delay.
James Ryan D. (25471): What driver did you use to install the card?
Unknown: v1
James Ryan D. (25471): Okay, what lights do you see on the card right now?
Unknown: Just power.
James Ryan D. (25471): How about we restart that 2K computer.
Unknown: done that… same thing
James Ryan D. (25471): Okay can we please go to the network connections window.
Unknown: Ok.
James Ryan D. (25471): Please tell me how many icons do we have there?
James Ryan D. (25471): And what are the names of those icons?
Unknown: Two. one for wired, one for wireless. LAC 2 is the wireless
James Ryan D. (25471): Okay.
James Ryan D. (25471): Have you tried uninstalling and re-installing the device?
Unknown: Yes.
James Ryan D. (25471): Is this wireless card working properly on other laptops?
Unknown: yes. works fine on my xp laptop
James Ryan D. (25471): Uninstall the device again, then try to run a regisrty cleaner software on that 2K laptop.

That confirmed I was using the right drivers at least. I’ll try again tomorrow. Again, doesn’t work. Tried scouring their ftp site for older drivers to rollback to. Still nothing worked.

At this point, I had spent more time than the card was worth in trying to get it to work. I finally Googled it. Found this page. Turns out ver. 1.2 is really v2. How convenient…


smoothwall flush dns cache

September 26, 2005

At home I use an old computer running Smoothwall for a firewall. It was the cheapest and easiest way for me to connect to my office via IPSec. In hindsight, I probably should have gone with a totally open source project like IPCop. One of these days, I’ll get around to switching it or maybe just running it all from my Linksys WRT54G.

Anyhow, I move a lot of domains around and it is helpful to be able to get dns changes quickly. To do this with my smoothy, or any other Linux-based firewall/DNS Server I imagine, as root:
killall dnsmasq
dnsmasq -r /etc/resolv.conf.dnsmasq