dnschneid / crouton

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

sudo sh crouton -e -r wheezy -t xfce = password asked #3825

Closed christi9n closed 2 years ago

christi9n commented 6 years ago

Hi,

I try to run the following command (on an ACER R13) in a shell sudo sh crouton -e -r wheezy -t xfce and I'm always been asking the sudo password !!!

Any idea of this issue ?

DennisLfromGA commented 6 years ago

@christi9n,

Any idea of this issue ?

Yes, the -e option you specified in your command string tells crouton to encrypt the chroot and invokes chromeos-setdevpasswd which asks for and sets a chronos password.

You can install your chroot as above without the -e option then when you've got everything working the way you want you can still encrypt it if you like with an update similar to the following:

sudo sh ~/Downloads/crouton -e -n wheezy -u

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

Many thanks for your feedback, but I've already tried withour -e wich also doesn't work... I'm still having password asked !

DennisLfromGA commented 6 years ago

@christi9n,

When it first prompted you for a password did you enter one? If so, then that's the one you should enter at that prompt.

Can you get to a shell session now without a password? If so, then I would delete the chroot and start over. If not, then you may have to powerwash and start over.

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

When it first prompted you for a password did you enter one? If so, then that's the one you should enter at that prompt.

... ;o) I obviously ;o)) did it I powerwashed already times to try everything (?)

Can you get to a shell session now without a password? If so, then I would delete the chroot and start over.

I can get a shell session without password ... I only need password when I do a SUDO. How do you delete the CHROOT ?

Many thanks @DennisLfromGA

DennisLfromGA commented 6 years ago

@christi9n,

Okay, if you can get to a shell session without a password then there's a chance you can delete the chroot and start over.

When you enter sudo and it prompts you for a password can you enter your password and continue? If so, then this is how to delete the chroot: sudo delete-chroot wheezy If not, you may have to powerwash it again, especially if the following file is present:

/mnt/stateful_partition/etc/devmode.passwd

That file indicates a chronos password was set, if you don't know it then you need to powerwash to remove it.

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

Many thanks for your feedback again but as I said

So impossible to use a SUDO at all! Is this pb linked to the model of the chromebook : ACER R13 ? I didn't find at all around the web this pb !?

DennisLfromGA commented 6 years ago

@christi9n,

I powerwashed 4 times and I've got at the end the same pb

That is highly unusual, I actually was experimenting with mine and had no problems.

So impossible to use a SUDO at all!

After you powerwashed when at the initial sign-in screen did you enable 'Debugging Features'

dev-ui

If so, you'll have to first open the 'Developer Console' on VT2 using the key-combo ctrl+alt+F2 and login as root with the password you entered on the screen above. If you didn't enter a root password it will default to: test0000

Once you get a shell as root you'll need to set a password for 'chronos' using: chromeos-setdevpasswd

Is this pb linked to the model of the chromebook : ACER R13 ?

Also highly unlikely since others with that device haven't reported this pb.

I didn't find at all around the web this pb !?

Show us or tell us what the first five lines display when you navigate to: chrome://version In that output, line three that begins with 'Platform:' will tell us what the actual 'codename' is of your device. Then you can cross-reference that with those listed here to find your device -

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

Impossible to log as root as you proposed. I just powerwashed again and it's the same situation !

chrome://version 4th line = 10575.58.0.............................;

DennisLfromGA commented 6 years ago

@christi9n,

chrome://version 4th line = 10575.58.0.............................;

Good to know, I had asked for the third line.

Just so we're clear, here's the 'powerwash' procedure:

  1. Sign out of your Chromebook.
  2. Press and hold Ctrl + Alt + Shift + r.
  3. Click Restart.
  4. In the box that appears, click 'Powerwash' and then 'Continue'.
  5. Follow the steps that appear and sign in with your Google Account. Note: The account you sign in with after you reset your Chromebook will be the owner account.
  6. Do NOT enable 'Debugging Features'.

Once you've reset your Chromebook:

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

OK many thanks @DennisLfromGA my problem came from the 'Debugging feature' I enabled. It's OK, I succeed installing Debian Stretch I'm not pleased by this solution since you first have to log on a google session to launch the debian one !

