monome / norns

norns is many sound instruments.
http://monome.org
GNU General Public License v3.0
630 stars 147 forks source link

xvfb required to run sclang without $DISPLAY #475

Closed lazzarello closed 6 years ago

lazzarello commented 6 years ago

I don't know yet where to add this to the Raspberry Pi build instructions but I figured out how to run sclang without a screen through Xvfb. Writing notes here for the future.

sudo apt-get install xvfb
export DISPLAY=:0
Xvfb :0 -ac -screen 0 1280x1024x16 &
sclang
sc3> {SinOsc.ar(440,0,0.2)}.play

This should produce some sound.

artfwo commented 6 years ago

Specifically what problem does that solve? This is apparently not a norns issue, since supercollider doesn't require X to run.

tehn commented 6 years ago

@lazzarello i'd suggest adding this as an addendum to the raspberry pi build instructions, though we haven't seen this issue in the past.

lazzarello commented 6 years ago

@artfwo supercollider requires X to run, in the form of sclang. There is an open issue upstream. @tehn , what magic did you do to make this not an issue?

catfact commented 6 years ago

@lazzarello afaict, that issue only applies when building SC with QT but without X (or something - in any case i don't think i've encountered it.)

like i said on yr other issue, norns.catfact.net also provides a custom supercollider build that is configured for headless deployment. in particular it is built with DSC_QT=0 among other things. the full cmake config can be seen here: https://github.com/monome/norns/issues/435

lazzarello commented 6 years ago

HA! The secrets are revealed. This makes sense why my build required X.