Jump to content

Setup buster with sommelier on crouton


Leon
 Share

Recommended Posts

  • Administrators

*WORK IN PROGRESS*
 

With this guide we are going to setup a crouton buster-core chroot and setup sommelier - this allows us to run linux apps on chromeos with graphics accel. - this guide is not perfect and its a work in progress.

 

Screenshot 2021-06-19 21.11.04.png

(Running Brave, firefox and Microsoft Edge at native speed on chromeos)

 

Resources: 

 
 

Crouton installation 

 

Download crouton from: https://goo.gl/fd3zc 

Open a shell (Ctrl+Alt+T, type shell and hit enter) 

Copy the installer to an executable location by running:
 

sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton 

 

Now that crouton is installed, we can start setting up chroots (containers if you will). 
 
 
Setup a buster core container 

 

Download a buster core container - run:

sudo bash ~/Downloads/crouton -r buster -t core -n buster-core 

 

During the you will be asked to setup username and password, once its done – you can proceed 

 

Lets setup sommelier inside our buster-core 

 

Before we can start to run linux apps with need todo a bit of installation, while not complete – this is basiclly what we will do: https://github.com/dnschneid/crouton/wiki/Sommelier-(A-more-native-alternative-to-xiwi

 

 

Download sommelier to the Downloads folder 

"enter" your previos created chroot by running: sudo enter-chroot –n buster-core 

 

Run:  

cd ~/Downloads/ 

mkdir sommelier
wget https://chromium.googlesource.com/chromiumos/containers/sommelier/+archive/1382ce084cc40790340d672e8b62ec47733cb860.tar.gz

mv 1382ce084cc40790340d672e8b62ec47733cb860.tar.gz sommelier 

cd sommelier tar -xzf s1382ce084cc40790340d672e8b62ec47733cb860.tar.gz 

 

Run: 

export GDK_BACKEND=wayland 

export CLUTTER_BACKEND=wayland 

export XDG_RUNTIME_DIR='/var/run/chrome' 

export WAYLAND_DISPLAY=wayland-0 

export DISPLAY=:0 

 

 

Next, you'll need to build it. Thankfully, this is relatively simple. First, install the necessary dependencies. 

 

sudo apt update 

sudo apt install -y pkg-config git nano make xwayland libwayland-dev libgbm-dev gcc libx11-xcb-dev libsystemd-dev libxcb-composite0-dev libxkbcommon-dev libxrender-dev libxtst-dev libpixman-1-dev 

 

Then actually build it! Whilst in sommelier's directory: 

Make 

 

Then, in order to run sommelier as shown below, make the sommelierrc file executable: 

chmod +x sommelierrc 

sudo make install 

 

Finally, to stop getting a warning when running sommelier (_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root), change the owner of /tmp/.X11-unix to root: 

sudo chown root:root /tmp/.X11-unix 

 

 

Edit .bashrc to launch sommelier when you start the core: 

 

Run: 
cd 

nano .bashrc 
 
Add these lines to the end of your .bashrc 

 

clear 

echo 

echo [-] Starting sommilier 

# export GDK_BACKEND=wayland  

export CLUTTER_BACKEND=wayland 

export XDG_RUNTIME_DIR='/var/run/chrome' 

export WAYLAND_DISPLAY=wayland-0 

export DISPLAY=:0 

alias sommelier='~/Downloads/sommelier/sommelier -X --glamor --x-display=:0 --no-exit-with-child /bin/sh -c "~/Downloads/sommelier/sommelierrc"' 

sommelier & 

 

 

 

:::::::::: EDITS
1. Added --glamor to sommelier alias, seems to be needed for some to machines to enable accelrated graphics

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...