{"id":138,"date":"2006-09-20T22:53:04","date_gmt":"2006-09-21T03:53:04","guid":{"rendered":"http:\/\/bitpost.com\/news\/2006\/09\/20\/the-gentoo-media-center\/"},"modified":"2013-05-27T07:38:02","modified_gmt":"2013-05-27T12:38:02","slug":"the-gentoo-media-center","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2006\/the-gentoo-media-center\/","title":{"rendered":"*THE* gentoo Media Center"},"content":{"rendered":"<p>(Editor&#8217;s note: More gentoo MythTV installation notes&#8230; don&#8217;t expect order here, for that, see <a href=\"https:\/\/thedigitalmachine.com\/wiki\/index.php\/QuickMyth\">my wiki<\/a>&#8230;)<\/p>\n<p>OK, all my gear has arrived, I sent back the bad CPU and motherboard and got replacements, everything is humming (very quietly I might add!  what a <a href=\"http:\/\/www.newegg.com\/product\/product.asp?item=N82E16811129131\">sweet case<\/a>&#8230;), and I&#8217;m ready for the final (ha!) gentoo Media Center install.<\/p>\n<p>I&#8217;m using this gear:<\/p>\n<div class=code>\nAMD Athlon 64 X2 3800+ Manchester 2.0GHz Socket 939<br \/>\nMSI K8NGM2-FID<br \/>\n NForce 430<br \/>\n   GeForce 6150<br \/>\n     8 channel HD audio codec RealTek ALC880 (INTEL)\n<\/div>\n<p><!--more--><\/p>\n<p>I started with the gentoo 2006.1 live CD.  Apparently it is now vogue to use the live CD for the stage 3 &#8220;quick&#8221; install.  Fire it up and you&#8217;ll see two installers on the desktop, a command line version, and a GTK+ version.  Might as well go with the GTK+.<\/p>\n<p>You will get a chance to configure a few things along the way.  Resist the urge to tweak &#8211; I played with USE flags until I couldn&#8217;t see straight, only to have the installer puke because of them (one of the USB related flags I believe).<\/p>\n<p>SO, grab the live CD, pop it in, and fire up the GTK+ installer.  For the fastest ramp-up, select the networkless installation and use all the defaults.  You&#8217;ll get a chance to set up partitions &#8211; choose something similar to what is provided as the &#8220;recommended&#8221; setup (something like a 50MB boot partition, a 2GB swap partition, and a root partition that takes up the rest of the available space).<\/p>\n<p>Once that&#8217;s done, you can reboot and get to your hard drive installation of gentoo.  Try it out, why not!  But then I dropped back to the live CD, to add b-tree indexing to the directories of my ext3 filesystems.  Here, assuming your main ext3 root partition is \/dev\/sda2:<\/p>\n<div class=code>\ntune2fs -l \/dev\/sda2 | grep features  # if you see &#8220;dir_index&#8221; you can stop now  :><br \/>\ne2fsck \/dev\/sda2  # make sure we&#8217;re healthy before we start<br \/>\ntune2fs -O +dir_index \/dev\/sda2  # install the feature<br \/>\ne2fsck -Df \/dev\/sda2 # force a check, including building the b-tree indexes for directories\n<\/div>\n<p>OK.  Now, for reference, here&#8217;s the result of running net-setup (on the live CD):<\/p>\n<div class=code>\nlivecd ~ # cat \/etc\/conf.d\/net<br \/>\n# This network configuration was written by net-setup<br \/>\niface_eth0=&#8221;192.168.21.177 broadcast 255.255.255.255 netmask 255.255.255.0&#8243;<br \/>\ngateway=&#8221;eth0\/192.168.21.1&#8243;\n<\/div>\n<p>Also make note of \/etc\/resolv.conf, for cloning.<\/p>\n<div class=code>\nlivecd ~ # cat \/etc\/resolv.conf<br \/>\nnameserver 24.25.5.150<br \/>\nnameserver 24.25.5.149\n<\/div>\n<p>Next, I need to set things up so that gcc does a nice job compiling my system.  This means we edit \/etc\/make.conf.  But why leave the live CD environment?  You can just mount your partitions, and set up the gentoo environment, right from within the live CD.  Here&#8217;s make.conf for my AMD64 X2 system (the mounted file ended up at \/mnt\/sda2\/etc\/make.conf):<\/p>\n<div class=code>\n#MDM added -march=k8 to target AMD64.<br \/>\n#MDM Also added -mtune cause i saw it somewhere and thought \u00e2\u20ac\u0153what the hell\u00e2\u20ac\u009d<br \/>\n#MDM Also heard that -pipe is good (from the handbook: use pipes rather than temporary files (during) compilation)<br \/>\nCFLAGS=\u00e2\u20ac\u009d-march=k8 -mtune=k8 -O2 -pipe\u00e2\u20ac\u009d<br \/>\nCHOST=\u00e2\u20ac\u009dx86_64-pc-linux-gnu\u00e2\u20ac\u009d<br \/>\nCXXFLAGS=\u00e2\u20ac\u009d${CFLAGS}\u00e2\u20ac\u009d<\/p>\n<p>#MDM \u00e2\u20ac\u0153MAKEOPTS for a 2-CPU system\u00e2\u20ac\u009d<br \/>\nMAKEOPTS=\u00e2\u20ac\u009d-j3\u00e2\u20ac\u00b3<\/p>\n<p>ACCEPT_KEYWORDS=&#8221;&#8221;<br \/>\nUSE=&#8221; X alsa amd64 arts avi berkdb bitmap-fonts cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU vorbis xml xorg xv zlib&#8221;<br \/>\nFEATURES=&#8221;&#8221;\n<\/p><\/div>\n<p>Where did I get those USE flags?  Beats me.  Seriously, they are out of control.  I mean, it doesn&#8217;t get more direct than USE flags, they are the core of how you configure linux, but geesh, somebody put a leash on them.  At the very least, start organizing them, so I don&#8217;t have to wade through things like an &#8220;amd&#8221; use flag that applies to some tetris clone, or whatever.  Here are more USE flags, one from a previous MythTV install:<\/p>\n<div class=code>\nUSE=\u00e2\u20ac\u009dX mysql mythtv apache2 alsa dvb usb lirc nvidia mmx sse 3dnow avi crypt flac gif imlib jpeg mad mpeg oggvorbis opengl png quicktime sdl tiff truetype xmms xv zlib transcode xinerama net xvid v412 theora qt kde acpi directfb ffmpeg xine divx4linux v4l gtk gtk2\u00e2\u20ac\u00b3<\/div>\n<p>&#8230; and another from Matt, a Red Hat admin I was lucky enough to connect with lately.<\/p>\n<div class=code>\nUSE=&#8221;X509 a52 aac acl -arts -apm acpi alsa amr avahi audiofile bash-completion bluetooth bzlib bzip2 \\<br \/>\n -beagle -cups cairo cddb cdr cdparanoia cdrom cjk codecs curl curlwrappers dbus dbm dpms dri \\<br \/>\n divx4linux dlloader -dmx dts dv dvb dvd dvdr dvdread -esd eds encode exif expat \\<br \/>\n -f77 faac fame flac faad fam ffmpeg firefox fontconfig -font-server -fortran freetype gd gif gtk \\<br \/>\n -gaim -gksu -gimpprint glep glitz glx -gnome -gnomedb -gnutls gphoto2 -hal -hardened howl idea idn ieee1394 imap \\<br \/>\n imlib2 imagemagick innodb -ipv6 -jack ipod imlib -java javascript jpeg \\<br \/>\n -kde kdeenablefinal kerberos -krb4 lirc lcms ldap -libg++ live lzo lzw maildir matroska \\<br \/>\n mad -madwifi md5sum -motif mime mmap mmx mng -mono -mozilla moznocompose moznoirc \\<br \/>\n moznomail -mozsvg mp3 mp4 mpeg mpeg4 mplayer musicbrainz mysql network -nls nptl \\<br \/>\n nptlonly nautilus nvidia ntlm offensive ogg oss openal opengl oscar parse-clocks pcap -pcmcia \\<br \/>\n ofx pam_chroot pam_console pam_timestamp pcre png quicktime \\<br \/>\n pnp pthreads qt3 real rtc -samba sasl smime \\<br \/>\n snmp spreadsheet spamassassin sqlite sse sse2 stream svg sdl -svga -tcltk -tetex tiff theora threads truetype truetype-fonts \\<br \/>\n type1-fonts type1 usb utf8 userlocales unicode vcd vorbis vim -vim-with-x vnc wifi wmf \\<br \/>\n xfs xine xml xml2 xmlrpc xpm -xprint xrandr udev win32codecs -libcaca -speex xscreensaver xsl \\<br \/>\n -xmms xvmc xvid zeroconf mmxext 3dnowext 3dnow transcode x264 X xv&#8221;\n<\/div>\n<p>Yikes.  Well we&#8217;ll stab at it with this for now:<\/p>\n<div class=code>\n# MDM My very own compilation, from these places:<br \/>\n#    http:\/\/gentoo-wiki.com\/HOWTO_Setup_MythTV<br \/>\n#    http:\/\/gentoo-wiki.com\/HOWTO_Setup_Kernel\/System_for_MythTV<br \/>\n#    my previous installations<br \/>\n#    default live CD install<br \/>\n#    Matt<br \/>\nUSE=&#8221;X 3dnow 3dnowext alsa amd64 apache2 arts avi bash-completion berkdb bitmap-\\fonts bzip2 bzlib cairo cddb cdr cdparanoia cdrom cli codecs crypt cups curl cur\\lwrappers dbus dlloader dri dvb dvd dvdr dvdread eds elibc_glibc emboss encode e\\sd fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal ieee1394 i\\magemagick imlib innodb input_devices_evdev input_devices_keyboard input_devices\\_mouse ipv6 isdnlog javascript jpeg kde kerberos kernel_linux ldap libg++ lirc m\\ad md5sum mikmod mmx mmxext -mozilla mp3 mp4 mpeg mpeg4 mplayer mysql mythtv net\\ ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pcre pdflib perl \\png pnp ppds pppd python qt3 qt4 quicktime readline real reflection samba sasl s\\dl session spell spl sse sse2 ssl stream tcpd tiff transcode truetype truetype-f\\onts type1-fonts udev unicode usb userland_GNU v41 vcd vnc vorbis xfs xinerama x\\ml xmms xorg xscreensaver xv xvid xvmc wifi win32codecs wmf zlib&#8221;<\/p>\n<p># MDM the &#8220;new&#8221; Xorg way.. WHATEVAH!!<br \/>\nINPUT_DEVICES=&#8221;keyboard mouse&#8221;<br \/>\nVIDEO_CARDS=&#8221;nvidia&#8221;\n<\/p><\/div>\n<p>Now let&#8217;s go get down and dirty with a reboot into our very own gentoo installation.  Once we&#8217;ve done that, we&#8217;ve got to set up networking.  In my case, that meant tweaking \/etc\/conf.d\/net, which for some reason does not use the same formatting as the live CD.  Oh well, no big deal, here&#8217;s the updated format.  To directly set up the network:<\/p>\n<div class=code>\nlocalhost ~ # ifconfig eth0 192.168.21.177 broadcast 255.255.255.255 netmask 255.255.255.0 up<br \/>\nlocalhost ~ # route add default gw 192.168.21.1\n<\/div>\n<p>To make the settings stick, put them here:<\/p>\n<div class=code>\nlocalhost ~ # cat \/etc\/conf.d\/hostname<br \/>\nHOSTNAME=&#8221;tdm3&#8243;<\/p>\n<p>localhost ~ # cat \/etc\/conf.d\/net<br \/>\nconfig_eth0=( &#8220;192.168.21.177 broadcast 255.255.255.255 netmask 255.255.255.0&#8221; )<br \/>\nroutes_eth0=( &#8220;default gw 192.168.21.1&#8221; )<\/p>\n<\/div>\n<p>OK, I&#8217;ve got network, whoop!  Time to grab a beer&#8230; whew!  Carrying on, we&#8217;re going to compile our very own kernel now, because we are super bad ass and unstoppably invincible and all that good shiznit.  Start <a href=\"http:\/\/gentoo-wiki.com\/HOWTO_Setup_Kernel\/System_for_MythTV\">here<\/a>.<\/p>\n<div class=code>\n(remote in)<br \/>\nemerge screen<br \/>\nscreen<br \/>\nemerge portage<br \/>\netc-update<br \/>\nemerge &#8211;newuse &#8211;deep system<br \/>\nemerge &#8211;newuse &#8211;deep mythtv\n<\/div>\n<p>Etc. etc. etc.  OK I am much further along now.  I added support for the video built into my motherboard &#8211; it&#8217;s the new higher-end nVidia onboard chip (GeForce 350?), which includes TV-Out.  I added support for an X driver for the TV-Out of my PVR-350, which includes direct mpeg2 decoding.  So now I have two options for output to play around with.  Wicked!<\/p>\n<p>Next, sound.  More specifically, Advanced Linux Sound Architecture, whoop!  Here&#8217;s the <a href=\"http:\/\/www.gentoo.org\/doc\/en\/alsa-guide.xml\">Gentoo ALSA Guide<\/a>.  You can either use ALSA provided by the kernel, or you can bolt on ALSA support via Gentoo&#8217;s media-sound\/alsa-driver package.  I&#8217;m going with the first route.  At first, it might sound easier to let portage keep things humming, but take a look at the pros\/cons list &#8211; once you get sound working, you won&#8217;t have to deal with it again, if you go the first route.  Let&#8217;s do it &#8211; next up, go find a driver.<\/p>\n<p>Research:<\/p>\n<p>&#8212;-<\/p>\n<p>Although the board uses the ALC880 chipset, it may be worth noting that lspci still references nVidia Audio.<br \/>\nI&#8217;m using the snd-hda-intel driver from alsa-driver 1.0.11-rc2.<\/p>\n<p>&#8212;-<\/p>\n<p>For those having trouble with sound on the K8NGM2-FID, check your alsa config (\/etc\/modules.d\/alsa on Gentoo, not sure about others).<br \/>\nFor some reason, alsaconf kept writing errored configuration (as I described previously.<br \/>\nUsing alsa-drive 1.0.11-rc2, my config file looks like this:<\/p>\n<div class=code>\n# Alsa 0.9.X kernel modules&#8217; configuration file.<br \/>\n# $Header: \/var\/cvsroot\/gentoo-x86\/media-sound\/alsa-utils\/files\/alsa-modules.conf-rc,v 1.4 2004\/11\/16 01:31:22 eradicator Exp $<\/p>\n<p># ALSA portion<br \/>\n# OSS\/Free portion<\/p>\n<p>##<br \/>\n## IMPORTANT:<br \/>\n## You need to customise this section for your specific sound card(s)<br \/>\n## and then run `update-modules&#8217; command.<br \/>\n## Read alsa-driver&#8217;s INSTALL file in \/usr\/share\/doc for more info.<br \/>\n##<br \/>\n##  ALSA portion<br \/>\n alias snd-card-0 snd-hda-intel<br \/>\n## alias snd-card-1 snd-ens1371<br \/>\n##  OSS\/Free portion<br \/>\n alias sound-slot-0 snd-card-0<br \/>\n## alias sound-slot-1 snd-card-1<br \/>\n##<\/p>\n<p># OSS\/Free portion &#8211; card #1<br \/>\n##  OSS\/Free portion &#8211; card #2<br \/>\n## alias sound-service-1-0 snd-mixer-oss<br \/>\n## alias sound-service-1-3 snd-pcm-oss<br \/>\n## alias sound-service-1-12 snd-pcm-oss<\/p>\n<p>alias \/dev\/mixer snd-mixer-oss<br \/>\nalias \/dev\/dsp snd-pcm-oss<br \/>\nalias \/dev\/midi snd-seq-oss<\/p>\n<p># Set this to the correct number of cards.<\/p>\n<p># &#8212; BEGIN: Generated by ALSACONF, do not edit. &#8212;<br \/>\n# &#8212; ALSACONF version 1.0.10 &#8212;<br \/>\nalias snd-card-0 snd-hda-intel<br \/>\nalias sound-slot-0 snd-hda-intel<br \/>\n# &#8212; END: Generated by ALSACONF, do not edit. &#8212;\n<\/p><\/div>\n<p>&#8212;-<\/p>\n<p><em>Originally Posted by lintweaker<br \/>\nI am still having some problems getting ALSA to correcly configure\/recognize my onboard soundcard (Nvidia HDA with ACL880). This in on a MSI K8NGM2-FID motherboard.<\/p>\n<p>I do get sound from line out but the volume is really low. SPDIF out won&#8217;t work. Although I got it working through the OSS emulation(????).<\/p>\n<p>What alsa module parameters should work?<br \/>\n<\/em><\/p>\n<p>Details from my FC4 \/etc\/modprobe.conf:<\/p>\n<p>alias snd-card-0 snd-hda-intel<br \/>\noptions snd-card-0 index=0<br \/>\noptions snd-hda-intel index=0<br \/>\nremove snd-hda-intel { \/usr\/sbin\/alsactl store 0 >\/dev\/null 2>&#038;1 || : ; }; \/sbin<br \/>\n\/modprobe -r &#8211;ignore-remove snd-hda-intel<\/p>\n<p>SPDIF works fine, except for the very first time a system is started up. When playing audio for the first time on system startup, it is very very very screechy, but afterwards it is perfect. Probably a module initialization step missing. I don&#8217;t know about analog audio output. For mythtv ALSA config, I specify iec958. For mplayer -ao alsa:device=iec958.<\/p>\n<p>&#8212;-<\/p>\n<p>an Intel HD Audio compatible chip (ALC880) manufactered from Realtek<\/p>\n<p>As it seems that there is Realtek support for the device, another choice is to download the latest driver version (called realtek-linux-audiopack-3.5.1.tar.bz2) from www.realtek.com.tw (never tried).<\/p>\n<p>http:\/\/www.realtek.com.tw\/downloads\/dlhd-2.aspx?lineid=2004052&#038;famid=2004052&#038;series=2004061&#038;Software=True<\/p>\n<p>(err that&#8217;s for an old kernel, looks gross, don&#8217;t touch it)<\/p>\n<p>Unmute the audio channels:<br \/>\namixer set PCM 100% unmute<br \/>\namixer set Front 100% unmute<\/p>\n<p>make menuconfig:<br \/>\n<*> Advanced Linux Sound Architecture<br \/>\n    PCI devices  &#8212;><br \/>\n    <*> Intel HD Audio<\/p>\n<p>Next emerge latest media-sound\/alsa-drivers from portage (1.0.10_rc3 as time of writing)<\/p>\n<p>echo &#8220;media-sound\/alsa-drivers ~x86&#8243; >> \/etc\/portage\/package.keywords<br \/>\nemerge alsa-driver<br \/>\nmodprobe snd_hda_intel<\/p>\n<p>and configure \/etc\/make.conf for compiling only the correct audio device<br \/>\nFile: \/etc\/make.conf<\/p>\n<p>ALSA_CARDS=&#8221;hda-intel&#8221;<\/p>\n<p>Note: If the card doesn&#8217;t work try to pass the model name to the module arguments (model=z71v or model=asus)<\/p>\n<p>&#8212;-<\/p>\n<p>OK, let&#8217;s try using snd-hda-intel.  Now where is that in the menuconfig?  Just as specified in the last research notes (above), cool.<\/p>\n<p>Hey weren&#8217;t there a bunch of modules for the PVR-350?  Checking my notes from my last install&#8230; yeah, but somehow I managed to get them pretty much turned on already (well duh, it&#8217;s working).  :><\/p>\n<p>\u00e2\u20ac\u0153Device Drivers\u00e2\u20ac\u009d; \u00e2\u20ac\u0153Multimedia Devices\u00e2\u20ac\u009d; \u00e2\u20ac\u0153Video For Linux\u00e2\u20ac\u009d; \u00e2\u20ac\u0153BT848 Video For Linux\u00e2\u20ac\u009d<\/p>\n<p>I think I&#8217;m ready for another kernel compile.  Here goes.<\/p>\n<div class=code>\ncd \/usr\/src\/linux<br \/>\nscreen<br \/>\nmake<br \/>\nmake modules_install<br \/>\nls \/boot<br \/>\ncp arch\/x86_64\/boot\/bzImage \/boot\/kernel-genkernel-x86_64-2.6.17-gentoo-r8_mdm-menuconfig_2\n<\/div>\n<p>A quick edit of \/boot\/grub\/grub.conf, and we&#8217;re ready to reboot (with sound?!).  Yep, groovy.  Now I thought I&#8217;d check in with my recordings&#8230; looks like the clock is off and I&#8217;m recording the wrong shows, grumble&#8230;  emerge ntp should fix that.  I&#8217;m synching with ntp on startup but not bothering to run the daemon to stay synched all the time, revisit if needed.<\/p>\n<p>Get TV-Out working<\/p>\n<p>Well, back to this task.  As I said before I have two options, you&#8217;d think I could get one of them working.  Trying to get the PVR-350 TV-Out working first.  Following <a href=\"http:\/\/www.mythtv.org\/wiki\/index.php\/XV_on_PVR-350\">this<\/a>.  Here&#8217;s what I needed to do to set it up.<\/p>\n<p>Goofy gentoo doesn&#8217;t use the &#8220;standard&#8221; run levels.  To boot into a &#8220;runlevel 3&#8221; equivalent, you should add this to the end of the kernel line in grub.conf (since gentoo uses &#8220;default, single, nonetwork&#8221; and other silly runlevel names (ls \/etc\/runlevels) (you can even cook up your own, ugg :> ) ):<\/p>\n<div class=code>softlevel=single<\/div>\n<p>Select the new kernel line during boot, and you&#8217;ll be prompted with &#8220;initializing runlevel 3&#8221; DUH!  :>  Then you can really play with X.  Muck with \/etc\/X11\/xorg.conf, as directed in that link, above, then try it out with this:<\/p>\n<div class=code>X -screen TV<\/div>\n<p>&#8230;and it will tell you all the things you&#8217;ve screwed up.   Sigh.  Looks like this won&#8217;t get finished in time to surprise Andrea when she returns from sunny Florida, oh well.<\/p>\n<p>I DID manage to get DVD playback working.  Great advice from <a href=\"http:\/\/wilsonet.com\/mythtv\/tips.php\">the Fedora Mythtv guy<\/a> to use xine, which is sweet.  I did have to coax gentoo along, by adding my user to the cdrom and cdrw groups (and then RELOGIN, don&#8217;t forget that!)&#8230;<\/p>\n<div class=code>gpasswd -a m cdrom<br \/>\ngpasswd -a m cdrw\n<\/div>\n<p>And I don&#8217;t have the auto-play working yet, you have to select Play DVD.  Whatever, good enough for now.<\/p>\n<p>Now back to TVout-land&#8230;<\/p>\n<p>I have two options: nvidia and PVR-350.  I am going with whatever is easier for now.  I went through the setup of the PVR-350, up to configuring X.  Before killing myself on that, let&#8217;s try the nvidia driver.  The nvidia driver has been pretty solid so far.  Again, it came down to X configuration.  There are lots of HOWTO&#8217;s out there, with lots of BAD INFORMATION.  Where is the nvidia reference for this stuff?  Basically, you set a bunch of options in xorg.conf, which the driver uses.  Here are the important lines from what I finally used to get the GeForce 6150 to switch to TV out:<\/p>\n<div class=code>\nSection &#8220;Device&#8221;<br \/>\nOption &#8220;TVOutFormat&#8221; &#8220;SVIDEO&#8221;<br \/>\nOption &#8220;TVStandard&#8221; &#8220;NTSC-M&#8221;<br \/>\nOption &#8220;ConnectedMonitor&#8221; &#8220;TV&#8221;<br \/>\nSecion\n<\/div>\n<p>The kicker was the &#8220;ConnectedMonitor&#8221; line &#8211; one HOWTO had me convinced that you used an xorg.conf monitor name there.  WRONG.  Use &#8220;TV&#8221;.  Several hours lost on that one.  Upwards and onwards.<\/p>\n<p>Done:<\/p>\n<li>make sure clock and programming are lined up properly<\/li>\n<p>In Progress:<\/p>\n<li>get wireless connection working<\/li>\n<p>Plug in the USB thingee and try this&#8230;<\/p>\n<div class=code>\n# lsusb<br \/>\nBus 002 Device 002: ID 15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller<br \/>\nBus 002 Device 001: ID 0000:0000<br \/>\nBus 001 Device 002: ID 0ace:1215 ZyDAS<br \/>\nBus 001 Device 001: ID 0000:0000\n<\/div>\n<p>Looks like the ZyDAS is the wireless USB device, I&#8217;ve seen ZyDAS drivers mentioned.  Googling around brought me <A href=\"http:\/\/zd1211.ath.cx\/wiki\">here<\/a>.  Did this next&#8230;<\/p>\n<div class=code>\nemerge net-wireless\/zd1211-firmware<br \/>\nemerge net-wireless\/zd1211<br \/>\n&#8211; net-wireless\/zd1211-83 (masked by: ~amd64 keyword)\n<\/div>\n<p>But the docs on the homepage say it is AMD64-compatible.  Also found <a href=\"http:\/\/forums.gentoo.org\/viewtopic-t-379236-highlight-.html?sid=7d8584e967c98cda9170c3db29ed93e3\">this<\/a>, where it&#8217;s worked for others.  So&#8230; upwards to unmask the sorry little thing&#8230;<\/p>\n<div class=code>\nemacs \/etc\/portage\/package.keywords<\/p>\n<p># MDM Also unmasking my wireless driver&#8230; cmon gentoo give it up&#8230;<br \/>\nnet-wireless\/zd1211 ~amd64\n<\/p><\/div>\n<p>Now retry the emerge&#8230;  whoop there it is!  There were a bunch of type warnings, guess that&#8217;s why it was masked&#8230;<\/p>\n<div class=code>\n * This package installs two new modules named zd1211 and zd1211b<br \/>\n * This is done because ZyDAS corp. had made two different versions<br \/>\n * of the ZD1211 Chipset.<br \/>\n * Please look at http:\/\/zd1211.ath.cx\/ to see which one is the best<br \/>\n * for your WiFi adapter or, if you prefer, launch both&#8230;\n<\/div>\n<p>Cool.<\/p>\n<div class=code>\nmodprobe -v zd1211<br \/>\nlsmod<br \/>\n(there it is, sweet)\n<\/div>\n<p>I do NOT understand where the stupid eth0\/wlan0 or whatever is supposed to COME from &#8211; just because I added a module, does that make it appear the next time I reboot?  Maybe I need some kernel configuration tweaks&#8230; gentoo docs are failing me, for the first time.  Rrrr.  I will try autoloading the ZyDAS module and rebooting&#8230;<\/p>\n<div class=code>\nemacs \/etc\/modules.autoload.d\/kernel-2.6<\/p>\n<p># MDM Is this where I put my Zonet ZyDAS-based wireless USB adapter driver???<br \/>\nzd1211<\/p>\n<p>reboot\n<\/p><\/div>\n<p>Yes!  That did it, I now have a wlan0!!  Whew, what a PITA.  Time to configure!<\/p>\n<p>Do NOT ignore emerge messages (I had to emerge wpa_supplicant twice just to get to them again, rrr&#8230;)&#8230;<\/p>\n<div class=code>\nemerge net-wireless\/wpa_supplicant<br \/>\n * To use  you must create the configuration file<br \/>\n * \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\n *<br \/>\n * An example configuration file is available as<br \/>\n * \/usr\/share\/doc\/wpa_supplicant-0.5.4\/wpa_supplicant.conf.example.gz\n<\/div>\n<p>So let&#8217;s do it.  I created the file as follows:<\/p>\n<div class=code>\n# The below line not be changed otherwise we refuse to work<br \/>\nctrl_interface=\/var\/run\/wpa_supplicant<\/p>\n<p># Ensure that only root can read the WPA configuration<br \/>\nctrl_interface_group=0<\/p>\n<p># Let wpa_supplicant take care of scanning and AP selection<br \/>\nap_scan=1<\/p>\n<p># Shared WEP key connection (no WPA, no IEEE 802.1X)<br \/>\n# MDM No quotes on key = HEX<br \/>\nnetwork={<br \/>\n  ssid=&#8221;Michael5776135&#8243;<br \/>\n  key_mgmt=NONE<br \/>\n  wep_key0=hexhexhexhexhex<br \/>\n  wep_tx_keyidx=0<br \/>\n  priority=5<br \/>\n}\n<\/p><\/div>\n<p>Now to try it out&#8230;<br \/>\nNo good.  The driver isn&#8217;t compatible.  Apparently some folks have hacked around with the driver and made it work.  I&#8217;m done hacking for now.  On to wireless-tools&#8230;<\/p>\n<p>Wireless-tools went OK, I&#8217;ve gotten everything working so that [\/etc\/init.d\/net.wlan0 start] brings everything up.  But WEP is not activated for some ignorant reason.  Rrr&#8230; for another day&#8230;<\/p>\n<p>To Do list:<\/p>\n<li>get more MythTV components installed<\/li>\n<li>get gentoo+fluxbox+CVS+etc configs into CVS<\/li>\n<li>configure fluxbox<\/li>\n<li>fix up media cabinet for box, keyboard<\/li>\n<li>watch some frakkin&#8217; TV!!<\/li>\n<p>&#8212;-<\/p>\n<p>Back.  All is well.<\/p>\n<p>Added MythArchive, a DVD burner helper.<\/p>\n<p>Working on ability to rip DVD.<br \/>\n  emerge mythdvd (make sure you have the transcode USE flag set)<br \/>\n  rc-update add mtd default (the Myth Transcoder Daemon, required!)<br \/>\n  \/etc\/init.d\/mtd start<br \/>\n  configure the rip temp directory in mythfrontend to point to something writeable<\/p>\n<p>Now try again&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Editor&#8217;s note: More gentoo MythTV installation notes&#8230; don&#8217;t expect order here, for that, see my wiki&#8230;) OK, all my gear has arrived, I sent back the bad CPU and motherboard and got replacements, everything is humming (very quietly I might add! what a sweet case&#8230;), and I&#8217;m ready for the final (ha!) gentoo Media Center [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[5,18,12,4],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-linux-projects","category-gentoo-media-center","category-mythtv","category-projects"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-2e","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=138"}],"version-history":[{"count":2,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":1610,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/138\/revisions\/1610"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}