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 - illiac4 - 2012-11-11

No it does not require it.

If you want to use wicd you can try this plugin https://github.com/downloads/vikjon0/xbmc.script.linux.wireless/script.linux.wireless-0.0.6.zip to manage wireless. Report if it will work.



RE: HOW-TO: Automated efficient (dedicated) XBMC installation on Ubuntu minimal 12.10 - Krautmaster - 2012-11-11

(2012-11-07, 22:22)illiac4 Wrote:
(2012-11-07, 21:36)Krautmaster Wrote: Made an unattended install

https://dl.dropbox.com/u/21136636/Stuff/1210/mini.iso

installs VDR as option too + several stuff like my custom xbmc config folder

simply choose "Automatic HTPC install"

Can you post just a script so we can see what it does. Personally i prefer original minimal iso with script. Before the install i like to 'analyse' the script.

I have also installed by myself:
- boblight
- transmision daemon with pushover script
- sick beard
- couch potato
- forked-daap
- samba
- plugin.program.executor to be able to execute some scripts from inside XBMC (f.e. change lights of ambilight, restart some deamons,...)

To do:
1. I have to find out how to put internal disk to sleep after some time. (Hopefully easy)
2. Still have to find out to run x11vnc without getting black screen. (Hard)
3. Install headphones service. (Easy task)
4. Try the new way to parse xml from tvheadend without using xmltv. This should be new feature of 3.2 (Easy task)
5. When my IR remote comes, I have to make them work.

https://dl.dropbox.com/u/21136636/Stuff/1210/mini.iso
(reload should work better now with manual Lan settings and manual partitioning)

on first boot it runs that script:

https://github.com/Krautmaster/xbmc-ubuntu-minimal/blob/master/12.10/current/prepare_install.sh

Simply did a fork

Added some "functions" to run from external scripts

https://github.com/Krautmaster/xbmc-ubuntu-minimal/tree/master/12.10/download/functions

if anybody wants to add stuff or to edit simply join that git

By pushing this additional stuff to that fuction folder u can smimply add them in the main script by setup "functionname"

Im interested in

- transmision daemon with pushover script
- sick beard
- couch potato
- forked-daap

need to google for, could be interesting stuff to add as optional features.


Edit: Replaced the Oscam stuff by my own one due to the fact that the oscam-svn ppa version is very old and the newer from svn directly is far much better



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

(2012-11-11, 18:49)Krautmaster Wrote:
(2012-11-07, 22:22)illiac4 Wrote:
(2012-11-07, 21:36)Krautmaster Wrote: Made an unattended install

https://dl.dropbox.com/u/21136636/Stuff/1210/mini.iso

installs VDR as option too + several stuff like my custom xbmc config folder

simply choose "Automatic HTPC install"

Can you post just a script so we can see what it does. Personally i prefer original minimal iso with script. Before the install i like to 'analyse' the script.

I have also installed by myself:
- boblight
- transmision daemon with pushover script
- sick beard
- couch potato
- forked-daap
- samba
- plugin.program.executor to be able to execute some scripts from inside XBMC (f.e. change lights of ambilight, restart some deamons,...)

To do:
1. I have to find out how to put internal disk to sleep after some time. (Hopefully easy)
2. Still have to find out to run x11vnc without getting black screen. (Hard)
3. Install headphones service. (Easy task)
4. Try the new way to parse xml from tvheadend without using xmltv. This should be new feature of 3.2 (Easy task)
5. When my IR remote comes, I have to make them work.

https://dl.dropbox.com/u/21136636/Stuff/1210/mini.iso
(reload should work better now with manual Lan settings and manual partitioning)

on first boot it runs that script:

https://github.com/Krautmaster/xbmc-ubuntu-minimal/blob/master/12.10/current/prepare_install.sh

Simply did a fork

Added some "functions" to run from external scripts

https://github.com/Krautmaster/xbmc-ubuntu-minimal/tree/master/12.10/download/functions

