Setting up a Crouton desktop under new conditions #5013
Replies: 12 comments 26 replies
-
Thanks for the writeup! A couple corrections:
It's better to use
You shouldn't need to edit /etc/group directly. Instead,
You can automate some stuff; adding the ssh start command (without sudo) to your /etc/rc.local will ensure it launches when you start your chroot. Running something like |
Beta Was this translation helpful? Give feedback.
-
This is very helpful, thank you! I'll give it a try in the near future. |
Beta Was this translation helpful? Give feedback.
-
A few things I've noticed:
|
Beta Was this translation helpful? Give feedback.
-
In regards to automating crouton, here is the pertinent portion of my .bashrc in ChromeOS:
The 1st 3 aliases are designed to be executed in VT-2, and the 4th is for the crosh shell. Then, inside my chroot, I have a .bashrc with the following command:
So, now, it is super easy to start and stop crouton and company :-) Old school crackers and hackers would not approve of my using caps in commands. I do this to be sure to avoid interfering with builtin Linux commands. |
Beta Was this translation helpful? Give feedback.
-
FYI: In my experience, if you first sign-in to your (owner) profile and then login as 'chronos' on VT-2 all of your bash environment will load, like -DennisLfromGA |
Beta Was this translation helpful? Give feedback.
-
Im still having troubles i enter |
Beta Was this translation helpful? Give feedback.
-
I'm completely baffled by what you said. I believe you. After starting ssh, did you go over to the crosh shell and attempt to ssh into your chroot? |
Beta Was this translation helpful? Give feedback.
-
i did and it gave me the error of not being able to start ssh because of 2
reasons, one being something i dont remember and the other is because it
was using port 22
either way until a new easier method is found i might just not have a
chroot, however if someone knows how to stop chromebooks from updating
themselves, i have a recovery image that allows me to get crouton working
as it should. ty for trying to help and trust me im not giving up so easily.
…On Sun, Nov 19, 2023 at 5:21 PM CroutonIsFun ***@***.***> wrote:
@BlackSwordsman <https://github.com/BlackSwordsman>
I'm completely baffled by what you said. I believe you. After starting
ssh, did you go over to the crosh shell and attempt to ssh into your chroot?
—
Reply to this email directly, view it on GitHub
<#5013 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOA3RAHQ3BLYOMMN75F7U5LYFKH6LAVCNFSM6AAAAAA5QAGGK6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMMJTHA2DM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
when i select unity and enter the the chroot for some reason the command sudo /etc/init.d/ssh start shows no errors but nothing starts i installed ssh already |
Beta Was this translation helpful? Give feedback.
-
Is there a way to adjust the volume to hwaudio(The chromebook)speakers? I did this |
Beta Was this translation helpful? Give feedback.
-
Guys Ive found a way to install Ubuntu 16.04 unity-desktop on crouton While also following some aspects of the guide |
Beta Was this translation helpful? Give feedback.
-
Hi,
I tried
which logged:
|
Beta Was this translation helpful? Give feedback.
-
What follows is a delightfully sneaky solution to a seemingly insurmountable problem: You can't sudo in the crosh shell, you can sudo in VT-2; however, VT-2 does not support an X session
Bare bones: Set up crouton in VT-2, run sshd, then from crosh shell ssh into localhost and startup your desktop!
For some of you, the above will suffice. Here is a more detailed explanation:
In the crosh shell, sudo is now a privileged command, and will not work. So, to set up crouton, you have to use VT-2, which is accessed with Ctrl-Alt-F2 (right arrow). Once there, login as chronos. No password is needed unless you previously set one.
If you have chroots which did not get setup correctly, now is a good time to clean them up with
sudo delete-chroot foo
Note: foo is a placeholder for the chroot name.
Note: There have been reports of sudo not working in VT-2. Apparently, this was unintentional, and is in the process of being fixed.
Now, you can start from scratch with the following command:
sudo CROUTON_BRANCH=silence crouton -r xenial -t xfce
However, I recommend that you use Debian bullseye or Ubuntu focal: in my experience, they both work well.
Once the chroot is installed, you will enter your username and password. Enter the command
sudo enter-chroot
and continue as below.If you need direct access to your cdrom or sound card, use the following commands to add your username to the appropriate entry in /etc/group:
sudo adduser foo cdrom
andsudo adduser foo hwaudio
As always, foo is a placeholder; in this case, it represents your username.
Now, while you're still in the chroot, install ssh:
sudo apt install ssh
ssh will generate a key.
At this point, you need to exit your chroot, and the re-enter with
sudo enter-chroot
Final step here in VT-2 is to activate ssh with this command:
sudo /etc/init.d/ssh/start
Note: you can automate the above by creating the following file as /etc/rc.local:
For example, after
sudo nano /etc/rc.local
you would create the above file, then after saving it as you exit the editor, you need to make it executable withsudo chmod 755 /etc/rc.local
Now exit your chroot and jump back in with
sudo enter-chroot
Stay inside your chroot, and get back to ChromeOS by pressing Ctrl-Alt-F1 (left arrow).
Now press Ctrl-Alt-T to get into crosh, then type
shell
and press ENTER.To fire up your Xsession, first enter this command to get into your chroot:
ssh foo@localhost
and press ENTERNote: foo is a placeholder for your username.
Now, enter the command
startxfce4
and press ENTER. The desktop should launch, and you can do first time stuff, etc.To exit your chroot, first click on the exit command from your desktop menu, then press Ctrl-D to get completely out.
If you feel safe, you can leave your chroot running in VT-2; however, you can certainly go back there and Ctrl-D from the chroot, then Ctrl-D from VT-2.
Beta Was this translation helpful? Give feedback.
All reactions