Administrators Leon Posted June 20, 2021 Administrators Share Posted June 20, 2021 *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. (Running Brave, firefox and Microsoft Edge at native speed on chromeos) Resources: https://github.com/dnschneid/crouton https://github.com/dnschneid/crouton/wiki/Sommelier-(A-more-native-alternative-to-xiwi) 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 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.