![]() |
downloads | documentation | HowTo | reporting bugs | links | Recent Changes |
What is a Wiki?See WikiWikiWeb If you don't know how to use a wiki see the WikiHowto ErfurtWiki is maintained by a loosely knit group of developers. Quick LinksRelated sitesContactPlease submit website bugs in the BugReports Contribute!Please file any wishes on UserSuggestions. Hosted By |
ATTENTION!!!! This page is not up to date!If you are installing an R5 version, you should follow the instructions listed at http://www.mysettopbox.tv/doc.html FIRST! A copy of these instructions can also be found here on the wiki at <em class="highlight marker searchword-0">KnoppMyth</em>R5PreviewInstall?. Also be sure to look for the current "Hints" (e.g. "highlight marker searchword-0?") thread in the !<em class="highlight marker searchword-0">KnoppMyth</em> Forums. These generally serve as the release errata documentation.<em class="highlight marker searchword-1">INSTALLATION</em>Knoppmyth R5.5 Install Video hosted on youtube shows just how easy it is to install R5.5! NOTE: North American users need to register at SchedulesDirect. Be sure to remember your login/password for use during mythtv-setup. DO THIS FIRST - otherwise, if you don't have this information available when it's needed it will throw off the rest of the setup instructions and your tuner won't know the correct channel/frequency information, meaning that when you try to 'watch TV' all you'll see is "snow" or noise if anything. 1. Set the system to boot from CD in your computer's BIOS. 2. Restart your system with the <em class="highlight marker searchword-0">Knoppmyth</em> CD in the drive. 3. At the splashscreen, press Enter at the boot: prompt if you do not have your computer connected to a TV via TV-out. If you do have your computer connected to a TV via TV-out, type tv at the boot: prompt and press Enter. This will set your video adapter to a resolution of 800x600. You will still need to edit /etc/X11/XF86Config-4 to change the refresh rate or you can destroy your TV. If you are using a 640x480 monitor type: <em class="highlight marker searchword-0">knoppmyth</em> screen=640x480 at the prompt. If your screen freaks out type Ctr-Alt-F1 to enter terminal mode. If you are using an LCD monitor and the screen appears scrambled use fb800x600 at the boot: prompt (you can put additional commands after this as mentioned in the F2 help) 5. Once the CD boots, you see six options: Options 5 and 6 are self-explanatory. Here are descriptions of the first four options. FrontendThis allows you to use the CD as a frontend if you have a MythTV backend previously set up. Using the CD as a frontend is dependent on the backend having already been configured with MySQL listening on the network. If you are running <em class="highlight marker searchword-0">Knoppmyth</em> as your backend server, you can configure it as follows: 1. Edit /etc/mysql/my.cnf and comment out 'skip-networking'. Before: skip-networking 2. Note that the backend will only accept the mythtv user with a password of mythtv. 3. Restart MySQL as root by opening an Xterm window and typing: su 4. As the mythtv user, reconfigure mythtv. In the Xterm window from step 3 above, type: mythtv-setup On the first screen of MythTV setup, change both instances of the loopback IP number (127.0.0.1) to the actual IP number of the backend server. Then press ESC to exit mythtv-setup, and restart mythbackend: su Now that the backend is set up correctly, boot the frontend system with the <em class="highlight marker searchword-0">Knoppmyth</em> CD. Select the frontend option, and enter your time zone information. In the Configure <em class="highlight marker searchword-0">Knoppmyth</em> Database dialog that follows, select No to change the current configuration. You should only need to change DBHostName from localhost to the IP number of your backend server: all other settings should remain at their default settings. In the next dialog, choose either DHCP Broadcast for an assigned IP number from your router, or enter your own IP settings. MythTV should then connect to the backend server. AutoinstallThis will automatically perform a complete <em class="highlight marker searchword-1">installation</em> of <em class="highlight marker searchword-0">KnoppMyth</em>. 1. Provide the requested information in the various dialogs that appear after selecting autoinstall. Note that the time zone and current time may not appear to be set at this point: you will have another opportunity to set it after the initial <em class="highlight marker searchword-1">installation</em> is complete. You will also be warned that <em class="highlight marker searchword-1">installation</em> will erase all the contents of the hard drive. If you get the error: /usr/local/bin/<em class="highlight marker searchword-0">KnoppMyth</em>-auto: line 608: / 1000000: syntax error: operand expected (error token is "/ 10000000") this is probably due to your harddisk not supporting DMA, you are using a serial-ATA (SATA) drive, or possibly you have your hard drive in ide channel 2 and CD in channel 1. In the Serial drive case, your disk is not /dev/hda as <em class="highlight marker searchword-0">KnoppMyth</em> expects it to be You may need to start again and use <em class="highlight marker searchword-0">knoppmyth</em> ide=nodma from the boot: menu and in the case of an SATA drive ide=reverse. If both fail, check whether your BIOS comes up with a SATA legacy or SATA compatibility mode or similiar to turn your serial ATA into a PATA drive. If nothing helps, get yourself a parallel ATA drive and connect it as master to your IDE controller 0. This error message and another scenario where the "format drive" screen <em class="highlight marker searchword-2">freeze</em>s at <em class="highlight marker searchword-3">14</em>% can be explained by the fact the the primary hard drive is not set as the Master drive on the primary IDE channel. Rearrange the cables and possibly change the drive jumpers to fix this (insure the jumper is not set to Cable Select but to Master). When you are asked for username - DO NOT USE MYTHTV - use your own name! The install already uses mythtv and using it again will cause problems. 2. After the initial <em class="highlight marker searchword-1">installation</em> is complete, the system will reboot into X, and <em class="highlight marker searchword-0">KnoppMyth</em> will open an Xterm window. When prompted, type the root password. If the boot messages indicate that aumix could not load, and you have a AC'97 based sound system, read the related item in the Tips section below before you go any further. 3. In the prompts that appear, choose i586 if you have a Pentium-class processor, or i686 if you have a Pentium Pro or higher (or Athlon or higher). You can also choose to install remote control support (LIRC), and if you have an nVidia graphics card, XvMC support (but NOTE the additional <em class="highlight marker searchword-1">installation</em> steps required below in steps 5-7). You will also re-select a time zone and date/time. 4. Configuration will proceed, and the front end will attempt to start for the first time. 5. If you have an nVidia graphics card, when the front end attempts to start (the Xterm window will disappear and the <em class="highlight marker searchword-0">KnoppMyth</em> desktop will remain on the screen), you will have to install the nVidia graphic drivers. To do this, press <CTRL><ALT><F1> to exit X. 6. To install the nVidia drivers. Log in as root, type cd /usr/local/bin then type ls *nvidia* and then type install-nvidia-xxxx-debian.sh where xxxx is the driver version included in your <em class="highlight marker searchword-0">KnoppMyth</em> distribution. 7. After the drivers have been installed, then type either: install-i586-x (for XvMC support on Pentium-class machines) NOTE:As described in: http://mysettopbox.tv/phpBB2/viewtopic.php?t=1229 XvMC only improves video display performance for systems that have an nVidia card, a PVR or HDTV card that performs hardware based mpeg decoding, and a slow CPU that otherwise couldn't keep up. You don't want to install it unless absolutely necessary since (at least in the past according to several mysettopbox.tv forum posters) it has led to frozen screens under a wide variety of provocations. If you have an nForce chipset or any nVidia graphics card, and want to use its TV out capability, you may want to edit /etc/X11/XF86Config-4 and add: Option "ConnectedMonitor" "TV" to do so, type "nano /etc/X11/XF86Config-4" #press enter Put the option line into the section with monitor, and REMEMBER to ALT-X and ALT-O to save your changes!! More options are available at: ftp://download.nvidia.com/XFree86/Linux-x86/1.0-4363/README.txt . There is also a sample XF86Config-4 file for nVidia and TV Out in the /etc/X11/ directory. Note to PAL users: This sample file is set up for NTSC. You need to change "NTSC-M" to "PAL-B" (for Germany, see other options at the above link). If you are connecting to a SCART adaptor, you also need to change "SVIDEO" to "COMPOSITE". If you have only a TV and no monitor, the first time X starts the screen will be unreadable. Press <CTRL><ALT><F1>, log in as root, execute "<em class="highlight marker searchword-0">KnoppMyth</em>-run -~" and answer all the questions. When it prompts for a reboot, Press <ALT><F2>, log in as root, create the XF86Config-4 file, install the nVidia drivers and X should be restarted automatically. Don't enter the root passwd. Instead <CTRL><ALT><F1> and then answer Y to a reboot. This should then continue as normal. 8. Finally, follow the directions for setting up MythTv that can be found in the MythTv howto (starting at about page 42 of the pdf version or section 9 "Configuring MythTV" of the html version). See for example: http://www.mythtv.org/docs/mythtv-HOWTO.html Because some of the functionality of setup is built into <em class="highlight marker searchword-0">Knoppmyth</em>, you need to know the following: a) After you have filled in the Backend configuration (the first set of screens brought up by the <em class="highlight marker searchword-0">KnoppMyth</em> installer, don't edit the channel information. b) When finished with the other setup screens, hit escape until you leave the backend configuration screens. At this time the installer will automatically run the mythfilldatabase code. c) When mythfilldatabase has completed, the frontend screens will be launched. d) If the grabber selected is configured in a terminal window, rather than within myth_setup, it is possible to switch to the terminal by pressing alt+tab. Once the configuration is complete the window can be hidden by pressing the button at the top left with a small dot on it. When myth_setup is exited then the window can be returned by double clicking the item on the desktop. (--peteredworthy--) e)For the uk use UK (Alternative) as the main uk grabber no-longer works (--peteredworthy--) Nvidia driver install with Myth version R5E50I got this from a fourm post after many hours of not being able to get the Nvidia driver loaded on R5E50 INSTALL Kernal source (Need to do this before installing video driver) wget ftp://<em class="highlight marker searchword-0">knoppmyth</em>.net/R5/linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb dpkg -i linux-source-2.6.18-chw-13_2.6.18-chw-13-10.00.Custom_all.deb cd /usr/src tar xjvf linux-source<tab> PREP FOR DRIVER INSTALL cd /usr/src/linux-headers-2.6.18-chw-13 cp -r . ../linux-source-2.6.18-chw-13 This merges the kernel-headers with the kernel-source, since the source by itself doesn't have the configuration files that were used. Next, on my system at least, I had to at least partially make the kernel again, because certain kernel module scripts weren't in a usable state until you did that. So I did the following: cd /usr/src/linux-source-2.6.18-chw-13 make wait about 20 seconds and then hit ctrl-c? Now we're ready to install the new driver. The easiest way to do this is the rename the startx script and reboot so that X is not even trying to boot up. mv /usr/bin/startx /usr/bin/startx.save reboot For some reason the NVidia install script isn't yanking out the original nvidia kernel module, so I manually pulled it out with this command: rmmod nvidia lsmod | grep nvidia The second command will let you verify that you no longer have the module loaded. Now we're actually ready to run the binary web hosting package from NVidia. It doesn't quite detect everything correctly, so issue the command as such: sh NVIDIA-Linux-x86-1.0-9746-pkg1.run \ --kernel-source-path=/usr/src/linux-source-2.6.18-chw-13 You will most likely get a message during the <em class="highlight marker searchword-1">installation</em> process that it had to make assumptions about the paths for X.org. The assumptions that it made are fine. Once the installer is finished you should be able to safely start X back up, but don't forget to rename your startx executable. mv /usr/bin/startx.save /usr/bin/startx Auto UpgradeThis will automatically upgrade <em class="highlight marker searchword-0">KnoppMyth</em> from an earlier version (R3 or R4). First, as root, run mythbackup. This backs up /etc/mythtv and /home/mythtv as well as the mythconverg database to /myth/backup/. When you do an Auto Upgrade, hda1 is wiped clean. The /myth partition is not erased, so if you have customized your /etc/X11/XF86Config-4 file, you can copy it there. After the Auto Upgrade is done and your system reboots, mythrestore is run, and your database and /home/mythtv files are restored. When performing an Auto Upgrade, the same options as Auto Install are offered... consult that section for information on how to choose the appropriate install option and info on how to properly configure TV Out. Manual InstallManual install is recommended only for advanced users. 1. If you only see 2 options, select "partition the drive." If there are more selections, use option 3 to partition your hard drive. Create 4 partitions as described below. It is very important to keep /myth on a separate partition from the rest of your filesystem; this will allow you to easily upgrade <em class="highlight marker searchword-0">KnoppMyth</em> in the future without affecting any of your recorded programs or other data.
o Partition one will be used for /. Make this no less than a 2 gig partition: this will leave plenty of room for growth. Make this bootable.
o Partition two for swap. No more than 256 megs is needed. Set the type to swap(82).
o Partition three for cache. 5 gigs should be plenty. If you have a PVR-250 or 350, you may want to make this bigger.
o Partition four for myth. Make this the rest of the drive.
Write the partition table to disk and quit (you may need to reboot).
2. Load config
Use a configuration path of /KNOPPIX/<em class="highlight marker searchword-0">knoppmyth</em>
3. Configure <em class="highlight marker searchword-1">installation</em>
Choose /dev/hda1 as the partition upon which to put <em class="highlight marker searchword-0">KnoppMyth</em>. Provide the requested information.
4. Start <em class="highlight marker searchword-1">installation</em>
This will take some time as all the files are copied to disk. Please be patient.
5. Reboot
NOTE: During the making of partitions, you can choose any fstype you wish, ext2 is recommended for the live buffer (hda3) and ext3 for the data (hda4).
# mke2fs -O sparse_super -m0 -i8000000 -L cache -M /cache /dev/hda3
This should yield some performance increase on /cache (used for the ring buffer)
# mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/hda4
(I highly recommend a journalling fs for /dev/hda4)
NOTE: For <em class="highlight marker searchword-0">Knoppmyth</em> R5B7, the /cache partition is no longer required. I recommend making a larger / partition (5-10 Gigabytes) and giving the rest to swap and /myth.NOTE: Some people, for various reasons, do not wish to install to hda (For example, some dual boot configurations based on windows installed on first disk, etc.).
If you are one such person, configure the <em class="highlight marker searchword-1">installation</em> as described above. Then:
+ In the main menu choose "Save" the configuration. + Delete the string in the save file prompt /KNOPPIX/<em class="highlight marker searchword-0">knoppmyth</em> and enter a writable path/name (recall that on booting from a knoppix CD, not all paths are writable). Suggestion: use /home/knoppix/<em class="highlight marker searchword-0">knoppmyth</em>.config + Press <CTRL><ALT><F3>. This will open a terminal window. Now execute vi or another text editor to make changes to the file (the path/name you chose above). Suggestion: If you are not familiar with vi, with your computer connected to a network, type apt-get install nano. This will automagically install a very small and very friendly text editor with obvious behavior and menu listed strokes for file save and exit. Now execute: nano /home/knoppix/knopmyth.config (if you choose that name above) and make the appropriate changes. + Change hda to hdb or whatever drive you'll be installing on, don't forget the drive map. Write and Quit. + Press <CTRL><ALT><F1> to get back to the main menu. + Load the configuration again using your path/file name choice. + Start the <em class="highlight marker searchword-1">installation</em>. Use this method at your own risk
After the system reboots it will start X and <em class="highlight marker searchword-0">KnoppMyth</em> will open an Xterm and ask for the root password. However DO NOT install it until after configuration has started and the frontend starts for the first time. Then exit the frontend by pressing <CTRL><ALT><F1>. Login in as root. install-i586-x will install the i586 package with XvMC. If you have a 686 class processor substitute 5 with 6. install-i586-lx will install the i586 package with native LIRC and XvMC. If you have a 686 class processor substitute 5 with 6. Typing install-nvidia.sh will then install the nVidia drivers. NOTE: If you have an nForce chipset or any nVidia card, before running the command below, you may want to edit /etc/X11/XFConfig-4 and add
Option "ConnectedMonitor" "TV" For more options, please see: ftp://download.nvidia.com/XFree86/Linux-x86/1.0-4363/README.txt A sample XF86Config-4 for nVidia w/ tv out is in /etc/X11/ Filesystem layout<em class="highlight marker searchword-0">KnoppMyth</em> uses the following filesystem layout: /backup (used to backup the database, /home and /etc, when upgrading)
/gallery (for your photos) /.thumbcache (holds the thumbs created for your gallery)
/game (for games) /nes (for Nintendo emulation)
/pc (for "regular" computer games)/roms (for roms) /screens (for screenshots) /screens (for screenshots)
/snes (for Super Nintendo emulation) /roms (for roms)
/xmame (for xmame) the binary is in /usr/games/xmame/screens (for screenshots) /cabs (for cabinet photos)
/music/flyers (for flyer photos) /hiscores (for Hi-Scores!) /history (for gameplay history) /roms (for your roms) /screens (for screenshots) /pretty (renamed symlinks to the .nuv files in /tv)
/tv (where recorded programs are kept)/video (for various video formats) /motion (MPEGs created by Motion are stored here)
/tmp (temp space used by MythDVD)Added software packages o IVTV: The open source drivers for Hauppauge PVR-250 and 350. I've included 0.19 as the default, the source for ivtv-0.10-pre2-ck77b is in /usr/local/lib. See http://ivtv.sf.net for more as well as http://www.poptix.net/ivtv/Jul-2003/msg00366.html for information on getting the TV out to work.
o LIRC: So you can use a remote! LIRC is compiled to support Hauppauge tuners/remotes. The configuration file in /etc/lircd.conf is for the Hauppauge gray remote. lircrc in /home/mythtv/.mythtv/lircrc is for the Hauppauge gray remote. For more information on LIRC, see lirc.org. Source is in /usr/src/. If you have a remote other than the gray Hauppauge remote, you need to recompile LIRC for that remote. In addition you need an lircd.conf in /etc/ that is for that remote(/usr/src/remotes.tar.bz2) you also need a lircrc in /home/mythtv/.mythtv/ for that remote.
o Motion: Motion is used to detected and record motion. It is configured to create these files in /myth/video/motion, so you can use MythVideo to view the files. You can also view live captures at http://<ip.of.knopp.myth>:8081/motion.html. Give a proper firewall/router configuration you can monitor your home from anywhere! The configuration file for motion is in /home/mythtv/.motion/motion.conf. To use MythVideo to use the clips, first go to For more information on Motion, please see http://motion.sf.net and take a look at the Motion guide.
o mplayer: Compiled on an Athlon XP, recompile for different architecture or if you require additional features. Source is in /usr/src/r4v4_src (NOT in /home/mythtv/r4v4_src as stated in the <em class="highlight marker searchword-0">KnoppMyth</em> install doc).
o NFS has been configured to export /myth. It is however not set to start on boot.
o Samba has been configured to export /myth. It is however not set to start on boot.
o Bootsplash is installed and configured. To use it after installing as root run add_bootsplash and reboot. If you don't see an image on boot, edit /etc/lilo.conf, change the top line to "VGA=788", save and exit, and run lilo.
o As root add_ati_remote will install the ATI remote kernel module.
Tips and Hints o <em class="highlight marker searchword-0">KnoppMyth</em> runs a script on each boot that checks for tuner cards. If changes are detected, <em class="highlight marker searchword-0">KnoppMyth</em> will update the modules configuration. If your card needs special options, then type more /etc/modutils/~<em class="highlight marker searchword-0">KnoppMyth</em>. This will tell you which file is used: make the changes to that file.
o If you have the system hooked up to a TV, then ENSURE that /etc/X11/XF86Config-4 contains:
HorizSync 30 - 50 VertRefresh 60 o If you have your box hooked up to a TV and, when it boots, you see a message saying "Press <RETURN> to see modes..." you'll need to edit your lilo.conf. At the top, it should say vga=<XXX>. Change it to vga=normal Don't forget to lilo -v when you are done ;)
o If your motherboard or sound card uses AC'97 sound hardware then you may find after booting your installed system that the boot message indicates that aumix could not load, and, executing lsmod as root does not display the sound card support modules. To fix this (at least in my case), as root, execute the command alsa_init with no arguments. This should indicate a successful install. When next you boot you should have audio modules loaded (confirm with lsmod executed as root again.)
o If you have problems or questions please visit the forum. Before asking, we ask that you search the forum as you issue may have been address already. You can also search the MythTV archive and the IvyTV archive.
o Most clocks on PCs are not terribly accurate so it's a good idea to set up a cron job to run update your clock each night. That way you won't miss the first couple of minutes of your favorite shows. I have a crontab entry set up to run ntpdate each night. (See TimeSynchronizeHowTo for more info)
These extra notes only pertain to R5 alphas.Extra notes: While tuner cards are detected, the modules may not be loaded. This is true for ivtv based cards. To work around, when the system first boots to X: <CTRL><ALT><F1>
Log in as root. LIRC is being problematic... If you have a PVR x50 make /etc/modprobe.d/lirc that looks like(may work for some):
Enjoy!
Cecil and Dale
Jarod's Guide for Fedora (not Knopp)For a good help writing writeup of installing Myth (using Fedora, not Knopp, admittedly, but still useful), take a look at http://wilsonet.com/mythtv, written by Jarod Wilson.
Watch TV doesn't work after rebooting (using firewire)For some reason, after a clean uneventful install and you are able to watch live tv, you are then unable to watch live tv after rebooting. I get the dreaded 15 seconds and no signal error. I found to fix this:
EditThisPage BackLinks PageInfo Pages like this Attachments RSS/Atom last changed on Sun Jul 25 14:00:46 2010 |
UpdatedPages· WhatRemoteYouUse last changed on Sat Jul 31 10:46:47 2010· WhatCardYouUse last changed on Sat Jul 31 10:45:00 2010 · TinnyAudioPVR150 last changed on Fri Jul 30 03:20:30 2010 · KnoppMythWiki last changed on Thu Jul 29 04:35:17 2010 · HowTo last changed on Wed Jul 28 09:27:02 2010 · HardwareAcceleratedVideo last changed on Tue Jul 27 09:15:10 2010 · MythVodkaHowTo last changed on Tue Jul 27 09:14:04 2010 · DisklessFrontend last changed on Tue Jul 27 09:13:29 2010 · CompileMythTVFromSVN last changed on Tue Jul 27 07:39:28 2010 · MythMusic last changed on Tue Jul 27 07:38:00 2010 · RRD Disk Partition Usage last changed on Sun Jul 25 21:34:12 2010 · UserSuggestions last changed on Sun Jul 25 16:25:51 2010 · Links last changed on Sun Jul 25 16:21:33 2010 · KnoppmythDownloads last changed on Sun Jul 25 14:02:11 2010 · KnoppMythInstall last changed on Sun Jul 25 14:00:46 2010 · TroubleShooting last changed on Wed Jul 21 07:03:13 2010 · webminhowto last changed on Mon Jul 19 07:34:28 2010 · PickingComponents last changed on Wed Jul 14 17:27:40 2010 · mplayerResume last changed on Mon Jul 12 22:54:24 2010 · R5A12DvdRipping last changed on Mon Jul 12 14:44:04 2010 · Additional Software last changed on Mon Jul 12 14:42:31 2010 · HowToUseMyth last changed on Mon Jul 12 14:41:09 2010 · x11vncHowTo last changed on Sun Jul 11 00:06:20 2010 · CountrySpecific last changed on Thu Jul 1 14:48:40 2010 · RepairingMythConvergDB last changed on Thu Jul 1 14:42:58 2010 · tv_grab_au last changed on Tue Jun 29 15:44:05 2010 |
| sitemap | | |