dnschneid / crouton

Chromium OS Universal Chroot Environment
https://goo.gl/fd3zc?si=1
BSD 3-Clause "New" or "Revised" License
8.56k stars 1.24k forks source link

Starting Crouton in a tab #1330

Closed austinkregel closed 9 years ago

austinkregel commented 9 years ago

Hey there guys, I have a brand new trusty chroot with xiwi and I didn't bother to install x11 or xorg when setting up the chroot. I try to start unity and it doesn't populate inside a tab. I was wondering if there was a special setting that I am suppose to have for crouton in a tab to work. If not what might I be doing wrong?

LinuxJunkie commented 9 years ago

Use ctrl+alt+t to open the crosh shell. Then, you need to type the word "shell" and press enter. Now, to enter the chroot you will need to use the command, "sudo enter-chroot". That will allow you to work outside of the desktop environment, but if you want to enter the desktop environment to have a GUI you will need to use the command, "sudo startunity". Make sure to not include the quotation marks in either of the commands. I hope that helps you.

austinkregel commented 9 years ago

Using sudo startunity from within the chroot will not work.

Do not launch gnome-session-wrapper as root inside the chroot.

As an experiment I tried startunity, by itself, and that launches unity from a window with no problem. If anyone does have an issue I found this command sudo enter-chroot -n trusty exec env XMETHOD=xiwi startunity and then to go back to xorg there is this command sudo enter-chroot -n trusty exec env XMETHOD=xorg startunity

So to reiterate, I had to do sudo enter-chroot then I did startunity from within the chroot.

LinuxJunkie commented 9 years ago

I apologize to you. I misunderstood the question. I have done a little research about this now though, and I have noticed that there is an extension that can be added to a persons chromebook to assist with the integration. The link for that is posted below:

https://chrome.google.com/webstore/detail/crouton-integration/gcpneefbbnfalgjniomfjknbcgkbijom

I also have noticed that the x11 extension is needed, if I am understanding this correctly. Here is an article posted below about running Ubuntu in a tab if you would like to read it.

http://liliputing.com/2014/12/crouton-chromebooks-run-ubuntu-browser-tab.html

I also found another post that refers to using xiwi. It does mention one of the steps that you have used to start the chroot in a tab. I will post it here for you, so you can have a look at it too. I hope this information helps you out further.

https://github.com/dnschneid/crouton/issues/1274

s5bug commented 9 years ago

You have to specify -t xiwi,unity in that order when creating the chroot.