Kodi Community Forum
Linux HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: Linux HOW-TO: Automated efficient XBMC install - Ubuntu 12.10/13.04 mini based (/showthread.php?tid=141369)



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Bram77 - 2012-12-13

Great to read all the success stories and to see everybody helping each other out, especially uNiversal and wsnipx. I've been VERY busy that last few months. I have my own little development company and I have to grab opportunities when they come along. I expect to have time to work on the script the second half of January again. Sorry for the lack of updates lately.

Please keep providing feedback. I'll dig through and process it if it fits the script as soon as I can!


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - n1md4 - 2012-12-13

(2012-12-12, 10:31)uNiversal Wrote: Then set it in xorg.conf see last link on my signature and look at xorg.conf in the monitor section.

Another win, uNi. As ever, your assistance is spot-on! Wink
(2012-12-13, 11:50)jonhen Wrote: Installed last night on a JBC600 but after the install it booted to command line ...

I have this happen sometimes too, it sits in TTY and will not budge. You can switch TTY manually with alt-F*, F8 is where I find XBMC; blank screen at first, so wait a couple of seconds. And then, like you, on other reboots it goes straight to XBMC without a hitch.



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-12-13

@n1md4

yey another +1 success.

@Bram77

I sent you a pm a while back with a improved version of script the improved apparmor stuff I have found that when apparmor is removed properly rsyslog wont ever work again, so the the /etc/init/rsyslog.conf has to be updated as below.

Code:
# rsyslog - system logging daemon
#
# rsyslog is an enhanced multi-threaded replacement for the traditional
# syslog daemon, logging messages from applications

description    "system logging daemon"

start on filesystem
stop on runlevel [06]

expect fork
respawn

script
    . /etc/default/rsyslog
    exec rsyslogd $RSYSLOGD_OPTIONS
end script

After that rsyslog should work normally.

For a while now I been battling a boot problem where it hangs on grub and wont boot, needing several reboots to actually boot into xbmc or system.

I looked at logs (this is when I noticed that rsyslog was dead) and even removed the quiet option form grub but I cant see any specific errors and am a total loss.

Ive removed all the framebuffer options and cant find a single cause for this.

Other than that xbmc works perfectly.

uNi


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - illiac4 - 2012-12-13

Hmmm with grub problem i was battling too. It simply stays there and waits to press enter to continue. It is annoying when using just ir remote. Also this happens if the system hangs and you have to shut down comp with power button or. when the system is halted because of reaching thermal point and the proc is halted.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-12-13

This is only when booting from cold. Reboots works fine.

Its not the grub needing a enter press since I dont dual boot usually grub menu doesnt show up.

idk about any thermal points or proc halting.

How did you resolve your problems and in case of proc where did you start looking or fix it?

Its clearly hanging somewhere (after grub) and when errors show up on screen i.e. removing quiet option, the errors are never same twice so I can never really pinpoint to a single error or even have any clews where to start looking. I cant isolate it so I cant fix it.

uNi


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Frank-NL - 2012-12-13

I switched from OpenELEC to this script because of 64 bit and the greater freedom I have over my installation now. It is flawless and I really like it. Since I have an SSD I added /var/log and /home/xbmc/.xbmc/temp to /etc/fstab as tmpfs and mount the SSD with noatime. Works really well Smile Maybe this can be optional via the installer so the user can select it is running on a SSD? The only downside is you lose your logs with a reboot, but I couldn't care less since the system is stable.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - voona - 2012-12-13

Having some rather large issues with this script with a Ati Radeon 5870

Bascailly getting a black screen after boot can crtl,alt f1 to get into the console but x doesnt fire?

What do i need to post to debug this issue?

Code:
xbmc@xbmc:/$ cat /etc/X11/xorg.conf
Section "ServerLayout"
    Identifier     "aticonfig Layout"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    Option        "Capabilities" "0x00000800"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device     "aticonfig-Device[0]-0"
    Monitor    "aticonfig-Monitor[0]-0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Code:
