Sunday, October 14, 2007

Ubuntu Mythtv

For some reason the frontend wouldn't connect to the backend after a reboot. I just upgraded mythtv 0.20.2 and found the backend was running w/
pgrep -l myth
Solution was to make sure the user mythtv had owned the recording directory
chown -R mythtv.mythtv /tv

Wednesday, August 22, 2007

Centos 5 Mythtv 0.20 Themes

MythTV is "themeable", meaning that the visual appearance of the program can be modified by the user without re-compiling or altering the program functionality. Download the MythThemes tarball from the website and untar it:

$ tar -xjf myththemes-0.20.tar.bz2
$ cd ~/myththemes-0.20
$ qmake myththemes.pro
$ su -
# make install
# exit
$

The theme will now be available in the mythfrontend Appearance section.

http://www.mythtv.org/docs/mythtv-HOWTO-11.html#ss11.2

Mythtv Plugins on Centos 5

tar xvjf mythplugins-0.20a.tar.bz2
cd mythplugins-0.20a
./configure --enable-all

http://www.mythtv.org/docs/mythtv-HOWTO-17.html

Download FLAC from http://flac.sourceforge.net and install:

$ tar -xzf flac-1.1.2.tar.gz
$ cd flac-1.1.2
$ ./configure
$ make
$ su
# make install
# exit
$
yum -y install cdparanoia

http://www.underbit.com/products/mad

I had to install all 3 by hand, it wasn't finding the libmad or id3tag even though there was an rpm already installed

I also had to do FLAC & CD Paranoia by hand. I'm probably just missing a variable which is why it won't find these packages. For CD Paranoia I had to use release 10. 9 kept giving me a make error for some reason.

cd /tmp/mythplugins-0.20a
./configure --enable-all
qmake mythplugins
make -j 2
make install

This didn't install mythmusic, flac was giving me an error.
I make uninstalled flac and reinstalled it with yum.
then the following worked

http://www.mythtv.org/docs/mythtv-HOWTO-17.html
$ cd ~/mythplugins-0.20
$ ./configure --disable-all --enable-mythmusic --enable-fftw --enable-sdl --enable-aac
$ qmake mythplugins.pro
$ make
$ su
# make install
# exit

Complete ting the mythweb installation

http://www.mythtv.org/docs/mythtv-HOWTO-14.html

Tuesday, August 21, 2007

Centos 5 Mythtv 0.20

http://www.mythtv.org/modules.php?name=MythInstall
http://www.mythtv.org/modules.php?name=Downloads

echo /usr/local/lib >> /etc/ld.so.conf
ldconfig

cd /tmp
tar xvjf myhtv-0.20.tar.bz2
cd mythtv-0.20
./configure
make -j 2
make install

cd database
mysql -u root -p < face="arial">mkdir /tv
chown dj.home /tv

rpm -Uvh ftp://ftp.pbone.net/mirror/ftp.centos.org/5.0/updates/i386/RPMS/qt-MySQL-3.3.6-21.el5.i386.rpm

mythtv-setup
mythfilldatabase
mythbackend
mythfrontend

Wednesday, July 4, 2007

SSH Public Key Authentication

#On the computer that is making the inital connection (Call this Computer A)
ssh-keygen -t rsa
ssh user@computer_b "cat >> .ssh/authorized_keys" < .ssh/id_rsa.pub

#On Computer B (authorized_keys needs to have 600 permissions or it won't work)
chmod 600 .ssh/authorized_keys

Debian WPA Ndiswrapper

#Edit /etc/network/interfaces with a text editor

#My Home AP
auto wlan0
iface wlan0 inet dhcp
wpa-ssid echo
wpa-psk secretwordhere
wpa-driver wext
wpa-key-mgmt WPA-PSK

Debian 4.0 Ndiswrapper

Dell 1350 Wireless Inspirion Laptop

#Update & Install ndiswrapper
apt-get -y update &amp;amp;amp;amp;& apt-get -y upgrade
apt-get install ndiswrapper-utils

#Remove the native driver they created
rmmod bcm43xx
#Stop it form loading on startup
echo blacklist bcm43xx >> /etc/modprobe.d/blacklist

#Find the inf file for your card
#http://ndiswrapper.sourceforge.net
#For the 1350 Wireless Card in my laptop
#ftp://ftp.us.dell.com/network/R83097.EXE
unzip R83097.EXE -d wireless
ndiswrapper -i wireless/AR/bcmwl5a.inf

#Add ndiswrapper to startup
echo ndiswrapper >> /etc/modules

#Ndiswrapper module
apt-get -y install build-essential module-assistant
m-a prepare
m-a a-i ndiswrapper
modprobe ndiswrapper

#Test
iwlist scan

Monday, July 2, 2007

Fedora 7 & WPA

Inspirion 5160 Dell 1350 Wireless Card

*Note this clobbers the conf file that was there
wpa_passphrase ssid > /etc/wpa_supplicant/wpa_supplicant.conf

Open the config in a text editor and delete the commented line which has your PSK in plain text. Also edit the line by using an example from /usr/share/doc/wpa_supplicant*/examples
vi /etc/wpa_supplicant/wpa_supplicant.conf

Start WPA
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

Make sure it's assocaited
iwconfig
ifconfig

Get an IP address
dhclient wlan0

Test
ping -c 4 www.google.com

Add to startup
echo "wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &" >> /etc/rc.local
cd /etc/sysconfig/network-scripts/
mv ifcfg-eth0 ifcfg-wlan0
Replace eth0 w/ wlan0 & delete the line with HWADDR
vi ifcfg-wlan0

Fedora 7 & Ndiswrapper

ATRPMS & Freshrpms repos (I started with livno & disabled it so my fedora is probably going to crash)
Dell Inspirion 5160 1350 Wireless something built in

Install Ndiswrapper
yum -y install dkms-ndiswrapper
ndiswrapper -i bcmwl5a.inf

Remove the sorry drivers they made for linux
rmmod bcm43xx-mac80211
echo "blacklist bcm43xx-mac80211" >> /etc/modprobe.conf

Load ndis
modprobe ndiswrapper
iwlist scan

Make it load on boot
ndiswrapper -m