So I wanted today to try with ChruBuntu but unfortunately http://goo.gl/9sgchs gives an error page ... impossble to doncload this script ! Do you kno by chance where else I could find this 9sgchs ?

DennisLfromGA commented 6 years ago

@christi9n,

... my problem came from the 'Debugging feature' I enabled.

As I suspected, that can be a bit tricky but the new root password prompts make it a tad less troublesome.

So I wanted today to try with ChruBuntu but unfortunately http://goo.gl/9sgchs gives an error page ... impossble to doncload this script !

Do you kno by chance where else I could find this 9sgchs ?

The ChrUbuntu effort has been abandoned for a while now so I wouldn't try to use it any longer.

The good news is there is a 'new & improved' method called 'chrx' that can do what ChrUbuntu did and a whole lot more. With it you can setup a dual-boot system with Chrome OS and a Linux distro, that's what I've done. If you choose this option just make sure you leave enough storage space for Chrome OS to run and function properly, 'chrx' should suggest the proper sizes when you run it.

Another advantage to this dual-boot setup is you can use some of that space (on partition 7) for your crouton chroots eliminating the need to re-install them after a powerwash, pretty handy.

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

Unfortunately ACER R13 is not (yet??) supported... https://wiki.galliumos.org/Hardware_Compatibility#cite_note-ARM-2

christi9n commented 6 years ago

I won this ACER R13 and I can't stand using it under ChromeOS.

I keep on searching a LINUX solution in dual boot for it .... any suggestions ?

DennisLfromGA commented 6 years ago

@christi9n,

Not being able to use 'chrx' is a bit of a bummer but 'crouton' is still a very good option if you want to run a Linux distro with a full desktop gui, its probably your best bet for a LINUX solution.


In fact, let me suggest one that might work for you:

Note: substitute 'stretch' with 'buster' or 'sid' if you're adventurous. Also, you'll need to install the 'crouton integration' extension from the Chrome Web Store.

Once that installs successfully you can launch your desktop in a number of ways:

  1. sudo startxfce4 -n stretch -X xorg
  2. sudo startxfce4 -n stretch -X xiwi (launches in a window)
  3. sudo startxfce4 -n stretch -X xiwi-fullscreen (launches fullscreen)
  4. sudo startxfce4 -n stretch -X xiwi-tab (launches in a tab - my favorite)

Hope this helps, -DennisLfromGA

christi9n commented 6 years ago

@DennisLfromGA Yes I agree with you CROUTON seems quite efficient for that kind of Computer. What I dislike with this solution is to run "through" ChromeOS, not "beside", and to logged in a ChromeOS session before launching another linux one.

I'm going to test and try the way you just gave me and let you know ... many thanks.

christi9n commented 6 years ago

Excuse me @DennisLfromGA for the delays of my return

Following your very explanations make me doing the right things and now DEBIAN runs as you explained.

Unfortunately I found this way of access to debian quite heavy .. you've to make "Ctrl + D" and after open a new "Crosh > shell" to run one you the fourth command you gave ... ouf !! The received Chromebook is for my daughter and I don't want to make her get bored ;o))

I saw in your clear WIKI you gave the opportunity to autostart a Crouton (debian) session ... https://github.com/dnschneid/crouton/wiki/Autostart-crouton-chroot-at-ChromeOS-startup It doesn't work on my ACER R 13 !

Have you a last idea to boot the DEBIAN session ?

DennisLfromGA commented 6 years ago

@christi9n,

Have you a last idea to boot the DEBIAN session ?

Nope, not with that device, at least ATM.

Don't know if you've heard but there is a new Project Termina making it's debut in the dev channel on the Pixelbook and a few other devices currently. This will bring Crostini / Linux apps to a lot of the newer Chromebooks and some of the older capable ones. It installs a Debian Stretch container on your Chromebook and doesn't require Developer mode. If you're interested, keep an eye on this r/Crostini thread that talks about the R13's future prospects:

-DennisLfromGA

christi9n commented 6 years ago

I didn't know Crostini ... thanks again for this track. I'm going to have a watch on this project.