[DEV] LXC Containers on Shield Android TV

Full Android Experience with NO Limits on Shield TV and Nexus Player
beng
Posts: 45
Joined: Tue Jan 05, 2016 12:35 pm

Re: [DEV] LXC Containers on Shield Android TV

Post by beng »

you can create it by yourself with lxc in ubuntu

install lxc in ubuntu and after create a debian (jessie) container aarch64 ( template download )
after you can tar.gz the container with all permissions and extract in shield tv instead of the ubuntu version provided by me.

https://help.ubuntu.com/lts/serverguide/lxc.html


sudo lxc-create -t download -n u1

you will have a menu to select debian - jessie - aarch64
Hi Zulu99,
when I run this on my laptop/bunsenlabs, I do not get options for debian jessie aarch64
I suppose you mean I should run it in ubuntu once installed on my shield, right?

thanks a lot.
Last edited by beng on Sat Sep 24, 2016 9:03 pm, edited 1 time in total.
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Post by zulu99 »

beng wrote:
you can create it by yourself with lxc in ubuntu

install lxc in ubuntu and after create a debian (jessie) container aarch64 ( template download )
after you can tar.gz the container with all permissions and extract in shield tv instead of the ubuntu version provided by me.

https://help.ubuntu.com/lts/serverguide/lxc.html


sudo lxc-create -t download -n u1

you will have a menu to select debian - jessie - aarch64
Hi Zulu99,
when I run this on my laptop/bunsenlabs, I do not get options for debian jessie aarch64
I suppose you mean I should run it in ubuntu once installed on my shield, right?

also a little mistake i found:
"adb push ubuntu.rootfs.aarch64.tar.gz /sdcard/"
the download actually comes as ubuntu_rootfs_aarch64.tar.gz
so the command should be corrected to "adb push ubuntu_rootfs_aarch64.tar.gz /sdcard/"

thanks a lot.
no, you can create your custom debian jessie container inside ubuntu on your PC. Inside Android you will have the conrtainer that you created, in your case debian
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
beng
Posts: 45
Joined: Tue Jan 05, 2016 12:35 pm

Re: [DEV] LXC Containers on Shield Android TV

Post by beng »

zulu99 wrote:no, you can create your custom debian jessie container inside ubuntu on your PC. Inside Android you will have the conrtainer that you created, in your case debian
forget about Android, it was a side question, out of curiosity.

I cannot create a debian jessie container; after running "sudo lxc-create -t download -n u1" in a terminal
I do not get any options for aarch64:
debian jessie amd64 default 20160917_22:42
debian jessie arm64 default 20160918_22:42
debian jessie armel default 20160918_05:43
debian jessie armhf default 20160918_05:43
debian jessie i386 default 20160918_22:42
debian jessie powerpc default 20160918_22:42
debian jessie ppc64el default 20160919_20:01
debian jessie s390x default 20160918_22:42
debian sid amd64 default 20160918_22:42
debian sid arm64 default 20160918_22:42
debian sid armel default 20160917_22:42
debian sid armhf default 20160918_05:43
debian sid i386 default 20160918_22:42
debian sid powerpc default 20160918_05:43
debian sid ppc64el default 20160907_22:42
debian sid s390x default 20160917_22:42
debian stretch amd64 default 20160918_22:42
debian stretch arm64 default 20160918_22:42
debian stretch armel default 20160918_05:43
debian stretch armhf default 20160918_05:43
debian stretch i386 default 20160918_22:42
debian stretch powerpc default 20160918_05:43
debian stretch ppc64el default 20160907_22:42
debian stretch s390x default 20160918_05:43
debian wheezy amd64 default 20160918_22:42
debian wheezy armel default 20160917_22:42
debian wheezy armhf default 20160917_22:42
debian wheezy i386 default 20160918_22:42
debian wheezy powerpc default 20160917_22:42
debian wheezy s390x default 20160918_05:43
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Post by zulu99 »

beng wrote:
zulu99 wrote:no, you can create your custom debian jessie container inside ubuntu on your PC. Inside Android you will have the conrtainer that you created, in your case debian
forget about Android, it was a side question, out of curiosity.

