{"id":1635,"date":"2013-06-21T08:52:35","date_gmt":"2013-06-21T13:52:35","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=1635"},"modified":"2013-06-23T13:21:12","modified_gmt":"2013-06-23T18:21:12","slug":"hang-the-dj-music-server-xbmc-media-center-get-spring-cleaning","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2013\/hang-the-dj-music-server-xbmc-media-center-get-spring-cleaning\/","title":{"rendered":"Hang The DJ music server, XBMC media center get spring cleaning"},"content":{"rendered":"<p>I&#8217;ve put off upgrading my XBMC media center forever, as it has Just Worked for years, and I was using an old hw raid box that newer kernels didn&#8217;t like.  <\/p>\n<p>Then a drive in my raid went bad, and I realized I&#8217;d better upgrade or die.  I started by copying the system to a second drive and trying to reboot off of that.  But the root was ext3 and the second drive was ext4 and it wasn&#8217;t going to work without some tweaking, which is hard on an oooold system.  So it was &#8220;put up or shut up&#8221; time&#8230;<\/p>\n<p>Here are the adventures of me brutalizing my old gentoo box into upgrading (let&#8217;s see you do THAT with any other three-year-old distro)&#8230;<!--more--><\/p>\n<pre><code>emerge -avu portage\r\nemerge -avu system\r\n(check world file for possible removals)\r\nemerge -DvuN world --keep-going; emerge -DvuN world --keep-going; emerge --depclean && revdep-rebuild\r\n(rinse and repeat)<\/code><\/pre>\n<p>And FIX FIX FIX along the way.  \ud83d\ude42<\/p>\n<p>Fixes included:<\/p>\n<ul>\n<li>Aggressively get rid of everything along the way that blocks or that you don&#8217;t recognize as a top-level world package.  Portage will cover you, preserving old library files still in use, and re-filling dependencies during the world upgrade.  Yay portage!\n<pre><code>emerge --unmerge blah blah blah<\/code><\/pre>\n<\/li>\n<li>gcc &#8211; you have to select the new one to get it &#8211; and you better pick a new one if you wipe out the old!  heh\n<pre><code>gcc-config -l # \"dash-el\"  :-)\r\ngcc-config 1  # \"select one\"<\/code><\/pre>\n<\/li>\n<li>samba &#8211; looks like smb2 is mo betta and available &#8211; go there?\n<pre><code>max protocol = smb2<\/code><\/pre>\n<\/li>\n<li>tired of the stupid hoops to get official proprietary Java installed, let&#8217;s kick the tires of iced-tea on this XMBC box and hope it&#8217;s good enough\n<pre><code>emerge -av dev-java\/icedtea-bin\r\neselect java-vm set 1 # icedtea-bin-6\r\neselect java-nsplugin set 64bit 1 # icedtea-bin-6<\/code><\/pre>\n<\/li>\n<li>ATI and AMD apparently dropped video driver support for my HD 3000.  You seriously suck.  On to the <a href=\"http:\/\/www.gentoo.org\/proj\/en\/desktop\/x\/x11\/ati-migration-guide.xml\">open source radeon driver<\/a>&#8230;\n<pre><code>emerge -C x11-drivers\/ati-drivers\r\neselect opengl set xorg-x11\r\n# change \/etc\/make.conf from VIDEO_CARDS=\"flxwhatevea\" to VIDEO_CARDS=\"radeon\"\r\nemerge -DavuN world # will pick up radeon driver\r\nemerge -av media-libs\/libtxc_dxtn # needed by radeon i guess<\/code><\/pre>\n<\/li>\n<li>Also added support for my shiny new eSata tower &#8211; 8 bays of SATA goodness with two cables and a port-multiplier addonics card, how sweet is that??  In all, here were the kernel changes made along the way&#8230;\n<pre><code>CONFIG_DEVTMPFS must be on\r\nCONFIG_DRM isn't what it sounds like, it's for the Direct Rendering Infrastructure needed by radeon\r\nCONFIG_DRM_RADEON is what we need specifically\r\nBACKLIGHT_LCD_SUPPORT is desired by the radeon driver for some reason\r\nCONFIG_SATA_SIL, CONFIG_SATA_SIL24 adding to support my new Addonics SATA card with port multiplication functionality\r\nCONFIG_IDE removed - it says deprecated - but has all the functionality been replaced in CONFIG_ATA?  trying... and it seems to have been\r\n<\/code><\/pre>\n<\/li>\n<li>qt &#8211; what a beautiful beast it is&#8230;\n<pre><code>Warning| This obviously will break everything using the Qt libraries until they have finished emerging.\r\n\r\n1. List all installed qt packages:\r\nexport INSTALLED_QT_PACKAGES=$(eix --only-names -IC dev-qt)\r\n2. Save tarballs of the old versions should we have to roll back:\r\nquickpkg ${INSTALLED_QT_PACKAGES}\r\n3. Unmerge old version and emerge new version:\r\nemerge -Ca ${INSTALLED_QT_PACKAGES} && emerge -av1 ${INSTALLED_QT_PACKAGES}\r\n\r\nShould we need to roll back, then we can emerge the packaged versions:\r\nemerge -av1 --usepkgonly ${INSTALLED_QT_PACKAGES}<\/code><\/pre>\n<\/li>\n<li>fix up the router to properly serve up static IPs by MAC address &#8211; this is really helpful with all the multi-booting I do<\/li>\n<li>other stuff that may or may not be done yet&#8230;\n<pre><code><\/code>get all drives working, change label on raid drive #2 (or #1), reraid (software this time)\r\nmceusb is set in kernel, only partially working, need lirc to get all the keys??\r\nimon via lirc\r\nfix dune ubuntu grub management, bump ubuntu\r\nphoto management on tdm (bump gallery, fix up raid photos, import more, set up screensavers\/xbmc\/photoframe)\r\n<\/pre>\n<\/li>\n<\/ul>\n<p>And soon (as in, TWO DAYS OF COMPILING 1000 packages, hahaha!) we have the shiny, and it&#8217;s beautiful.  XBMC Frodo is looking good, thanks XMBC team.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve put off upgrading my XBMC media center forever, as it has Just Worked for years, and I was using an old hw raid box that newer kernels didn&#8217;t like. Then a drive in my raid went bad, and I realized I&#8217;d better upgrade or die. I started by copying the system to a second [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","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":[14,7,18,19,10],"tags":[166,108],"class_list":["post-1635","post","type-post","status-publish","format-standard","hentry","category-gentoo-notes","category-hangthedj","category-gentoo-media-center","category-opensource","category-tricks-tips-tools","tag-portage","tag-xbmc"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-qn","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1635","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=1635"}],"version-history":[{"count":28,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1635\/revisions"}],"predecessor-version":[{"id":1665,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1635\/revisions\/1665"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=1635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=1635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=1635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}