How to run Kali instead of Debian – ChromeOS – 2022 – Youtube – User: adolf
How to run Kali instead of Debian – ChromeOS – 2022 – Youtube – User: adolf

How to run Kali instead of Debian – ChromeOS – 2022 – Youtube – User: adolf

Start by entering the Chrome shell (crosh) by pressing CTRL+ALT+T, then enter the default termina VM

vsh termina
lxc stop penguin --force
lxc rename penguin debian

Now install kali container

lxc launch images:kali/current/amd64 penguin

After that we can delete Debian

lxc delete debian

Enter the new container (as root):

lxc exec penguin -- bash

Install sudo and nano

apt install sudo nano

Now its time to make user… Change adolf to your name =)

adduser adolf
cheak user: grep 1000:1000 /etc/passwd|cut -d':' -f1
Should show your user =)

Enable sudo for your user and login

groupadd sudo
usermod -aG sudo $username
systemctl unmask systemd-logind
loginctl enable-linger $username

Switch to the non-root user: Use your name and not adolf =)

su - adolf

Make sure you have network connection. You should see a non-empty result:

ip -4 a show dev eth0

Install some programs

sudo apt install -y gnupg2 psmisc

Add Google’s cros-package repo. Start by switching into root user so that sudo echo works

sudo -i

Install program as root

sudo apt install ca-certificates

Sett passwd for root

passwd root

Now its time to install repos for cros-guest-tools

echo "deb https://storage.googleapis.com/cros-packages bullseye main" > /etc/apt/sources.list.d/cros.list
if [ -f /dev/.cros_milestone ]; then sudo sed -i "s?packages?packages/$(cat /dev/.cros_milestone)?" /etc/apt/sources.list.d/cros.list; fi
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
apt update

Exit and go back to non-root useruse your name not adolf =)

su - adolf

Update Kali

sudo apt-get update

Finally, install cros-guest-tools to enable integration with Chrome OS

sudo apt install cros-guest-tools

Last thing to do – Type this in terminalif its not working we vill paste this in linux terminal after reboot

systemctl --user enable sommelier@0 sommelier-x@0 sommelier@1 sommelier-x@1 cros-garcon pulseaudio

And we are done – Restart linux and paste this over if its not working now.. I will show you mate!
Tack för att ni har tittat,
Mattias Vinberg