Tech

After running an upgrade 'sudo apt-get upgrade' and 'sudo apt-get install xbmc' to get my system up to date (to the latest SVN) I started getting the following error:

XBMC needs hardware accelerated OpenGL rendering.
Install an appropriate graphics driver.

Please consult XBMC Wiki for supported hardware
http://xbmc.org/wiki/?title=Supported_hardware

The first time I had this happen to me, I spent a number of hours trying to figure out how to get my system back up... but by 3 am I gave up. The next day, I reran the XBMC Live installer and got my system back up. This time, I didn't want to have to redo all the changes I made, so I wanted to fix things. I did a bit of research and this time I tried to directly install the nvidia drivers right away before mucking around with my configuration.

It's relatively easy to setup samba shares on XBMC Live, but it does require bashing out some commands on the shell. First, you'll need to install samba using apt-get:

sudo apt-get update
sudo apt-get install samba

Then, you'll want to configure your shares by editing the the file named smb.conf, placed in the /etc/samba/ directory. For example, I added the user folder and media folders to be available shares by running the following command:

sudo nano /etc/samba/smb.conf

Scroll down all the way to the bottom of the file, then paste in the following (use right click in Putty to paste something from your clipboard):

[xbmc]
 path = /home/xbmc
 public = yes
 guest only = yes
 writable = yes
 browseable = yes
 force user = xbmc
 inherit permissions = yes

[media]
 path = /media
 public = yes
 guest only = yes
 writable = yes
 browseable = yes
 force user = xbmc
 inherit permissions = yes

After that, restart the samba server using:

sudo /etc/init.d/samba restart

Update: It looks like this has changed in the more recent versions of Ubuntu that the XBMC Live distribution is packaged with (10.04). You can restart the samba service using the old method:

sudo service smbd restart
sudo service nmbd restart

Note: I updated the samba configuration above to include the 'force user' and 'inherit permissions' features as I was having trouble with newly created files not getting the right permissions and logging into samba.

Also, when accessing the shares from Windows, if you left the default security options you can use the account 'guest' with no password to access the shares. Otherwise, you can play with the settings to force a local linux account to be used in order to access the shares.

It's relatively easy to install GIT on XBMC Live, but I didn't find it well documented anywhere. Login to your XBMC machine console -- either via SSH / Putty or directly from the machine (Ctrl+Alt+F2). After you are logged in, run the following command which will install the git utility:

sudo apt-get update
sudo apt-get install git-core

You may need to enter your root password (default password is 'xbmc'). The system will likely prompt you to install some other required resources. Press 'Y' to install those resources.

As an update for XBMCbuntu, you can run the following command to start/stop XBMC:

sudo service lightdm [start|stop|restart]

Original Post:

I always forget the command for restarting XBMC Live from the shell, so I figured I would post it to my blog. It's a really simple, one-line command:

sudo /etc/init.d/xbmc-live restart

Then enter the password for the root account (typically 'xbmc').

Just to be clear, the benefit of running this command instead of a full reboot (sudo reboot) is the above command only restarts the XBMC Live application. This means if you have any other services or apps running (like SABnzbd+), you can keep those apps running.

The only reason I've ever really needed the xbmc-live restart command is when something gets locked up on XBMC... and that usually only happens when I'm trying out new skins or plugins.

I should also note that on occasion this command will not restart XBMC live. The alternative is to stop, then start XBMC again using the following commands:

sudo /etc/init.d/xbmc-live stop
sudo /etc/init.d/xbmc-live start 

About Me

Josh Lyon Profile Picture

Name: Joshua Lyon
Birthday: August 8, 1985
Location: Valley Ranch (Irving), TX
E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.
Profiles: Google, Twitter