# Autoplay All Tracks

**URL:** <https://discourse.mopidy.com/t/autoplay-all-tracks/638>\
**Category:** Pi MusicBox (archive)\
**Created:** [March 26, 2015, 10:41pm UTC](https://discourse.mopidy.com/t/autoplay-all-tracks/638 "2015-03-26T22:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob13](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rob13](https://discourse.mopidy.com/u/rob13)\
**Post date:** [March 26, 2015, 10:41pm UTC](https://discourse.mopidy.com/t/autoplay-all-tracks/638/1 "2015-03-26T22:41:32Z")

</div>

So I’m just putting this hack out there because I couldn’t find a documented way to do it. I wanted to have the pi boot up and randomly and continuously play all local music.

Upon reboot I have pi Musicbox set to scan for new music. Then I edited the [startup.sh](http://startup.sh) so rather than adding the single song to play I have something like this:

```
mpc ls "Local media/Tracks" |mpc add
mpc random on
mpc repeat on 
mpc play

```

Version 0.5.4 pi musicbox

Maybe there is a more elegant way to make that happen.

---

<div class="post-metadata">

**Author:** ![jochen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jochen/32/473_2.png) [@jochen](https://discourse.mopidy.com/u/jochen)\
**Post date:** [March 31, 2015, 5:56pm UTC](https://discourse.mopidy.com/t/autoplay-all-tracks/638/2 "2015-03-31T17:56:24Z")

</div>

I would also be interested in something like this.  
Not restricted to startup, though.

What I have so far for this purpose is a playlist containing all tracks, but it has to be recreated once files are moved to the raspi.

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/autoplay-all-tracks/638/3 "2026-02-19T11:47:47Z")

</div>


