Installing MythTV on Kanotix
Installing MythTV On A Kanotix Based Debian System From Scratch
Kanotix is one of the many Debian based Live CDs, which itself is based on the popular Knoppix Live CD, except Kanotix has the ability to be easily installed on to a harddrive, from which a fully working easy to maintain Debian system is had.
I have been using Kanotix for a while now, and my familiarity with it has led me to build (or re-build) several MythTV systems from it. With the latest release as of this writing, 2004-4, much of the software needed by MythTV at new versions are available directly on the CD with no need to upgrade:
- Kernel 18.104.22.168
- With amd64 or i386 versions
- X-Org 6.8.2
- ALSA 1.0.10rc1
- udev 0.079-1
This makes a great way to custom build a Debian based MythTV machine.
Because there may be differences between Kanotix32 and Kanotix64, I should mention that the following steps will be for Kanotix64.
Booting the Live CD
Assuming you have built the system, downloaded the Kanotix ISO, verified it, and burned it to a CD, go ahead and boot your system off the CD. At the GRUB menu choose the Extra Menu in your language of choice, then choose Console Only with DMA, etc ON.
Now you should see Kanotix loading, searching your hardware, etc. Once at the prompt we're ready to begin installation!
Setting Up the Filesystems
Many options are available for filesystems in linux, a few are particularly well suited for the MythTV application. It is recommended that you have a dedicated root partition, with other partitions for recordings, archival, etc. It is also recommended that you use a seperate harddrive for your system files, keeping your recordings and other media drives seperate.
Here we will use /dev/hda as the main system drive.
I will use ext2 for /boot, this is where the GRUB files will be installed, ext2 is a stable filesystem and GRUB easily boots off of it.
For the root filesystem, /, I will use XFS. It is fast and stable.
If you require a swap file one can be created at this point as well.
Once your at the prompt run 'cfdisk /dev/hda'. cfdisk is the "Curses based disk partition table manipulator for Linux". Once up you should see an empty entry for hda and selectable options at the bottom of the screen. First we will create the /boot partition, select New and create a 100MB Primary partition. Now select the free space, select New, and create a partition with the rest of your harddrive space, less any space for a swap partition. Finally, if you would like, create a swap partition. Select Write and once the partition table is written select Quit.
Create File Systems
Now lets create the file systems, first for /boot,
next, root, /,
and finally the swap partition if you have one,
Now we are ready to install Kanotix to the harddrive. We will be doing a custom install, so first run 'kanotix-installer' and select the first option to do the basic configuration. It will ask you various questions, don't worry about the partition and filesystem questions, we'll change these later. Once your back to the main menu, save the configuration to a file, I named mine install.cfg.
Now we need to edit the install.cfg file, vi is the available editor, its a rather strange editor, so here's a quick rundown:
- arrows move cursor around
- i = insert mode, basically lets you edit the file
- esc = escape from insert mode
- :, colon = enters menu mode, from here,
- q = quit, don't save
- w = write, save
- wq = write then quit
The install.cfg file is fairly straight forward, for brevity here's how mine turned out,
REGISTERED=' SYSTEM_MODULE SYSTEM_TYPE HD_MODULE HD_FORMAT HD_FSTYPE HD_CHOICE HD_MAP HD_IGNORECHE CK SWAP_MODULE SWAP_AUTODETECT SWAP_CHOICES NAME_MODULE NAME_NAME USER_MODULE USER_NAME USERPASS_M ODULE USERPASS_CRYPT ROOTPASS_MODULE ROOTPASS_CRYPT HOST_MODULE HOST_NAME SERVICES_MODULE SERVICES _START BOOT_MODULE BOOT_LOADER BOOT_DISK BOOT_WHERE INSTALL_READY' SYSTEM_MODULE='configured' # Determines if the system is a debian-derivate, a copy from CD or a nice mix of both # Possible are: knoppix|beginner|debian # Default value is: debian SYSTEM_TYPE='debian' HD_MODULE='configured' # Determines if the HD should be formatted. (mkfs.*) # Possible are: yes|no # Default value is: yes HD_FORMAT='no' # Sets the Filesystem type. # Possible are: ext3|ext2|reiserfs|xfs|jfs # Default value is: reiserfs HD_FSTYPE='jfs' # Here the Kanotix-System will be installed # This value will be checked by function module_hd_check HD_CHOICE='/dev/hda2' # Here you can give additional mappings. (Experimental) You need to have the partitions formatted yourself and give the correct mappings like: "/dev/hda4:/boot /dev/hda5:/var /dev/hda6:/tmp" HD_MAP='/dev/hda1:/boot /dev/hda2:/' # If set to yes, the program will NOT check if there is enough space to install knoppix on the sel ected partition(s). Use at your own risk! Useful for example with HD_MAP if you only have a small root partition. # Possible are: yes|no # Default value is: no HD_IGNORECHECK='yes' SWAP_MODULE='configured' # If set to yes, the swap partitions will be autodetected. # Possible are: yes|no # Default value is: yes SWAP_AUTODETECT='yes' # The swap partitions to be used by the installed knoppix. # This value will be checked by function module_swap_check SWAP_CHOICES='/dev/hda3' NAME_MODULE='configured' NAME_NAME='mythtv' USER_MODULE='configured' USER_NAME='mythtv' USERPASS_MODULE='configured' USERPASS_CRYPT='blahblah' ROOTPASS_MODULE='configured' ROOTPASS_CRYPT='blahblah' HOST_MODULE='configured' HOST_NAME='mythbox' SERVICES_MODULE='configured' # Possible services are for now: kdm cupsys smail ssh samba # Default value is: kdm cupsys SERVICES_START='ssh samba' BOOT_MODULE='configured' # Chooses the Boot-Loader # Possible are: lilo|grub # Default value is: grub BOOT_LOADER='grub' # If set to 'yes' a boot disk will be created! # Possible are: yes|no # Default value is: yes BOOT_DISK='no' # Where the Boot-Loader will be installed # Possible are: mbr|partition # Default value is: mbr BOOT_WHERE='mbr' INSTALL_READY='yes'
--Steveadeff 19:39, 10 January 2006 (UTC)