Kodi Community Forum
Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112)
+--- Thread: Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] (/showthread.php?tid=194362)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

Well I guess I'm failing at the mounting the openelec partition part.

I'm not sure what option I need to start with to get there. Any of the first two options "install lubuntu" or "try lubuntu" immediately make the system reboot.

All of the other options seem to have nothing to do with this.

I'm pretty new to this stuff. I guess I'll have to take the long route, clear the chromebox, run the script and just continually do this until it accepts an advancedsettings.xml file.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Matt Devo - 2015-05-05

(2015-05-05, 21:13)Living Legend Wrote: Well I guess I'm failing at the mounting the openelec partition part.

I'm not sure what option I need to start with to get there. Any of the first two options "install lubuntu" or "try lubuntu" immediately make the system reboot.

All of the other options seem to have nothing to do with this.

I'm pretty new to this stuff. I guess I'll have to take the long route, clear the chromebox, run the script and just continually do this until it accepts an advancedsettings.xml file.

sounds like there's an issue with the way you created the lubuntu installation media. Use UUI (universal usb installer) as recommended.

you are running a standalone OpenELEC setup, correct? Then you're past the point of needing (or being able to use) the script. Just boot the OE USB installer and reinstall like you did before. Or if you don't have the USB installer, create one on another PC using the instructions linked in the wiki


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

(2015-05-05, 21:17)Matt Devo Wrote:
(2015-05-05, 21:13)Living Legend Wrote: Well I guess I'm failing at the mounting the openelec partition part.

I'm not sure what option I need to start with to get there. Any of the first two options "install lubuntu" or "try lubuntu" immediately make the system reboot.

All of the other options seem to have nothing to do with this.

I'm pretty new to this stuff. I guess I'll have to take the long route, clear the chromebox, run the script and just continually do this until it accepts an advancedsettings.xml file.

sounds like there's an issue with the way you created the lubuntu installation media. Use UUI (universal usb installer) as recommended.

you are running a standalone OpenELEC setup, correct? Then you're past the point of needing (or being able to use) the script. Just boot the OE USB installer and reinstall like you did before. Or if you don't have the USB installer, create one on another PC using the instructions linked in the wiki

I'm actually running dual boot with Chrome OS. I guess there's probably an easier way to access this partition from the Chrome OS?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Matt Devo - 2015-05-05

(2015-05-05, 21:26)Living Legend Wrote: I'm actually running dual boot with Chrome OS. I guess there's probably an easier way to access this partition from the Chrome OS?

oh, well that explains why you're not able to boot the lubuntu USB - certain bootloaders don't work well with the stock firmware, and often you need additional kernel parameters to boot Linux

to mount the partition in ChromeOS, open a shell terminal like you would to open the script, then:

Code:
mkdir /tmp/storage
sudo mount /dev/sda7 /tmp/storage
rm /tmp/storage/.kodi/userdata/advancedsettings.xml

then reboot into OE and try again. You could edit the file from ChromeOS vs deleting it, but if you don't know how to use vi, it's better you don't.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

(2015-05-05, 21:37)Matt Devo Wrote:
(2015-05-05, 21:26)Living Legend Wrote: I'm actually running dual boot with Chrome OS. I guess there's probably an easier way to access this partition from the Chrome OS?

oh, well that explains why you're not able to boot the lubuntu USB - certain bootloaders don't work well with the stock firmware, and often you need additional kernel parameters to boot Linux

So with that said, do I have any options for accessing the any files from the openelec partition such as the log or the advancedsettings.xml file? Or am I out of luck and I need to re run the script?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Matt Devo - 2015-05-05

see edit above


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

(2015-05-05, 21:37)Matt Devo Wrote:
(2015-05-05, 21:26)Living Legend Wrote: I'm actually running dual boot with Chrome OS. I guess there's probably an easier way to access this partition from the Chrome OS?

oh, well that explains why you're not able to boot the lubuntu USB - certain bootloaders don't work well with the stock firmware, and often you need additional kernel parameters to boot Linux

