I decided to try Mythtv again after I failed installing Edgy recently on
another machine. I ran into the same problem again, but this time I figured
out the problem. This covers:
Ubuntu Alternate Mysql and Mythtv Setup
Setting up Lirc
PVR-350 TV Output
Wireless Networking
Openbox Setup
This time took less time than setting it up on Hoary, but it still took me many
hours. I also set up all of the plugins, which was well worth it. This
is described at MythtvPlugins.htm.
I also set up the PVR-350 TV output described below.
Some of the files I used are here. The lirc files aren't totally complete,
but work fairly well. The .txt extensions need to be removed.
To start with, I used the following to completely set up a new machine.
This doesn't need to be done, but I am starting over anyway. I followed
the guide at
https://help.ubuntu.com/community/MythTV_Edgy_Backend_Frontend
.
I ran into a few problems with these guides and they are described below.
I followed the instructions and created partitions like the following:
deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
I ran the following:
update
sudo apt-get update
sudo apt-get upgrade
I ran the ssh, xfs, and time steps.
I ran the ivtv steps at
https://help.ubuntu.com/community/Install_IVTV_Edgy
I decided not to install lirc since I wanted to see if I could get Mythtv running
first without spending time on the remote control. This can be added later.
I didn't install ati or nvidia drivers. I may add a TV-out card later.
I left the mysql password blank.
If you reboot at some point during the install, right click on desktop and select
Terminal emulator.
At end of installing mythtv software, in the invoke-rc.d initscript gdm,
action "reload" failed. When running gdmsetup, I got an error (gdmsetup:4311): libgnomevfs-WARNING **:
Failed to open session DBUS connection: Did not receive a reply. I don't remember
if I ever had to fix this.
I set up mythtv with
https://help.ubuntu.com/community/MythTV_mythtvsetup
I always have to get my password from
http://www.labs.zap2it.com/
The ubuntu guides don't say so, but at some point the steps must be run as the mythtv user.
I think the steps after "sudo /etc/cron.daily/mythtv-backend" must be run as the mythtv
user after giving mythtv user rights. See the
http://parker1.co.uk/mythtv_ubuntu.php notes below for setting password and giving rights.
If you don't do this, you will get "Access denied for user: 'mythtv@localhost'" whenever
starting the backend or filling the database with guide data.
I also had problems with the mysql database user name and password.
The mythtv user must have a mysql.txt file with the correct password. You may
be able to copy "/home/dave/.mythtv/mysql.txt" to "/home/mythtv/.mythtv/mysql.txt".
I found some notes to "grep DBPassword /etc/mythtv/mysql.txt".
My results were "zicxrgsl". Then I copied this into the mythtv mysql.txt.
Also, check the "/home/mythtv/.mythtv/mysql.txt" file and make sure the password
is the same:
To set it correctly in MySQL.
mysql -u root mysql
UPDATE user SET Password=PASSWORD('zicxrgsl') WHERE user='mythtv';
mysql> flush privileges;
mysql> quit
Then run mythtv-setup as the mythtv user
The first time I ran the myth stuff, I got access denied errors, so I ran
some stuff from
http://parker1.co.uk/mythtv_ubuntu.php
I changed the password
sudo passwd mythtv
I gave the mythtv user admin rights, and always made sure to run the Mythtv
stuff as the mythtv user.
Setting up Lirc
I ran the guides at
https://help.ubuntu.com/community/Install_Lirc_Edgy
Before going too far, look at the "Running 3rd Party Lirc packages" at the bottom for info
on problems with Ubuntu packages. Note that key is case sensitive.
I have a PVR-350, so I used i2c module for Hauppauge. Be sure to prefix
with lirc_ in hardware.conf. The first time I built, GPIO was enabled and failed
to build. I edited /etc/lirc/lirc-modules-source.conf to remove the gpio reference
and it built fine. Since I didn't have network or USB access at this time, I actually
copied the lircd.conf file to a cd-rom and mounted the cdrom on the target system to
copy the file.
I had lirc working by testing with irw, but it wouldn't work inside of mythtv.
I found a guide at
https://help.ubuntu.com/community/Install_Lirc_Edgy that = says
that the lirc shipped with Edgy doesn't work for my remote although this
is incorrect since mine works, but there were two lines at the bottom of the
guide that get a lirc file, although these mappings don't work well, they did
show me the path to a solution.
The /etc/lirc/lircd.conf button names must match the "button=" name
in /home/mythtv/.mythtv/lircrc.
The button names can also be found by running irw and pressing buttons
on the remote. I got some more mythtv config (keypress) names from
http://jonobacon.org/files/mythtv/lircrc. I will try to upload
my lircrc and lircd.conf at some point.
Currently I am getting a crash if I display the guide directly from watching
tv, although the guide doesn't crash if I exit tv and display it from the menu.
Configure your wireless router by connecting a wired connection. The Linksys router
address is "192.168.1.1", and can be entered directly in the browser address. The
default username and password is "admin" for both. Make the WEP Mandatory and make
the WEP key setting 128 bit.
Plug in your wireless USB. The nm-applet tool will run in the top right corner of
the start/menu bar. Click on it and say "Connect to Other Wireless Network".
Set the "Wireless Security" to "WEP 128-bit passphrase". Enter the same WEP name
as you entered in the router. Select "Shared Key" for the "Authentication" selection.
nm-applet requires a password for the default key-ring. I just used "mythkey".
Openbox Setup
There is an Openbox guide at
help.ubuntu.com/community/Openbox. The menu that displays when right clicking
on the desktop can be modified. https://help.ubuntu.com/community/OpenboxThe Openbox menu file is /etc/xdg/openbox/menu.xml.
I added the following to the menu.
mythfrontend
For some reason, the wireless plugged in during boot is a problem. It causes
timeouts during boot. The following change appears to have fixed this.
I was also getting "The greeter application appears to be crashing. Attempting to use a
different one". So I did the following: