crouton icon indicating copy to clipboard operation
crouton copied to clipboard

ctrl+alt+forward brings me to developer console and ctrl+alt+shift+forward does nothing

Open LucasPath268 opened this issue 1 year ago • 12 comments

Please paste the output of the following command here: sudo edit-chroot -all

Please describe your issue:

I am trying to install Ubuntu on my hp chromebook but when I try to switch to Ubuntu it just brings me to the developer console I logged in on the developer console but it doesn't do anything, I tried using ctrl+alt+forward (which brings me to developer console), ctrl+alt+shift+forward (does nothing), ctrl+alt+refresh (brings up another developer console). I am pretty sure i installed Crouton but i don't know how to start Ubuntu. By the way, i am using xfce4

If known, describe the steps to reproduce the issue:

LucasPath268 avatar Jul 27 '23 13:07 LucasPath268

Have you run startunity, or whatever desktop environment you installed? If that doesn't work, can you run sudo edit-chroot -all (if so please provide the output).

betapictoris avatar Jul 27 '23 19:07 betapictoris

@BetaPictoris i did run startxfce4 but it doesn't do anything. the output is name: xenial encrypted: no Entering /mnt/stateful_partition/crouton/chroots/xenial... crouton: version 1-20221126232257~master:ae594340 release: xenial architecture: amd64 targets: unity,Xfce host: version 15437.63.0 (Official Build) stable-channel octopus kernel: Linux localhost 4.14.254-20323-gc32c2d54e434 #1 SMP PREEMPT Thu Jul 13 15:46:30 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux freon: yes Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

LucasPath268 avatar Jul 27 '23 19:07 LucasPath268

How about sudo enter-chroot startxfce4?

betapictoris avatar Jul 27 '23 20:07 betapictoris

I did that but the output was Entering /mnt/stateful_partition/crouton/chroots/xenial... UID 1000 not found in xenial Unmounting /mnt/stateful_partition/crouton/chroots/xenial... then I tried to switch to Ubuntu but it just sent me to the developer console I tried ctrl+alt+forward and backward or ctrl+alt+shift+forward and backward but nothing happended

LucasPath268 avatar Jul 27 '23 20:07 LucasPath268

Try updating (sudo sh ~/Downloads/crouton -n xenial -u), if that works this is a duplicate of #3806.

betapictoris avatar Jul 27 '23 20:07 betapictoris

when I did that the output was sh: 0: Refusing to exec /home/chronos/user/Downloads/crouton from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

LucasPath268 avatar Jul 27 '23 20:07 LucasPath268

@BetaPictoris @LucasPath268 read this https://github.com/dnschneid/crouton/issues/4026 Also, ctrl+alt+forward option has long been deprecated and its support is gone. Against it, you should delete your chroot and then reinstall the chroot by adding the -t xiwi target, I guaranty that it will resolve the issue.

Qwer-TeX avatar Jul 28 '23 05:07 Qwer-TeX

@Qwer-TeX I did instead of xfce I did xiwi as you said so then after I did sudo startxiwi then I tried to do ctrl+alt+shift+forward but nothing happened. This was the output after the command sudo startxiwi: startxiwi [options] chroot_app [parameters]

Wraps enter-chroot to launch a window or tab in Chromium OS for any graphical application. Applications launched in this way show in independent windows or tabs.

By default, it will use the primary user on the first xiwi-enabled chroot found and launch the chroot_app in a window.

Options: -b Fork and run the specified command silently in the background. -c CHROOTS Directory the chroots are in. Default: /mnt/stateful_partition/crouton/chroots -k KEYFILE Override the auto-detected encryption key location. -n NAME Name of the chroot to enter. Default: first one found in CHROOTS -t TARGET Only enter the chroot if it contains the specified TARGET. -u USERNAME Username (or UID) to log into. Default: 1000 (the primary user) -F Launch the chroot_app full-screen. -T Launch the chroot_app in a tab. -f Prevent xiwi from quitting automatically. (see NOTE below)

NOTE: xiwi will normally close when the application returns. Some gui applications fork before or during normal operation, which can confuse xiwi and cause it to quit prematurely. If your application does not have a parameter that prevents it from forking, and crouton is unable to automatically detect the fork, you can use -f to prevent xiwi from quitting automatically. xiwi will quit if you close the Chromium OS window when nothing is displayed.

You can cycle through multiple windows inside the application via Ctrl-Alt-Tab/Ctrl-Alt-Shift-Tab, or close them via Ctrl-Alt-Shift-Escape. If the chroot_app begins with 'start' but you still want to use the default window manager, specify the full path of the application.

LucasPath268 avatar Jul 28 '23 13:07 LucasPath268

when I did that the output was sh: 0: Refusing to exec /home/chronos/user/Downloads/crouton from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

My bad on that command it should've been:

sudo crouton -n xenial -u

@BetaPictoris @LucasPath268 read this #4026 Also, ctrl+alt+forward option has long been deprecated and its support is gone. Against it, you should delete your chroot and then reinstall the chroot by adding the -t xiwi target, I guaranty that it will resolve the issue.

ctl + alt + (entering the developer console) is not required, nor is it the problem, but ctl + alt + shift + is (entering the desktop). This is because the session doesn't start, which is caused by the original installation being incomplete (see #3806).

@Qwer-TeX I did instead of xfce I did xiwi as you said so then after I did sudo startxiwi then I tried to do ctrl+alt+shift+forward but nothing happened. This was the output after the command sudo startxiwi: startxiwi [options] chroot_app [parameters]

Wraps enter-chroot to launch a window or tab in Chromium OS for any graphical application. Applications launched in this way show in independent windows or tabs.

By default, it will use the primary user on the first xiwi-enabled chroot found and launch the chroot_app in a window.

Options: -b Fork and run the specified command silently in the background. -c CHROOTS Directory the chroots are in. Default: /mnt/stateful_partition/crouton/chroots -k KEYFILE Override the auto-detected encryption key location. -n NAME Name of the chroot to enter. Default: first one found in CHROOTS -t TARGET Only enter the chroot if it contains the specified TARGET. -u USERNAME Username (or UID) to log into. Default: 1000 (the primary user) -F Launch the chroot_app full-screen. -T Launch the chroot_app in a tab. -f Prevent xiwi from quitting automatically. (see NOTE below)

NOTE: xiwi will normally close when the application returns. Some gui applications fork before or during normal operation, which can confuse xiwi and cause it to quit prematurely. If your application does not have a parameter that prevents it from forking, and crouton is unable to automatically detect the fork, you can use -f to prevent xiwi from quitting automatically. xiwi will quit if you close the Chromium OS window when nothing is displayed.

You can cycle through multiple windows inside the application via Ctrl-Alt-Tab/Ctrl-Alt-Shift-Tab, or close them via Ctrl-Alt-Shift-Escape. If the chroot_app begins with 'start' but you still want to use the default window manager, specify the full path of the application.

Xiwi is not required, it is used to run the desktop (or an application) through your current Chrome OS desktop (considering your original installation's configuration I do not believe this was intended), although if you did intend to do this see this guide.

If it wasn't remove your chroot(s) (again) or just powerwash your Chromebook, and try the installation again (without xiwi - unless you intended to run your chroot through a Chrome OS window). Also, Xenial (which is the default) is very old and you should consider a newer release you can view a list of releases using the following command:

crouton -r list

and to install a newer release:

sudo crouton -t xfce4 -r <release name>

~ @BetaPictoris

betapictoris avatar Jul 29 '23 06:07 betapictoris

@LucasPath268 have you tried sudo startxfce4 ?

Qwer-TeX avatar Jul 30 '23 06:07 Qwer-TeX

@BetaPictoris @LucasPath268 read this #4026 Also, ctrl+alt+forward option has long been deprecated and its support is gone. Against it, you should delete your chroot and then reinstall the chroot by adding the -t xiwi target, I guaranty that it will resolve the issue.

You can also simply update your chroot via this command:

sudo crouton -u -t xiwi,xorg,xfce,keyboard,mouse -n xenial

This will update your chroot with new targets instead of forcing you to sit through a whole re-install.

<EDIT> Also, if OP has not done it yet, he should probably install the crouton extenstion for the maximum Xiwi experience

ItsYeetsup avatar Sep 02 '23 09:09 ItsYeetsup

Before pressing ctrl+alt+`forward/F2', make sure you've run the following command in a shell first:

sudo startxfce4

ItsYeetsup avatar Sep 02 '23 09:09 ItsYeetsup