Ubuntu – Integrate Ubuntu 22.10 into Chrome OS – Swedish!
Ubuntu – Integrate Ubuntu 22.10 into Chrome OS – Swedish!

Ubuntu – Integrate Ubuntu 22.10 into Chrome OS – Swedish!


Create the Ubuntu container – 22.10 – User Malle

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

” vmc start termina ”

Rename the default penguin container

” lxc stop penguin –force ”
” lxc rename penguin debian ”

Create a new Ubuntu container named penguin

” lxc launch ubuntu:22.10 penguin ”

Delete old debian container
” lxc delete debian ”

Enter the new container (as root):

lxc exec penguin -- bash

Bring Ubuntu up to date

” apt update ”
” apt upgrade ”

Install Crostini repositories

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

Download cros tools and setup – this is for version 107 Chrome os and Up!
There Will be some error and ignore any warning messages!

apt download cros-ui-config
apt install cros-guest-tools ./cros-ui-config_0.15_all.deb
sudo dpkg --force-overwrite --install /var/cache/apt/archives/cros-ui-config_0.15_all.deb
sudo dpkg --configure -a

Add your user – Note: replace “gmail-username” with your own Gmail username.

killall -u ubuntu
groupmod -n gmail-username ubuntu
usermod -md /home/gmail-username -l gmail-username ubuntu
usermod -aG users gmail-username
loginctl enable-linger gmail-username
sed -i 's/ubuntu/gmail-username/' /etc/sudoers.d/90-cloud-init-users

And last this is Good – sett password for Root and your User, in my case malle – root is same for all
” passwd malle ”
” passwd root ”

Now, shut down the container and restart =)

Tack för att ni tittade,
Mattias Vinberg