- Get into VT-2 (Control-Alt-Forward arrow button thing (looks like ->))
- Install chromebrew
- Run
crew install crew-sudo
- Sign out of VT2, sign back into VT2 as chronos and wait for crew-sudo to start.
- Go back to the main screen using Control-Alt-Back arrow
- Open Crosh, and enter shell.
- Type
sudo bash
to get into a root shell. If it doesn't work, follow the instructions it gives, and if it says not found then you installed it wrong. - Profit
- You will need to log into chronos in VT2 on every reboot to restart crew-sudo.
- This is the easiest method, and doesn't need you to mess around with sommelier.
- Install chromebrew
- Run
crew install sommelier xfce4_terminal
- Run
xfce4-terminal
in VT-2 as chronos or root (Control-Alt- ->) - Enjoy!
- The window doesn't look as nice as normal crosh
- Requires sommelier (which is kinda jank)
- Run
sudo /usr/sbin/sshd -p 6969
in VT-2 as chronos or root (Control-Alt- ->) - In crosstini, run
ssh chronos@localhost -p 6969
and enter your password.
- You must have a password set for chronos to log in as chronos. To set a password, run
chromeos-setdevpasswd
in VT-2 as root - You can ssh into root directly by running
ssh root@localhost
in crosstini. - While this is a simple method, this is a potential security risk, as you are exposing your ssh port.
- Run
ssh-keygen
in crosh or VT-2 as chronos - Run
cat ~/.ssh/id_ed25519.pub > ~/.ssh/authorized_keys
in crosh - Run
sudo /usr/sbin/sshd -oAuthorizedKeysFile=/home/chronos/user/.ssh/authorized_keys -p 6969
in VT-2 as chronos or root (Control-Alt- ->) - In crosstini, run
ssh chronos@localhost -6969
(make sure to copy your ~/.ssh/id_ed25519.pub file to your linux container's ~/.ssh/id_ed25519.pub)
- While this is a simple method, this is a potential security risk, as you are exposing your ssh port.
follow this tutorial
- Makes Crosh itself be able to use sudo without using VT2.
- Stops working after updating.
- Needs crosstini (Or chromebrew with
crew install buildessential
to install GPP) - Is hard to type all of the stuffs perfectly into VT-2
- Is meh method overall (especially because Method 1 achieves the same thing but a lot easier), will make your chromebook not be able to show the desktop or make u powerwash it if you misstype even one letter in some of the commands, and it resets on updates. Use method one cause easy. However, it is the most User-Friendly after you set it up, as it uses actual crosh which has tabs and stuff and you dont need to use VT-2, as long as you know how to keep re-setting it every time you update.
- You can open GUI apps as root (like crouton, or any other app you install using ChromeBrew. I recommend installing sommelier with
chronos@chromebook ~ $ crew install sommelier
) - You can copy-paste scripts into there, like long install links that you cant be bothered copying letter for letter
- You can stick it to chromebook's dev team who disabled sudo in crosh :P