Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xfce keeps crashing #5027

Open
thed3x7er500 opened this issue Oct 25, 2023 · 7 comments
Open

xfce keeps crashing #5027

thed3x7er500 opened this issue Oct 25, 2023 · 7 comments

Comments

@thed3x7er500
Copy link

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 : ae59434
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
Copy link

CroutonIsFun commented Oct 25, 2023

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
Copy link
Author

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

@thed3x7er500 thed3x7er500 changed the title Chroot Broken xfce needs to open from crosh, crosh cant use sudo Oct 26, 2023
@CroutonIsFun
Copy link

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
Copy link
Author

got sudo to run in crosh, thanks

@thed3x7er500
Copy link
Author

thed3x7er500 commented Nov 27, 2023

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.

@thed3x7er500 thed3x7er500 changed the title xfce needs to open from crosh, crosh cant use sudo xfce keeps crashing Nov 27, 2023
@CroutonIsFun
Copy link

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
Copy link

oddbyte commented Jan 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants