Installing MythTV on an Intel Mac Mini using Ubuntu
From MythTV Official Wiki
This frontend will be a dedicated linux-based frontend, using spdif out for sound. These are very rough instructions, but i thought i'd get them down before i forget them.
If you dont have a HD or widescreen display, dont want to watch hd material, and dont want ac3 passthrough (you still need a digital receiver, since analog out doesnt work) it is really much the same as every other x86 box. The steps here just detail how I got everything working nicely, or at least nice enough for me.
Steps:
- Upgrade firmware
- Boot from Mac OS Install CD
- Open Disk Utility
- Format disk to two partitions, both UFS, size doesnt matter
- Make sure you change the boot type to MBR in the options dialog
- Restart, boot from ubuntu dapper install cd (hold down c)
- You cant use the graphical installer, so press escape and type:
server debian-installer/framebuffer=false
- Go through the install steps (repartition the drive again)
- elilo will fail to install, choose to install grub if you can, or continue without a bootloader
- reboot using ubuntu dapper live cd (you might be able to do this is you escape to a shell at the end of the install, i didnt try it that way though)
- mount your new drive (should be /dev/sda1)
- chroot to the drive
- run:
apt-get update apt-get install ssh libc6-dev make gcc lilo apt-get remove grub liloconfig lilo -M /dev/sda mbr lilo
- reboot, it should boot from the hdd, but the framebuffer might be screwed
- ssh into the box
- download http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.1.tar.bz2 and http://svn.sourceforge.net/viewcvs.cgi/*checkout*/mactel-linux/trunk/misc/misc/imac-2.6.16.1.patch and http://svn.sourceforge.net/viewcvs.cgi/*checkout*/mactel-linux/trunk/misc/misc/config-2.6.16
tar xvjf linux-2.6.16.1.tar.bz2 cd linux-2.6.16.1 patch -p1 <../imac-2.6.16.1.patch cp ../config-2.6.16 .config
- configure the kernel so that the imacfb device is disabled, and the i810 framebuffer devices are enabled
- build the kernel
- edit /etc/lilo.conf with new kernel and these options:
append="acpi=force libata.atapi_enabled=1"
- reboot, you should now have a shell to login to, plus smp support and other stuff
- install xorg server, 915resolution
- install mythfrontend, and plugins
- install xine etc
- use 915resolution to override resolutions if needed
- install cvs i810_drv (i'll add link later) if you want hd or want to use xine
- add line to Driver section in xorg.conf if you want to view hd:
Option "LinearAlloc" "16384"
- unmute IEC958 in alsamixer
- create /etc/asounnd.conf (or .asoundrc) (i'll add config later)
- setup xine to use 'default' device as passthrough
- setup keybindings
- make myth start on boot
- add mythtv user to /etc/sudoers