xbmc@xbmc:/$ cat /var/log/Xorg.0.log |grep EE
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   936.140] Initializing built-in extension MIT-SCREEN-SAVER
[   936.752] (EE) fglrx(0): allocate shared exclusive (EE) fglrx(0):
[  1061.201] (EE)
[  1061.202] (EE) Backtrace:
[  1061.204] (EE) 0: /usr/bin/X (xorg_backtrace+0x49) [0xb7773cd9]
[  1061.205] (EE) 1: /usr/bin/X (0xb75cc000+0x1abbc6) [0xb7777bc6]
[  1061.207] (EE) 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb75a940c]
[  1061.208] (EE) 3: /usr/lib/i386-linux-gnu/libpciaccess.so.0 (0xb74fc000+0x6572) [0xb7502572]
[  1061.209] (EE) 4: /usr/lib/i386-linux-gnu/libpciaccess.so.0 (pci_io_read8+0x3c) [0xb74ff46c]
[  1061.209] (EE) 5: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (amd_xs113_int10_x_inb+0x59) [0xb6bf7e69]
[  1061.210] (EE) 6: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (0xb6476000+0x775b3c) [0xb6bebb3c]
[  1061.211] (EE) 7: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (X86EMU_exec+0xbe) [0xb6bdbc2e]
[  1061.212] (EE) 8: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (amd_xs113_int10_xf86ExecX86int10+0x55) [0xb6bf9285]
[  1061.213] (EE) 9: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (xf86ExecX86int10+0x22) [0xb66b4bc2]
[  1061.213] (EE) 10: /usr/lib/xorg/modules/libvbe.so (VBESetVBEMode+0xcb) [0xb6462fbb]
[  1061.214] (EE) 11: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (atiddxVBESetConsoleMode+0x48) [0xb66e9828]
[  1061.215] (EE) 12: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (xdl_xs113_atiddxFreeScreen+0x458) [0xb68579a8]
[  1061.216] (EE) 13: /usr/lib/i386-linux-gnu/xorg/extra-modules/extra-modules.dpkg-tmp/modules/drivers/fglrx_drv.so (xdl_xs113_atiddxCloseScreen+0x254) [0xb6857224]
[  1061.217] (EE) 14: /usr/bin/X (0xb75cc000+0x7a70a) [0xb764670a]
[  1061.217] (EE)
[  1061.218] (EE) Segmentation fault at address 0x0
[  1061.221] (EE)
[  1061.224] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1061.225] (EE)

Code:
xbmc@xbmc:/$ cat /var/log/Xorg.0.log |grep WW
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   936.137] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   936.137] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   936.137] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   936.137] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[   936.137] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   936.137] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   936.137] (WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[   936.157] (WW) Falling back to old probe method for fglrx
[   936.164] (WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
[   936.171] (WW) fglrx(0): board is an unknown third party board, chipset is supported
[   936.755] (WW) fglrx(0): Option "VendorName" is not used
[   936.755] (WW) fglrx(0): Option "ModelName" is not used


Cheers



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - squareatom - 2012-12-14

(2012-12-13, 14:47)Frank-NL Wrote: I switched from OpenELEC to this script because of 64 bit and the greater freedom I have over my installation now. It is flawless and I really like it. Since I have an SSD I added /var/log and /home/xbmc/.xbmc/temp to /etc/fstab as tmpfs and mount the SSD with noatime. Works really well Smile Maybe this can be optional via the installer so the user can select it is running on a SSD? The only downside is you lose your logs with a reboot, but I couldn't care less since the system is stable.

What's the benefit of having logs on a tmpfs?

EDIT: NM, I just googled it... I was being lazy. LOL. For anyone else. It's to save SSD life since they have a limited amount of write cycles.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - thethirdnut - 2012-12-14

uNi RE: slow boot.

Are you using EXACT same hardware before/after these unexplained 'pauses' occurred or is this all new hardware never tested before, etc?

I am experiencing a similar ONLY cold boot issue as well - reboot / warm boot is 10 for 10 in consistent speed. I changed several things including replacement of a failed SATA2 HDD with and SATA3 SSD + SATA DVD drive. BIOS on mobo didn't change and is as far as it can go.

In my case, however, I am not convinced there isn't some SSD / SATA delay occurring...don't believe the OS is at all responsible ATM. I am digging into it further, but was curious to know if anything changed or was new on your HW front as well - lemme know.


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Frank-NL - 2012-12-14

(2012-12-14, 02:14)squareatom Wrote:
(2012-12-13, 14:47)Frank-NL Wrote: I switched from OpenELEC to this script because of 64 bit and the greater freedom I have over my installation now. It is flawless and I really like it. Since I have an SSD I added /var/log and /home/xbmc/.xbmc/temp to /etc/fstab as tmpfs and mount the SSD with noatime. Works really well Smile Maybe this can be optional via the installer so the user can select it is running on a SSD? The only downside is you lose your logs with a reboot, but I couldn't care less since the system is stable.

What's the benefit of having logs on a tmpfs?

EDIT: NM, I just googled it... I was being lazy. LOL. For anyone else. It's to save SSD life since they have a limited amount of write cycles.

That, since my SSD is a cheap older one I don't want it to die before Frodo reaches gold status Wink
It can also be used to make your HDD spin down if you're not using it.



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - un1versal - 2012-12-14

(2012-12-14, 05:08)thethirdnut Wrote: uNi RE: slow boot.

Are you using EXACT same hardware before/after these unexplained 'pauses' occurred or is this all new hardware never tested before, etc?

I am experiencing a similar ONLY cold boot issue as well - reboot / warm boot is 10 for 10 in consistent speed. I changed several things including replacement of a failed SATA2 HDD with and SATA3 SSD + SATA DVD drive. BIOS on mobo didn't change and is as far as it can go.

In my case, however, I am not convinced there isn't some SSD / SATA delay occurring...don't believe the OS is at all responsible ATM. I am digging into it further, but was curious to know if anything changed or was new on your HW front as well - lemme know.

Its not a slow boot, it hangs after grub on a cold boot and stays hung after two or 3 tries it boots in and takes about 20 seconds... The hang after grub happens freequently enough to make me wonder, and its not hardware failing as there's no errors to attest for that, though Im not sure where else to look.

Its a ION1 Asrock ION 330 HT, nothing different or hardware its pretty much stock (except for the fans), no SSD.




RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - wsnipex - 2012-12-14

@voona:
1.) please use pastebin
2.) post a complete xorg.0.log and a debug log
3.) you might have a broken fglrx install


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - d_hero - 2012-12-14

