please choosego to mobile | Continue to access the PC version
View: 10510|Reply: 6

Chroot on OpenELEC

[Copy link]

1

threads

3

posts

35

credits

Novice

Rank: 1

credits
35
Published in 2017-3-1 07:20:47 | Show all floors |Read mode
Hi all,

I wanted to better utilize my OPI so I created chroot with Debian in my OpenELEC. Now I have nginx, openvpn, samba, webcam and other deamons running on my OPI.
If someone would be interrested, I wrote a manual how to set it up here: https://blog.danman.eu/orangepi-installing-debian-chroot-into-openelec/

I'm looking forward for your comments.

Published in 2017-3-1 16:29:51 | Show all floors
Great job,

One comment, "second-stage" doesn't have to be made on OpenELEC, it can be done on your host using /usr/bin/qemu-arm-static

  1. apt install qemu-user-static
  2. host:# cp /usr/bin/qemu-arm-static debian_armhf/usr/bin/ && chroot debian_armhf && rm debian_armhf/usr/bin/qemu-arm-static
  3. I have no name!@host:/# ./debootstrap/debootstrap --second-stage
Copy code


Orange PI PC

1

threads

3

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2017-3-1 17:58:15 | Show all floors
Thanks for your comment. I don't like installing utilities I'll use only once so I decided to finish it natively on OPI.

3

threads

46

posts

691

credits

Senior member

Rank: 4

credits
691
Published in 2017-3-1 22:12:20 | Show all floors
It may be better to have a clean Debian with Kodi from Jerney's OpenElec...

1

threads

3

posts

35

credits

Novice

Rank: 1

credits
35
 Author| Published in 2017-3-4 21:19:34 | Show all floors
Ok, now I did it vice-versa. OpenELEC chroot on Armbian, check here: https://blog.danman.eu/orangepi- ... hroot-into-armbian/

1

threads

2

posts

80

credits

Registered member

Rank: 2

credits
80
Published in 2017-3-26 18:04:49 | Show all floors
this works but there is no network possible with cable / wifi

0

threads

1

posts

22

credits

Novice

Rank: 1

credits
22
Published in 2019-7-22 08:30:33 | Show all floors
Hello.
Thanks for your work. I on PC (Debian machine) did not manage to collect debootstrap, - second-stage comes to the end with an error. But with your file everything turned out successfully, both update, and upgrade.
The ultimate goal was to launch mjpg-streamer. mjpg-streamer was successfully built from source codes on Orange Pi, but with a autostart there were problems because of my not competence. As a result for a autostart I registered the following command
"nohup /usr/local/bin/mjpg_streamer -b \
-i "/usr/local/lib/mjpg-streamer/input_uvc.so \
-d /dev/video0 -y -r 640x480 -f 15 -q 50" \
-o "/usr/local/lib/mjpg-streamer/output_http.so \
-w /www/webcam -p 8090"  >/dev/null 2>&1"
Can to someone it is useful.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list