dnschneid / crouton

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

xfce keeps crashing #5027

Open thed3x7er500 opened 8 months ago

thed3x7er500 commented 8 months ago
Please paste the output of the following command here: sudo edit-chroot -all

name: xenial encrypted: no Entering /mnt/stateful_partition/crouton/chroots/xenial . . . crouton: version 1-20221126232257~master : ae594340 release: xenial architecture: amd64 targets: xfce host: version 15572.63.0 (Official Build) stable-channel octopus kernel: Linux Localhost 4.14.254-20843-g176a4ce1ad3f #1 SMP PREEMPT Mon Oct 2 18:31:45 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux freon: yes

pictures

Unmounting /mnt/stateful_partition/crouton/chroots/xenial . . . output 20231024_085721 20231024_085716

Please describe your issue:

my Chroot is broken and it says that i need to update or complete setup using apt-update, but then i type apt-update it says Command not found.

If known, describe the steps to reproduce the issue:

for more info: Unblocked School computer, phaser360, version 117.15572.0 Lenovo 300e 2nd gen MTK proccesser: Intel Celeron Board name: Octopus

CroutonIsFun commented 8 months ago

You now must use the silence branch:

sudo CROUTON_BRANCH=silence crouton -r xenial -t xfce

This will prevent crouton from attempting to compile cras, as the 3rd-party tool called autotools has been removed from the repositories.

You now need to delete your chroot and start over.

thed3x7er500 commented 8 months ago

thank you, but now its not letting me run sudo startxfce4 from VT-2. i cant use Sudo in crosh 20231026_171149

CroutonIsFun commented 8 months ago

Right... You can use sudo in VT-2, but then you can't launch the desktop. VT-2 is based on FreCon, and does not allow a graphics session. So inside your chroot, you need to install ssh, and once it's installed, activate it with

sudo /etc/init.d/ssh start

After all this, go over to the crosh shell, and ssh into localhost with

ssh foo@localhost

Once you get inside your chroot, you can launch startxfce4

I know it sounds convoluted, but it's easy once you've done it a few times.

thed3x7er500 commented 7 months ago

got sudo to run in crosh, thanks

thed3x7er500 commented 7 months ago

20231127_090423 20231127_090413 20231127_090345 (2)

everytime i run sudo startfce4, it opens up and crashes. not sure if its corrupted or broken but it says that this is a known issue.

CroutonIsFun commented 6 months ago

Your close, but not there yet. From VT-2, you have to install SSH. So go,

sudo enter-chroot

Now, inside your chroot, go

sudo apt install ssh

The above install only has to be done once. When the installation completes, go

sudo /etc/init.d/ssh start

Every time you restart your Chromebook, you will need to login to VT-2, go sudo enter-chroot followed by sudo /etc/init.d/ssh start

Finally, go over to crosh, and go ssh foo@localhost

The first time you do this, you will have to type yes, you want to add this connection.

Now that you're inside the chroot from crosh, only now, you can go,

sudo startxfce4

These are the steps. You need to understand how and why this works. It's currently the only known way to launch a crouton desktop.

oddbyte commented 5 months ago

if you want to run sudo in crosh, here is a easy tutorial: https://github.com/OddbyteWasTaken/howto-use-sudo-in-crosh/blob/main/README.md#how-to-use-sudo-in-crosh