to mount the partition in ChromeOS, open a shell terminal like you would to open the script, then:

Code:
mkdir /tmp/storage
sudo mount /dev/sda7 /tmp/storage
rm /tmp/storage/.kodi/userdata/advancedsettings.xml

then reboot into OE and try again. You could edit the file from ChromeOS vs deleting it, but if you don't know how to use vi, it's better you don't.

I'm used to using nano vs vi so I'll stick with winscp and upload a new version.

I'm assuming this is just a temporary mount?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Matt Devo - 2015-05-05

(2015-05-05, 21:44)Living Legend Wrote: I'm used to using nano vs vi so I'll stick with winscp and upload a new version.

I'm assuming this is just a temporary mount?

correct, it goes away upon reboot


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

This is very weird.

So I can finally view the log file and I see:

20:21:19 T:140242787100544 NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
20:21:19 T:140242787100544 NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
<?xml version="1.0" encoding="UTF-8" ?>
<advancedsettings>
<showexitbutton>false</showexitbutton>
<cputempcommand>cputemp</cputempcommand>
<gputempcommand>gputemp</gputempcommand>
<video>
<latency>
<delay>0</delay>
<refresh>
<min>23</min>
<max>24</max>
<delay>175</delay>
</refresh>
</latency>
<busydialogdelayms>750</busydialogdelayms>
</video>
<samba>
<clienttimeout>30</clienttimeout>
</samba>
<network>
<readbufferfactor>4.0</readbufferfactor>
</network>
</advancedsettings>

Then it begins to load my XML file.

20:19:08 T:139882818934656 NOTICE: Loaded settings file from special://profile/advancedsettings.xml
20:19:08 T:139882818934656 NOTICE: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.3</host>
<port>3306</port>
<user>kodi</user>
<pass>kodi</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.1.3</host>
<port>3306</port>
<user>kodi</user>
<pass>kodi</pass>
</musicdatabase>
</advancedsettings>

Why is it trying to load this different advancedsettings.xml file first?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Matt Devo - 2015-05-05

It's loading from the default file, the copy in userdata is loaded later in the startup process


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

(2015-05-05, 22:32)Matt Devo Wrote: It's loading from the default file, the copy in userdata is loaded later in the startup process

So is this what's causing the error? Trying to load two advancedsettings.xml files? I'm relatively sure my other devices only load the one I've uploaded...

And if that's the case, how do I get it to bypass the first one?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Matt Devo - 2015-05-05

No, that's normal


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - Living Legend - 2015-05-05

(2015-05-05, 22:44)Matt Devo Wrote: No, that's normal

Well I'm at a loss I guess.

I see no errors with the XML file.

And I'm going bonkers here with SSH. I connect with WinSCP and then within a minute it disconnects me and when I try to relog in it says "access denied"!


Re: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - nickr - 2015-05-05

I suggest you put a complete debug log on pastebin and provide the link.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [2015/04/27] - thegr812k - 2015-05-05

Hi All

I wonder if anybody here can help me. I have googled and googled to death but getting nowhere.

I purchased my chromebox refurbished (As new) and to be fair it appeared new. Installed Openelec and got kodi going everything running perfect no issues.

Few days later i notice the box would suddenly restart and then sometimes just turn itself off. This happened frequently in a short period at one point but then stopped.

I couldnt pin it down what was causing it but noticed that if i left the box running overnight nothing would happen. so it was only when navigating about, installing add ons , loading videos etc etc but no pattern.

I hoped it would be software issue so i reset it back to factory and then re-installed openelec in a dual boot setup. Same again - worked fine for awhile and then started doing it again. Oddly for last 2 days its been running fine with no shutdowns or restarts. I turned the box off today before work - since tunrirng it back on its doing it again like before.

Has anybody heard or run into anything like this before?

Does this sound like a hardware issue ? Any pointers or ideas would really help as i need to decide whether to contact the seller and try and get a refund.

Thanks in advance all!!