if anybody wants to add stuff or to edit simply join that git

By pushing this additional stuff to that fuction folder u can smimply add them in the main script by setup "functionname"

Im interested in

- transmision daemon with pushover script
- sick beard
- couch potato
- forked-daap

need to google for, could be interesting stuff to add as optional features.


Edit: Replaced the Oscam stuff by my own one due to the fact that the oscam-svn ppa version is very old and the newer from svn directly is far much better

I think you will get better success with creating seperate thread.
I have looked into your scipt and i like improvements Smile

First I see Krautmaster that you are owner of Nvidia card, i assume Smile
I do not like that both scripts adds only settings for Nvidia cards. This are settings for ATI:
Code:
<cputempcommand>echo "$(sensors -u | head -6 |grep "temp2_input"| awk '{print $2 }' |awk '{printf("%d\n",$1 + 0.5);}') C"</cputempcommand>
  <gputempcommand>/usr/bin/aticonfig --od-gettemperature | grep Temperature | cut -f 2 -d "-" | cut -f 1 -d "." | sed -e "s, ,," | sed 's/$/ C/'</gputempcommand>

Second I saw your boblight script. Do you still uses x11 for Nvidia cards on. ati it does not work? Personally i'am compiling boblight also with x11 but i'm using it only for testing. I'm using addon. Also i'm compiling my own version with chase-daemon included http://code.google.com/p/boblight/issues/detail?id=42 it has some really nice effects and it can be run from addon executor within xbmc.
Also I have had problem staring microcontroller for leds (arduino). The way that you have described did not work for me. I have had to start boblightd after the xbmc was running otherwise the communication with controller was lost.
I'm using autoexec.py under /home/xbmc/.xbmc/userdata

Code:
import os, sys
os.system('/media/scripts/boblightd.sh');
sys.exit()

boblightd.sh
Code:
#!/bin/bash
killall boblight-constant
killall boblight-X11
killall boblight-chase
killall -v boblightd
sleep 12
/usr/bin/boblightd -f > /dev/null 2>&1

I can give you install details for the scripts mentioned if you want to include them in script. To store scripts i use /media/scripts/ folder. Pushover script is of course user depended as it has to have some user specific settings.
I can also send you my notes that i'm making when i'm building media centre if you want.

Code:
#!/bin/sh

curl -s \
    -F "token=trtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtrtr" \
    -F "user=fgbfghgfdhgfhfghert5ztrrtghtrhgtrg" \
    -F "title=Download Finished" \
    -F "message= Lenovo Q180 $TR_TORRENT_NAME: $TR_TIME_LOCALTIME" \
    http://api.pushover.net/1/messages > /dev/null

You can also add wireless drivers:
apt-get update
apt-get install wicd-curses

XBMC addon for wicd drivers is here https://github.com/downloads/vikjon0/xbmc.script.linux.wireless/script.linux.wireless-0.0.6.zip





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

Can someone say if wicd is working for him? I can connect but i can not reach the internet. The network settings are correct and are auto assign from dhcp.
It looks like it is constantly connecting and disconnecting. I'm now iterested if this is general or. my specific problem I have RTL8188Ce and have already compiled the newest drivers but still the same problem. Basically wireless is unusable.


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

Hi i have an intel dh77eb and a gt430 / gt610 nvidia card

i would like to use this install over openelec as i find openelec to limited and some videos not working on v2 but on v1 they work...

iwhich install brams or krautmaster

main things i want is

xbmc light install sabnzbd, sickbeard, couch potato, transmission and samba mainly...

i know how to install most of the addosn manually as i used the live version bhefore.....

which install will do this in script..

also do the apt upgrade will update command update everything when i want to...

Thanx Denis


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

Hey Denis

If you do decide to use this script, let me know if you got the audio working. I have the same video card Nvidia GT430, but as of yet haven't gotten the audio going via HDMI.


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

make sure alsa mixer is unmuted and in xbmc make sure custom for both and type plughw:0,9 or 1,9

