ubuntu 12.10- xbmc autostart
#1
I have a novice question that I hope someone on the forum can help me further understand. I install Ubuntu 12.10 from usb stick, which I believe it is a minimum installation. I have configured the machine with the default gnome desktop xbmc and a few other apps. Although I have a few alteration ma perform the machine if pretty much ready to go.

I have modified /etc/init/tty1.cong for auto lofon as follow:
exec /bin/login -f USERNAME </dev/tty1 > /dev/tty1 2>&1

I have also modify the /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="text"

This leaves logged in on the command line on boot-up.

On the users .bashrc file I have added the following line
case "`tty`" in # XBMC . start only for tty1
*tty1) /usr/bin/xbmc;; # XBMC . start XBMC
esac # XBMC . end of case

I expected to have XBMC start as the default desktop without gdm, however I get the error “Unable to open display, install the appropriate graphics driver”. I tried to startx however the system tells me that it is not installed. I also tried to xinit, and I got the same result.

After some investigation I think that the xserver installed with gdm is xserver-xorg (please correct me if am wrong), which is used by GDM. So my question is, shouldn’t xbmc use the same xserver to start or do I have to install startx and xinit? To have XBMC as my startup application without GDM?

Can I start XBMC with xserver-xorg? If so how?

My ultimate goal hear is to have XBMC as the startup application on startup and reboot that is able to respawn. Thank you for all the assistance.
Reply
#2
Welcome to forums

Absolutely no need for any of that at all undo all of that and do:

see this xbmc autostart via upstart/xinit http://forum.xbmc.org/showthread.php?tid...pid1225202

uNi
Reply
#3
thnaks for quick reply uNiversal,

I think i went through that past, honestly, i tried so many things that did not work i am not sure what i had encountered. Let me go through it again just in case.
Reply
#4
Well you may want to reinstall your video driver. I may have replied too fast and missed something in your post.

I dont even know what video card you have missed the error you posted

Code:
Unable to open display, install the appropriate graphics driver”

that means your video driver is not installed properly or the driver you have does not support your video card version.

uNi
Reply
#5
i get a black screen on tty1, did i miss something?

I am attaching part of the boot.log, just in case


