Re-building the linux-based mediacenter: Ubuntu x86_64 + MythTV

MythTV Menu

The (temporary) final result of my Mediacenter.

As I mentioned in an earlier post, I was installing Mythbuntu onto my mediacenter. During the installation process, I changed my mind. Although Mythbuntu seems perfect at first site, to me it’s not. Too many packages have been removed and sorting out everything would take me too much time.Mythbuntu encountered issues with the videodriver, the networking gear and the audiocard. Now, I decided to install a regular Ubuntu and install MythTV on top of it. Here’s the steps I took to create my mediacenter, using Ubuntu and MythTV on a Gigabyte GA 73PVM-S2h driven system.

First, get a copy of the appropriate version Ubuntu and burn it on a CD. Ubuntu is freely available for download. You can even get yourself a copy in the mail. Downloads are available here. Remember, don’t get confused by the names: since AMD was the first to produce a 64bit processor, the distributions are called AMD64 for all 64bit systems. Also Intel!

The CD contains a LiveCD version of Ubuntu. This means you can boot your computer from CD without installing anything, perfect to take a quick look around! At the desktop, you’ll find a nice “Install Ubuntu” shortcut. Doubleclick it to install Ubuntu. Took me about 10 minutes and everything was installed.

  • Can’t get the CD to boot/install? Try the Safemode graphics boot-option (the second one). This has a better change in producing a nice desktop and recognising your mouse.

After installing, I rebooted to be sure the CD wasn’t needed anymore. A default desktop is shown, as a part of a default system ensuring you have everything you need to get started. Now, finetuning can start.

The motherboard is equipped with a ALC889A sound chipset. To get this up and running, you need to install the appriopriate drivers. In my case, the chipset can be recognised as a ALC882 chipset, available in the backports-modules package.

  • To use apt-get. you have to have superuser privileges. You can choose to add sudo prepending all of the commands, or to enter sudo su and enter the commands as specified. Last method is generally not recommended, but it saves some time so I did do it.

The backport-modules package is kernel specific, so you have to find out which kernel is running.
uname -r
# answered 2.6.22-14-generic , so:
apt-get install linux-backports-modules-2.6.22-14-generic

Or just try this:

apt-get install linux-backports-modules-`uname -r`

To load the driver into the kernel, use modprobe. So, copy-paste:

modprobe snd-hda-intel

During all of this, the annoying beep of the system speaker really pissed me of. Therefore, I decided to disable that:

#disable speaker immediately:
modprobe -r pcspkr
# disable the speaker forever:
echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist

More coming up. Have to enjoy a Christmas meal now :)

To get the videocard working, I first looked at the currently used driver. Ubuntu recognizes the videocard as a VESA and my monitor is a Generic screen. Time to update.

My motherboard is equipped wit a GeForce 7100 onboard videocard. Nvidia offers some restricted drivers, which can be downloaded at their site. At the time, 169.04 was the latest version. I used a nice post at Ubuntu-Bits telling me how to install the appropriate driver :

#copy xorg.conf to a backup:
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
# download the necessary sources
apt-get install build-essential linux-headers-`uname -r`
apt-get install linux-source
cd /usr/src
tar xvjf linux-source-2.6.22.tar.bz2
#create a symlink to the extracted files:
ln -s linux-source-2.6.22 linux
apt-get remove nvidia-glx-new --purge
emacs /etc/default/linux-restricted-modules-common
#edit DIABLED_MODULES to DISABLED_MODULES="nv nvidia_new"

Now, hit CTRL + ALT + F1 to open up a terminal session and logon again. Install the driver and restart the Desktop Manager. In my case, libc was missing so I had to install that as well. I answered all questions positively, so I enabled the 32 bits OpenGL and the auto-xorg creation:

#stop gdm
/etc/init.d/gdm stop
#install driver:
cd Desktop
sh NVIDIA-Linux-x86_64-169.04-pkg2.run
/etc/init.d/gdm start

