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 ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - lrusak - 2014-09-26

(2014-09-26, 05:15)Netix Wrote: Thanks Stereodude, I went on the #openelec IRC channel and a guy named lrusak fixed everything ! I got a script running a xrandr command everytime the chromebox resume so I got sound and no more green screen Smile

Here is what we did
Code:
mkdir -p /storage/.config/sleep.d
Code:
cat > /storage/.config/sleep.d/01-xrandr.power << EOL
#!/bin/sh
case $1 in
   pre)
     ;;
   post)
     xrandr --output HDMI1 --off; sleep 1; xrandr --output HDMI1 --mode 1280x720 --rate 60.0
     ;;
esac
EOL
Code:
chmod +x /storage/.config/sleep.d/01-xrandr.power

PS. I learned that if you get scripts from pastebin, you need to use dos2unix to convert to unix line endings.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - Stereodude - 2014-09-26

(2014-09-26, 05:15)Netix Wrote: Thanks Stereodude, I went on the #openelec IRC channel and a guy named lrusak fixed everything !
I've also found the folks in #openelec to be very knowledgeable and helpful.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - P3ws - 2014-09-26

For those with the Chromebox CB1-020no and running Ubuntu or other Linux dist.

Do you have overscan problems like i do?
My Panasonic TX-P50VT30Y does not have the tools to fix this.

It has to be done in the OS. Tried this:

xrandr --output HDMI1 --transform 1.05,0,-35,0,1.05,-19,0,0,1

and it helped. and fiddled with those numbers to get the best result. But its not prefekt.
The bar in the top is to wide to show the clock for example.

Maybe there are some tools within the latest Intel drivers that can help.

Ubuntu 14.04 recognizes the TV as a 32" panasonic...
Pooking arround with google gave this issue a long history.

But nobody seems to have a good solution, or i did not find it yet....

I will get back here if i find the solution.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - gkingsmill - 2014-09-26

(2014-09-26, 14:34)P3ws Wrote: For those with the Chromebox CB1-020no and running Ubuntu or other Linux dist.

Do you have overscan problems like i do?
My Panasonic TX-P50VT30Y does not have the tools to fix this.

It has to be done in the OS. Tried this:

xrandr --output HDMI1 --transform 1.05,0,-35,0,1.05,-19,0,0,1

and it helped. and fiddled with those numbers to get the best result. But its not prefekt.
The bar in the top is to wide to show the clock for example.

Maybe there are some tools within the latest Intel drivers that can help.

Ubuntu 14.04 recognizes the TV as a 32" panasonic...
Pooking arround with google gave this issue a long history.

But nobody seems to have a good solution, or i did not find it yet....

I will get back here if i find the solution.

I had the same problem with my Panasonic TV. I fixed it on the TV by pressing the Menu button on the TV remote, going into Picture, VIewing Mode, and setting it to THX. When I did this the screen size on XBMC was perfect with no adjustment required. Note that this setting is unique to each AV input, so making this change on the XBMC HDMI input will not affect your TV or other HDMI inputs.

Note that you could also change the screen size in XBMC by going to System, System, Video Output, Video calibration and then adjust the screen size to match your TV. .

Setting the Panasonic TV Viewing Mode to THX is a better solution since this will fix the screen size for the boot menu, ChromeOS, OpenELEC and XBMC.

Geoff..


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - P3ws - 2014-09-26

(2014-09-26, 15:12)gkingsmill Wrote: I had the same problem with my Panasonic TV. I fixed it on the TV by pressing the Menu button on the TV remote, going into Picture, VIewing Mode, and setting it to THX. When I did this the screen size on XBMC was perfect with no adjustment required. Note that this setting is unique to each AV input, so making this change on the XBMC HDMI input will not affect your TV or other HDMI inputs.

Note that you could also change the screen size in XBMC by going to System, System, Video Output, Video calibration and then adjust the screen size to match your TV. .

Setting the Panasonic TV Viewing Mode to THX is a better solution since this will fix the screen size for the boot menu, ChromeOS, OpenELEC and XBMC.

Geoff..

I been doing that too. No such luck.
Will do it again just to be sure. I will get back to you.
Did you have the desktop wider than the screen on TV?
It is the Ubuntu desktop that is wider than what the screen shows.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - kilbo - 2014-09-26

Hi Everyone,
New here and can see Matt has been tireless in developing and helping.

Question: I recently purchased the Asus Chromebox for a media center only and followed the instructions to a T (I think). Was able to put CB into developer mode and removed the write-protect screw. I failed to get the EZ script to run. CB was at the login screen with a good network (internet) connection but when I pressed CTRL-ALT-F2 to get to command prompt nothing happened. No prompt. Tried several times.

I did log in and used crosh>shell to get chronos@localhost then a prompt. I tried both the commands:http://goo.gl/3Tfu5W and curl -L -O https://db.tt/vUPL3OrH using copy and paste with no luck getting the script to run. The keyboard I am using is the apple usb keyboard. Another keyboard sequence did work which showed the CB was reacting to the keyboard. Think it was CTRL-D.

Does anyone have an idea where I went wrong at the CTRL-ALT-F2 step? Been reading so much my eyes are blurred. Thanks!


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - furii - 2014-09-26

i haven't tried an apple keyboard with the chromebox but it could be that it's defaulting to the media keys. have you tried fn+ctrl+alt+f2?


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - kilbo - 2014-09-26

Furil, Your suggestion may have done it. I now have the localhost login. Thanks!!! Will see how everything goes from here.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - kilbo - 2014-09-26

Thanks again Furii, XBMC standalone installed without further problems


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - tom11011 - 2014-09-26

