# Sonic Pi on Chromebooks

**URL:** <https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030>\
**Category:** Educators\
**Created:** [January 22, 2021, 5:01pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030 "2021-01-22T17:01:35Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Sonic\_Giga\_Pi](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Sonic\_Giga\_Pi](https://in-thread.sonic-pi.net/u/Sonic_Giga_Pi)\
**Post date:** [January 24, 2022, 2:24pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/22 "2022-01-24T14:24:31Z")

</div>

I didn’t get round to it due to there being a lack of interest.

However, knowing there are others who wish for it, I may work on it when I can.

Also, as an update, I upgraded Debian version of the Beta Linux container and found that there is a much more recent version in the repos! It does seem to follow the same pattern of behaviour.

---

<div class="post-metadata">

**Author:** ![Dr.Bat](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dr.Bat](https://in-thread.sonic-pi.net/u/Dr.Bat)\
**Post date:** [January 24, 2022, 8:17pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/23 "2022-01-24T20:17:58Z")

</div>

OK PEOPLE ! I was defeated for the fall but I am back to give it another try --maybe for quarter 4!! I just want to say thank you everyone who has contributed ( 👀 @ sonic\_giga\_pi).

I will try out that suggested route above and will let you know how it goes this weekend perhaps!!

---

<div class="post-metadata">

**Author:** ![Sonic\_Giga\_Pi](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Sonic\_Giga\_Pi](https://in-thread.sonic-pi.net/u/Sonic_Giga_Pi)\
**Post date:** [January 25, 2022, 9:40am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/24 "2022-01-25T09:40:07Z")

</div>

Something I forgot to mention. The `jackd` command may fail a couple of times. From my experience, just running it over and over again seems to get it to work. May look more into it.

Again, not perfect, but it’s better than nothing, and, so far, seems to be the only solution.

I imagine the problem is to do with how crostini handles audio.

---

<div class="post-metadata">

**Author:** ![Sonic\_Giga\_Pi](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Sonic\_Giga\_Pi](https://in-thread.sonic-pi.net/u/Sonic_Giga_Pi)\
**Post date:** [January 25, 2022, 12:34pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/25 "2022-01-25T12:34:54Z")

</div>

Ok, The best method I’ve got is this:

1. Go to chrome://flags

2. search for “Debian version for new Crostini containers”, and select “bullseye”

3. Go to the settings on your chromebook then to developer options

4. Once there, install the Linux Developer Environment

5. Once installed, a terminal window will open. `sudo apt update && sudo apt upgrade`

6. Next, type: `sudo apt install jackd`

7. Once that’s done, use this command: `wget http://ftp.uk.debian.org/debian/pool/main/s/sonic-pi/sonic-pi_3.2.2~repack-7_amd64.deb`

8. Then type: `./sonic-pi_3.2.2~repack-7_amd64.deb`

9. Once installed, run this command: ` jackd -r -d alsa -r 44100 -P` It may fail with “hw:0 in use” My experience has found that after several runs of the command, it’ll eventually start.

10. open a new tab in terminal and type: `sonic-pi`, and it should come up

This is certainly better than before, where an older version of sonic pi was used. I will look into compiling the latest version and seeing if I can get that to work.

Once I have time, I’ll work on creating a script that makes this process more streamlined.

---

<div class="post-metadata">

**Author:** ![dranz](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/dranz/32/2026_2.png) [@dranz](https://in-thread.sonic-pi.net/u/dranz)\
**Post date:** [February 7, 2022, 1:46am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/26 "2022-02-07T01:46:43Z")

</div>

From my Chromebook I have been successful using Chrome Remote Desktop to access Sonic Pi running on my Win10 laptop. Passes the audio through just fine and running on my home network inside my WiFi router domain, there is really no latency

---

<div class="post-metadata">

**Author:** ![hitsware](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hitsware](https://in-thread.sonic-pi.net/u/hitsware)\
**Post date:** [February 7, 2022, 2:45am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/27 "2022-02-07T02:45:11Z")

</div>

Ya Mon !  
I have S.P. running fine on a RPi ( Bullseye) .  
I have a second RPi with ChromeOS .  
The ChromeOS is much smoother for normal websurfing .  
I may have an experiment : )

---

<div class="post-metadata">

**Author:** ![Sonic\_Giga\_Pi](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@Sonic\_Giga\_Pi](https://in-thread.sonic-pi.net/u/Sonic_Giga_Pi)\
**Post date:** [February 26, 2022, 10:21am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/28 "2022-02-26T10:21:52Z")

</div>

For some people, it may work that way.

However, from an education stand point, I wouldn’t think that’s a viable solution

---

<div class="post-metadata">

**Author:** ![JoeKing](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/joeking/32/2399_2.png) [@JoeKing](https://in-thread.sonic-pi.net/u/JoeKing)\
**Post date:** [September 23, 2022, 11:10am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/29 "2022-09-23T11:10:30Z")

</div>

Hey you might be able to run it online on a google cloud shell, Its basically a computer on the internet you can rent. [How to deploy an application to Cloud Run with Cloud Shell Editor - YouTube](https://youtu.be/PwY4UtMvLAE)

---

<div class="post-metadata">

**Author:** ![mkpi](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/mkpi/32/2540_2.png) [@mkpi](https://in-thread.sonic-pi.net/u/mkpi)\
**Post date:** [December 5, 2022, 11:39pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/30 "2022-12-05T23:39:46Z")

</div>

I have just got a new chromebook and installed sonic-pi via apt in the Linux VM … and thanx to hint above and a small tweak Sonic Pi 3.22 runs great. But not in realtime mode.

Running Sonic Pi on my Chromebook

1. Start Linux environment then install the program

> apt-get install sonic-pi

1. 

> jackd -r -d alsa -r 44100 -P

when Error - do:

```
	set JACK_NO_AUDIO_RESERVATION=1
	jackd -r -d alsa -r 44100 -P

```

1. open new terminal Tab and let it run:

> sonic-pi

? Some how I missed the realtime mode setting … Anybody knows how to change the mode jack deamon uses ? Thanx4urhelp

---

<div class="post-metadata">

**Author:** ![samaaron](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/samaaron/32/7_2.png) [@samaaron](https://in-thread.sonic-pi.net/u/samaaron)\
**Post date:** [December 6, 2022, 10:03am UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/31 "2022-12-06T10:03:17Z")

</div>

Hi @mkpi,

thanks for your question, although these forums are predominantly to discuss the usage of Sonic Pi. For installation/configuration issues, please could you raise an issue on GitHub: [Issues · sonic-pi-net/sonic-pi · GitHub](https://github.com/sonic-pi-net/sonic-pi/issues)

Also, as this is a linux jack related question, you are likely to get the best response from the jack community: [Community Network | JACK Audio Connection Kit](https://jackaudio.org/community.html)

---

<div class="post-metadata">

**Author:** ![mkpi](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/mkpi/32/2540_2.png) [@mkpi](https://in-thread.sonic-pi.net/u/mkpi)\
**Post date:** [April 22, 2023, 6:08pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/32 "2023-04-22T18:08:52Z")

</div>

I have found this Link, which adresses my Question:

> **[How do I configure my linux system to allow JACK to use realtime scheduling?...](https://jackaudio.org/faq/linux_rt_config.html)**
>
> JACK Audio Connection Kit | How do I configure my linux system to allow JACK to use realtime scheduling?

Ps: What worked on my chromebooks Linux-VM, works on Ubuntu 22.04 LTS also.

> apt-get install sonic-pi

seems to work but SP dosn’t want to start! Error! So running

> jackd -r -d alsa -r 44100 -P

first, solves this perfectly. ( Ubuntu 22.04 → Sonic Pi 3.2.2 )

---

<div class="post-metadata">

**Author:** ![panWaja](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@panWaja](https://in-thread.sonic-pi.net/u/panWaja)\
**Post date:** [May 9, 2023, 1:53pm UTC](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030/33 "2023-05-09T13:53:03Z")

</div>

I have automated this with a shell script so uh… Here you go

```bash
if ! command -v gnome-terminal &> /dev/null
then
    echo "gnome-terminal not found, installing..."
    sudo apt-get install gnome-terminal
fi
gnome-terminal -- sh -c 'jackd -r -d alsa -r 44100 -P'
sleep 1
gnome-terminal -- sh -c 'sonic-pi'

```

[Previous page](https://in-thread.sonic-pi.net/t/sonic-pi-on-chromebooks/5030.md?page=1)