fsck from util-linux 2.20.1
fsck from util-linux 2.20.1
fsck from util-linux 2.20.1
dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN
/dev/mapper/PlexOne-root: clean, 255261/6750208 files, 2195701/26978304 blocks
/dev/sda2: clean, 253/124992 files, 107012/249856 blocks
/dev/sda1: 3 files, 63/96892 clusters
* Starting mDNS/DNS-SD daemon[ OK ]
* Starting system logging daemon[ OK ]
* Starting SMB/CIFS File Server[ OK ]
* Starting [ OK ]
* Starting Failsafe Boot Delay[ OK ]
* Starting configure network device[ OK ]
mount error(101): Network is unreachable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mountall: mount /mnt/Media/Movies [633] terminated with status 32
mount error(101): Network is unreachable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mountall: mount /mnt/Media/TvShows [634] terminated with status 32
* Starting configure network device security[ OK ]
* Starting configure network device[ OK ]
* Starting Bridge socket events into upstart[ OK ]
mount error(101): Network is unreachable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mountall: mount /mnt/Media/Music [637] terminated with status 32
* Stopping cold plug devices[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting configure network device security[ OK ]
* Stopping log initial device creation[ OK ]
* Starting save udev log and update rules[ OK ]
* Stopping save udev log and update rules[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting configure virtual network devices[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[ OK ]
* Starting XBMC-barebones-upstart-script[fail]
* Stopping XBMC-barebones-upstart-script[ OK ]
* Stopping Read required files in advance[ OK ]
* Stopping OpenSSH server[ OK ]
* Starting OpenSSH server[ OK ]
* Starting NetBIOS name server[ OK ]
* Starting Mount network filesystems[ OK ]
* Starting Samba Winbind[ OK ]
* Stopping Mount network filesystems[ OK ]
* Starting configure network device[ OK ]
* Stopping Failsafe Boot Delay[ OK ]
* Starting System V initialisation compatibility[ OK ]
* Starting modem connection manager[ OK ]
* Starting configure network device security[ OK ]
mount error(11): Resource temporarily unavailable
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mountall: mount /mnt/Media/TvShows [1183] terminated with status 32
* Starting network connection manager[ OK ]
* Stopping Read required files in advance (for other mountpoints)[ OK ]
* Stopping Read required files in advance (for other mountpoints)[ OK ]
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
* Stopping Read required files in advance (for other mountpoints)[ OK ]
* Starting AppArmor profiles 
[ OK ]
Starting CouchPotato
Starting headphones
/etc/default/sickbeard not found using default settings.
/etc/rc2.d/S20sickbeard: 54: /etc/rc2.d/S20sickbeard: DATA-DIR=/home/ylafont/.sickbeard: not found
Starting SickBeard
* Stopping System V initialisation compatibility[ OK ]
* Starting System V runlevel compatibility[ OK ]
* Starting [ OK ]
* Starting automatic crash report generation[ OK ]
* Starting [ OK ]
* Starting GNOME Display Manager[ OK ]
* Starting [ OK ]
* Starting [ OK ]
* Starting save kernel messages[ OK ]
* Starting Plex Media Server[ OK ]
* Starting [ OK ]
* Starting [ OK ]
* Starting ACPI daemon[ OK ]
* Starting regular background program processing daemon[ OK ]
* Starting deferred execution scheduler[ OK ]
* Starting CPU interrupts balancing daemon[ OK ]
* Starting crash report submission daemon[ OK ]
* Stopping Read required files in advance (for other mountpoints)[ OK ]
* Stopping Mount filesystems on boot[ OK ]
i missed your last post, Ubuntu installed a default video drive on installation, i belived everythinf was working since gdm and xbmc are working properly, Where can i find the information on the installed driver? and more inportantly is there a standard intel driver i should use?

thanks for the guidance.
Reply
#6
At least I have a clew, you have a INTEL gpu.

You should have said this in first post but never mind.

Yes try this driver http://www.techlw.com/2012/08/install-la...rs-in.html

idk about intel gpus but that should help.

uNi

Reply
#7
Sorry,. I did not know that information was important. Which is part of my confusion since everything is working fine with GDM.

let me see if these work. thanks for the quick replies and the assistance.
Reply
#8
Ok, I remove the changes I had made and installed the intel drivers., check to see to make sure.

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)

After boot the system leaves me at the login screen asking for user name and pass word.

I re-anable auto logon in ttt1, (just make sure)
exec /bin/login -f USERNAME </dev/tty1 > /dev/tty1 2>&1

ran, the script /usr/bin/xbmc manually and received

Unable to open display – XBMC needs hardware accelerated OPENGL rendering. Install the appropriated graphics driver.

Have I missed something?
Reply
#9
I think i am half way there,

first i needed to install xinit which is not install by default and causing the display driver error.

the system boots up and awaits a users name to to logon on. the good news is that after i logon on I can issue the command from the script

exec su -c "xinit /usr/bin/xbmc --standalone :0" xbmc and xbmc started up.

two problems I have, one, there is no sound, the other is that it does not start automatically, was there something i missed in the script? I rechecked it just to make sure.

Please let me know if you can, thank you.
Reply
#10
Theres way too many things wrong. First its this than that then something else, and I have a feeling this thread is going to go on forever.,

on my original link where the startup script is, theres user permissions, run those.

Code:
sudo usermod --group adm,sudo,cdrom,audio,video,plugdev,fuse xbmc
sudo adduser xbmc users

where xbmc is your username running xbmc HOWEVER not root user.

install

Code:
sudo apt-get install alsa-utils libasound2
apt-get remove --purge pulseaudio alsa-plugins

unmute alsamixer. channels

http://wiki.xbmc.org/index.php?title=XBM...nd_in_XBMC

If all that fails I give try Ubuntu minimal install+xbmc script 4th link on my signature.

uNi



Reply

Logout Mark Read Team Forum Stats Members Help
ubuntu 12.10- xbmc autostart0