(2012-11-28, 01:16)reddy Wrote:
(2012-11-27, 18:31)d_hero Wrote: ... the delay at the beginning is really long. Any ideas what could be causing that?

Quick guess - is your network configured properly? I'd say it may wait until the timeout for dhcp passes.

long delay in getting back to you so sorry but ive just managed to change the network to static and still get the same issue. Long delay with the cursor flashing and then the splash screen is there for a few seconds before XBMC starts fine, so its just that flashing cursor thats bugging me


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - thethirdnut - 2012-12-14

@uNi - alright...I'll double-check on my end as well if delay is before / after GRUB or not too...


RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - ozzyman778 - 2012-12-15

(2012-12-08, 09:48)wsnipex Wrote: its ubuntu so:
sudo apt-get update
sudo apt-get upgrade

I constantly recieve this error:

Code:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

So I run
Code:
$ sudo dpkg --configure -a

It then hangs on
Code:
Setting up xserver-common (2:1.13.0-0ubuntu6.1) ...
Setting up libxml2:amd64 (2.8.0+dfsg1-5ubuntu2.1) ...
Setting up libisc83 (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up xserver-xorg-core (2:1.13.0-0ubuntu6.1) ...
Setting up linux-image-3.5.0-19-generic (3.5.0-19.30) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.5.0-19-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-19-generic /boot/vmlinuz-3.5.0-19-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-19-generic /boot/vmlinuz-3.5.0-19-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-19-generic

So I use Cntrl+C and it seems to finish with some errors

Code:
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-19-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-19-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libcups2:amd64 (1.6.1-0ubuntu11.3) ...
dpkg: dependency problems prevent configuration of linux-image-extra-3.5.0-19-generic:
linux-image-extra-3.5.0-19-generic depends on linux-image-3.5.0-19-generic; however:
  Package linux-image-3.5.0-19-generic is not configured yet.

dpkg: error processing linux-image-extra-3.5.0-19-generic (--configure):
dependency problems - leaving unconfigured
Setting up liblwres80 (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up libtiff4:amd64 (3.9.6-9ubuntu1.2) ...
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.5.0-19-generic; however:
  Package linux-image-3.5.0-19-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.5.0-19-generic; however:
  Package linux-image-extra-3.5.0-19-generic is not configured yet.

dpkg: error processing linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic; however:
  Package linux-image-generic is not configured yet.

dpkg: error processing linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up libisccc80 (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up libdns81 (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up libisccfg82 (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up libbind9-80 (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up bind9-host (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Setting up dnsutils (1:9.8.1.dfsg.P1-4.2ubuntu3.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
linux-image-3.5.0-19-generic
linux-image-extra-3.5.0-19-generic
linux-image-generic
linux-generic


So after this update completes 100% when i use sudo apt-get upate

Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  xbmc xbmc-bin
The following packages will be upgraded:
  apt apt-transport-https apt-utils dconf-gsettings-backend dconf-service
  libapt-inst1.5 libapt-pkg4.12 libcairo-gobject2 libcairo2 libdconf1
  libmysqlclient18 mountall mysql-common python3-gi
14 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
4 not fully installed or removed.
Need to get 4,136 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue [Y/n]?



For those of you who run into this issue use this command:

Code:
sudo apt-get dist-upgrade

You will then be able to upgrade XBMC