1,9 is only if you have audio enabled in bios....

see if that works

thats how i used it in openelec


be trying the script tonight....

Denis
gt610/gt570 is 0,7 or 1,7



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

Good work on this script, only thing I am missing is that it automatically installs the latest Frodo release.
I really want to use the Eden release since this is what is installed on other boxes, and I want to keep updating the same database ...


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

Meanwhile I uninstalled the repos for nightlies and xbmc all together.
Then reinstalled xbmc via the official ubuntu repo, and now I got myself a working eden version.
Any update on adding this to the script?


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

(2012-11-13, 17:21)supahfly Wrote: Meanwhile I uninstalled the repos for nightlies and xbmc all together.
Then reinstalled xbmc via the official ubuntu repo, and now I got myself a working eden version.
Any update on adding this to the script?

Easiest thing to do is change the repo XBMC is pointing to in the script BEFORE you run it.



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

I atually was not able to figure out which one I had to put in there ...
Which one is that for the stable EDEN releases?
I tried with ppa:nathan-renniewaldock/xbmc-stable, but that failed with some QT3 python error.
Perhaps this error was throzn bevause I have so,e traces of the newer version that had been installed ,dunno ...


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

This is the Main / Stable XBMC PPA.

https://launchpad.net/~team-xbmc/+archive/ppa


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

Just wanted to report I had an error with the script version 2.6
It aborted with "can't find gfx card "advanced"

My hardware is a laptop the run a 2.1 GHz AMD Athlon II Dual-Core Processor P320 with a ATI Mobility Radeon HD 5470 Graphics and a Integrated ATI Radeon HD 4250

With a full install of ubuntu works perfect and gets recognized.
I tried verion 2.4 I had more luck, I was able to select my gfx card and the script ended succesfully but after reboot i only got a command prompt.

It's probably duo to the dual gfx card, anyone else here had similar problems?


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

I've had good luck adding a few optimizations that help with the responsiveness of XBMC that may be of use.

Moving /tmp to RAM is becoming more common place and may soon become standard on some distros. Adding this line to /etc/fstab would enable it:
Code:
tmpfs  /tmp tmpfs   defaults,noatime,mode=1777   0       0

Found some benchmarks here and here that seem to identify some changes to ext4 that can reduce latency and increase throughput when compared to default. Using basic sysbench and albiet limited testing I am showing a decrease from 8ms to 5ms on average execution with an increase of transfer from 959.99Kb/sec to 1.901Mb/sec (if included with a change in kernel as shown later).

Ordered journaling is generally safe and nearly indistinguishable from the more risky "Writeback". The journaling can be changed by running
Code:
tune2fs -o journal_data_ordered /dev/sda1
e2fsck -D /dev/sda1

Then re-mounted on boot by adding this to /etc/fstab
Code:
noatime,nodiratime,data=ordered,barrier=0,errors=remount-ro      1   1

With 2GB RAM I occassionally have too much SWAP getting used that really causes lack of responsiveness. No such issues after some modifications to the sysctl that can be found on the net at places such as this.

Increasing the timer in the kernel to 1000 and using the BFS scheduler also seem to improve responsiveness, but maybe harder to quantify. Some benchmarks are out there for the Zen and Liquorix kernels that enable these and other customizations. Granted, a custom configured Zen Kernel isn't something that could be scripted, but perhaps a PPA and apt install could.

Not confident in scripting knowledge enough to know if these are options that could even be implemented by automation. Or if they would be of interest. But hopefully comes in handy for some who may like the thrill of a little risk with their system Wink


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

Code:
cp /etc/sysctl.conf   /etc/sysctl.conf.back

Now edit the /etc/sysctl.conf file and put these two inside
Code:
vm.swappiness = 10
vm.vfs_cache_pressure = 50
Your fstab is overly messed. shouldn't need any alterations tbh idk what your doing is all great to improve performance on nothing that can be done.

uNi