I cannot create a debian jessie container; after running "sudo lxc-create -t download -n u1" in a terminal
I do not get any options for aarch64:
debian jessie amd64 default 20160917_22:42
debian jessie arm64 default 20160918_22:42
debian jessie armel default 20160918_05:43
debian jessie armhf default 20160918_05:43
debian jessie i386 default 20160918_22:42
debian jessie powerpc default 20160918_22:42
debian jessie ppc64el default 20160919_20:01
debian jessie s390x default 20160918_22:42
debian sid amd64 default 20160918_22:42
debian sid arm64 default 20160918_22:42
debian sid armel default 20160917_22:42
debian sid armhf default 20160918_05:43
debian sid i386 default 20160918_22:42
debian sid powerpc default 20160918_05:43
debian sid ppc64el default 20160907_22:42
debian sid s390x default 20160917_22:42
debian stretch amd64 default 20160918_22:42
debian stretch arm64 default 20160918_22:42
debian stretch armel default 20160918_05:43
debian stretch armhf default 20160918_05:43
debian stretch i386 default 20160918_22:42
debian stretch powerpc default 20160918_05:43
debian stretch ppc64el default 20160907_22:42
debian stretch s390x default 20160918_05:43
debian wheezy amd64 default 20160918_22:42
debian wheezy armel default 20160917_22:42
debian wheezy armhf default 20160917_22:42
debian wheezy i386 default 20160918_22:42
debian wheezy powerpc default 20160917_22:42
debian wheezy s390x default 20160918_05:43
arm64 is the same thing of aarch64
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
beng
Posts: 45
Joined: Tue Jan 05, 2016 12:35 pm

Re: [DEV] LXC Containers on Shield Android TV

Post by beng »

Learning every day!
Will try it tonight.
Thanks Zulu99.

[edit]
I now have generated my Debian jessie arm64 container on my laptop; I just need to work out how to
tar.gz the container with all permissions
given it is at /var/lib/lxc/debian8 so I can put it on the shield.

working my way thru https://help.ubuntu.com/lts/serverguide ... lobal-conf
beng
Posts: 45
Joined: Tue Jan 05, 2016 12:35 pm

Re: [DEV] LXC Containers on Shield Android TV

Post by beng »

tar.gz the container with all permissions
Hi Zulu99

er... sorry not too sure what to do here, with permissions
can you please give me a hint?
THANKS
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Post by zulu99 »

beng wrote:
tar.gz the container with all permissions
Hi Zulu99

er... sorry not too sure what to do here, with permissions
can you please give me a hint?
THANKS
http://askubuntu.com/questions/225865/c ... ermissions
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
tripfx
Posts: 4
Joined: Fri Oct 21, 2016 3:36 pm

Re: [DEV] LXC Containers on Shield Android TV

Post by tripfx »

can you point me in the right direction to activate the gpu driver?
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Post by zulu99 »

tripfx wrote:can you point me in the right direction to activate the gpu driver?
Good question, i'm not able at moment.

I use xrdp to see the graphic UI but the drivers are not hardware accelerated.

With the lxc config you can import the kernel devices in your container but after linux not have the right drivers to manage this devices.

You can try to grab the compiled binary from the ubuntu distro that work on shield tv and create a container that match the same ubuntu distro for shield tv, but the kernel of standard ubuntu is not the same of the android kernel.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto
User avatar
zulu99
Site Admin
Posts: 2485
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Post by zulu99 »

Veronica wrote:Hello zulu99,happy new year. Hope you're doing good.
I'm interested on having this working on my shield (when it arrives).
Quick question, at the moment i want to leave the shield stock for many reasons, so i wanted to ask if this can work on Android TV OS or if it's meant just for your full android rom. I need to install Java and run filebot, jDownloader and few other apps in the long term. Crossing fingers!!!

Oh i almost forgot, now that im here I'll ask... Have you been succesfull remote controlling your Shield say with teamviewer, if so what app version worked for you?

Thank you in advance and greetings for South America!
You need the custom boot.img and the LXC binaries, after you can use full Android or also Android TV.

Attention all my works are for the original Shield TV.
The new 16GB model don't have micro usb and i not even know if we can unlock the bootloader.

I control Shield TV only with DroidMote, is the best way for me, for Android TV and full Android. I never tested teamviewer.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto