Menu Close

How To Create A XBMC Login Session

Here is a guide that will show you how to create a login account for XBMC. It will allow you to select XBMC when you login and after entering your password XBMC will started automatically.




To create the account and to make it show in your login screen you need to add two files. To make the files open a terminal window (press Ctrl+Alt+T) and copy+paste the following line:

sudo gedit /usr/share/xsessions/xbmc.desktop

When the text file is opened copy+paste the following lines:

[Desktop Entry]
Encoding=UTF-8
Name=XBMC
Comment=
Exec=/usr/bin/xbmc-session
Icon=
Type=Application

When the text is added save and close the xbmc.desktop file and now you need to create the file for the XBMC session. In your terminal window copy+paste the following line:

sudo gedit /usr/bin/xbmc-session

Now copy+paste the following lines:

#!/bin/bash

# add some initialization stuff here (if necessary)
xbmc --standalone


Finally make the session script executable, copy+paste the following line in your terminal window:

sudo chmod +x /usr/bin/xbmc-session

Now logout and select XBMC from your login manager’s session list.

0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
User
User
12 years ago

how to connect xbmc to internet, Please tell me,
i have tried alot of time but unsuccessful.

Waiting
Thanks

Grouty
Grouty
12 years ago

I get this error can you help? Ubuntu 11.10.

(gedit:8531): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel’, but failed: Failed to create file ‘/root/.local/share/recently-used.xbel.2USF4V’: No such file or directory

(gedit:8531): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel’, but failed: No such file or directory

Alain Wolf
Alain Wolf
12 years ago
Reply to  Grouty

This error can savely be ignored, its just the editor trying to save a “recent files” list. But its not there as you wotk with the root user an not with your own profile.

If its really bothering you can do a “sudo mkdir -p /root/.local/share/”.

Anyway its unrelated and does not affect what is done here.