{"id":130,"date":"2006-06-07T23:11:44","date_gmt":"2006-06-08T04:11:44","guid":{"rendered":"http:\/\/bitpost.com\/news\/2006\/06\/07\/my-gentoo-amd64-install\/"},"modified":"2006-09-20T21:35:42","modified_gmt":"2006-09-21T02:35:42","slug":"my-gentoo-amd64-install","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2006\/my-gentoo-amd64-install\/","title":{"rendered":"My Gentoo AMD64 Install"},"content":{"rendered":"<p>Here are my notes on installing the AMD64 build of Gentoo on my EPoX 9NPA+SLI with an Athlon 64 3000+.  It&#8217;s my primary Windoze box, for development and gaming, but it&#8217;s now being dual-booted as a testbed for a future MythTV-based media center&#8230; hopefully IN TIME FOR THE WORLD CUP!  \ud83d\ude1b <!--more--><br \/>\nThe <a href=\"http:\/\/www.gentoo.org\/doc\/en\/handbook\/\">Gentoo Handbook<\/a> has pretty much everything you need.  This is just a set of notes I&#8217;m writing during my installation.  The first piece of advice I have is to let go and have fun &#8211; you won&#8217;t be in control of things at all times, which can be frustrating if you&#8217;re champing at the bit to get things running &#8211; just view it as an adventure,  grab a beer pull up a chair and kick back, here we go.<\/p>\n<p>Grab the latest Gentoo live cd for your architecture (mine is AMD64), pop it in your drive, and reboot.  Setting up networking is the first step, and it sucks if it doesn&#8217;t go smoothly because you feel completely isolated from any help &#8211; at best you have another machine that you can use to browse all the documentation that you can&#8217;t copy\/paste from.   Many eons ago, my friend John and I were both stuck on this part for months, trying to get our first Linux installs off the ground.  At that time, the eventual solution was to only use gear that was confirmed to be supported.  Network support is much more complete these days, take your time here, you&#8217;ll get it running.  If it gets bad, go out and plop down a few bucks for a 3Com network card, throw it in your machine, and try again.<\/p>\n<p>Gentoo recognized my mobo&#8217;s built-in Nvidia Networking Controller and set it up as eth1, for some reason.  I spent a little time trying to get eth0 working before I realized I should just reconfig eth1 to use my pre-assigned LAN IP address.  Humming along now.<\/p>\n<p>Once networking is up, save yourself some trouble and take Gentoo up on its advice to ssh from another machine.  It&#8217;s like installing from your LazyBoy instead of your neighbor&#8217;s lawn chair.  Just set a root password, start up sshd, and ssh in from a more comfortable location:<\/p>\n<div class=\"code\">passwd root<br \/>\n(type something you will remember, it&#8217;s only temporary)<br \/>\n\/etc\/init.d\/sshd start<br \/>\n(then ssh from another machine to the LAN IP address)<\/div>\n<p>Now that you&#8217;re in your LazyBoy, put up the footrest and make sure you&#8217;ve got the <a href=\"http:\/\/www.gentoo.org\/doc\/en\/handbook\/\">Gentoo handbook<\/a> up in a browser.<\/p>\n<p>The next major step in the handbook is to set up your disk partitions.  If you&#8217;re dual booting (I am), you will probably want to shift around and resize existing partitions (unless you dropped in a fresh new hard drive just for Gentoo).  I went through all my CD&#8217;s looking for that Partition Magic CD that I need without fail every other year or so to no avail.  Then I thought &#8211; ridiculous, there must be open source partition managers.  Viola, found two nice ones:<\/p>\n<ol>\n<li><a href=\"http:\/\/gparted.sourceforge.net\/\">GParted<\/a> &#8211; Grab the livecd ISO.  It&#8217;s small and made to do what you need.<\/li>\n<li>QTParted on the <a href=\"http:\/\/www.knopper.net\/knoppix\/index-en.html\">Knoppix<\/a> live CD &#8211; OK I could get distracted for HOURS on this one&#8230; (two hours and a beer later&#8230;) \ud83d\ude1b<\/li>\n<\/ol>\n<p>These babies kick ass, they even find drives for all the media I happen to have plugged in to my USB media reader.  Fire up GParted, it&#8217;s sweet &#8211; and I got a bonus &#8211; I found I had an old Linux drive in the Windoze box that I forgot all about &#8211; to quote Jack Handy, &#8220;because eh, free dummy!&#8221;  Here&#8217;s what it looked like:<\/p>\n<ul>\n<li>hdb1 &#8211; boot partition<\/li>\n<li>hdb2 &#8211; swap partition<\/li>\n<li>hdb3 &#8211; a 74GB partition with only 2GB used!  By who knows what, probably Redhat Linux 7 or some such shiznit&#8230;<\/li>\n<\/ul>\n<p>So, being a packrat, I resized the 74GB partition down to 2.5GB, using GParted, and now I&#8217;ve got an unpartitioned 72GB to swim around in for the Gentoo AMD64 install, whoop!  I will try to reuse the boot (hdb1) and swap (hdb2) partitions &#8211; again, &#8220;free dummy&#8221;, why not.<\/p>\n<p>OK, after resizing, it looks like I am only using 1GB on the small partition.  I wonder if there&#8217;s anything at all on there&#8230; OK I&#8217;m bucking the packrat urge and taking over this drive!  Once again, the Gentoo Handbook kicks ass, recommending [-O] on ext3 to enable hashed b-tree indexing that &#8220;enables  high performance in almost all situations&#8221;.<\/p>\n<div class=\"code\">mke2fs -j -O dir_index \/dev\/hdb1<br \/>\nmke2fs -j -O dir_index \/dev\/hdb3<br \/>\nmkswap \/dev\/hdb2<br \/>\nswapon \/dev\/hdb2<\/div>\n<p>Now, to put something on there!  Errr&#8230; or not&#8230; if I make hdb1 bootable, what&#8217;s going to make BIOS go there for the Master Boot Record instead of hda1 (which is NTFS, and also bootable)?  Oops.  Three choices, as I see it&#8230;<\/p>\n<ol>\n<li>see if BOIS can be set to boot from the second hard drive<\/li>\n<li>forget booting from hdb and use hda1 as-is<\/li>\n<li>split hda1 into a small bootable hda1 and a huge hda2<\/li>\n<\/ol>\n<p>(3) is the &#8220;correct way to do multi-boot&#8221;.  (1) would be easy if I were in front of the box, but I&#8217;m far away in my LazyBoy.  (2) is doable remotely, but hda1 is one huge NTFS partition, and I&#8217;m worried I might just blow away my Windows install there if I try to install grub as the boot loader?   Jim, the sysadmin at work, says it will work, I have my doubts&#8230;  Oh well, cest la vie, it&#8217;s Windoze, who cares!  Here we goooo!!<\/p>\n<p>And here we stop (after attempting to remove the hdb1 boot partition without unmounting first, doh!):<\/p>\n<div class=\"code\">WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br \/>\nThe kernel still uses the old table.<br \/>\nThe new table will be used at the next reboot.<\/div>\n<p>Ah well, the remote session was fun while it lasted.  Time to pick it back up when I&#8217;m in front of the box again&#8230;  OK, back, reboot!  I dropped in my Hauppage PVR-350 (and blew out 4 pounds of dust) before powering back up.  Man this junk is loud!  Note to self: buy some quiet fans.  Continuing&#8230;<\/p>\n<div class=\"code\">mke2fs -j -O dir_index \/dev\/hdb2<br \/>\nmkswap \/dev\/hdb1<br \/>\nswapon \/dev\/hdb1<\/div>\n<p>We&#8217;ll see if I wipe out Windoze using it as the boot partition&#8230;  OK, so that doesn&#8217;t make me warm and fuzzy&#8230; I researched further and I&#8217;m not liking the idea of trying to use hda1 for Windoze AND grub.  So&#8230;  back to resizing.  I will make the boot partition AFTER the Windoze partition, since (1) GParted doesn&#8217;t seem to want to MOVE NTFS partitions (only resize); and (2) grub is supposedly all OK with LBA &#8220;out of the box&#8221;, meaning it can handle a boot partition up above the 1024th cylinder.  Here goes!OK that was a bust &#8211; GParted couldn&#8217;t resize hda1 because it says it has bad sectors, and I need to run chkdisk, reboot twice, blah blah blah.  Ahh shaddap!  \ud83d\ude1b  I checked out the BIOS boot order and I can set hdb to boot first.  So&#8230; back to the original partitioning scheme.  We having fun yet, whooop!  I am, I&#8217;m on my 67th beer here, whoooo!  That, and the World Cup kicks off tomorrow!!  And all those new tunes from Pandora are really starting to sound good.  Life is sweet, who cares about a little re-partitioning.<\/p>\n<p>OK got hdb set up for Gentoo.  Wait a minute, wouldn&#8217;t it be sweet to have the swap on hda, to get two hard drive heads working for us in parallel?  Yeah yeah&#8230;  Isn&#8217;t it fun to obsess?  OK, so I&#8217;m booting back into Windoze (after flipping BIOS to boot from hda first again) and running chkdisk a couple times or whatever&#8230; except I can&#8217;t get Windoze to boot up.  I think I turned off the boot flag on hda1 at some point.  Booting GParted back up and flipping hda1 back to a boot disk.  And then reboot, there&#8217;s that rascally Windoze again.   Apparently stuffing that Hauppage card in really confused it, the rez is pure old skool VGA.  Whatever.  Now wipe the poop out of your drawers, dopey Windoze.  It wouldn&#8217;t do a chkdisk without a reboot, man I&#8217;m gonna be drunk before this thing gets done&#8230; in the meantime, played with the Gimp and posted the next story on alpha-blending&#8230; and it&#8217;s done&#8230; and GParted still isn&#8217;t happy, it wants me to reboot more, set some -badsectors flags, blah blah.  Forget it, we&#8217;ll do it all on hdb for now.  Well I&#8217;ve gotten really good at configuring the Gentoo live environment:<\/p>\n<div class=\"code\">net-setup eth1<br \/>\npasswd root<br \/>\n\/etc\/init.d\/sshd start<\/div>\n<p>OK (Wow I just realized I say that a lot &#8211; I say &#8220;wow&#8221; a lot too, wow&#8230; anyway&#8230; (that&#8217;s the other word I say a lot) OK!  Are you drunk too by now?  You&#8217;d have to be to read this far!! ).  Time to start the Gentoo party.  Only a few more hours until World Cup time&#8230; which is my goal for all this, to use MythTV to record the games I can&#8217;t watch live.  Here we go!<\/p>\n<p>Following along in the handbook, we want to mount our shiny new partitions so we can abuse them &#8211; err, sorry, BEAUTIFY them with our Gentoo files.  Looks like the live CD already created \/mnt\/gentoo, so here&#8217;s all we have to do:<\/p>\n<div class=\"code\">\n<div class=\"code\">livecd ~ # ls \/mnt\/gentoo<br \/>\nlivecd ~ # mount \/dev\/hdb3 \/mnt\/gentoo<br \/>\nlivecd ~ # mkdir \/mnt\/gentoo\/boot<br \/>\nlivecd ~ # mount \/dev\/hdb1 \/mnt\/gentoo\/boot<br \/>\nlivecd ~ # cd \/mnt\/gentoo<br \/>\nlivecd ~ # <span class=\"code-input\">tar xvjpf \/mnt\/cdrom\/stages\/stage3-amd64-2006.0.tar.bz2<\/span><\/div>\n<\/div>\n<p>And we&#8217;re actually doing something.  Followed the steps to grab Portage next, just as it&#8217;s described in the handbook.  Links is cool!  OK OK I&#8217;ll stop being such a dork with all the exclamation points and smileys and shiznit.  I was only doing it because I know it was pissing you off.  ALRIGHT!  SORRY!  Geesh.<\/p>\n<p>After looking through the gcc manual, it seemed obvious that the defaults (-O2, for example) were pretty good and I didn&#8217;t need to mess too much.  Here&#8217;s my \/etc\/make.conf:<\/p>\n<div class=\"code\">#MDM added -march=k8 to target AMD64.<br \/>\n#MDM Also added -mtune cause i saw it somewhere and thought &#8220;what the hell&#8221;<br \/>\nCFLAGS=&#8221;-march=k8 -mtune=k8 -O2 -pipe&#8221;<br \/>\nCHOST=&#8221;x86_64-pc-linux-gnu&#8221;<br \/>\nCXXFLAGS=&#8221;${CFLAGS}&#8221;<\/p>\n<p>#MDM &#8220;MAKEOPTS for a regular, 1-CPU system&#8221;<br \/>\nMAKEOPTS=&#8221;-j2&#8243;\n<\/p><\/div>\n<p>Now for those crazy-assed USE flags&#8230; what to pick&#8230; here are some I dug up from googling&#8230; I suppose I will just add them all&#8230; ugg&#8230;<\/p>\n<div class=\"code\">USE=&#8221;X mysql <strong style=\"color: black; background-color: #ffff66\">mythtv<\/strong> 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 <em>transcode xinerama net xvid v412 theora qt kde acpi <\/em>directfb ffmpeg xine divx4linux v4l gtk gtk2&#8243;<\/div>\n<p>Or the (more-up-to-date?) shorter list&#8230;<\/p>\n<pre>\r\n<div class=\"code\">USE=\"X mysql mythtv apache2 alsa dvb usb lirc nvidia\"<\/div>\r\n<\/pre>\n<p>OK, it&#8217;s kernel time.  There are two options:<\/p>\n<ol>\n<li>configure it manually &#8211; you must completely grok your hardware<\/li>\n<li>use genkernel, which probes for hardware automatically, like the live cd does<\/li>\n<\/ol>\n<p>I tried configuring manually and couldn&#8217;t even figure out what network driver I needed.  Fuggedaboudid.  One nice trick &#8211; boot up with the live cd and type [lspci], it will show you what it sees attached to your motherboard.  In my case:<\/p>\n<div class=\"code\">00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)<br \/>\n00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)<br \/>\n00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)<br \/>\n00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)<br \/>\n00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)<br \/>\n00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC&#8217;97 Audio Controller (rev a2)<br \/>\n00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev a2)<br \/>\n00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev a3)<br \/>\n00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev a3)<br \/>\n00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)<br \/>\n00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)<br \/>\n00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)<br \/>\n00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)<br \/>\n00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)<br \/>\n00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)<br \/>\n00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64\/Opteron] HyperTransport Technology Configuration<br \/>\n00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64\/Opteron] Address Map<br \/>\n00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64\/Opteron] DRAM Controller<br \/>\n00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64\/Opteron] Miscellaneous Control<br \/>\n01:04.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder (rev 01)<br \/>\n01:09.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)<br \/>\n02:00.0 RAID bus controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01)<br \/>\n05:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600 GT] (rev a2)<\/div>\n<p>Like I said, fuggedit, let&#8217;s just go with genkernel and not be all macho\/masochistic about it.  Since I couldn&#8217;t figure out the network driver, it&#8217;s back to the boot cd, then manually mounting\/chrooting everything again.<\/p>\n<div class=\"code\">reboot<br \/>\nnet-setup eth1<br \/>\npasswd root<br \/>\n\/etc\/init.d\/sshd start<br \/>\n(ssh from elsewhere)<br \/>\nmount \/dev\/hdb3 \/mnt\/gentoo<br \/>\nmount \/dev\/hdb1 \/mnt\/gentoo\/boot<br \/>\nmount -t proc none \/mnt\/gentoo\/proc<br \/>\nmount -o bind \/dev \/mnt\/gentoo\/dev<br \/>\nchroot \/mnt\/gentoo \/bin\/bash<br \/>\nenv-update<br \/>\nsource \/etc\/profile<br \/>\nexport PS1=&#8221;(chroot) $PS1&#8243;<\/div>\n<p>Whew!  Now we&#8217;re finally ready to rebuild the kernel, genkernel-style&#8230;<\/p>\n<div class=\"code\">\n<div class=\"code\">emerge genkernel genkernel &#8211;menuconfig all<\/div>\n<\/div>\n<p>The &#8211;menuconfig option lets you manually change things if you need, which sounds nice.  I have to be honest with you, I&#8217;m tired of typing all this, so from here on out it&#8217;s just what I need to remember&#8230;<\/p>\n<p>Went back to &#8220;make menuconfig&#8221; after getting ridiculed on #gentoo for using genkernel.  \ud83d\ude1b<\/p>\n<pre>\r\n<div class=\"code\"># <span class=\"code-input\">cd \/usr\/src\/linux<\/span>\r\n# <span class=\"code-input\">make menuconfig<\/span><\/div>\r\n<\/pre>\n<p>forcedeth is what was needed<\/p>\n<p>compiled it into kernel, didn&#8217;t do it<\/p>\n<p>compiled as module, didn&#8217;t do it<\/p>\n<p>examined errors &#8211; \/var\/log\/dmesg &#8211; looking at eth0 now, not eth1<\/p>\n<p>fixed \/etc\/conf.d\/net to use eth0<\/p>\n<p>used rc-update to change from eth1 default startup to eth0<\/p>\n<p>reboot, seems to work now, cool<\/p>\n<p>used rc-update to add sshd on startup<\/p>\n<p>emerge portage<\/p>\n<p>emerge &#8211;ask &#8211;update &#8211;deep &#8211;newuse world<\/p>\n<p>(some conflict, googled for solution)<\/p>\n<p>emerge -C pam-login &#038;&#038; emerge -1 shadow<\/p>\n<p>emerge &#8211;update &#8211;deep &#8211;newuse world<\/p>\n<p>going and going&#8230; man, glibc is a big bad motha&#8230;<\/p>\n<p>done.  etc-update to update something like 50 config files, -5 to do em all whoop!<\/p>\n<p>emerge mythtv (here we go! &#8211; that kicked off qt and 40 other deps&#8230;)<\/p>\n<p>now how do i install a window manager to run at boot again&#8230; did it&#8230; using gdm&#8230;<\/p>\n<p>x won&#8217;t start, need nvidia driver &#8211; using <a href=\"http:\/\/www.gentoo.org\/doc\/en\/nvidia-guide.xml\">this<\/a><\/p>\n<div class=\"code\">cd \/usr\/src\/linux<br \/>\nmake menuconfig<br \/>\nfix as directed (especially, remove nvidia framebuffer\/riva support)<br \/>\nmake<br \/>\nmake modules_install<br \/>\nmount \/dev\/hdb1 \/boot<br \/>\ncp arch\/x86_64\/boot\/bzImage \/boot\/kernel-genkernel-x86_64-2.6.16-gentoo-r9-mdm_manual_config<br \/>\n(reboot)<br \/>\nemerge nvidia-glx<br \/>\nmodprobe nvidia<br \/>\nnano \/etc\/modules.autoload.d\/kernel-2.6 (add nvidia)<br \/>\nmodules-update<br \/>\neselect opengl set nvidia<br \/>\nnano \/etc\/X11\/xorg.conf (farted around here, isn&#8217;t there some way to auto-detect and set this up?)<br \/>\nemerge nvidia-settings<\/div>\n<p>Here&#8217;s a note from the install guide, I&#8217;ll try to remember this: <strong>Important: <\/strong> Every time you <a href=\"http:\/\/www.gentoo.org\/doc\/en\/kernel-upgrade.xml\">compile a new kernel<\/a> or recompile the current one, you have to run &#8220;emerge nvidia-kernel&#8221;<span class=\"code\" \/> to reinstall the nVidia modules.<\/p>\n<p>I have a couple tools to remember, as well: nvidia-settings (to change video settings without restarting X), glxinfo (with &#8220;|grep direct&#8221; to check for direct rendering), glxgears (monitors FPS).<br \/>\nOK, X not working, find a &#8220;<a href=\"http:\/\/www.gentoo.org\/doc\/en\/xorg-config.xml\">configure X Howto<\/a>&#8220;:<\/p>\n<div class=\"code\">Xorg -configure (to auto configure)<br \/>\nX -config \/root\/xorg.conf.new<\/div>\n<p>Failing, google revealed that the default \/dev\/mouse suxx0rz, looks like I need to change it to \/dev\/input\/mouse0.  That got it working!  But looks like ass, try adjusting to a higher rez &#8211; not working.  Used the following (taking guesses, screw it) to help me set up the monitor:<\/p>\n<div class=\"code\">xorgconfig<\/div>\n<p>Got it!  Both nvidia support and a hirez display.  Now, where do we copy it to&#8230;<\/p>\n<div class=\"code\">cp \/root\/xorg.conf.new.mdm \/etc\/X11\/xorg.conf<br \/>\nreboot<\/div>\n<p>OK, everything looks good!  Pretty gdm&#8230; Next problem, can&#8217;t [su -], &#8220;permission denied&#8221;, wtf.  Kind of impossible to google for that without getting a million irrelevant hits.  Asked for help on #gentoo, got this:<\/p>\n<div class=\"code\">[moodboom] hey all &#8211; i just installed gentoo on an amd64 box &#8211; all is well, except i can&#8217;t log in as root with &#8220;su -&#8221; (permission denied) &#8211; i can log in from gdm, or single user &#8211; any ideas?<br \/>\n[penguin] moodboom: that question has been covered 1234873245 times on the forum<br \/>\n[penguin] and is probably part of the Gentoo Handbook AND several FAQs<br \/>\n[penguin] UTFS, in other words<br \/>\n[penguin] to get back to what I was saying<\/div>\n<p>Sigh&#8230; read through the Gentoo forums, for some really stupid reason you have to add users to &#8220;wheel&#8221; to be able to su to root, whatEHvah:<\/p>\n<div class=\"code\">gpasswd -a m wheel<\/div>\n<p>OK, upwards and onwards, on to MythTV configuration&#8230;<\/p>\n<p>To get ivtv to install, I had to add a couple kernel modules (drivers that have been moved from ivtv space to kernel space, FWIU):<\/p>\n<ul>\n<li><tt>CONFIG_VIDEO_BT848<\/tt> found at &#8220;Device Drivers&#8221;;     &#8220;Multimedia Devices&#8221;; &#8220;Video For Linux&#8221;;     &#8220;BT848 Video For Linux&#8221;. This option enables the     <tt>msp3400<\/tt> module.<\/li>\n<li><tt>CONFIG_VIDEO_AUDIO_DECODER<\/tt> found at &#8220;Device Drivers&#8221;;     &#8220;Multimedia Devices&#8221;; &#8220;Video For Linux&#8221;;     &#8220;Add support for additional audio chipsets&#8221;. This option enables the     <tt>wm8775<\/tt> and <tt>cs53l32a<\/tt> modules.<\/li>\n<li><tt><strong style=\"color: black; background-color: #ffff66\">CONFIG_VIDEO_DECODER<\/strong><\/tt> found at &#8220;Device Drivers&#8221;;     &#8220;Multimedia Devices&#8221;; &#8220;Video For Linux&#8221;;     &#8220;Add support for additional video chipsets&#8221;. This option enables the     <tt>saa7115<\/tt>, <tt>cx25840<\/tt> and <tt>saa7127<\/tt> modules.<\/li>\n<\/ul>\n<p>Then I did [emerge ivtv lirc] and it seemed to work.  Note that when I started this process, the ivtv driver was masked for amd64, but now it looks good to go.  I was browsing on a gentoo dev site and (re-)realized how much work goes into maintaining a great distribution.  Thanks gentoo dudes.<br \/>\nFrom the Gentoo Mythtv HOWTO:<\/p>\n<div class=\"code\">\n# this helps to include all the &#8220;common features&#8221;<br \/>\necho &#8220;media-tv\/mythtv alsa opengl vorbis dvb dvd ieee1394 lirc mmx xvmc&#8221; >> \/etc\/portage\/package.use<br \/>\n# this shows what USE flags will be\/are used for mythtv<br \/>\nemerge -pv &#8211;nodeps mythtv<\/div>\n<p>OK, things MIGHT be going well, if gentoo were in a stable spot, but it&#8217;s not.  I really really wanted to avoid dealing with the big raw ugly bloody newborn that is &#8220;modular xorg&#8221;, but I can&#8217;t do an [emerge world] without hitting a zillion problems.  I wonder if I can figure out how to mask around it, as it&#8217;s not even supposed to work with nvidia yet&#8230; argee&#8230;<br \/>\nCorrection: 7.1 doesn&#8217;t work with &#8220;binary drivers&#8221; (eg nvidia), just don&#8217;t do any unmasking to enable 7.1 and it sounds like 7.0 will be fine, knock on wood. (Andrea says &#8220;come here so i can use your head&#8221;).  So here we go&#8230;<\/p>\n<div class=\"code\">\nemerge gentoolkit<br \/>\nquickpkg xorg-x11<br \/>\nemerge -Ca xorg-x11 virtual\/x11<br \/>\nequery uses -a xorg-x11    (geesh that&#8217;s a lot of flags, adding &#8220;dri mmx 3dnow sse&#8221; to \/etc\/make.conf USE flags)<br \/>\nemerge -a xorg-x11       (101 packages later, zzzzzz&#8230;.)<br \/>\n * Please note that the xcursors are in \/usr\/share\/cursors\/xorg-x11.<br \/>\n * Any custom cursor sets should be placed in that directory.<\/p>\n<p> * If you wish to set system-wide default cursors, please create<br \/>\n * \/usr\/local\/share\/cursors\/xorg-x11\/default\/index.theme<br \/>\n * with content: &#8220;Inherits=theme_name&#8221; so that future<br \/>\n * emerges will not overwrite those settings.<\/p>\n<p> * Listening on TCP is disabled by default with startx.<br \/>\n * To enable it, edit \/usr\/bin\/startx.<\/p>\n<p> * Please read the modular X migration guide at<br \/>\n * http:\/\/www.gentoo.org\/proj\/en\/desktop\/x\/x11\/modular-x-howto.xml<\/p>\n<p> * If you encounter any non-configuration issues, please file a bug at<br \/>\n * http:\/\/bugs.gentoo.org\/enter_bug.cgi?product=Gentoo%20Linux<br \/>\n * and attach \/etc\/X11\/xorg.conf, \/var\/log\/Xorg.0.log and emerge info<\/p>\n<p> * You can now choose which drivers are installed with the VIDEO_CARDS<br \/>\n * and INPUT_DEVICES settings. Set these like any other Portage<br \/>\n * variable in \/etc\/make.conf or on the command line.<\/p>\n<p> * Visit http:\/\/www.gentoo.org\/doc\/en\/index.xml?catid=desktop<br \/>\n * for more information on configuring X.<br \/>\netc-update<br \/>\nrevdep-rebuild\n<\/p><\/div>\n<p>Wow, this isn&#8217;t kids&#8217; stuff, it&#8217;s rebuilding all of mythtv&#8230; zzzz&#8230; literally, it&#8217;s time for bed&#8230;<\/p>\n<p>BACK.  I forget where I left off.  I think the box is somewhat working now, but I haven&#8217;t fully configured MythTV.  You&#8217;ll have to excuse that lameness, as I&#8217;ve ordered a new PC and have been spending my time putting it together&#8230;<\/p>\n<p><center><br \/>\n<a href=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/MythTVBoxBefore.jpg\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/MythTVBoxBefore_tn.jpg\" alt=\"Before\" \/><\/a><br \/>\n<a href=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/MythTVBoxAfter.jpg\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/thedigitalmachine.com\/images\/MythTVBoxAfter_tn.jpg\" alt=\"After\" \/><\/a><br \/>\n<\/center><\/p>\n<p>and taking it apart when the mobo wouldn&#8217;t post, and sending it back, and (now) waiting for new pieces to arrive (mobo was bad, I fried an AMD64 chip in the process, awaiting a replacement for that)&#8230;  AHH THE JOY OF BEING A GEEK.  Stay tuned for another post on setting up the new box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are my notes on installing the AMD64 build of Gentoo on my EPoX 9NPA+SLI with an Athlon 64 3000+. It&#8217;s my primary Windoze box, for development and gaming, but it&#8217;s now being dual-booted as a testbed for a future MythTV-based media center&#8230; hopefully IN TIME FOR THE WORLD CUP! \ud83d\ude1b<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","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,12,4],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-linux-projects","category-mythtv","category-projects"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-26","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/130","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=130"}],"version-history":[{"count":0,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}