Here we are, a working Desktop system. A few other tweaks: to enable networking, I had to click the icon manually and set the network to active. Also, I edited the sources.list to stop APT from using the CD by placing a # at the first line:

#install emacs:
apt-get install emacs21
# edit the cdrom entry in /etc/apt/sources.list to look like this:
# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release amd64 (20071016)]/ gutsy main restricted

Next step: installing SABnzbdPLUS and MythTV.

Add to your favorites:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon

This entry was posted on Wednesday, December 26th, 2007 at 17:22 and is filed under Blog, HTPC, Hardware, Mediacenter, Tech, Testing, Unix general. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

18 Responses to “Re-building the linux-based mediacenter: Ubuntu x86_64 + MythTV”

Moez January 6th, 2008 at 22:50

Hello!
I have the same motherboard. I follow your instructions concerning the videocard and i have the message “Ubuntu is running on low-graphics mode” when i reboot. Also, my monitor is always a “generic Monitor” and the driver is “vesa” in the “Screens and Graphics” tool. But, when i see my “xorg.conf”, it’s okay, i have nvidia driver.

An idea ? Thanks !

Jaap January 7th, 2008 at 01:46

Hi Moez,

Thank you for your feedback. Did you try to enable the “Restricted Driver” for the Nvidia card?

Also, when you installed the Nvidia driver, did the installer complain about your Xorg.conf not being original?

Besides this, what kind of screen do you use and is the screen recognised ok?

Moez January 7th, 2008 at 21:52

Hello Jaap !
I try to enable the “Restricted Driver” and it works. But, when i reboot, same problem “Ubuntu is running…” and the resolution is on 800*600.

My monitor is a ViewSonic P90F 19″ CRT. I work with the resolution 1280*1024. But, when i launch an application which necessite a 3D acceleration, i have some display trouble (Many blanc lines and blinks).

Now, i work without a driver, i have a goog resolution (1280*1024) but i still have the display problems and i cannot use a 3D library (OpenGL applications), play a game…

Thank you Jaap and congratulations for this helpful site.

See you later !

Jaap January 9th, 2008 at 00:01

Hi Moez,

I’ve had the same problem. You’ve probably altered your Xorg.conf so it’s not validated by the Nvidia driver.

Copy your default Xorg.conf (probably Xorg.conf.default) to Xorg.conf and reinstall the restricted driver. Should work OK now.

Also, hardware acceleration should be available, so your 3D apps should work. Good luck!

Moez January 13th, 2008 at 18:43

Hi !
I generate a new xorg.conf and i reinstall the restricted driver. And now, when i boot my box, i have the same message Ubuntu is running on low-graphic mode” and the resolution is on “800×600″. When i take a look to the “Screens and Graphics” tool, i see that the model of the screen is “Plug ‘n’ Play”, the driver is “vesa” and the maximum resolution is “800×600″. Now, i try to change the model to another one “Monitor 1280×1024″, change the resolution to “1280×1024″ and it work (After a logout). But, if i reboot, i’m in “800×600″ with the display message.

Thanks !

Jaap January 15th, 2008 at 21:43

Hi Moez,

I was just playing with the install scripts nvidia provides. System >> Administration >> Restricted Drivers Manger shows me tha i’m using the nvidia driver. Or, i should say, it says the driver is “In Use”, but not Enabled. Don’t get it.

After I set it to “In Use” and reboot, the config is broken. Deselecting that option doesn’t help, the only way to get it up and running again is to re-install the nvidia driver.

Maybe it has something to do with my screen: i use a Panasonic Plasma TV instead of a normal monitor, connected via HDMI.

rajkumar January 19th, 2008 at 06:00

Hi jaap,
I have followed ur step to install,I got both graphics and audio working.Thanks
But the maximum resolution is 1280*800.How to get more than that my monitor is LG700E.

Jaap January 19th, 2008 at 15:04

Hi Rajkumar,

