This iteration of the meeja box is based around an Acer Aspire Revo 3600L.
Preparation
- Downloaded mytbuntu-9.10-desktop-i386.iso to another computer,
- Wrote to a 1GB USB stick using unetbootin.
- Set up Revo, inckluding HDMI connection to the TV.
- Disabled "RevoBoot?" in the BIOS.
- Set boot order to USB stick, then HDD.
Installation
- Booted from USB stick.
- English language selected for installer.
- Install mythbuntu selected from boot screen.
- English language selected from the GUI installer.
- Europe / United Kingdom Time Zone selected.
- Suggested option of United Kingdom keyboard layout selected.
- Advanced partition selection was chosen.
- Existing partitions kept, but resized to create free space (~144GB from 160GB HDD)
- Created /dev/sda4 (extended partition) containing /dev/sda5 (10GB) for root, /dev/sda6 (130GB) for /home and /dev/sda6 (2.5GB) for swap.
- The two data partitions were kept as the default ext4.
- Mythtv uses /var/lib/mythtv as the default location for its data storage these days, but it makes sense to have the data stored in a (fairly) dedicated partition to avoid filling up the root partition. Mythbuntu also installs mythdvd and mytharchive by default which also need quite a bit of data storage. The necessary symlinks will be set up later.
- A user called meeja was created and the hostname set to meeja. The autologin option was selected.
- A Primary Backend w/ Frontend installation was selected.
- Additional services selected: VNC, SSH, MythTV?
- FreeCom? DVB-T USB Stick was chosen as remote control.
- Nvidia graphics driver was selected.
- Installation proceeded, rebooted once complete.
- Not run at the end of installation as firmware for DVB card not present, so setup would fail to detect capture card.
- After reboot, exit front end.
- Click "restricted drivers" notification, enable Firmware for DVB cards.
- All available updates applied.
Mythtv Setup
- General (Changes from defaults only):
- TV format: PAL
- VBI Format: PAL Teletext
- Channel frequency table: europe-west
- Storage Group Disk Scheduler: Balanced Free Space
- Cross Source EIT: yes
- Capture Card:
- New capture card selected
- Card type DVB DTV capture card (v3.x)
- Video Sources:
- New video source selected
- Called RadioTimes?
- Perform EIT scan selected
- Configured to use Freeview channels
- Input Connections:
- RadioTimes? input selected
- Full scan run
- 45 new non-conflicting DVB channels found and inserted.
- 5 new non-conflicting MPEG channels found and inserted.
- 19 new conflicting DVB channels found and inserted.
- All conflicting channels used suggested channel numbers
- Should probably not have inserted conflicting channels as they had to be manually deactivated
- Change storage directories
Mythbuntu Control Centre
- Enabled Medibuntu codecs etc.
- Disabled MythMovies?
- Password protected MythWeb?
Set up NFS mounts for central content
# Custom NFS mounts for mythtv
azal:/home/meeja/Videos /home/meeja/Videos nfs rw,hard,intr 0 0
azal:/home/meeja/Music /home/meeja/Music nfs rw,hard,intr 0 0
Mythfrontend Settings
- Chose ALSA:hdmi output
- Chose VDPAU High Quality playback
MythMusic?
- Set audio device to "ALSA:plughw:0,3" and ensure unmuted in alsamixer.
Radio Times Listings
- Configure the source to use the Radio Times xmltv grabber.
- The configuration script for the Radio Times grabber is no usable on the MythTV? backend setup screen.
- Run it manually from the console, answering "All" not just "Freeview" channel listings (Freeview does not have all the relevant channels in it.)
- Copy ~/.xmltv/tv_grab_uk_rt.conf to .mythtv/RadioTimes?.xmltv
- Run mythfilldatabase.
- Bitten by this bug, had to install packages from PPA: https://bugs.launchpad.net/ubuntu/+source/xmltv/+bug/471372
- Had to export all xmltvid from channel table and append to RadioTimes?.xmltv:
mysql -u root -p mythconverg -e "select xmltvid from channel" > foo.txt
for i in `cat foo.txt`; do echo "channel $i" >> output.xmltv; done
- Added mythfilldatabase to crontab to be run as mythtv user. Tried enabling automatic run from within frontend, but this didn't seem to work. (N.B. Although this setting is in the frontend configuration, the process is run by the user running the backend process (e.g. mythtv rather than meeja.) This means that the mythtv user has to have the correct environment to run the mythfilldatabase process. This meant linking /home/mythtv/.mythtv/RadioTimes?.xmltv to the same file in /home/meeja/.mythtv/ and copying /home/meeja/.xmltv to /home/mythtv/.)
- Useful link http://www.mythic-beasts.com/~mark/random/mythtv/
- Useful link http://www.mythtv.org/wiki/Uk_xmltv
Radio Data
- Created /home/meeja/.mythtv/tv_grab_uk_bleb.conf containing
bbc_radio1
bbc_radio1_xtra
bbc_radio2
bbc_radio3
bbc_radio4
bbc_radio5_live
bbc_radio5_live_sports_extra
bbc_world_service
bbc_6music
bbc7
- Edited xmltvid entries for radio channels to:
radio-1.bbc.co.uk
radio-2.bbc.co.uk
radio-3.bbc.co.uk
radio-4.bbc.co.uk
radio-5.bbc.co.uk
bbc_world_service
bbc_radio5_live_sports_extra
bbc_radio1_xtra
bbc_6music
bbc7.bbc.co.uk
- Add
#!/bin/bash
#put me in /etc/cron.daily/tv_grab_bleb
#chmod +x
#and change the path to tv_grab_uk_bleb.conf as appropriate
tv_grab_uk_bleb --config-file /home/meeja/.mythtv/tv_grab_uk_bleb.conf --days 7 --quiet | mythfilldatabase --update --file 1 -
to /etc/cron.daily/tv_grab_bleb
UPS
- gapcmon was installed, along with its dependencies, including apcupsd.
- /etc/apcupsd/apcupsd.conf was edited, the only change being to comment out UPSTYPE and DEVICE and add UPSTYPE usb
- /etc/default/apcupsd was edited and ISCONFIGURED=yes set.
Remote Control
Red Button Interactive TV
- Utilities/Setup? -> Setup ->TV-Settings->Playback Onscreen Display. Check the Enable Interactive TV button.
TODO
- Remote control - need to sort out the "colour" buttons
- disable mythdvd / optical disks
- information centre