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: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - BB90 - 2016-09-20

(2016-09-19, 23:12)Matt Devo Wrote:
(2016-09-19, 22:56)BB90 Wrote: Hi Matt.

I was planning on updating to the Kodi 17 (alpha 7.90.004) build on the Wiki. I noticed on the first page of this thread there have been a lot of various other updates (for example: coreboot, SeaBIOS, etc,etc) when modding the chromebox for the first time. I originally modded this maybe 1.5 - 2 years ago. Are there any necessary upgrades other than just upgrading Kodi?

Also, the link on the wiki for the Kodi 17 alpha build shows ".img.gz" as the file extension, should it be ".tar" for updates?

Thanks!

looks like I need to update the wiki links, since 7.90.005 is the latest.

since you're running a dual boot setup, the coreboot firmware update doesn't apply. The SeaBIOS legacy boot updates are all minor and have no substantial effect on a dual boot setup.

Given that you originally set things up with an older version of OpenELEC, I highly suspect that the system partition created then (automatically, by the script) isn't large enough for the newer LibreELEC builds. It's probably not a bad idea to do a factory reset and redo your dual boot setup unless you want to boot a Linux live USB and manually resize the partitions (which isn't terribly hard IMO)

Thanks for that info! I guess I misspoke when I started naming off the boot firmware/bios stuff. I installed the standalone OpenElec originally, but since then now on standalone LibreElec. Since it is not a dual boot, will the partitions still be smaller?


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - Matt Devo - 2016-09-20

(2016-09-20, 06:18)BB90 Wrote: Thanks for that info! I guess I misspoke when I started naming off the boot firmware/bios stuff. I installed the standalone OpenElec originally, but since then now on standalone LibreElec. Since it is not a dual boot, will the partitions still be smaller?

the System partition size is dependent on the installer version used whenever you did the initial install. Back in the OE 4.x days they used ~250mb or so, then 350mb, and now 512mb is used. There's no reason to redo anything unless you're upgrading to a build that requires a larger System partition than you currently have. When upgrading, it will tell you upon reboot if the partition is too small for the upgrade to occur. In that case, you can either blow everything away and start fresh, or backup your existing install using the built-in backup function (System->LibreELEC->General->Backup) to USB, do a fresh install (using 7.90.005, eg), restore your data, and then upgrade to whatever build you want to run (Milhouse's nightly, eg)


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - usamac - 2016-09-20

https://download.teamviewer.com/download/teamviewer_i386.deb
from a terminal: sudo dpkg -i ~/Downloads/teamviewer_i386.deb


When I copy and pasted this line in the terminal, after downloading, I got the following message.. Does that command define the path by default, or was I supposed to adjust it accordingly? I have not modified my directories in any way at this point from how it sets up automatically. I apologize for the numbingly dumb questions..

dpkg: error processing archive /home/name/Downloads/teamviewer_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/name/Downloads/teamviewer_i386.deb


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - bbsc - 2016-09-20

(2016-09-20, 13:09)usamac Wrote: Does that command define the path by default, or was I supposed to adjust it accordingly?
Yes, it does. And yes, you were. If you downloaded somewhere else.
dpkg command cannot find the file.
Either you've downloaded it to somewhere else or the filename differs.


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - usamac - 2016-09-20

(2016-09-20, 13:19)bbsc Wrote:
(2016-09-20, 13:09)usamac Wrote: Does that command define the path by default, or was I supposed to adjust it accordingly?
Yes, it does. And yes, you were. If you downloaded somewhere else.
dpkg command cannot find the file.
Either you've downloaded it to somewhere else or the filename differs.

Ok, so I went in and specifically defined the path to exactly what is shown at the top of file manager, while displaying the location of the downloaded package suggested initially, instead of leaving it as ~/downloads etc. Yet again, I get the following.. please note that the only thing I have modified in the following is the 'name' part of the path to not reflect specifically for my personal security purposes as I am sure you can understand. I also deleted all other downloads and redownloaded it one last time. all in the same location as show below as well.

dpkg: error processing archive /home/name/downloads/teamviewer_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/home/name/downloads/teamviewer_i386.deb


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - bbsc - 2016-09-20

@usamac
Please note, that you really get file teamviewer_11.0.57095_i386.deb (for present time) when downloading https://download.teamviewer.com/download/teamviewer_i386.deb
Note the capital letter "D" in "Downloads" too. Usually it is really capital in Ubuntu-based distros. "D" differs from "d" in Unix.

The right command must be:
dpkg -i ~/Downloads/teamviewer_11.0.57095_i386.deb
or (without substitution)
dpkg -i /home/your_changed_name_here/Downloads/teamviewer_11.0.57095_i386.deb

You can use TAB key to complete Unix commands, path and filenames. It will make life a bit easier and help to avoid typos.


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - usamac - 2016-09-20

If I need to specify the file name outside of what is in the folder, then does that mean I need to unpack/unzip it first? I would think that was part of the process, but in Linux is it merely going into that and looking for the file in sort of a sub folder format?


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - bbsc - 2016-09-20

(2016-09-20, 15:58)usamac Wrote: If I need to specify the file name outside of what is in the folder, then does that mean I need to unpack/unzip it first? I would think that was part of the process, but in Linux is it merely going into that and looking for the file in sort of a sub folder format?

You don't need to do anything else. Just download and install.
You definitely need to specify that filename which is in your folder. I only want to say that it may be different, depending on what program you've used to download it. If you use FF you may get teamviewer_11.0.57095_i386.deb, if you use curl you'll get teamviewer_i386.deb
From terminal:
Code:
cd ~/Downloads
curl -L -O https://download.teamviewer.com/download/teamviewer_i386.deb
dpkg -i teamviewer_i386.deb
This will work.


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - usamac - 2016-09-21

(2016-09-20, 16:11)bbsc Wrote:
(2016-09-20, 15:58)usamac Wrote: If I need to specify the file name outside of what is in the folder, then does that mean I need to unpack/unzip it first? I would think that was part of the process, but in Linux is it merely going into that and looking for the file in sort of a sub folder format?

You don't need to do anything else. Just download and install.
You definitely need to specify that filename which is in your folder. I only want to say that it may be different, depending on what program you've used to download it. If you use FF you may get teamviewer_11.0.57095_i386.deb, if you use curl you'll get teamviewer_i386.deb
From terminal:
Code:
cd ~/Downloads
curl -L -O https://download.teamviewer.com/download/teamviewer_i386.deb
dpkg -i teamviewer_i386.deb
This will work.

Thank you, this has gotten me much closer. Following your suggestion only having to add sudo to the final line of code because i got a super user request.

I am now receiving these errors..

(Reading database ... 165634 files and directories currently installed.)
Preparing to unpack teamviewer_i386.deb ...
Unpacking teamviewer:i386 (11.0.57095) over (11.0.57095) ...
dpkg: dependency problems prevent configuration of teamviewer:i386:
***then a list of dependencies like this line
teamviewer:i386 depends on libc6 (>= 2.4)

then
dpkg: error processing package teamviewer:i386 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
teamviewer:i386

A friend familiar with linux suggested prerequisits I may be missing, but I am unsure what that might mean.. could this be my issue? What am I doing wrong?


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - Matt Devo - 2016-09-21

just do: sudo apt-get install -f

and you should be good. Anything else though, you'd really be better served by GalliumOS' official support channels, since we're well off topic of Kodi/Chromebox Setup Script


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - usamac - 2016-09-21

I was finally able to get it to install. Just incase anyone else comes along needing guidance here, I'd like to close out with what it took for me to complete this,

cd ~/Downloads
curl -L -O https://download.teamviewer.com/download/teamviewer_11.0.57095_i386.deb
sudo apt-get install -f /home/{use rename}/Downloads/teamviewer_11.0.57095_i386.deb

Hope this helps someone..

Thank you guys, and again thank you for my awesome chromebox w/linux & kodi!


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - McButton - 2016-09-21

(2016-09-14, 08:06)McButton Wrote: 2nd point: I've been fighting the Chromebox "no audio on restore" issue for a year.
I applied the patch that MattDevo suggested at the time, but it never took hold. On my old TV, it was never an issue. The new TV must register the HDMI ports differently when it idles or something.

That said, is there a new, cool update or fix for this issue now?
Rather than just leave the box ON all the time, I'd rather just use "suspend" and hit a button to restore it from sleep.
Thanks in advance for any advice!

There are 3 workarounds/fixes to this issue:
  1. Use a suspend/resume script to disable the audio on sleep and re-enable on wake
  2. leave the Chromebox on all the time
  3. use the suspend/resume script to reboot the Chromebox on wake

Thanks for the suggestions! Leaving the box on is probably ok. It seems like if I do...it'll go idle...but upon resuming the idle, the audio dies too. It's something with the TV. My previous TV has no issues at all. This one....is a jerk. Maybe remove idle too?

The suspend/resume and reboot script would likely work fine. I like keeping everything where I was at, so maybe not this. I think I'm currently using the audio reset method now. My settings are like that in the wiki:

mkdir -p /storage/.config/sleep.d
cd /storage/.config/sleep.d
curl -L -O https://mrchromebox.tech/files/kodi/01-cbox_resume.power
chmod +x 01-cbox_resume.power

I'm using HDMI1 and change the timing a bit too. I set it to like 8 seconds to let my TV warm up before the Chrombox sets, but notta.

Odd that it just isn't working with my TV.
--------------------------------------------------------------------------------------------


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - knives of ice - 2016-09-22

ok i finally decided to upgrade to Krypton creating the usb and reinstalling everything.

i have everything back up and running but i am absolutely going insane because my harmony remote will not connect via bluetooth anymore to the libreElec interface. i have no idea what the problem is i keep getting an error message when going through the connection process. has anyone had similar problems and can you offer any tips?

just tried again the error i get each time is bluetooth error did not receive a reply


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - Matt Devo - 2016-09-22

(2016-09-21, 07:51)McButton Wrote: The suspend/resume and reboot script would likely work fine. I like keeping everything where I was at, so maybe not this. I think I'm currently using the audio reset method now. My settings are like that in the wiki:

mkdir -p /storage/.config/sleep.d
cd /storage/.config/sleep.d
curl -L -O https://mrchromebox.tech/files/kodi/01-cbox_resume.power
chmod +x 01-cbox_resume.power

I'm using HDMI1 and change the timing a bit too. I set it to like 8 seconds to let my TV warm up before the Chrombox sets, but notta.

Odd that it just isn't working with my TV.

you can also try the forced EDID loading as per the OE/LE wiki that was discussed a few pages back

(2016-09-22, 09:13)knives of ice Wrote: ok i finally decided to upgrade to Krypton creating the usb and reinstalling everything.

i have everything back up and running but i am absolutely going insane because my harmony remote will not connect via bluetooth anymore to the libreElec interface. i have no idea what the problem is i keep getting an error message when going through the connection process. has anyone had similar problems and can you offer any tips?

just tried again the error i get each time is bluetooth error did not receive a reply

I'd check in on the LE forums. I know there were a lot of underlying changes to the BT stack, but that's about it. My PS3 remote and BT audio work fine; my Harmony One is IR only so can't test your issue specifically


RE: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2016/07/19] - McButton - 2016-09-23

My EDID test showed:
card0 card0-HDMI-A-1 controlD64 ttm
card0-DP-1 card0-HDMI-A-2 renderD128 version
------------------------------------------------------------------------------------

LABEL linux
KERNEL /KERNEL
APPEND boot=LABEL=System disk=LABEL=Storage quiet initrd=/edid.cpio drm_kms_helper.edid_firmware=HDMI-A-1:edid/edid.bin video=HDMI-A-1Big Grin
-------------------------------------------------------------------------------------

Using HDMI 1. Does this look like the correct info? Can I set it for both / all ports regardless or must it always be plugged into what is set?