I don’t have any experience with that. However, when I look at Google, I find a post at the UbuntuForums where somebody tried to manually edit the Xorg.conf for an LG Studioworks 700E. Also, I found some specs of your monitor, which state that  it supports VESA plug and play, so maybe that’s an option for you. Finally, maybe you have some luck trying one of the options at zjohnsons page.

Maybe that will get it running!

Moez February 2nd, 2008 at 23:44

Hi Jaap!
Hallelujah ! It works finally!

I try a new Ubuntu install. And, i follow you tutorial with the original xorg.conf anf it works. I certainly altered this file in my last configuration.

Thank you very much !

Jaap February 3rd, 2008 at 19:47

Hi Moez,

your enthousiasm brings a smile on my face :) Did you just do this and did you use the 169.09 drivers from nvidia, or did you use a different version?

Tony February 3rd, 2008 at 21:25

Hi Jaap,

Thanks for these instructions. I’m familiar with computers (I’m a software developer), but new to Linux, and I thought configuring Linux on this system would be educational. It has been!

I followed your instructions as far as installing the driver. The command ’sh NVIDIA-Linux-x86_64-169.04-pkg2.run’ returns saying there is no file ‘NVIDIA-Linux-x86_64-169.04-pkg2.run’, and indeed, there isn’t. (I’m in directory /home//Desktop)

At what point was the driver supposed to be created? Am I missing something?

Any help appreciated,

Tony

Moez February 4th, 2008 at 04:05

Hi!
I do exactly what you wrote ! The version of the driver is 169.09, the last version i think.

Anyway,… Thank you for this very helpful tutorial. Goodbye!

Moez February 4th, 2008 at 15:39

Hi Tony,
Try to add execution permissions to the driver file (chmod +x NVIDIA-Linux-x86_64-169.04-pkg2.run), and execute it with the following command :

$> sudo ./NVIDIA-Linux-x86_64-169.04-pkg2.run

Should work now.

Jaap February 4th, 2008 at 18:53

Hi Tony,

Thanks for your comment. Take a look at this site:
http://www.nvidia.com/object/unix.html and follow the link to the (currently) appropriate driver http://www.nvidia.com/object/linux_display_amd64_169.09.html

Download the driver to your Desktop, by clicking the link or do it via wget in your terminal:
cd ~/Desktop
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/169.09/NVIDIA-Linux-x86_64-169.09-pkg2.run

Now, run the installer:

sh NVIDIA-Linux-x86_64-169.09-pkg2.run

rod May 24th, 2008 at 07:32

Thank you for publishing this info.
I have just built a media centre from ANTEC fushion case, AMD X64 Athlon 2 4800+ CPU, 2 Gb RAM, 1.5 TB disks (2×750Gb Samsung 7200 rpm 32Mb cache), DVico dual digital tuner, Mythbuntu (Hardy) X64 OS and systems. The MOBO is a Gigabyte GA-MA78GM-S2H and includes the same sound card as you note above. Getting the sound card to work brought me to your posts.

The onboard video, however beat me after a week of trying (ATI HD3200). I bought another ATI card that was listed as supported (HD2400XT) and was again stymied – including the latest catalyst drivers and the supposedly working open source stuff.
Put in a NVidia 8600GT 1Gb that I had lying around, put in the restricted drivers and presto, a full operating system.

I also resorted to an older DVico Tuner card as the DVico Dual digital 4 wasn’t fully supported.

Your post has helped me sort through some issues.
Much appreciated.

Cheers

Rod.

Jaap May 26th, 2008 at 12:35

Hi Rod,

Thank you foor your feedback, it is greatly appreciated. Maybe you can send some screenshots?

:-)

Regards,

Jaap

Beulbek » Blog Archive » February’s top hits October 4th, 2008 at 11:32

[...] /2007/12/26/re-building-the-linux-based-mediacenter-ubuntu-x86_64-mythtv [...]

Leave a Reply