Guys, I just had to create an account and post some feedback on how awesome this is. It could not be easier to do this and this script is amazing.

I originally bought the chromebox to be used as a "winterm". My only point in purchasing it was to be able to RDP to my desktop where all my files are stored and backed up. I didn't want to have files in two different places (at home and at the office). After tinkering with chromebox a bit I started wondering what else might I be able to do with it and eventually ran into this website. I know there are other websites that are trying to do the same thing but this one seems like the best, at least everything is explained very well.

What I ended up doing with mine is installing Centos 7 with Gnome desktop and I couldn't be happier. I'm not dual booting. Everything went off without a hitch. I'm using a Vizio 39" TV with 1080P and 120hz refresh rate that I picked up for about $350. Displays perfectly. What I really like about it is I was able to easily mount the chromebox to the back of the display. The screws that came with the chromebox were not quite long enough though but no big deal I had some laying around in my junk drawer.

Anyway, I simply wanted to let everyone know that Centos works without issue. I am single booting and I don't have to hit any keys at all on bootup, it just boots up and quickly! When I RDP to my PC, I use full screen RDP and you can't even tell that you are looking at a console. I'm using the memory and flash card that came with it. Maybe I will buy another one of these chromeboxes and toy around with more memory and storage. I mainly use linux at the command line for work and haven't had a look at a GUI in a long time, maybe 5 years. Sure has come a long way.

Here is two pics of my setup.

Image

Image


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.19 - 2014/09/06] - Matt Devo - 2014-09-27

(2014-09-26, 23:08)tom11011 Wrote: Guys, I just had to create an account and post some feedback on how awesome this is. It could not be easier to do this and this script is amazing.

<snip>

Anyway, I simply wanted to let everyone know that Centos works without issue. I am single booting and I don't have to hit any keys at all on bootup, it just boots up and quickly! When I RDP to my PC, I use full screen RDP and you can't even tell that you are looking at a console. I'm using the memory and flash card that came with it. Maybe I will buy another one of these chromeboxes and toy around with more memory and storage. I mainly use linux at the command line for work and haven't had a look at a GUI in a long time, maybe 5 years. Sure has come a long way.

glad you found it useful Smile At this point, pretty much any current Linux distro (with kernel 3.14 or newer) will work out of the box on the Chromebox, so it' no surprise that CentOS did as well.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.20 - 2014/09/26] - Matt Devo - 2014-09-27

Updated the script to OpenELEC 4.2.0 stable

Updated wiki with better suspend/resume script which should fix any issues with no audio and/or corrupted video upon resume from suspend.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.20 - 2014/09/26] - plinkyplonky - 2014-09-27

Having problems booting without a keyboard or mouse. I'm running a standalone with just Ubuntu 14.04, as a small server and XBMC frontend for the TV, but it always get stuck at the grub boot screen whenever I don't have a keyboard attached. If I attach a keyboard it boots fine without the grub menu appearing.

I've set GRUB_RECORDFAIL_TIMEOUT=0 but still it doesn't stop grub from appearing and stopping the boot.

I had the same setup on an Intel NUC without any keyboard attached and grub never appeared. Just wonder if there's something in the custom chromebox BIOS that is causing this. It's a asus chromebox plugged into the TV with onyl an infra red receiver and HDMI connected.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.20 - 2014/09/26] - Matt Devo - 2014-09-27

(2014-09-27, 22:06)plinkyplonky Wrote: Having problems booting without a keyboard or mouse. I'm running a standalone with just Ubuntu 14.04, as a small server and XBMC frontend for the TV, but it always get stuck at the grub boot screen whenever I don't have a keyboard attached. If I attach a keyboard it boots fine without the grub menu appearing.

I've set GRUB_RECORDFAIL_TIMEOUT=0 but still it doesn't stop grub from appearing and stopping the boot.

I had the same setup on an Intel NUC without any keyboard attached and grub never appeared. Just wonder if there's something in the custom chromebox BIOS that is causing this. It's a asus chromebox plugged into the TV with onyl an infra red receiver and HDMI connected.

sounds like a grub issue to me. Have you tried this suggestion?


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.20 - 2014/09/26] - figaro - 2014-09-27

(2014-09-22, 21:31)Matt Devo Wrote:
(2014-09-22, 17:43)figaro Wrote:
(2014-09-18, 02:00)figaro Wrote: Hi Matt,
Thanks again for your advise,
Now the people at Google suggested re-installing the Chrome OS,
To continue to have my dual boot setup, do I reinstall the recovery image with pushing the recovery reset with a paper clip and follow the directions ? am I going to loose my OPENELECXBMC installation (I spent 5 days to configure) and have to start all over again? is there any better way?
Best Regards.

Bump !

someone already responded: use the OpenELEC backup function, copy the backup file (.tar) to another machine, re-install ChromeOS + dual boot setup, and then restore your settings from the backup. Which is covered in the OpenELEC wiki.

Thank you Matt for your continuous help,
I re-installed ChromeOS, I followed your script as a new install and it worked fine,
The OpenELEC backup function did not work. It was OK to reconfigure the box again.
By the way, re-installing the ChromeOS did not solve the issue of no audio on HDMI.
Now the people at Google are telling me it is known bug in their last release and they are working on it. Obviously not working very hard because it is been going on for more than 2 months !!!.
The new guy at Google in charge of ChromeOS was saying the other day that he predicts ChromeOS will be the dominant OS in the future !!!. What a joke !!!. How long did it take Apple to correct the snafu with IOS 8 ? one day ?
Best Regards.