Skip to content

get your audio again (cras)

buhron edited this page Mar 22, 2025 · 7 revisions

cras broke in crouton a while ago, this guide is to build cras for crouton!

1. Install Crouton

This is easy, I shouldn't explain this...

2. Get repository

First, install required dependencies

sudo apt update
sudo apt install build-essential git git-core nano libtool libasound2-dev libdbus-1-dev libsbc-dev libiniparser-dev ladspa-sdk libgtest-dev libudev-dev cargo -y

Then git clone the repository and cd in it and a bunch of other stuff

git clone https://chromium.googlesource.com/chromiumos/third_party/adhd -b master
cd adhd/cras
./git_prepare.sh

3. Build CRAS

yay

3.1 Configure

3.1.1 Build dependencies

You need to install dependencies as cras needs dependencies not in Debian/Ubuntu repositories. Just one, luckily... You need to install speexdsp which has a straightfoward installation process: git clone https://github.com/xiph/speexdsp; cd speexdsp; ./autogen.sh; ./configure --prefix=/usr; make -j4; sudo make install -j4;

3.1.2 Configure now

You can now run ./configure --prefix=/usr

3.2 Make it!

Just run make -j4. Afterwards run sudo make install -j4

4. Installed!

Congrats! Now when using a X session, run the command cras (with sudo, as for some reason it only works with root)!

5. Fixes for bugs

  • Failed to import [insert sound card] - womp womp ig
Clone this wiki locally