Difference between revisions of "Opensuse 11.0"
(→Install mythTV software on openSUSE) |
(→Install mythTV software on openSUSE) |
||
Line 121: | Line 121: | ||
;STEP (3 of 4) - requirements | ;STEP (3 of 4) - requirements | ||
− | |||
Install the prerequisite packages with zypper by copying and pasting the following into a terminal (as root) | Install the prerequisite packages with zypper by copying and pasting the following into a terminal (as root) | ||
Line 140: | Line 139: | ||
|[http://packman.links2linux.org/install/mythtv Install mythTV from packman] | |[http://packman.links2linux.org/install/mythtv Install mythTV from packman] | ||
|} | |} | ||
− | |||
− | |||
− | |||
= Configure openSUSE = | = Configure openSUSE = |
Revision as of 20:35, 8 June 2008
Other openSUSE version |
Contents
- 1 Introduction
- 2 Initial system setup and considerations
- 3 Install mythTV software on openSUSE
- 4 Configure openSUSE
- 4.1 Adding a mythtv user
- 4.2 Synchronize your system clock (NTP)
- 4.3 Disable services
- 4.4 Audio setup
- 4.5 Remote Control (LIRC)
- 4.6 Integrated LCD or VFD panel (LCDProc)
- 4.7 Analogue Video capture card (IVTV)
- 4.8 Digital Video capture card (TV-in)
- 4.9 Connect your system to a TV
- 4.10 Wireless Keyboard
- 4.11 Network Interfaces
- 5 User Experiences
Introduction
- Benefits of using openSUSE 11.0 for mythTV
- Best hardware support available today with kernel 2.6.25 - compared to openSUSE 10.3 (kernel 2.6.22) - what's new in 2.6.23, what's new in 2.6.24, what's new in 2.6.25
- Software installation (package management) is improved in openSUSE 11.0 and super fast. (libzypp)
- openSUSE 1-click install technology, packages or package bundles can be installed with 1 click (No need to compile)
- mythTV packages are available as a bundle with 1-click install on pacman
- restricted formats (proprietary, patented formats) like MP3, Codecs, encrypted DVD support etc. are available with 1-click install on opensuse-community
- proprietary video drivers for both AMD/ATI and NVIDIA are available with 1-click install
- additional packages for the advanced user are also available with one 1-click install from software.opensuse.org (e.g. lcd support)
- New and super fast installation, completing in roughly just 35 minutes (including mythTV software)
- Improved ACPI functionality for suspend and wake-up to reduce power consumption
- Good openSUSE, mythTV documentation and a friendly community ;-)
read more
http://gk2.sk/countdown/full.png
- About openSUSE
SUSE Linux, one of the oldest Linux distributions, was originally developed by a German company. SuSE is an acronym in the German language for “Software und System-Entwicklung” which translates as software and system development.
The openSUSE project is a community program sponsored by Novell. With the launch of the openSUSE project, openSUSE is now developed in an open model—public development builds, releases, and sources will be posted frequently and users will have access to the Bugzilla database for defect reporting.
For rich, reliable and secure home computing like mythTV, there's no better choice than openSUSE. It features an easy-to-install Linux operating system that includes most of the required mythTV components standard in the box. While the official mythTV documentation attempts to be as distribution-agnostic as possible, this document is geared specifically toward building a mythTV system on the openSUSE Linux distribution.
openSUSE, in combination with the PackMan (thanks Herbert Graeber for building the rpm's) repository, provides you with an easy installation and all the latest packages of the mythTV rpms, ivtv, lirc, xmltv, php, mysql, mplayer, xine and many more that are necessary for a fully functional mythTV box.
The following instruction might be specific for | openSUSE 10.3
|
. Please update if it is outdated. |
While mythTV can take quite some time to install, the result will be a fast box that can do nearly anything to entertain. Furthermore, the system is incredibly reliable, and if you leave it on, you can expect runtimes that last for years with little to no maintenance to be done (aside from updates if desired). We've also experienced that the WAF (Wife Acceptance Factor) for mythTV is enormous. As soon as you start playing with it, you need a second box because it becomes the most mission critical system in your house. I hope this document will help you in your quest for your ultimate mythbox. Remember this: "MythTV can be a time machine; hours can disappear for no reason at all."
- Hardware considerations
Installing mythTV all starts with good hardware. The first requirement is a machine capable of running openSUSE x86 or x86-64 and that can be connected to the Internet. You will also need a decent audio card and a video card, a hard drive with as much storage space as you desire, as well as a TV tuner capable of performing hardware-level video encoding. Many people run mythTV without any problems on older hardware; however, if you are planning on doing anything with high definition video or complex transcoding jobs, you will need to have sufficient memory and processing power. Check this wiki and the mailinglist before you purchase any new hardware.
You might also find it useful to look at http://www.silentpcreview.com/ if you build a machine for your living room, in order to get advice on low power-consumption, low noise setups.
- Join the community and get some help
- Subscribe to the mythTV users mailing list
mythTV user mailing list www.mythtv.org/mailman/listinfo/mythtv-users
mythTV user mailing list archive www.gossamer-threads.com/lists/mythtv/users/
- Chat with other mythTV users
IRC irc.freenode.net #mythtv-users
Initial system setup and considerations
- openSUSE 11.0 Media (DVD and/or CD)
For users new to Linux, the supported version of openSUSE may be the best choice—you'll get complete end-user documentation, installable media for x86 and x86 64-bit systems, plus 90 days of end-user installation support. Others just download openSUSE from one of the sources.
- Partitions and File Systems
openSUSE ships with a number of different file systems, including ReiserFS, Ext2, Ext3 and XFS, from which to choose at installation time. Each file system has its own advantages and disadvantages that can make it more suited to a scenario. Professional high-performance setups may require a different choice of file system than a home user's setup.
Earlier versions of openSUSE used ReiserFS as the default filesystem. From openSUSE 10.3 and on, ext3 is the default file system.
- FILE SYSTEM RECOMMENDATIONS
Use ext3 as your default file system. Consider using XFS for your video data. XFS is very good at manipulating and deleting large files and performs well on high-end hardware.
- OTHER RECOMMENDATIONS
Make sure you understand what hardware you have - especially if you have issues an need to Google.
lspci -v
and lsusb
and hwinfo
- ADDITIONAL INFORMATION
Install mythTV software on openSUSE
- INSTALL, THE EASY WAY
- STEP (1 of 4) - repositories
Add the required software repositories
- STEP (2 of 4) - multimedia
This will install the Restricted Multimedia Formats ranging from MP3 Codecs to playing Encrypted DVDs
Install Restricted Multimedia Formats for KDE users |
Install Restricted Multimedia Formats for GNOME user |
- STEP (3 of 4) - requirements
Install the prerequisite packages with zypper by copying and pasting the following into a terminal (as root)
The following instruction might be specific for | mythTV 0.20 or openSUSE 10.3
|
. Please update if it is outdated. |
sudo zypper in alsa audit-libs dvb flac gcc ivtv ivtv-firmware kernel-source libao libdvdread3 sudo zypper in libid3tag lirc mjpegtools mysql php5 python xine-ui xmms fame libcdaudio libfame lame MPlayer sudo zypper in phpMyAdmin pvm transcode xvid apache2 yast2-http-server apache2-mod_php5
- STEP (4 of 4) - mythtv
This will install the mythTV packages for both frontend and backend from the packman repository.
Install mythTV from packman |
Configure openSUSE
Adding a mythtv user
Create a mythtv user that you are gonna use to run the software.
sudo useradd mythtv -mG users,video,audio,cdrom sudo passwd mythtv
- AUTOLOGIN FOR THE USER
YaST - user management - expert options - login settings - check autlogin
The following instruction might be specific for | openSUSE 10.3
|
. Please update if it is outdated. |
openSUSE 10.3 Manual - Managing users with YaST
Synchronize your system clock (NTP)
To get the correct start and stop times for programming, it's very important to setup NTP (Network Time Protocol). NTP is a protocol designed to synchronize the clocks of computers over a network.
1. Configure the NTP Client
YaST -> Network Services -> NTP Configuration
2. Ignore the warning when selecting Automatically start, there is no significant delay.
NTP daemon -> During Boot -> Check "Use Random Servers from pool.ntp.org" Click Advanced Configuration -> Security Settings -> Check "Open Port in Firewall" -> Finish
Disable services
Disable some services you don't need
- Firewall
A basic MythTV box should not have any problems running with the firewall turned on however you will probably save yourself a lot of headaches if you disable it completely. This is especially recommended for new users. If you do need to enable the firewall, you will at the very least want to enable SSH, Secure WWW (HTTPS) and WWW (HTTP) checkboxes to enable those services.
If you plan to run separate front end and back end servers you will need to allow those ports through on under "Other Ports". Add TCP ports 6543 and 6544 to allow the MythTV protocol access through the firewall, and TCP 3306 for mysql.
- AppArmor
If you're not paranoid about security, I recommend to disable AppArmor on your machine.
- Disable other services you don't need
Beagle search engine from the control centre
Audio setup
Most sound cards are automatically recognized by openSUSE and do not need any specific configuration. Most of the time, everything is auto detected during the installation and usually just works.
- ADDITIONAL INFORMATION
Remote Control (LIRC)
The following instruction might be specific for | openSUSE 10.3
|
. Please update if it is outdated. |
LIRC is the package that allows you to decode and send infra-red signals of many commonly used remote controls.
openSUSE 10.3 ships with LIRC 0.8.2. To use LIRC, you need a configuration file for your remote control. A list of supported remote control is available on http://lirc.org/remotes/
If you can't find a configuration file for your remote control on the lirc page, it does not mean that your remote control is not supported but there is no configuration file for it yet. You don't have to be a developer to create a configuration file by using irxevent and mode2. More info about these LIRC programs can be found on http://lirc.org/html/programs.html
If you have created a new configuration file for a remote control, please send it to the LIRC team.
- REMOTE CONTROL CONFIGURATION FILES
- /etc/sysconfig/lirc = Hardware config file
You must install the lirc kernel modules package that corresponds to your installed kernel.
sudo zypper in lirc-kmp-default
Tip: You can check the kernel version from the command line with 'uname'. The word 'default' in the below example means a default kernel (in most cases the only other possibility is 'bigsmp').
# uname -r 2.6.22.13-0.3-default
You must edit this file so that lirc knows which device to use. For example, if you have a PVR-150 make the following changes:
LIRCD_DRIVER="default" LIRCD_DEVICE="/dev/lirc" LIRC_MODULE=lirc_i2c
See PVR150 Remote for more information.
Tip: If your lirc kernel module is working and detects the card properly you will see the device /dev/lirc appear when lirc is started. If that device does not appear check /var/log/messages and dmesg for clues. Also, it has been reported that a full cold boot is sometimes required to bring the PVR150's IR back to life even going so far as to remove the card from the motherboard for a few moments. Be sure to try this before taking any other drastic steps (such as compiling lirc from source).
- /etc/lircd.conf = LIRC remote control configuration file that maps scancodes to logic functions (like value to play, poweroff, pause etc.)
- lircrc = Application specific mapping of the remote functions (play, poweroff etc) to the app specific functions for mythTV, mplayer and or Xine
- Every application that you want to control with your remote (and has support for remote control) needs it's own lircrc configuration file.
- The lircrc maps the keynames defined in lircd.conf (example: poweroff) to an application specific function (example: exit application). Make sure that the key names in lircrc should correspond with the same button names in lircd.conf.
- APPS AND THEIR lircrc CONFIGURATION
- mythTV = /home/user/.mythtv/lircrc
- xine = /home/user/.xine/lircrc (TODO: check if this is correct)
- mplayer = /home/user/lircrc
Tip: Instead of creating an individual lircrc file for each application, you can create one master file and put symbolic links to this in the appropriate places. The command for creating a lircrc file in your /home/userid/.mythtv directory, symbolically linked to lircrc in your home directory, follows:
ln -s ~/.mythtv/lircrc ~/lircrc
- NOTE
The LIRC deamon (lircd) is not started automatically by default after a reboot.
- As root start 'yast2 runlevel', select lircd and make sure it's started at boot time.
The lirc deamon does not start without a configuration file. Please make sure your create the configuration file before you start lircd.
- CONFIGURATION TIPS
- Visit the http://lirc.sourceforge.net/remotes website and download a setup file for your remote.
- Copy/rename the file to /etc/lirc.conf.
- Start /etc/init.d/lirc deamon and try irw, irxevent, mode2
- TODO: howto get a sample ~/.mythtv/lircrc - google for a lircrc for your remote - try the mythtv remote control wiki pages
- there can be only one, make sure you have 1 lircrc file for mythtv. Create links to it.
- the ~/.mythtv directory is user specific and created in the users home directory when he starts mythfrontend for the first time and ask for an ip address of the backend. If you don't have a ~/.mythtv directory, start mythfrontend first. The directory is hidden, try ls -al.
example: /etc/lircd.conf
Play 0x00007be9
The lircrc is application specific, here your define that the 'Play' key is the same as function 'P'
(P is by default Play in mythfrontend)
example: ~/.mythtv/lircrc
begin prog = mythtv button = Play config = P end
- ADDITIONAL INFORMATION
- DEVICE SPECIFIC
Integrated LCD or VFD panel (LCDProc)
Mythfrontend (the integrated mythlcdserver) can control a LCD (Liquid Crystal Display) or a VFD (Vacuum Fluorescent Display) panel through the LCDproc API. LCDproc is a small piece of software that displays real-time system information from your Linux box on a LCD/VFD.
- STEPS
- Install LCDproc and configure your device
- LCDproc is not part of the openSUSE distribution, but a rpm is available:
-
or
LCDproc for openSUSE 11.0 - Configure mythfrontend to use the LCD/VCD
- The mythlcdserver is started automatically when configured in mythfrontend.
- You can find the setup options in Utilities/Setup->Setup->Appearance->LCD device display Check the Enable LCD device.
- TROUBLESHOOT/CONFIGURATION TIPS
Here are some tips that can help you find the best information to configure your hardware specific device information.
- Check (and update) the hardware specific section on the mythTV wiki
- The most important files of the LCDproc package
- /usr/sbin/LCDd - executable can be started with option -c /etc/LCDd.conf
- /etc/LCDd.conf - configuration file
Todo: Don't think LCDproc comes with a startup/init script. Please describe howto create a init script from the skeleton for the newbies
- NOTE
- As root start 'yast2 runlevel', select (?LCDd>) and make sure it's started at boot time.}}
- ADDITIONAL INFORMATION
- IMON (Silverstone Technology, Cooler Master, Thermaltake Technology, Zalman Tech, 3R System) mythTV wiki page
Analogue Video capture card (IVTV)
A TV capture card, also called a TV tuner card, is a device that receives TV signals and convertsthem into a digital format. With a minimum of one TV tuner card installed, you can watch and record TV by using your mythTV system. If you install a second TV tuner, you can record or watch TV from more than one channel at the same time.
If you have one TV tuner, for example the Hauppauge PVR-150, you can:- Record TV on one channel
- Watch live TV on one channel
- Watch a recorded show while you record another show
If you have two TV tuners, for example the Hauppauge PVR-500, you can:- Record TV on two different channels at the same time
- Watch live TV on one channel while another show that is on a different channel is recorded
- Watch a recorded show while you record two shows at the same time
mythTV supports a myriad of different video capture cards by utilizing the IVTV driver, a kernel driver for Linux and a driver for X11 for hardware based on Conexant's CX23415/CX23416 codec chip. The recommended analogue Standard Definition Cable (SDC) capture cards are the Hauppauge PVR.
- ADDITIONAL INFORMATION
The following instruction might be specific for openSUSE 10.3. Please update if it is outdated. openSUSE 10.3 ships with IVTV version 0.10.3 and ivtv-firmware 0.10.3, everything is auto detected on the x86 and x86-64 bit version of the OS. Please make sure you install the ivtv-firmware from YaST from the NON-OSS openSUSE repository.
- FIRMWARE
IVTV-based cards are hardware encoders, but the firmware does not exist in the card itself. Instead, you must point your hardware to an extracted version of the firmware on disk. One of the benefits of openSUSE is that it has the closed source ivtv-firmware drivers available in the NON-OSS repository. This Firmware is licensed for use only in conjunction with Hauppauge component products. More info about the license can be found in the license agreement included in the package.
Configuration Tips
The following instruction might be specific for openSUSE 10.3. Please update if it is outdated. - Check the IVTV console output with dmesg
dmesg | egrep -i '(ivtv|tveeprom|tuner)'
Your output should look something like this example from the Hauppauge PVR500:
ivtv: ==================== START INIT IVTV ==================== ivtv: version 0.x.x (tagged release) loading ivtv: Linux version: x.x.xx.x-default SMP mod_unload gcc-4.1 ivtv: In case of problems please include the debug info between ivtv: the START INIT IVTV and END INIT IVTV lines, along with ivtv: any module options, when mailing the ivtv-users mailinglist. ivtv0: Autodetected Hauppauge WinTV PVR-150 card (cx23416 based) ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes) ivtv0: This is the first unit of a PVR500 tuner 1-0043: chip found @ 0x86 (ivtv i2c driver #0) tuner 1-0060: chip found @ 0xc0 (ivtv i2c driver #0) tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0) cx25840 1-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0) wm8775 1-001b: chip found @ 0x36 (ivtv i2c driver #0) ivtv0: Encoder revision: 0x02060039 etc..
- The lspci command can give you more information about your card and tuner
lspci | grep -i itv
Your output should look something like this example from the Hauppauge PVR500: 03:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01) 03:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
- Check if the firmware is installed in the correct location
The following instruction might be specific for openSUSE 10.3. Please update if it is outdated. ls /lib/firmware -l
- license-end-user.txt
- license-oemihvisv.txt
- v4l-cx2341x-dec.fw
- v4l-cx2341x-enc.fw
- v4l-cx2341x-init.mpg
- v4l-cx25840.fw
- v4l-pvrusb2-24xxx-01.fw
- v4l-pvrusb2-29xxx-01.fw
- Check what version of ivtv is installed
To check what version is installed, issue the command:
rpm -qa | grep ivtv
Your output should look something like:
ivtv-kmp-default-0.10.3 ivtv-0.10.3
- The IVTV configuration is maintained by YaST and it is not recommended to edit the file directly. To see the configuration of the device
cat /etc/modprobe.d/tv
Your output should look something like this example from the Hauppauge PVR500:
alias char-major-81 videodev options i2c-algo-bit bit_test=1 # YaST configured TV card # Uog3.chCB1CyIbw9:WinTV PVR 150 alias char-major-81-0 ivtv # YaST configured TV card # ZvjX.sZc4ePByvkF:WinTV PVR 150 alias char-major-81-1 ivtv alias char-major-81-2 off alias char-major-81-3 off
- Reload the ivtv module manually
rmmod ivtv modprobe ivtv
- Check if the video devices are available to the system
ls /dev/vi* -l
Your output should look something like this example from the (dual tuner) Hauppauge PVR500:
lrwxrwxrwx 1 root root 6 Dec 29 06:27 /dev/video -> video0 crw-rw----+ 1 root video 81, 0 Dec 29 06:27 /dev/video0 crw-rw----+ 1 root video 81, 1 Dec 29 06:27 /dev/video1 crw-rw----+ 1 root video 81, 24 Dec 29 06:27 /dev/video24 crw-rw----+ 1 root video 81, 25 Dec 29 06:27 /dev/video25 crw-rw----+ 1 root video 81, 32 Dec 29 06:27 /dev/video32 crw-rw----+ 1 root video 81, 33 Dec 29 06:27 /dev/video33
The above is for a PVR-500. Here is what each device corresponds to in this case:
Tuner unit #1: - For your info
/dev/video0 – The encoding capture device (Read-only) /dev/video24 – The raw audio capture device (Read-only) /dev/video32 – The raw video capture device (Read-only) /dev/radio – The radio tuner device /dev/vbi0 – The "vertical blank interval" (Teletext) capture device
Tuner unit #2: - For your info/dev/video1 – The encoding capture device (Read-only) /dev/video25 – The raw audio capture device (Read-only) /dev/video33 – The raw video capture device (Read-only) /dev/vbi1 – The "vertical blank interval" (Teletext) capture device
- Check (and update) the hardware specific section on this page and the dedicated mythTV wiki pages
Hauppauge PVR-150
- Hauppauge PVR-150
place holder
.
Hauppauge PVR-250
- Hauppauge PVR-250
place holder
.
Hauppauge PVR-350
- Hauppauge PVR-350
place holder
.
Hauppauge PVR-500
- Hauppauge PVR-500
If you are lost; here are some screenshots of mythtv-setup for a PVR-500 in the Netherlands.
Digital Video capture card (TV-in)
..
Configuration Tips
- TROUBLESHOOT/CONFIGURATION TIPS
Todo: generic tips for DVB users. What needs tobe checked when working with DVB, where are files stored. See the analogue section for inspiration
1.) Check (and update) the hardware specific section on the mythTV wiki
"Unable to query frontend status"check: http://www.suseforums.net/index.php?showtopic=40881&hl=
Firewire
A firewire connection to your settopbox
Todo: The standard used to connect FireWire to your computer is IEEE 1394, IEC 1883. All the libraw1394, libavc1394, libiec61883 are included in openSUSE.
What I suggest you check before you start:1.) What Firewall interface does your PC have. Is it supported, see http://www.linux1394.org
2.) What brand is your settopbox Search on the mailinglist archive on the word in combination with firewire. http://www.gossamer-threads.com/lists/mythtv/users/
3.) Subscribe to the mailinglist and ask if people have experience with the combination (your brand cablebox and your brand firewire interface in the machine)
Please put your info here
Hauppauge WinTV Nova-T500 PCI
- WinTV_Nova-T_500_PCI
place holder
.
Connect your system to a TV
You can use several different types of connections to connect your mythTV frontend PC to a TV. The S-Video cable works well with most standard TVs. The picture below explains the different types of connections that can be used to connect yout TV.
The type of output your PC's video card can do, and the type of inputs your TV can handle are primarily what dictates what you should use to connect them. From highest- to lowest-quality, the order of consideration is: HDMI, DVI (both of which are digital), VGA, Component, S-Video and finally Composite (all of the rest are analog).
.
.
ATI/AMD
The following instruction might be specific for openSUSE 10.3. Please update if it is outdated. - Install the ATI driver with 1-Click Install
ATI driver from the opensuse-community
- Manual download and install the driver
- ADDITIONAL INFORMATION
NVIDIA
The following instruction might be specific for openSUSE 10.3. Please update if it is outdated. - Install the NVIDIA driver with 1-Click Install
If you have a new NVIDIA cards If you have a legacy NVIDIA cards List of Legacy NVIDIA cards
- Manual download and install the driver
- ADDITIONAL INFORMATION
Hauppauge PVR-350
- Hauppauge PVR-350
place holder
Wireless Keyboard
Once your Myth box has been setup you wont need to use your keyboard that much. Many users will often just SSH into their machine or use a remote desktop such as VNC to get access. Of course its also nice to have a keyboard directly connected, in which case a wireless keyboard is preferred. Have a look at the section on Wireless Keyboards to see which ones work.
.Network Interfaces
The main reason you will connect your mythTV box to the internet is because MythTV gets its program guide data over the Internet. If you don't happen to have ethernet cables around your house, you could use wireless (WiFi).
To configure your network wired or wireless card in YaST, select Network Devices>Network Card. After starting the module, YaST displays a general network configuration dialog. Choose whether to use YaST or NetworkManager to manage all your network devices. If you want to configure your network in the traditional way with the YaST, check Traditional Method with ifup and click Next. To use NetworkManager, check User Controlled with NetworkManager and click Next.For wireless support openSUSE ships ndiswrapper, madwifi and iwlwifi
The following instruction might be specific for openSUSE 10.3. Please update if it is outdated. openSUSE 10.3 Documentation - wireless LAN
- TIPS FOR INSTALLATION
The chipset is what determines which driver you need, not the manufacturer of the card. Here are a number of ways to find out. All the commands should be run as root.
Try this.
hwinfo --wlan
Otherwise use this command if you have a pcmcia card or an onboard card:
lspci
Or this if you have a usb card:
lsusb
This won't output very detailed information, but it'll give you a unique hardware ID, for example 046d:c01b. Search for it with Google or another internet search engine to find out which chipset is on the device.
- ADDITIONAL INFORMATION
User Experiences
--The Moose 17:38, 27 April 2008 (UTC) Started the page